signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class ResponseCreationSupport { /** * Create a { @ link URI } from a path . This is similar to calling * ` new URI ( null , null , path , null ) ` with the { @ link URISyntaxException } * converted to a { @ link IllegalArgumentException } . * @ param path the path * @ return the uri * @ throws IllegalA...
try { return new URI ( null , null , path , null ) ; } catch ( URISyntaxException e ) { throw new IllegalArgumentException ( e ) ; }
public class CPRuleAssetCategoryRelServiceUtil { /** * NOTE FOR DEVELOPERS : * Never modify this class directly . Add custom service methods to { @ link com . liferay . commerce . product . service . impl . CPRuleAssetCategoryRelServiceImpl } and rerun ServiceBuilder to regenerate this class . */ public static com . ...
return getService ( ) . addCPRuleAssetCategoryRel ( cpRuleId , assetCategoryId , serviceContext ) ;
public class StocatorPath { /** * Transform scheme : / / hostname / a / b / _ temporary / 0 into scheme : / / hostname / a / b / * We mainly need this for mkdirs operations * @ param path input directory with temporary prefix * @ return modified directory without temporary prefix */ public String getBaseDirectory...
if ( path != null ) { int finishIndex = path . indexOf ( HADOOP_TEMPORARY ) ; if ( finishIndex > 0 ) { String newPath = path . substring ( 0 , finishIndex ) ; if ( newPath . endsWith ( "/" ) ) { return newPath . substring ( 0 , newPath . length ( ) - 1 ) ; } return newPath ; } } return path ;
public class WebContainer { /** * Access the temp directory location unique to this running bundle ' s * webcontainer . This will be of the form * " server \ workarea \ & lt ; framework - specific - bundle - path & gt ; \ temp \ " ( with * platform - specific separator characters ) or will be null if the bundle i...
WebContainer instance = ( WebContainer ) self . get ( ) ; if ( instance == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "WebContainer not running, returning null temp dir" ) ; } return null ; } String rc = null ; try { File f = instance . context . getBundleCon...
public class OWLDisjointDataPropertiesAxiomImpl_CustomFieldSerializer { /** * Deserializes the content of the object from the * { @ link com . google . gwt . user . client . rpc . SerializationStreamReader } . * @ param streamReader the { @ link com . google . gwt . user . client . rpc . SerializationStreamReader }...
deserialize ( streamReader , instance ) ;
public class Fingerprint { /** * Returns true if any of the builds recorded in this fingerprint * is still retained . * This is used to find out old fingerprint records that can be removed * without losing too much information . */ public synchronized boolean isAlive ( ) { } }
if ( original != null && original . isAlive ( ) ) return true ; for ( Entry < String , RangeSet > e : usages . entrySet ( ) ) { Job j = Jenkins . getInstance ( ) . getItemByFullName ( e . getKey ( ) , Job . class ) ; if ( j == null ) continue ; Run firstBuild = j . getFirstBuild ( ) ; if ( firstBuild == null ) continue...
public class lbwlm { /** * Use this API to update lbwlm . */ public static base_response update ( nitro_service client , lbwlm resource ) throws Exception { } }
lbwlm updateresource = new lbwlm ( ) ; updateresource . wlmname = resource . wlmname ; updateresource . katimeout = resource . katimeout ; return updateresource . update_resource ( client ) ;
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 url Publ...
return addPersonFaceFromUrlWithServiceResponseAsync ( personGroupId , personId , url , addPersonFaceFromUrlOptionalParameter ) . map ( new Func1 < ServiceResponse < PersistedFace > , PersistedFace > ( ) { @ Override public PersistedFace call ( ServiceResponse < PersistedFace > response ) { return response . body ( ) ; ...
public class Config { /** * < p > Initializes the configuration . < / p > < p > Looks for a properties ( programName . conf ) in the classpath , the user * home directory , and in the run directory to load < / p > < p > The command line arguments are parsed and added to the * configuration . < / p > * @ param pro...
Preloader . preload ( ) ; String rval [ ] ; if ( args != null ) { rval = parser . parse ( args ) ; } else { rval = new String [ 0 ] ; } // Check if we should only explain the config if ( NamedOption . CONFIG_EXPLAIN . < Boolean > getValue ( ) ) { getInstance ( ) . setterFunction = ConfigExplainSettingFunction . INSTANC...
import java . util . * ; public class Main { /** * This function computes the number of times a specific character occurs in a string that is repeated . * Examples : * characterFrequencyInRepeatedString ( ' abcac ' , ' a ' ) - > 4 * characterFrequencyInRepeatedString ( ' abca ' , ' c ' ) - > 2 * characterFreque...
int frequency = 0 ; for ( int i = 0 ; i < inputString . length ( ) ; i ++ ) { if ( inputString . charAt ( i ) == character ) { frequency ++ ; } } int repetitions = ( 10 / inputString . length ( ) ) ; frequency *= repetitions ; int remainingChars = ( 10 % inputString . length ( ) ) ; for ( int i = 0 ; i < remainingChars...
public class Blobs { /** * probably not insert it into Cassandra either ; ) */ private static ByteBuffer readAll ( File file ) throws IOException { } }
try ( FileInputStream inputStream = new FileInputStream ( file ) ) { FileChannel channel = inputStream . getChannel ( ) ; ByteBuffer buffer = ByteBuffer . allocate ( ( int ) channel . size ( ) ) ; channel . read ( buffer ) ; buffer . flip ( ) ; return buffer ; }
public class GeneratedMessage { /** * Called by subclasses to parse an unknown field . * @ return { @ code true } unless the tag is an end - group tag . */ protected boolean parseUnknownField ( CodedInputStream input , UnknownFieldSet . Builder unknownFields , ExtensionRegistryLite extensionRegistry , int tag ) throw...
return unknownFields . mergeFieldFrom ( tag , input ) ;
public class Op { /** * Creates an array with the specified elements and an < i > operation expression < / i > on it . * @ param elements the elements of the array being created * @ return an operator , ready for chaining */ public static < T > Level0ArrayOperator < Character [ ] , Character > onArrayFor ( final Ch...
return onArrayOf ( Types . CHARACTER , VarArgsUtil . asRequiredObjectArray ( elements ) ) ;
public class CLIQUE { /** * The specified sorted list of dense subspaces is divided into the selected * set I and the pruned set P . For each set the difference from the specified * mean values is computed . * @ param denseSubspaces denseSubspaces the dense subspaces in reverse order * by their coverage * @ p...
int n = denseSubspaces . size ( ) - 1 ; double [ ] diff_mi = new double [ n + 1 ] , diff_mp = new double [ n + 1 ] ; double resultMI = 0 , resultMP = 0 ; for ( int i = 0 ; i < denseSubspaces . size ( ) ; i ++ ) { double diffMI = Math . abs ( denseSubspaces . get ( i ) . getCoverage ( ) - mi [ i ] ) ; resultMI += log2Or...
public class LauncherModel { /** * Launcher */ @ Override public void prepare ( FeatureProvider provider ) { } }
super . prepare ( provider ) ; localizable = provider . getFeature ( Transformable . class ) ; if ( provider instanceof LauncherListener ) { addListener ( ( LauncherListener ) provider ) ; } if ( provider instanceof LaunchableListener ) { addListener ( ( LaunchableListener ) provider ) ; }
public class Mapper { /** * Returns the { @ link TierKeyMap } instance , allowed the key like " a . b [ 0 ] . c . d [ 3 ] " , * and if the key class type is not { @ link String } will happen nothing . * @ return */ public Mapper < K , V > tierKey ( ) { } }
if ( ! ( delegate . get ( ) instanceof TierKeyMap ) ) { delegate = Optional . of ( ( Map < K , V > ) TierKeyMap . from ( delegate . get ( ) ) ) ; } return this ;
public class JspCompilationContext { /** * Get the full value of a URI relative to this compilations context * uses current file as the base . * @ param uri The relative URI * @ return absolute URI */ public String resolveRelativeUri ( String uri ) { } }
// sometimes we get uri ' s massaged from File ( String ) , so check for // a root directory separator char if ( uri . startsWith ( "/" ) || uri . startsWith ( File . separator ) ) { return uri ; } else { return baseURI + uri ; }
public class InstructionView { /** * Initializes all animations needed to show / hide views . */ private void initializeAnimations ( ) { } }
Context context = getContext ( ) ; rerouteSlideDownTop = AnimationUtils . loadAnimation ( context , R . anim . slide_down_top ) ; rerouteSlideUpTop = AnimationUtils . loadAnimation ( context , R . anim . slide_up_top ) ;
public class AmazonAutoScalingClient { /** * Sets the size of the specified Auto Scaling group . * For more information about desired capacity , see < a * href = " https : / / docs . aws . amazon . com / autoscaling / ec2 / userguide / what - is - amazon - ec2 - auto - scaling . html " > What Is Amazon * EC2 Auto...
request = beforeClientExecution ( request ) ; return executeSetDesiredCapacity ( request ) ;
public class RoutingTrie { /** * Returns a { @ link Node } which is mapped to the given { @ code path } . * If { @ code exact } is { @ code true } , internally - added node may be returned . */ @ Nullable @ VisibleForTesting Node < V > findNode ( String path , boolean exact ) { } }
requireNonNull ( path , "path" ) ; return findNode ( root , path , 0 , exact ) ;
public class FundamentalToProjective { /** * Given three fundamental matrices describing the relationship between three views , compute a consistent * set of projective camera matrices . Consistent means that the camera matrices will give back the same * fundamental matrices . Non - linear refinement might be neede...
// left epipoles . renamed to make code easier to read Point3D_F64 e21 = e1 ; Point3D_F64 e31 = e2 ; alg . process ( F21 , null , e21 ) ; twoView ( F21 , e21 , zero , 1 , P2 ) ; alg . process ( F31 , null , e31 ) ; // find transform which will make P2 = [ I | 0] if ( ! p2i . process ( P2 ) ) return false ; // Perform n...
public class StartDeviceSyncRequest { /** * Request structure to start the device sync . Required . * @ param features * Request structure to start the device sync . Required . * @ return Returns a reference to this object so that method calls can be chained together . * @ see Feature */ public StartDeviceSyncR...
java . util . ArrayList < String > featuresCopy = new java . util . ArrayList < String > ( features . length ) ; for ( Feature value : features ) { featuresCopy . add ( value . toString ( ) ) ; } if ( getFeatures ( ) == null ) { setFeatures ( featuresCopy ) ; } else { getFeatures ( ) . addAll ( featuresCopy ) ; } retur...
public class XMLOutputter { /** * Resets this < code > XMLOutputter < / code > and configures it for the * specified output stream and encoding . This resets the state to * { @ link # BEFORE _ XML _ DECLARATION } and clears the stack of open elements . * @ param out the output stream to write to , not < code > nu...
// Check arguments if ( encoding == null ) { throw new IllegalArgumentException ( "encoding == null" ) ; } reset ( out ) ; // Store the fields _encoder = XMLEncoder . getEncoder ( encoding ) ; // State has changed , check checkInvariants ( ) ;
public class CacheImpl { /** * When we remove any object , we must found again nextTimeSomeExpired . * @ param key - key to remove * @ return - object , if any */ public Object remove ( Object key ) { } }
synchronized ( objects ) { Object remove = objects . remove ( key ) ; objectTimeStamps . remove ( key ) ; if ( remove != null ) { findNextExpireTime ( ) ; } return remove ; }
public class Entropy { /** * < p > Calculates and returns the Shannon entropy of the given byte array . < / p > * < p > The returned value is a value between < code > 0 < / code > and < code > 1 < / code > where * a value of < code > 0 < / code > signifies no entropy and a value of < code > 1 < / code > maximum ent...
int n = bytes . length ; long [ ] values = new long [ 256 ] ; for ( int i = 0 ; i < n ; i ++ ) { values [ bytes [ i ] - Byte . MIN_VALUE ] ++ ; } double entropy = 0 ; double p ; double log256 = Math . log ( 256 ) ; for ( long count : values ) { if ( count != 0 ) { p = ( double ) count / n ; entropy -= p * ( Math . log ...
public class HttpMessage { /** * Returns a map of data suitable for including in an { @ link Event } * @ since TODO add version */ @ Override public Map < String , String > toEventData ( ) { } }
Map < String , String > map = new HashMap < String , String > ( ) ; map . put ( EVENT_DATA_URI , getRequestHeader ( ) . getURI ( ) . toString ( ) ) ; map . put ( EVENT_DATA_REQUEST_HEADER , getRequestHeader ( ) . toString ( ) ) ; map . put ( EVENT_DATA_REQUEST_BODY , getRequestBody ( ) . toString ( ) ) ; if ( ! getResp...
public class HistoryFilterPlusDialog { /** * This method initializes btnReset * @ return javax . swing . JButton */ private JButton getBtnReset ( ) { } }
if ( btnReset == null ) { btnReset = new JButton ( ) ; btnReset . setText ( Constant . messages . getString ( "history.filter.button.clear" ) ) ; btnReset . addActionListener ( new java . awt . event . ActionListener ( ) { @ Override public void actionPerformed ( java . awt . event . ActionEvent e ) { exitResult = JOpt...
public class ELParser { /** * This is an element that can start a value */ final public Expression ValuePrefix ( ) throws ParseException { } }
Expression ret ; switch ( ( jj_ntk == - 1 ) ? jj_ntk ( ) : jj_ntk ) { case INTEGER_LITERAL : case FLOATING_POINT_LITERAL : case STRING_LITERAL : case TRUE : case FALSE : case NULL : ret = Literal ( ) ; break ; case LPAREN : jj_consume_token ( LPAREN ) ; ret = Expression ( ) ; jj_consume_token ( RPAREN ) ; break ; defau...
public class DefaultSystemInfoProvider { /** * This method will read and parse the ' / proc / cpuinfo ' into a collection of properties . * @ param target * @ return * @ throws IOException * @ throws InterruptedException * @ throws UnsupportedOperationException */ protected String getCpuInfo ( String target )...
// if the CPU data has not been previously acquired , then acquire it now if ( cpuInfo == null ) { cpuInfo = new HashMap < > ( ) ; try ( BufferedReader br = new BufferedReader ( new FileReader ( "/proc/cpuinfo" ) ) ) { for ( String line ; ( line = br . readLine ( ) ) != null ; ) { String parts [ ] = line . split ( ":" ...
public class ImageGenerator { /** * Apply the specified TypeFace to the date font * OPTIONAL * @ param fontName Name of the date font to be generated */ public void setDateTypeFace ( String fontName ) { } }
mDateTypeFace = Typeface . createFromAsset ( mContext . getAssets ( ) , "fonts/" + fontName ) ; mDateTypeFaceSet = true ;
public class TrackerLocator { /** * 获取Tracker服务器地址 * @ return */ public InetSocketAddress getTrackerAddress ( ) { } }
TrackerAddressHolder holder ; // 遍历连接地址 , 抓取当前有效的地址 for ( int i = 0 ; i < trackerAddressCircular . size ( ) ; i ++ ) { holder = trackerAddressCircular . next ( ) ; if ( holder . canTryToConnect ( retryAfterSecend ) ) { return holder . getAddress ( ) ; } } throw new FdfsUnavailableException ( "找不到可用的tracker " + getTrack...
public class BaseDataAdaptiveTableLayoutAdapter { /** * Switch 2 rows with data * @ param rowIndex row from * @ param rowToIndex row to */ void switchTwoRows ( int rowIndex , int rowToIndex ) { } }
for ( int i = 0 ; i < getItems ( ) . length ; i ++ ) { Object cellData = getItems ( ) [ rowToIndex ] [ i ] ; getItems ( ) [ rowToIndex ] [ i ] = getItems ( ) [ rowIndex ] [ i ] ; getItems ( ) [ rowIndex ] [ i ] = cellData ; }
public class LayerMap { /** * Remove a combination . * @ param it Plot item * @ param task Visualization task * @ return Previous value */ public Pair < Element , Visualization > remove ( PlotItem it , VisualizationTask task ) { } }
return map . remove ( key ( it , task ) ) ;
public class AddOnManager { /** * Returns the registered add - on identified by the identifier . * @ param pAddOnId The add - on ' s identifier . * @ return The registered add - on identified by the identifier . */ public AddOn getAddOn ( String pAddOnId ) { } }
if ( mRegisteredAddOns . containsKey ( pAddOnId ) ) { return mRegisteredAddOns . get ( pAddOnId ) ; } else { LOGGER . warn ( "Add-on " + pAddOnId + " is not loaded." ) ; return null ; }
public class JKObjectUtil { public static Object callStaticMethod ( Class clas , String methodName , Object ... params ) { } }
try { Class [ ] paramsTypes = new Class [ params . length ] ; for ( int i = 0 ; i < params . length ; i ++ ) { paramsTypes [ i ] = Object . class ; } Method method = clas . getMethod ( methodName , paramsTypes ) ; Object o = method . invoke ( null , params ) ; return o ; } catch ( Exception e ) { throw new JKException ...
public class Traverson { /** * Start traversal at the application / hal + json resource idenfied by { @ code uri } . * @ param uri the { @ code URI } of the initial HAL resource . * @ return Traverson initialized with the { @ link HalRepresentation } identified by { @ code uri } . */ public Traverson startWith ( fi...
startWith = hrefToUrl ( uri ) ; contextUrl = startWith ; lastResult = null ; return this ;
public class DescribeMyUserProfileRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DescribeMyUserProfileRequest describeMyUserProfileRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( describeMyUserProfileRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; }
public class SesClient { /** * Verify the domain * When this API is called successfully , it will return a token which is used to verify domain . You should put the * token into DSN setting as a TXT record , then SES can finish verifying automatically . * @ param request The request object which includes the doma...
checkNotNull ( request , "object request should not be null." ) ; assertStringNotNullOrEmpty ( request . getDomainName ( ) , "object domainName should not be null or empty" ) ; InternalRequest internalRequest = this . createRequest ( "verifiedDomain" , request , HttpMethodName . PUT , request . getDomainName ( ) ) ; re...
public class RecordSetsInner { /** * Lists all record sets in a Private DNS zone . * @ param resourceGroupName The name of the resource group . * @ param privateZoneName The name of the Private DNS zone ( without a terminating dot ) . * @ throws IllegalArgumentException thrown if parameters fail the validation ...
return listWithServiceResponseAsync ( resourceGroupName , privateZoneName ) . map ( new Func1 < ServiceResponse < Page < RecordSetInner > > , Page < RecordSetInner > > ( ) { @ Override public Page < RecordSetInner > call ( ServiceResponse < Page < RecordSetInner > > response ) { return response . body ( ) ; } } ) ;
public class JSLocalConsumerPoint { /** * Unlock all messages which have been locked to this LCP but not consumed * @ throws SIResourceException Thrown if there is a problem in the msgStore */ @ Override public void unlockAll ( ) throws SISessionUnavailableException , SIResourceException { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "unlockAll" , this ) ; synchronized ( _asynchConsumerBusyLock ) { this . lock ( ) ; try { // Only valid if the consumer session is still open checkNotClosed ( ) ; try { // Unlock the messages ( take this lock to ensure we do...
public class MStress_Client { /** * Parses the plan file that contains parameters for the benchmark . */ private static int parsePlanFile ( ) { } }
int ret = - 1 ; try { FileInputStream fis = new FileInputStream ( planfilePath_ ) ; DataInputStream dis = new DataInputStream ( fis ) ; BufferedReader br = new BufferedReader ( new InputStreamReader ( dis ) ) ; if ( prefix_ . isEmpty ( ) ) { prefix_ = "PATH_PREFIX_" ; } String line ; while ( ( line = br . readLine ( ) ...
public class CassandraEmbeddedConfigParameters { /** * Default values */ static TypedMap mergeWithDefaultParameters ( TypedMap parameters ) { } }
TypedMap defaultParams = new TypedMap ( ) ; defaultParams . put ( LISTEN_ADDRESS , DEFAULT_CASSANDRA_EMBEDDED_LISTEN_ADDRESS ) ; defaultParams . put ( RPC_ADDRESS , DEFAULT_CASSANDRA_EMBEDDED_RPC_ADDRESS ) ; defaultParams . put ( BROADCAST_ADDRESS , DEFAULT_CASSANDRA_EMBEDDED_BROADCAST_ADDRESS ) ; defaultParams . put (...
public class Types { /** * / * Should check for strict java here and limit to isJavaAssignable ( ) */ static boolean isSignatureAssignable ( Class [ ] from , Class [ ] to , int round ) { } }
if ( round != JAVA_VARARGS_ASSIGNABLE && from . length != to . length ) return false ; switch ( round ) { case JAVA_BASE_ASSIGNABLE : for ( int i = 0 ; i < from . length ; i ++ ) if ( ! isJavaBaseAssignable ( to [ i ] , from [ i ] ) ) return false ; return true ; case JAVA_BOX_TYPES_ASSIGABLE : for ( int i = 0 ; i < fr...
public class BasePath { /** * Checks to see if this path is a prefix of ( or equals ) another path . * @ param path the path to check against * @ return true if current path is a prefix of the other path . */ boolean isPrefixOf ( BasePath < B > path ) { } }
ImmutableList < String > prefixSegments = getSegments ( ) ; ImmutableList < String > childSegments = path . getSegments ( ) ; if ( prefixSegments . size ( ) > path . getSegments ( ) . size ( ) ) { return false ; } for ( int i = 0 ; i < prefixSegments . size ( ) ; i ++ ) { if ( ! prefixSegments . get ( i ) . equals ( ch...
public class Tomcat5ServerXML { /** * Sets the port and keystore information on the SSL connector if it already * exists ; creates a new SSL connector , otherwise . Also sets the * redirectPort on the non - SSL connector to match . * @ throws InstallationFailedException */ public void setSSLPort ( ) throws Instal...
Element httpsConnector = ( Element ) getDocument ( ) . selectSingleNode ( HTTPS_CONNECTOR_XPATH ) ; if ( options . getBooleanValue ( InstallOptions . SSL_AVAILABLE , true ) ) { if ( httpsConnector == null ) { Element service = ( Element ) getDocument ( ) . selectSingleNode ( "/Server/Service[@name='Catalina']" ) ; http...
public class CreateCacheClusterRequest { /** * A list of the Availability Zones in which cache nodes are created . The order of the zones in the list is not * important . * This option is only supported on Memcached . * < note > * If you are creating your cluster in an Amazon VPC ( recommended ) you can only lo...
if ( preferredAvailabilityZones == null ) { this . preferredAvailabilityZones = null ; return ; } this . preferredAvailabilityZones = new com . amazonaws . internal . SdkInternalList < String > ( preferredAvailabilityZones ) ;
public class TypeLexer { /** * $ ANTLR start " BEGINTYPEPARAM " */ public final void mBEGINTYPEPARAM ( ) throws RecognitionException { } }
try { int _type = BEGINTYPEPARAM ; int _channel = DEFAULT_TOKEN_CHANNEL ; // org / javaruntype / type / parser / Type . g : 32:16 : ( ' < ' ) // org / javaruntype / type / parser / Type . g : 32:18 : ' < ' { match ( '<' ) ; } state . type = _type ; state . channel = _channel ; } finally { }
public class BackupRole { /** * Requests a restore from the primary . */ private void requestRestore ( MemberId primary ) { } }
context . protocol ( ) . restore ( primary , RestoreRequest . request ( context . descriptor ( ) , context . currentTerm ( ) ) ) . whenCompleteAsync ( ( response , error ) -> { if ( error == null && response . status ( ) == PrimaryBackupResponse . Status . OK ) { context . resetIndex ( response . index ( ) , response ....
public class LocalizationDefinitionImpl { public long getAlterationTime ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getAlterationTime" , this . _alterationTime ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Long l = new Long ( _alterationTime ) ; SibTr . exit ( tc , "getAlterationTime" , l . toString ( )...
public class CmsXmlContentEditor { /** * Generates the JavaScript initialization calls for the used widgets in the editor form . < p > * @ return the JavaScript initialization calls for the used widgets * @ throws JspException if including the error page fails */ public String getXmlEditorInitCalls ( ) throws JspEx...
StringBuffer result = new StringBuffer ( 512 ) ; try { // iterate over unique widgets from collector Iterator < I_CmsWidget > i = getWidgetCollector ( ) . getUniqueWidgets ( ) . iterator ( ) ; while ( i . hasNext ( ) ) { I_CmsWidget widget = i . next ( ) ; result . append ( widget . getDialogInitCall ( getCms ( ) , thi...
public class VueGWTTools { /** * Proxy a field on an instance . Use the same mechanism as Vue . js proxy method . For example : * this . _ data . myField can be proxied as this . myTargetField . Getting / Setting this . myTargetField * will be the same as getting / setting this . _ data . myField . * @ param targ...
PROXY_SHARED_DEFINITION . set ( "set" , new Function ( "this[\"" + sourceKey + "\"][\"" + sourceProperty + "\"] = arguments[0];" ) ) ; PROXY_SHARED_DEFINITION . set ( "get" , new Function ( "return this[\"" + sourceKey + "\"][\"" + sourceProperty + "\"];" ) ) ; JsObject . defineProperty ( target , targetProperty , PROX...
public class DiskMarshaller { /** * Marshall the given parameter object . */ public void marshall ( Disk disk , ProtocolMarshaller protocolMarshaller ) { } }
if ( disk == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( disk . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( disk . getArn ( ) , ARN_BINDING ) ; protocolMarshaller . marshall ( disk . getSupportCode ( ) , SUPPORTCODE_BI...
public class S3CryptoModuleBase { /** * { @ inheritDoc } * < b > NOTE : < / b > Because the encryption process requires context from * previous blocks , parts uploaded with the AmazonS3EncryptionClient ( as * opposed to the normal AmazonS3Client ) must be uploaded serially , and in * order . Otherwise , the pre...
appendUserAgent ( req , USER_AGENT ) ; final int blockSize = contentCryptoScheme . getBlockSizeInBytes ( ) ; final boolean isLastPart = req . isLastPart ( ) ; final String uploadId = req . getUploadId ( ) ; final long partSize = req . getPartSize ( ) ; final boolean partSizeMultipleOfCipherBlockSize = 0 == ( partSize %...
public class Admin { /** * @ throws PageException */ private void doGetDatasources ( ) throws PageException { } }
Map ds = config . getDataSourcesAsMap ( ) ; Iterator it = ds . keySet ( ) . iterator ( ) ; lucee . runtime . type . Query qry = new QueryImpl ( new String [ ] { "name" , "host" , "classname" , "bundleName" , "bundleVersion" , "dsn" , "DsnTranslated" , "database" , "port" , "timezone" , "username" , "password" , "passwo...
public class LightWeightHashSet { /** * Remove all elements from the set and return them . Clear the entries . */ public List < T > pollAll ( ) { } }
List < T > retList = new ArrayList < T > ( size ) ; for ( int i = 0 ; i < entries . length ; i ++ ) { LinkedElement < T > current = entries [ i ] ; while ( current != null ) { retList . add ( current . element ) ; current = current . next ; } } this . clear ( ) ; return retList ;
public class ClassLister { /** * Updates cache for the superclass . * @ param cachethe cache to update * @ param superclassthe superclass * @ param namesthe names to add */ protected void updateClasses ( HashMap < String , HashSet < Class > > cache , String superclass , HashSet < Class > names ) { } }
if ( ! cache . containsKey ( superclass ) ) cache . put ( superclass , names ) ; else cache . get ( superclass ) . addAll ( names ) ;
public class FormatterFacade { /** * Format the given code . * @ param sarlCode the code to format . * @ param resourceSet the resource set that sohuld contains the code . This resource set may be * used for resolving types by the underlying code . * @ return the code to format . */ @ Pure public String format ...
try { final URI createURI = URI . createURI ( "synthetic://to-be-formatted." + this . fileExtension ) ; // $ NON - NLS - 1 $ final Resource res = this . resourceFactory . createResource ( createURI ) ; if ( res instanceof XtextResource ) { final XtextResource resource = ( XtextResource ) res ; final EList < Resource > ...
public class ToolboxAvailable { /** * Checks if the toolbox if available . * If it is , the toolbox is started . * If it isn ' t , an error message is shown . */ public static void main ( String [ ] args ) { } }
if ( GraphicsEnvironment . isHeadless ( ) ) { System . out . println ( Document . getVersion ( ) + " Toolbox error: headless display" ) ; } else try { Class c = Class . forName ( "com.lowagie.toolbox.Toolbox" ) ; Method toolboxMain = c . getMethod ( "main" , new Class [ ] { args . getClass ( ) } ) ; toolboxMain . invok...
public class CommonUtils { /** * - - - COMPRESSS / DECOMPRESS - - - */ public static final byte [ ] compress ( byte [ ] data , int level ) throws IOException { } }
final Deflater deflater = new Deflater ( level , true ) ; deflater . setInput ( data ) ; deflater . finish ( ) ; final byte [ ] buffer = new byte [ data . length + 128 ] ; final int length = deflater . deflate ( buffer ) ; final byte [ ] compressed = new byte [ length ] ; System . arraycopy ( buffer , 0 , compressed , ...
public class ModelExt { /** * Clone new instance [ wrapper clone ] , just link attrs values * @ param attrs */ public M cp ( String ... attrs ) { } }
M m = this . cp ( false ) ; for ( String attr : attrs ) { m . set ( attr , this . get ( attr ) ) ; } return m ;
public class JsonConfig { /** * Registers a PropertyNameProcessor . < br > * [ JSON - & gt ; Java ] * @ param target the class to use as key * @ param propertyNameProcessor the processor to register */ public void registerJavaPropertyNameProcessor ( Class target , PropertyNameProcessor propertyNameProcessor ) { }...
if ( target != null && propertyNameProcessor != null ) { javaPropertyNameProcessorMap . put ( target , propertyNameProcessor ) ; }
public class PartiturVisualizer { /** * We need to know , in which place of DOM the media visulizer are plugged in , * so we could call the seekAndPlay ( ) function with the help of * PartiturVisualizer . js * @ param mediaIDs * @ return a string which represents a javascript array */ private String convertToJa...
// in case there is no media visualizer do not build an array if ( mediaIDs == null ) { return "" ; } StringBuilder sb = new StringBuilder ( "\nvar mediaIDs = [ " ) ; int size = mediaIDs . size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { sb . append ( "\"" ) ; sb . append ( mediaIDs . get ( i ) ) ; sb . append ( "\"" )...
public class AbstractBpmnActivityBehavior { /** * Takes an { @ link ActivityExecution } and an { @ link Callable } and wraps * the call to the Callable with the proper error propagation . This method * also makes sure that exceptions not caught by following activities in the * process will be thrown and not propa...
String activityInstanceId = execution . getActivityInstanceId ( ) ; try { toExecute . call ( ) ; } catch ( Exception ex ) { if ( activityInstanceId . equals ( execution . getActivityInstanceId ( ) ) ) { try { propagateException ( execution , ex ) ; } catch ( ErrorPropagationException e ) { LOG . errorPropagationExcepti...
public class HeadendResultConverter { /** * Method that can be used to find out actual input ( source ) type ; this * usually can be determined from type parameters , but may need * to be implemented differently from programmatically defined * converters ( which can not change static type parameter bindings ) . ...
return typeFactory . constructMapType ( HashMap . class , String . class , Headend . class ) ;
public class HBaseClientTemplate { /** * Register a GetModifier to be called before every Get is executed on HBase . * This GetModifier will be replaced if already registered and added if not . * Equality is checked by calling the equals ( ) on the getModifier passed . * GetModifiers will be called in the order t...
int currentIndex = getModifiers . indexOf ( getModifier ) ; if ( currentIndex == - 1 ) { getModifiers . add ( getModifier ) ; } else { getModifiers . set ( currentIndex , getModifier ) ; }
public class UnusedCodeTracker { /** * Mark all ancestor classes of ( sub ) class as used */ public void markParentClasses ( TypeElement type ) { } }
while ( type != null ) { String typeID = ElementReferenceMapper . stitchClassIdentifier ( type , env . elementUtil ( ) ) ; ReferenceNode node = elementReferenceMap . get ( typeID ) ; if ( node == null ) { ErrorUtil . warning ( "Encountered .class parent class while accessing: " + typeID ) ; return ; } if ( node . reach...
public class DataUtil { /** * big - endian or motorola format . */ public static void writeUnsignedShortBigEndian ( IO . WritableByteStream io , int value ) throws IOException { } }
io . write ( ( byte ) ( ( value >> 8 ) & 0xFF ) ) ; io . write ( ( byte ) ( value & 0xFF ) ) ;
public class TaskInProgress { /** * Creates a " status report " for this task . Includes the * task ID and overall status , plus reports for all the * component task - threads that have ever been started . */ synchronized TaskReport generateSingleReport ( ) { } }
ArrayList < String > diagnostics = new ArrayList < String > ( ) ; for ( List < String > l : taskDiagnosticData . values ( ) ) { diagnostics . addAll ( l ) ; } TIPStatus currentStatus = null ; if ( isRunning ( ) && ! isComplete ( ) ) { currentStatus = TIPStatus . RUNNING ; } else if ( isComplete ( ) ) { currentStatus = ...
public class JmxMonitorRegistry { /** * Register a new monitor in the registry . */ @ Override public void register ( Monitor < ? > monitor ) { } }
try { List < MonitorMBean > beans = MonitorMBean . createMBeans ( name , monitor , mapper ) ; for ( MonitorMBean bean : beans ) { register ( bean . getObjectName ( ) , bean ) ; } monitors . put ( monitor . getConfig ( ) , monitor ) ; updatePending . set ( true ) ; } catch ( Exception e ) { LOG . warn ( "Unable to regis...
public class MSPDIReader { /** * This method extracts data for a single predecessor from an MSPDI file . * @ param currTask Current task object * @ param link Predecessor data */ private void readPredecessor ( Task currTask , Project . Tasks . Task . PredecessorLink link ) { } }
BigInteger uid = link . getPredecessorUID ( ) ; if ( uid != null ) { Task prevTask = m_projectFile . getTaskByUniqueID ( Integer . valueOf ( uid . intValue ( ) ) ) ; if ( prevTask != null ) { RelationType type ; if ( link . getType ( ) != null ) { type = RelationType . getInstance ( link . getType ( ) . intValue ( ) ) ...
public class KeyVaultClientBaseImpl { /** * Imports a certificate into a specified key vault . * Imports an existing valid certificate , containing a private key , into Azure Key Vault . The certificate to be imported can be in either PFX or PEM format . If the certificate is in PEM format the PEM file must contain t...
return importCertificateWithServiceResponseAsync ( vaultBaseUrl , certificateName , base64EncodedCertificate , password , certificatePolicy , certificateAttributes , tags ) . toBlocking ( ) . single ( ) . body ( ) ;
public class CacheFactory { /** * 创建 SQL 缓存 * @ param sqlCacheClass * @ return */ public static < K , V > Cache < K , V > createCache ( String sqlCacheClass , String prefix , Properties properties ) { } }
if ( StringUtil . isEmpty ( sqlCacheClass ) ) { try { Class . forName ( "com.google.common.cache.Cache" ) ; return new GuavaCache < K , V > ( properties , prefix ) ; } catch ( Throwable t ) { return new SimpleCache < K , V > ( properties , prefix ) ; } } else { try { Class < ? extends Cache > clazz = ( Class < ? extend...
public class DefaultEquationSupport { /** * { @ inheritDoc } */ @ Override public void assignVariable ( final String variableName , final Object value ) throws Exception { } }
assignVariable ( variableName , value , false ) ;
public class CommandFactory { /** * Trainer only command . * It turns on or off the sending of auditory information to the trainer . * @ param earOn True to turn auditory information on , false to turn it off . */ public void addEarCommand ( boolean earOn ) { } }
StringBuilder buf = new StringBuilder ( ) ; buf . append ( "(ear " ) ; if ( earOn ) { buf . append ( "on" ) ; } else { buf . append ( "off" ) ; } buf . append ( ')' ) ; fifo . add ( fifo . size ( ) , buf . toString ( ) ) ;
public class SyncGroupsInner { /** * Gets a collection of sync group logs . * @ 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 serverName The name of the server . * @ param databaseName The...
return listLogsSinglePageAsync ( resourceGroupName , serverName , databaseName , syncGroupName , startTime , endTime , type , continuationToken ) . concatMap ( new Func1 < ServiceResponse < Page < SyncGroupLogPropertiesInner > > , Observable < ServiceResponse < Page < SyncGroupLogPropertiesInner > > > > ( ) { @ Overrid...
public class AbstractTreeNode { /** * Fire the event for the changes node parents . * @ param event the event . */ void firePropertyParentChanged ( TreeNodeParentChangedEvent event ) { } }
if ( this . nodeListeners != null ) { for ( final TreeNodeListener listener : this . nodeListeners ) { if ( listener != null ) { listener . treeNodeParentChanged ( event ) ; } } } final N parentNode = getParentNode ( ) ; if ( parentNode != null ) { parentNode . firePropertyParentChanged ( event ) ; }
public class GeometryUtilities { /** * Uses the cosine rule to find an angle in radiants of a triangle defined by the length of its sides . * < p > The calculated angle is the one between the two adjacent sides a and b . < / p > * @ param a adjacent side 1 length . * @ param b adjacent side 2 length . * @ param...
double angle = Math . acos ( ( a * a + b * b - c * c ) / ( 2.0 * a * b ) ) ; return angle ;
public class MemberUtils { /** * Checks if the the given method was user - generated . This takes into * account for instance lambda methods , that even though they are marked as * " synthetic " , they are user - generated , and therefore interesting to * analysis . * @ param m The field or method to check . ...
return ! m . isSynthetic ( ) || ( m instanceof XMethod && couldBeLambda ( ( XMethod ) m ) ) ;
public class ExtensionPopupMenu { /** * Defaults to call the method { @ link ExtensionPopupMenuComponent # dismissed ( ExtensionPopupMenuComponent ) * dismissed ( ExtensionPopupMenuComponent ) } on all child { @ code ExtensionPopupMenuComponent } s . * @ since 2.4.0 */ @ Override public void dismissed ( ExtensionPo...
for ( int i = 0 ; i < getMenuComponentCount ( ) ; ++ i ) { Component menuComponent = getMenuComponent ( i ) ; if ( PopupMenuUtils . isExtensionPopupMenuComponent ( menuComponent ) ) { ( ( ExtensionPopupMenuComponent ) menuComponent ) . dismissed ( selectedMenuComponent ) ; } }
public class Descriptor { /** * indexed getter for incomingLinks - gets an indexed value - List of incoming links ( from other Wikipedia pages ) associated with a Wikipedia page . * @ generated * @ param i index in the array to get * @ return value of the element at index i */ public Title getIncomingLinks ( int ...
if ( Descriptor_Type . featOkTst && ( ( Descriptor_Type ) jcasType ) . casFeat_incomingLinks == null ) jcasType . jcas . throwFeatMissing ( "incomingLinks" , "de.julielab.jules.types.wikipedia.Descriptor" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Descriptor_Type ) jcasType...
public class CheckTemplateHeaderVarsPass { /** * Implementations for specific nodes . */ private void checkTemplate ( TemplateNode node , TemplateRegistry templateRegistry ) { } }
ListMultimap < String , SourceLocation > dataKeys = ArrayListMultimap . create ( ) ; for ( VarRefNode varRefNode : SoyTreeUtils . getAllNodesOfType ( node , VarRefNode . class ) ) { if ( varRefNode . isPossibleHeaderVar ( ) ) { dataKeys . put ( varRefNode . getName ( ) , varRefNode . getSourceLocation ( ) ) ; } } Indir...
public class OnlineUsers { /** * Removes the user from the map . This method shell be invoked when the session is unbounded * from the Application . In wicket is the best way to do that in the * { @ code WebApplication # sessionUnbound ( String ) } . * @ param user * the user * @ return the session id */ publ...
final ID sessionId = usersOnline . remove ( user ) ; if ( sessionId != null ) { sessionIdToUser . remove ( sessionId ) ; } return sessionId ;
public class StreamSegmentStorageReader { /** * Reads a range of bytes from a Segment in Storage . * @ param handle A SegmentHandle pointing to the Segment to read from . * @ param startOffset The first offset within the Segment to read from . * @ param maxReadLength The maximum number of bytes to read . * @ pa...
Exceptions . checkArgument ( startOffset >= 0 , "startOffset" , "startOffset must be a non-negative number." ) ; Exceptions . checkArgument ( maxReadLength >= 0 , "maxReadLength" , "maxReadLength must be a non-negative number." ) ; Preconditions . checkNotNull ( handle , "handle" ) ; Preconditions . checkNotNull ( stor...
public class TaskContext { /** * Get a { @ link DataWriterBuilder } for building a { @ link org . apache . gobblin . writer . DataWriter } . * @ param branches number of forked branches * @ param index branch index * @ return a { @ link DataWriterBuilder } */ public DataWriterBuilder getDataWriterBuilder ( int br...
String writerBuilderPropertyName = ForkOperatorUtils . getPropertyNameForBranch ( ConfigurationKeys . WRITER_BUILDER_CLASS , branches , index ) ; log . debug ( "Using property {} to get a writer builder for branches:{}, index:{}" , writerBuilderPropertyName , branches , index ) ; String dataWriterBuilderClassName = thi...
public class DCacheBase { /** * This is a helper method to remove change listener for all entries . */ public synchronized boolean removeChangeListener ( ChangeListener listener ) { } }
if ( bEnableListener && listener != null ) { eventSource . removeListener ( listener ) ; return true ; } return false ;
public class DependencyRandomIndexingMain { /** * Begin processing with { @ code FlyingHermit } . */ public static void main ( String [ ] args ) { } }
DependencyRandomIndexingMain drim = new DependencyRandomIndexingMain ( ) ; try { drim . run ( args ) ; } catch ( Throwable t ) { t . printStackTrace ( ) ; }
public class ContentSceneController { /** * Called on system resume . The top content scene in theh stack moves to visible state - - see * { @ link ContentScene # show ( ) } */ public void resume ( ) { } }
new ExecutionChain ( mGvrContext ) . runOnMainThread ( new Runnable ( ) { @ Override public void run ( ) { if ( ! mContentSceneViewStack . isEmpty ( ) ) { ContentScene contentScene = mContentSceneViewStack . peek ( ) ; contentScene . show ( ) ; WidgetLib . getTouchManager ( ) . setFlingHandler ( contentScene . getFling...
public class VersionParser { /** * Parses the build metadata . * @ param build the build metadata string to parse * @ return a valid build metadata object * @ throws IllegalArgumentException if the input string is { @ code NULL } or empty * @ throws ParseException when there is a grammar error * @ throws Unex...
VersionParser parser = new VersionParser ( build ) ; return parser . parseBuild ( ) ;
public class ConstraintNetwork { /** * Add an interval to this graph . * @ param i * an interval . * @ return < code > true < / code > if successful , < code > false < / code > if the * interval could not be added . If there was a problem adding the * interval , then the constraint network may be in an incons...
if ( i == null || containsInterval ( i ) || ! intervals . add ( i ) ) { return false ; } Object iStart = i . getStart ( ) ; Object iFinish = i . getFinish ( ) ; directedGraph . add ( iStart ) ; directedGraph . add ( iFinish ) ; Weight mindur = i . getSpecifiedMinimumLength ( ) ; Weight maxdur = i . getSpecifiedMaximumL...
public class CrossRateCalculator { /** * Calculate the cross rate , use this only if required . * @ param targetPair the currency pair we want Bid / Ask for * @ param fx1 one rate involving either targetPair . ccy1 or targetPair . ccy2 * @ param fx2 one rate involving either targetPair . ccy1 or targetPair . ccy2...
final Optional < String > crossCcy = fx1 . getCurrencyPair ( ) . findCommonCcy ( fx2 . getCurrencyPair ( ) ) ; final String xCcy = crossCcy . orElseThrow ( ( ) -> new IllegalArgumentException ( "The 2 FXRates do not share a ccy " + fx1 . getCurrencyPair ( ) + " " + fx2 . getCurrencyPair ( ) ) ) ; if ( crossCcy . isPres...
public class Env { /** * ( to avoid dangling pointers stretching lifetimes ) . */ void pop ( Env global ) { } }
assert _sp > _display [ _tod ] ; // Do not over - pop current scope _sp -- ; _fcn [ _sp ] = global . subRef ( _fcn [ _sp ] ) ; _ary [ _sp ] = global . subRef ( _ary [ _sp ] , _key [ _sp ] ) ; assert _sp == 0 || _ary [ 0 ] == null || check_refcnt ( _ary [ 0 ] . anyVec ( ) ) ;
public class Loader { /** * Sets the MetaStore URI in the given Configuration , if there is a host in * the match arguments . If there is no host , then the conf is not changed . * @ param conf a Configuration that will be used to connect to the MetaStore * @ param match URIPattern match results */ private static...
try { // If the host is set , construct a new MetaStore URI and set the property // in the Configuration . Otherwise , do not change the MetaStore URI . String host = match . get ( URIPattern . HOST ) ; if ( host != null && ! NOT_SET . equals ( host ) ) { int port ; try { port = Integer . parseInt ( match . get ( URIPa...
public class DatasourceJBossASClient { /** * Returns a ModelNode that can be used to create an XA datasource . Callers are free to tweek the datasource request * that is returned , if they so choose , before asking the client to execute the request . * @ param name name of the XA datasource * @ param blockingTime...
String jndiName = "java:jboss/datasources/" + name ; String dmrTemplate = "" + "{" + "\"xa-datasource-class\" => \"%s\"" + ", \"blocking-timeout-wait-millis\" => %dL " + ", \"driver-name\" => \"%s\" " + ", \"exception-sorter-class-name\" => \"%s\" " + ", \"idle-timeout-minutes\" => %dL " + ", \"jndi-name\" => \"%s\" " ...
public class ge_p1p1_to_p2 { /** * r = p */ public static void ge_p1p1_to_p2 ( ge_p2 r , ge_p1p1 p ) { } }
fe_mul . fe_mul ( r . X , p . X , p . T ) ; fe_mul . fe_mul ( r . Y , p . Y , p . Z ) ; fe_mul . fe_mul ( r . Z , p . Z , p . T ) ;
public class PlaybackService { /** * Play a track . * This method ensures that the media player will be in the right state to be able to play a new * datasource . * @ param track track url . */ private void playTrack ( SoundCloudTrack track ) { } }
pauseTimer ( ) ; try { // acquire lock on wifi . mWifiLock . acquire ( ) ; mIsPaused = false ; mIsPausedAfterAudioFocusChanged = false ; mHasAlreadyPlayed = true ; // 1 - UPDATE ALL VISUAL CALLBACK FIRST TO IMPROVE USER EXPERIENCE updateNotification ( ) ; // update playback state as well as meta data . mMediaSession . ...
public class RowCombiningTimeAndDimsIterator { /** * Clear the info about which rows ( in which original iterators and which row nums within them ) were combined on * the previous step . */ private void clearCombinedRowsInfo ( ) { } }
for ( int originalIteratorIndex = indexesOfCurrentlyCombinedOriginalIterators . nextSetBit ( 0 ) ; originalIteratorIndex >= 0 ; originalIteratorIndex = indexesOfCurrentlyCombinedOriginalIterators . nextSetBit ( originalIteratorIndex + 1 ) ) { minCurrentlyCombinedRowNumByOriginalIteratorIndex [ originalIteratorIndex ] =...
public class GsonCache { /** * Get an object from Reservoir with the given key . This a blocking IO operation . * @ param key the key string . * @ param classOfT the Class type of the expected return object . * @ return the object of the given type if it exists . */ public static < T > T read ( String key , Class...
String json = cache . getString ( key ) . getString ( ) ; T value = new Gson ( ) . fromJson ( json , classOfT ) ; if ( value == null ) { throw new NullPointerException ( ) ; } return value ;
public class RestfulObjectsSpecEventSerializer { /** * region > supporting methods */ JsonRepresentation asEventRepr ( EventMetadata metadata , final JsonRepresentation payloadRepr ) { } }
final JsonRepresentation eventRepr = JsonRepresentation . newMap ( ) ; final JsonRepresentation metadataRepr = JsonRepresentation . newMap ( ) ; eventRepr . mapPut ( "metadata" , metadataRepr ) ; metadataRepr . mapPut ( "id" , metadata . getId ( ) ) ; metadataRepr . mapPut ( "transactionId" , metadata . getTransactionI...
public class InjectorUtils { /** * Builds a new Pubsub client and returns it . */ public static Pubsub getClient ( final HttpTransport httpTransport , final JsonFactory jsonFactory ) throws IOException { } }
checkNotNull ( httpTransport ) ; checkNotNull ( jsonFactory ) ; GoogleCredential credential = GoogleCredential . getApplicationDefault ( httpTransport , jsonFactory ) ; if ( credential . createScopedRequired ( ) ) { credential = credential . createScoped ( PubsubScopes . all ( ) ) ; } if ( credential . getClientAuthent...
public class Mapper { /** * Returns the entries { @ link Gather # loop ( Decision ) } * @ param decision * @ return */ public Gather < Entry < K , V > > entryLoop ( Decision < Entry < K , V > > decision ) { } }
return entryGather ( ) . loop ( decision ) ;