signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class EmvParser { /** * Method used to extract commons card data
* @ param pGpo
* global processing options response
* @ return true if the extraction succeed
* @ throws CommunicationException communication error */
protected boolean extractCommonsCardData ( final byte [ ] pGpo ) throws CommunicationExce... | boolean ret = false ; // Extract data from Message Template 1
byte data [ ] = TlvUtil . getValue ( pGpo , EmvTags . RESPONSE_MESSAGE_TEMPLATE_1 ) ; if ( data != null ) { data = ArrayUtils . subarray ( data , 2 , data . length ) ; } else { // Extract AFL data from Message template 2
ret = extractTrackData ( template . g... |
public class Collector { /** * value of diff = 0 indicates current day */
private static boolean isFileModifiedInCollectionPeriod ( File file ) { } } | long diff = m_currentTimeMillis - file . lastModified ( ) ; if ( diff >= 0 ) { return TimeUnit . MILLISECONDS . toDays ( diff ) + 1 <= m_config . days ; } return false ; |
public class filterpolicy { /** * Use this API to fetch filterpolicy resource of given name . */
public static filterpolicy get ( nitro_service service , String name ) throws Exception { } } | filterpolicy obj = new filterpolicy ( ) ; obj . set_name ( name ) ; filterpolicy response = ( filterpolicy ) obj . get_resource ( service ) ; return response ; |
public class FlexFlowReader { /** * Make the request to the Twilio API to perform the read .
* @ param client TwilioRestClient with which to make the request
* @ return FlexFlow ResourceSet */
@ Override @ SuppressWarnings ( "checkstyle:linelength" ) public Page < FlexFlow > firstPage ( final TwilioRestClient clien... | Request request = new Request ( HttpMethod . GET , Domains . FLEXAPI . toString ( ) , "/v1/FlexFlows" , client . getRegion ( ) ) ; addQueryParams ( request ) ; return pageForRequest ( client , request ) ; |
public class InstructionView { /** * Looks to see if we have a new step .
* @ param routeProgress provides updated step information
* @ return true if new step , false if not */
private boolean newStep ( RouteProgress routeProgress ) { } } | boolean newStep = currentStep == null || ! currentStep . equals ( routeProgress . currentLegProgress ( ) . currentStep ( ) ) ; currentStep = routeProgress . currentLegProgress ( ) . currentStep ( ) ; return newStep ; |
public class JsonReader { /** * Read the Json from the passed String using a character stream . An
* eventually contained < code > @ charset < / code > rule is ignored .
* @ param sJson
* The source string containing the Json to be parsed . May not be
* < code > null < / code > .
* @ return < code > null < / ... | return readFromReader ( new NonBlockingStringReader ( sJson ) , ( IJsonParseExceptionCallback ) null ) ; |
public class MathService { private static boolean touchesLineString ( Geometry lineString , Coordinate coordinate ) { } } | // Basic argument checking :
if ( lineString . getCoordinates ( ) == null || lineString . getCoordinates ( ) . length == 0 ) { return false ; } // First loop over the vertices ( end - points ) . This will be the most common case :
for ( int i = 0 ; i < lineString . getCoordinates ( ) . length ; i ++ ) { if ( lineString... |
public class LTriConsumerBuilder { /** * One of ways of creating builder . This is possibly the least verbose way where compiler should be able to guess the generic parameters . */
@ Nonnull public static < T1 , T2 , T3 > LTriConsumer < T1 , T2 , T3 > triConsumerFrom ( Consumer < LTriConsumerBuilder < T1 , T2 , T3 > > ... | LTriConsumerBuilder builder = new LTriConsumerBuilder ( ) ; buildingFunction . accept ( builder ) ; return builder . build ( ) ; |
public class PersonGroupPersonsImpl { /** * Retrieve a person ' s information , including registered persisted faces , name and userData .
* @ param personGroupId Id referencing a particular person group .
* @ param personId Id referencing a particular person .
* @ param serviceCallback the async ServiceCallback ... | return ServiceFuture . fromResponse ( getWithServiceResponseAsync ( personGroupId , personId ) , serviceCallback ) ; |
public class ScriptUtil { /** * Creates a new { @ link ExecutableScript } from a static source .
* @ param language the language of the script
* @ param source the source code of the script
* @ param scriptFactory the script factory used to create the script
* @ return the newly created script
* @ throws NotV... | ensureNotEmpty ( NotValidException . class , "Script language" , language ) ; ensureNotNull ( NotValidException . class , "Script source" , source ) ; return scriptFactory . createScriptFromSource ( language , source ) ; |
public class FormalParameterBuilderImpl { /** * Initialize the formal parameter .
* @ param context the context of the formal parameter .
* @ param name the name of the formal parameter . */
public void eInit ( XtendExecutable context , String name , IJvmTypeProvider typeContext ) { } } | setTypeResolutionContext ( typeContext ) ; this . context = context ; this . parameter = SarlFactory . eINSTANCE . createSarlFormalParameter ( ) ; this . parameter . setName ( name ) ; this . parameter . setParameterType ( newTypeRef ( this . context , Object . class . getName ( ) ) ) ; this . context . getParameters (... |
public class VarTupleSet { /** * Returns input tuples that bind the given variable . */
private Iterator < Tuple > getBinds ( Iterator < Tuple > tuples , final VarDef var ) { } } | return IteratorUtils . filteredIterator ( tuples , tuple -> tuple . getBinding ( var ) != null ) ; |
public class TBMImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case AfplibPackage . TBM__DIRCTION : setDIRCTION ( ( Integer ) newValue ) ; return ; case AfplibPackage . TBM__PRECSION : setPRECSION ( ( Integer ) newValue ) ; return ; case AfplibPackage . TBM__INCRMENT : setINCRMENT ( ( Integer ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ; |
public class DBSnapshotAttributesResult { /** * The list of attributes and values for the manual DB snapshot .
* @ return The list of attributes and values for the manual DB snapshot . */
public java . util . List < DBSnapshotAttribute > getDBSnapshotAttributes ( ) { } } | if ( dBSnapshotAttributes == null ) { dBSnapshotAttributes = new com . amazonaws . internal . SdkInternalList < DBSnapshotAttribute > ( ) ; } return dBSnapshotAttributes ; |
public class DefaultClient { /** * { @ inheritDoc } */
@ Override public RequestBuilder newRequestBuilder ( ) { } } | RequestBuilder b = new DefaultRequestBuilder ( ) ; return b . resolver ( FunctionResolver . DEFAULT ) ; |
public class Diagnostics { /** * Collects system information as delivered from the { @ link MemoryMXBean } .
* @ param infos a map where the infos are passed in . */
public static void memInfo ( final Map < String , Object > infos ) { } } | infos . put ( "heap.used" , MEM_BEAN . getHeapMemoryUsage ( ) ) ; infos . put ( "offHeap.used" , MEM_BEAN . getNonHeapMemoryUsage ( ) ) ; infos . put ( "heap.pendingFinalize" , MEM_BEAN . getObjectPendingFinalizationCount ( ) ) ; |
public class Distance { /** * Gets the Chessboard distance between two points .
* @ param x A point in space .
* @ param y A point in space .
* @ return The Chessboard distance between x and y . */
public static double Chessboard ( double [ ] x , double [ ] y ) { } } | double d = 0 ; for ( int i = 0 ; i < x . length ; i ++ ) { d = Math . max ( d , x [ i ] - y [ i ] ) ; } return d ; |
public class AbstractState { /** * Logs a request . */
protected final < R extends Request > R logRequest ( R request ) { } } | LOGGER . trace ( "{} - Received {}" , context . getCluster ( ) . member ( ) . address ( ) , request ) ; return request ; |
public class DefaultRetryPolicy { /** * { @ inheritDoc }
* < p > This implementation retries on the next node if the connection was closed , and rethrows
* ( assuming a driver bug ) in all other cases . */
@ Override public RetryDecision onRequestAborted ( @ NonNull Request request , @ NonNull Throwable error , int... | RetryDecision decision = ( error instanceof ClosedConnectionException || error instanceof HeartbeatException ) ? RetryDecision . RETRY_NEXT : RetryDecision . RETHROW ; if ( decision == RetryDecision . RETRY_NEXT && LOG . isTraceEnabled ( ) ) { LOG . trace ( RETRYING_ON_ABORTED , logPrefix , retryCount , error ) ; } ret... |
public class LocalDeviceManagementUsb { /** * Gets property value elements of an interface object property .
* @ param objectType the interface object type
* @ param objectInstance the interface object instance ( usually 1)
* @ param propertyId the property identifier ( PID )
* @ param start start index in the ... | final CEMIDevMgmt req = new CEMIDevMgmt ( CEMIDevMgmt . MC_PROPREAD_REQ , objectType , objectInstance , propertyId , start , elements ) ; send ( req , null ) ; return findFrame ( CEMIDevMgmt . MC_PROPREAD_CON , req ) ; |
public class AddressClient { /** * Creates an address resource in the specified project using the data included in the request .
* < p > Sample code :
* < pre > < code >
* try ( AddressClient addressClient = AddressClient . create ( ) ) {
* ProjectRegionName region = ProjectRegionName . of ( " [ PROJECT ] " , "... | InsertAddressHttpRequest request = InsertAddressHttpRequest . newBuilder ( ) . setRegion ( region ) . setAddressResource ( addressResource ) . build ( ) ; return insertAddress ( request ) ; |
public class QueryAtomContainer { /** * Returns the minimum bond order that this atom currently has in the context
* of this AtomContainer .
* @ param atom The atom
* @ return The minimum bond order that this atom currently has */
@ Override public Order getMinimumBondOrder ( IAtom atom ) { } } | IBond . Order min = IBond . Order . QUADRUPLE ; for ( int i = 0 ; i < bondCount ; i ++ ) { if ( bonds [ i ] . contains ( atom ) && bonds [ i ] . getOrder ( ) . ordinal ( ) < min . ordinal ( ) ) { min = bonds [ i ] . getOrder ( ) ; } } return min ; |
public class AbstractMavenScroogeMojo { /** * Executes the mojo . */
public void execute ( ) throws MojoExecutionException , MojoFailureException { } } | try { Set < File > thriftFiles = findThriftFiles ( ) ; final File outputDirectory = getOutputDirectory ( ) ; ImmutableSet < File > outputFiles = findGeneratedFilesInDirectory ( getOutputDirectory ( ) ) ; Set < String > compileRoots = new HashSet < String > ( ) ; compileRoots . add ( "scrooge" ) ; if ( thriftFiles . isE... |
public class APIClient { /** * This method allows to query multiple indexes with one API call */
public JSONObject multipleQueries ( List < IndexQuery > queries ) throws AlgoliaException { } } | return multipleQueries ( queries , "none" , RequestOptions . empty ) ; |
public class PolymorphicMapSchema { /** * Return true to */
private static Object fillSingletonMapFrom ( Input input , Schema < ? > schema , Object owner , IdStrategy strategy , boolean graph , Object map ) throws IOException { } } | switch ( input . readFieldNumber ( schema ) ) { case 0 : // both are null
return map ; case 1 : { // key exists
break ; } case 3 : { // key is null
final Wrapper wrapper = new Wrapper ( ) ; Object v = input . mergeObject ( wrapper , strategy . OBJECT_SCHEMA ) ; if ( ! graph || ! ( ( GraphInput ) input ) . isCurrentMess... |
public class YarnRegistryViewForProviders { /** * Add a service under a path for the current user
* @ param serviceClass service class to use under ~ user
* @ param serviceName name of the service
* @ param record service record
* @ param deleteTreeFirst perform recursive delete of the path first
* @ return t... | return putService ( user , serviceClass , serviceName , record , deleteTreeFirst ) ; |
public class NarUtil { /** * NOT USED ?
* public static String getAOLKey ( String architecture , String os , Linker
* linker )
* throws MojoFailureException , MojoExecutionException
* / / construct AOL key prefix
* return getArchitecture ( architecture ) + " . " + getOS ( os ) + " . " +
* getLinkerName ( ar... | /* To support a linker that is not the default linker specified in the aol . properties */
String aol_linker ; if ( linker != null & linker . getName ( ) != null ) { log . debug ( "linker original name: " + linker . getName ( ) ) ; aol_linker = linker . getName ( ) ; } else { log . debug ( "linker original name not exi... |
public class SeaGlassLookAndFeel { /** * Use Aqua settings for some properties if we ' re on a Mac .
* @ param d the UI defaults map . */
private void defineAquaSettings ( UIDefaults d ) { } } | try { // Instantiate Aqua but don ' t install it .
Class < ? > lnfClass = Class . forName ( UIManager . getSystemLookAndFeelClassName ( ) , true , Thread . currentThread ( ) . getContextClassLoader ( ) ) ; LookAndFeel aqua = ( LookAndFeel ) lnfClass . newInstance ( ) ; UIDefaults aquaDefaults = aqua . getDefaults ( ) ;... |
public class ToXMLStream { /** * Receive notification of a processing instruction .
* @ param target The processing instruction target .
* @ param data The processing instruction data , or null if
* none was supplied .
* @ throws org . xml . sax . SAXException Any SAX exception , possibly
* wrapping another e... | if ( m_inEntityRef ) return ; flushPending ( ) ; if ( target . equals ( Result . PI_DISABLE_OUTPUT_ESCAPING ) ) { startNonEscaping ( ) ; } else if ( target . equals ( Result . PI_ENABLE_OUTPUT_ESCAPING ) ) { endNonEscaping ( ) ; } else { try { if ( m_elemContext . m_startTagOpen ) { closeStartTag ( ) ; m_elemContext . ... |
public class AbstrCFMLExprTransformer { /** * Transfomiert die mathematischen Operatoren Plus und Minus ( 1 , - ) . < br / >
* EBNF : < br / >
* < code > modOp [ ( " - " | " + " ) spaces plusMinusOp ] ; < / code >
* @ return CFXD Element
* @ throws TemplateException */
private Expression plusMinusOp ( Data data... | Expression expr = modOp ( data ) ; while ( ! data . srcCode . isLast ( ) ) { // Plus Operation
if ( data . srcCode . forwardIfCurrent ( '+' ) ) expr = _plusMinusOp ( data , expr , Factory . OP_DBL_PLUS ) ; // Minus Operation
else if ( data . srcCode . forwardIfCurrent ( '-' ) ) expr = _plusMinusOp ( data , expr , Facto... |
public class Ingest { /** * Ingest from directory */
public static void multiFromDirectory ( File dir , String ingestFormat , FedoraAPIAMTOM targetRepoAPIA , FedoraAPIMMTOM targetRepoAPIM , String logMessage , PrintStream log , IngestCounter c ) throws Exception { } } | File [ ] files = dir . listFiles ( ) ; if ( files == null ) { throw new RuntimeException ( "Could not read files from directory " + dir . getPath ( ) ) ; } Arrays . sort ( files , _FILE_COMPARATOR ) ; for ( File element : files ) { if ( ! element . isHidden ( ) && ! element . getName ( ) . startsWith ( "." ) ) { if ( e... |
public class OwnerAndPermission { /** * Read a { @ link org . apache . gobblin . data . management . copy . OwnerAndPermission } from a { @ link java . io . DataInput } .
* @ throws IOException */
public static OwnerAndPermission read ( DataInput input ) throws IOException { } } | OwnerAndPermission oap = new OwnerAndPermission ( ) ; oap . readFields ( input ) ; return oap ; |
public class PopupMenuUtils { /** * Removes all separators from the given pop up menu .
* @ param popupMenu the pop up menu whose separators will be removed
* @ see javax . swing . JPopupMenu . Separator */
public static void removeAllSeparators ( JPopupMenu popupMenu ) { } } | for ( int i = 0 ; i < popupMenu . getComponentCount ( ) ; i ++ ) { if ( isPopupMenuSeparator ( popupMenu . getComponent ( i ) ) ) { popupMenu . remove ( i ) ; i -- ; } } |
public class FlowLoaderUtils { /** * Check job properties .
* @ param projectId the project id
* @ param props the server props
* @ param jobPropsMap the job props map
* @ param errors the errors */
public static void checkJobProperties ( final int projectId , final Props props , final Map < String , Props > jo... | // if project is in the memory check whitelist , then we don ' t need to check
// its memory settings
if ( ProjectWhitelist . isProjectWhitelisted ( projectId , ProjectWhitelist . WhitelistType . MemoryCheck ) ) { return ; } final MemConfValue maxXms = MemConfValue . parseMaxXms ( props ) ; final MemConfValue maxXmx = ... |
public class ApplicationContextProvider { /** * Register bean into application context .
* @ param < T > the type parameter
* @ param applicationContext the application context
* @ param beanClazz the bean clazz
* @ param beanId the bean id
* @ return the type registered */
public static < T > T registerBeanI... | val beanFactory = applicationContext . getBeanFactory ( ) ; val provider = beanFactory . createBean ( beanClazz ) ; beanFactory . initializeBean ( provider , beanId ) ; beanFactory . autowireBean ( provider ) ; beanFactory . registerSingleton ( beanId , provider ) ; return provider ; |
public class ConfigurationProperties { /** * The response cache header settings for the given contentType .
* @ param contentType the content type in the format ' type . [ cache | nocache ] ' , e . g . ' page . nocache ' .
* @ return the parameter value if set , or null if not set . */
public static String getRespo... | String parameter = MessageFormat . format ( RESPONSE_CACHE_HEADER_SETTINGS , contentType ) ; return get ( ) . getString ( parameter ) ; |
public class FxFlowableTransformers { /** * Performs the provided onTerminate action on the FX thread
* @ param onDipsose
* @ param < T > */
public static < T > FlowableTransformer < T , T > doOnCancelFx ( Action onDipsose ) { } } | return obs -> obs . doOnCancel ( ( ) -> runOnFx ( onDipsose ) ) ; |
public class ConnectionInputMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ConnectionInput connectionInput , ProtocolMarshaller protocolMarshaller ) { } } | if ( connectionInput == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( connectionInput . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( connectionInput . getDescription ( ) , DESCRIPTION_BINDING ) ; protocolMarshaller . mars... |
public class HttpUtil { /** * Note : The value annotation is set to the setter of httpTimeout here as
* we can ' t autowire any value to its static field ( but the field has to be
* static itself ) .
* @ param httpTimeout the httpTimeout to set */
@ Value ( "${http.timeout}" ) @ SuppressWarnings ( "static-method"... | HttpUtil . defaultHttpTimeout = httpTimeout ; HttpUtil . httpTimeout = httpTimeout ; |
public class PngImage { private static void readSignature ( DataInputStream ins ) throws PngException , IOException { } } | long signature = ins . readLong ( ) ; if ( signature != PngImage . SIGNATURE ) { throw new PngException ( "Bad png signature" ) ; } |
public class TransformerImpl { /** * Execute each of the children of a template element .
* @ param elem The ElemTemplateElement that contains the children
* that should execute .
* @ param handler The ContentHandler to where the result events
* should be fed .
* @ throws TransformerException
* @ xsl . usag... | SerializationHandler xoh = this . getSerializationHandler ( ) ; // These may well not be the same ! In this case when calling
// the Redirect extension , it has already set the ContentHandler
// in the Transformer .
SerializationHandler savedHandler = xoh ; try { xoh . flushPending ( ) ; // % REVIEW % Make sure current... |
public class PropertiesConfiguration { /** * Setup the auth mode using the properties file .
* If the " apikey " key is present and not empty it will be used , otherwise the fallback
* to user / pass mode is triggered . Please note that { @ link PropertiesConfiguration } is NOT smart ,
* it will not try to fetch ... | String apiKey = getStringProperty ( P_APIKEY ) ; if ( Strings . isNullOrEmpty ( apiKey ) ) { // try to use the user / pass mode instead
forceUserPassAuthMode ( getStringProperty ( P_USERNAME ) , getStringProperty ( P_PASSWORD ) ) ; } else { // ok the key is present , let ' s use it
forceKeyAuthMode ( apiKey ) ; } |
public class AbstractTemplateResolver { /** * Computes whether a template can be resolved by this resolver or not ,
* applying the corresponding patterns . Meant only for use or override by subclasses .
* @ param configuration the engine configuration .
* @ param ownerTemplate the owner template , if the resource... | if ( this . resolvablePatternSpec . isEmpty ( ) ) { return true ; } return this . resolvablePatternSpec . matches ( template ) ; |
public class AsyncBenchmark { /** * Core benchmark code .
* Connect . Initialize . Run the loop . Cleanup . Print Results .
* @ throws Exception if anything unexpected happens . */
public void runBenchmark ( ) throws Exception { } } | System . out . print ( HORIZONTAL_RULE ) ; System . out . println ( " Setup & Initialization" ) ; System . out . println ( HORIZONTAL_RULE ) ; // connect to one or more servers , loop until success
connect ( config . servers ) ; // preload keys if requested
System . out . println ( ) ; if ( config . preload ) { System ... |
public class StorageAccountsInner { /** * Regenerates one of the access keys for the specified storage account .
* @ param resourceGroupName The name of the resource group within the user ' s subscription . The name is case insensitive .
* @ param accountName The name of the storage account within the specified res... | return regenerateKeyWithServiceResponseAsync ( resourceGroupName , accountName , keyName ) . map ( new Func1 < ServiceResponse < StorageAccountListKeysResultInner > , StorageAccountListKeysResultInner > ( ) { @ Override public StorageAccountListKeysResultInner call ( ServiceResponse < StorageAccountListKeysResultInner ... |
public class SVGSimpleLinearAxis { /** * Plot an axis with appropriate scales
* @ param plot Plot object
* @ param parent Containing element
* @ param scale axis scale information
* @ param x1 starting coordinate
* @ param y1 starting coordinate
* @ param x2 ending coordinate
* @ param y2 ending coordinat... | assert ( parent != null ) ; Element line = plot . svgLine ( x1 , y1 , x2 , y2 ) ; SVGUtil . setCSSClass ( line , CSS_AXIS ) ; parent . appendChild ( line ) ; final double tx = x2 - x1 ; final double ty = y2 - y1 ; // ticks are orthogonal
final double tw = ty * 0.01 ; final double th = - tx * 0.01 ; // choose where to p... |
public class CmsJspContentAccessValueWrapper { /** * Factory method to create a new XML content value wrapper . < p >
* In case either parameter is < code > null < / code > , the { @ link # NULL _ VALUE _ WRAPPER } is returned . < p >
* @ param cms the current users OpenCms context
* @ param value the value to wa... | if ( ( value != null ) && ( cms != null ) ) { return new CmsJspContentAccessValueWrapper ( cms , value ) ; } if ( ( content != null ) && ( valueName != null ) && ( locale != null ) && ( cms != null ) ) { CmsJspContentAccessValueWrapper wrapper = new CmsJspContentAccessValueWrapper ( ) ; wrapper . m_nullValueInfo = new ... |
public class JmxBuilderModelMBean { /** * Sets up event listeners for this MBean as described in the descriptor .
* The descriptor contains a map with layout
* { item - & gt ; Map [ event : " . . . " , from : ObjectName , callback : & amp ; Closure ] , . . . , }
* @ param server the MBeanServer is to be registere... | for ( Map . Entry < String , Map < String , Object > > item : descriptor . entrySet ( ) ) { Map < String , Object > listener = item . getValue ( ) ; // register with server
ObjectName broadcaster = ( ObjectName ) listener . get ( "from" ) ; try { String eventType = ( String ) listener . get ( "event" ) ; if ( eventType... |
public class Log { /** * Shuts down this Logger and all its LogTargets
* < p > The LogFactory will no longer return this Logger for its id */
public void shutdown ( ) { } } | if ( this . isShutdown ) { return ; } this . isShutdown = true ; for ( LogTarget target : this . targets ) { target . shutdown ( ) ; } this . factory . remove ( this ) ; |
public class ClassWriter { /** * Write Java - language annotations ; return number of JVM
* attributes written ( zero or one ) . */
int writeJavaAnnotations ( List < Attribute . Compound > attrs ) { } } | if ( attrs . isEmpty ( ) ) return 0 ; ListBuffer < Attribute . Compound > visibles = new ListBuffer < Attribute . Compound > ( ) ; ListBuffer < Attribute . Compound > invisibles = new ListBuffer < Attribute . Compound > ( ) ; for ( Attribute . Compound a : attrs ) { switch ( types . getRetention ( a ) ) { case SOURCE :... |
public class FormatStep { /** * < p > Erzeugt eine Textausgabe und speichert sie im angegebenen Puffer . < / p >
* @ param formattable object to be formatted
* @ param buffer format buffer any text output will be sent to
* @ param attributes non - sectional control attributes
* @ param positions positions of el... | if ( ! this . isPrinting ( formattable ) ) { return 0 ; } AttributeQuery aq = ( quickPath ? this . fullAttrs : this . getQuery ( attributes ) ) ; if ( ( this . padLeft == 0 ) && ( this . padRight == 0 ) ) { return this . processor . print ( formattable , buffer , aq , positions , quickPath ) ; } StringBuilder collector... |
public class CardinalityLeafSpec { /** * This should only be used by composite specs with an ' @ ' child
* @ return null if no work was done , otherwise returns the re - parented data */
public Object applyToParentContainer ( String inputKey , Object input , WalkedPath walkedPath , Object parentContainer ) { } } | MatchedElement thisLevel = getMatch ( inputKey , walkedPath ) ; if ( thisLevel == null ) { return null ; } return performCardinalityAdjustment ( inputKey , input , walkedPath , ( Map ) parentContainer , thisLevel ) ; |
public class Fn { /** * Split this stream by the specified duration .
* < pre >
* < code >
* Stream < Timed < MyObject > > s = . . . ;
* s . _ _ ( Fn . window ( Duration . ofMinutes ( 3 ) , ( ) - System . currentTimeMillis ( ) ) ) . . . / / Do your stuffs with Stream < Stream < Timed < T > > > ;
* < / code > ... | return window ( duration , duration . toMillis ( ) , startTime ) ; |
public class AuditAnnotationAttributes { /** * Gets the repository .
* @ param method the method
* @ return the repository */
public String getTag ( final Method method ) { } } | final Annotation [ ] annotations = method . getAnnotations ( ) ; return this . getTag ( annotations , method ) ; |
public class AbstractWebController { /** * Build a response object that signals a not - okay response with a given status { @ code code } .
* @ param < T > Some type extending the AbstractBase entity
* @ param code The status code to set as response code
* @ param msg The error message passed to the caller
* @ ... | return buildResponse ( code , msg , "" , params ) ; |
public class MBeans { /** * ( non - Javadoc )
* @ see com . ibm . websphere . cache . CacheAdminMBean # getCacheIDsInPushPullTable ( java . lang . String , java . lang . String ) */
@ Override public String [ ] getCacheIDsInPushPullTable ( String cacheInstance , String pattern ) throws javax . management . AttributeN... | // LI4337-17
// Get the cache for this cacheInstance
DCache cache1 = getCache ( cacheInstance ) ; // Check that the input pattern is a valid regular expression
Pattern cpattern = checkPattern ( pattern ) ; // retrieve all the cache ids from PushPullTable
List < String > matchSet = new ArrayList < String > ( 10 ) ; int ... |
public class ApplicationContextTask { /** * Implementation . */
private synchronized ApplicationContext getApplicationContext ( URL config , boolean useCache ) { } } | if ( ! useCache || ! config . equals ( prevUrl ) ) { prevBeans = new FileSystemXmlApplicationContext ( config . toExternalForm ( ) ) ; prevUrl = config ; } return prevBeans ; |
public class SBlinkImageView { /** * Add an Icon to the Icon list .
* @ param iIndex The icon ' s index .
* @ param icon The icon at this index . */
public void addIcon ( Object icon , int iIndex ) { } } | m_rgIcons [ iIndex ] = icon ; if ( this . getScreenFieldView ( ) . getControl ( ) instanceof ExtendedComponent ) // Always
( ( ExtendedComponent ) this . getScreenFieldView ( ) . getControl ( ) ) . addIcon ( icon , iIndex ) ; |
public class SocketFactory { /** * Creates an unconnected socket .
* @ return the unconnected socket
* @ throws IOException if the socket cannot be created
* @ see java . net . Socket # connect ( java . net . SocketAddress )
* @ see java . net . Socket # connect ( java . net . SocketAddress , int )
* @ see ja... | // bug 6771432:
// The Exception is used by HttpsClient to signal that
// unconnected sockets have not been implemented .
UnsupportedOperationException uop = new UnsupportedOperationException ( ) ; SocketException se = new SocketException ( "Unconnected sockets not implemented" ) ; se . initCause ( uop ) ; throw se ; |
public class AtomicDoubleCastExtensions { /** * Convert the given value to { @ code Float } . This function is not null - safe .
* @ param number a number of { @ code AtomicDouble } type .
* @ return the equivalent value to { @ code number } of { @ code Float } type . */
@ Pure @ Inline ( value = "$2.valueOf($1.flo... | return Float . valueOf ( number . floatValue ( ) ) ; |
public class DiSH { /** * Returns a sorted list of the clusters w . r . t . the subspace dimensionality in
* descending order .
* @ param relation the database storing the objects
* @ param clustersMap the mapping of bits sets to clusters
* @ return a sorted list of the clusters */
private List < Cluster < Subs... | final int db_dim = RelationUtil . dimensionality ( relation ) ; // int num = 1;
List < Cluster < SubspaceModel > > clusters = new ArrayList < > ( ) ; for ( long [ ] pv : clustersMap . keySet ( ) ) { List < ArrayModifiableDBIDs > parallelClusters = clustersMap . get ( pv ) ; for ( int i = 0 ; i < parallelClusters . size... |
public class Base64 { /** * Encodes a byte array into Base64 string .
* @ param source The data to convert
* @ param off The data offset of what to encode .
* @ param len The number of bytes to encode .
* @ return The Base64 - encoded data as a String
* @ throws NullPointerException if source array is null
... | byte [ ] encoded = encode ( source , off , len ) ; return new String ( encoded , US_ASCII ) ; |
public class StringUtils { /** * 将字符串中特定模式的字符转换成map中对应的值
* use : format ( " my name is $ { name } , and i like $ { like } ! " , { " name " : " L . cm " , " like " : " Java " } )
* @ param s需要转换的字符串
* @ param map转换所需的键值对集合
* @ return { String } 转换后的字符串 */
public static String format ( String s , Map < String , S... | StringBuilder sb = new StringBuilder ( ( int ) ( s . length ( ) * 1.5 ) ) ; int cursor = 0 ; for ( int start , end ; ( start = s . indexOf ( "${" , cursor ) ) != - 1 && ( end = s . indexOf ( '}' , start ) ) != - 1 ; ) { sb . append ( s . substring ( cursor , start ) ) ; String key = s . substring ( start + 2 , end ) ; ... |
public class PlayEngine { /** * Estimate client buffer fill .
* @ param now
* The current timestamp being used .
* @ return True if it appears that the client buffer is full , otherwise false . */
private boolean isClientBufferFull ( final long now ) { } } | // check client buffer length when we ' ve already sent some messages
if ( lastMessageTs > 0 ) { // duration the stream is playing / playback duration
final long delta = now - playbackStart ; // buffer size as requested by the client
final long buffer = subscriberStream . getClientBufferDuration ( ) ; // expected amoun... |
public class ExpressRouteCircuitsInner { /** * Gets the currently advertised routes table summary associated with the express route circuit in a resource group .
* @ param resourceGroupName The name of the resource group .
* @ param circuitName The name of the express route circuit .
* @ param peeringName The nam... | return beginListRoutesTableSummaryWithServiceResponseAsync ( resourceGroupName , circuitName , peeringName , devicePath ) . map ( new Func1 < ServiceResponse < ExpressRouteCircuitsRoutesTableSummaryListResultInner > , ExpressRouteCircuitsRoutesTableSummaryListResultInner > ( ) { @ Override public ExpressRouteCircuitsRo... |
public class Query { /** * Appends a parameter to the query
* @ param name Parameter name
* @ param value Parameter value
* @ return this
* @ throws java . io . UnsupportedEncodingException If the provided value cannot be URL Encoded */
public Query append ( final String name , final String value ) throws Unsup... | params . add ( new Tuple < String , Tuple < String , String > > ( name , new Tuple < String , String > ( value , URLEncoder . encode ( value , "UTF-8" ) ) ) ) ; return this ; |
public class AbstractDocumentQuery { /** * Specifies a proximity distance for the phrase in the last search clause
* http : / / lucene . apache . org / java / 2_4_0 / queryparsersyntax . html # Proximity % 20Searches
* @ param proximity Proximity value */
@ Override public void _proximity ( int proximity ) { } } | List < QueryToken > tokens = getCurrentWhereTokens ( ) ; if ( tokens . isEmpty ( ) ) { throw new IllegalStateException ( "Proximity can only be used right after search clause" ) ; } QueryToken whereToken = tokens . get ( tokens . size ( ) - 1 ) ; if ( ! ( whereToken instanceof WhereToken ) ) { throw new IllegalStateExc... |
public class FileSystemUtil { /** * Find free space on the * nix platform using the ' df ' command .
* @ param path the path to get free space for
* @ param kb whether to normalize to kilobytes
* @ param posix whether to use the POSIX standard format flag
* @ param timeout The timeout amount in milliseconds or ... | if ( path . isEmpty ( ) ) { throw new IllegalArgumentException ( "Path must not be empty" ) ; } // build and run the ' dir ' command
String flags = "-" ; if ( kb ) { flags += "k" ; } if ( posix ) { flags += "P" ; } final String [ ] cmdAttribs = flags . length ( ) > 1 ? new String [ ] { DF , flags , path } : new String ... |
public class CmsSearchManager { /** * Initializes the available Cms resource types to be indexed . < p >
* A map stores document factories keyed by a string representing
* a colon separated list of Cms resource types and / or mimetypes . < p >
* The keys of this map are used to trigger a document factory to conve... | CmsSearchDocumentType documenttype = null ; String className = null ; String name = null ; I_CmsDocumentFactory documentFactory = null ; List < String > resourceTypes = null ; List < String > mimeTypes = null ; Class < ? > c = null ; m_documentTypes = new HashMap < String , I_CmsDocumentFactory > ( ) ; for ( int i = 0 ... |
public class DescribeMaintenanceWindowTasksRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeMaintenanceWindowTasksRequest describeMaintenanceWindowTasksRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeMaintenanceWindowTasksRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeMaintenanceWindowTasksRequest . getWindowId ( ) , WINDOWID_BINDING ) ; protocolMarshaller . marshall ( describeMaintenanceWindowTasksReques... |
public class Main { /** * Print a message reporting an uncaught exception from an
* annotation processor . */
void apMessage ( AnnotationProcessingError ex ) { } } | log . printLines ( PrefixKind . JAVAC , "msg.proc.annotation.uncaught.exception" ) ; ex . getCause ( ) . printStackTrace ( log . getWriter ( WriterKind . NOTICE ) ) ; |
public class TableManager { /** * Create D4M tables .
* Five Accumulo tables support D4M . This method creates them
* using the default root ( unless the caller changes that default ) .
* Tedge , TedgeTranspose , TedgeDegree , TedgeMetadata , TedgeText */
public void createTables ( ) { } } | Validate . notNull ( connector , "connector must not be null" ) ; Validate . notNull ( tableOperations , "tableOperations must not be null" ) ; /* * This code sets the default values . If you want to change them ,
* you can over - write the metadata entries instead of changing
* the values here . */
Value defaultFi... |
public class RadialMenu { /** * Renders the current configuration of this menu . */
public void render ( Graphics2D gfx ) { } } | Component host = _host . getComponent ( ) ; int x = _bounds . x , y = _bounds . y ; if ( _centerLabel != null ) { // render the centerpiece label
_centerLabel . paint ( gfx , x + _centerLabel . closedBounds . x , y + _centerLabel . closedBounds . y , this ) ; } // render each of our items in turn
int icount = _items . ... |
public class CurrentInProgressMetadata { /** * Update the data in the ZNode to point to a the ZNode containing the
* metadata for the ledger containing the current in - progress edit log
* segment .
* @ param newPath Path to the metadata for the current ledger
* @ throws StaleVersionException If path read is ou... | String id = hostname + Thread . currentThread ( ) . getId ( ) ; CurrentInProgressMetadataWritable cip = localWritable . get ( ) ; cip . set ( id , newPath ) ; byte [ ] data = WritableUtil . writableToByteArray ( cip ) ; try { zooKeeper . setData ( fullyQualifiedZNode , data , expectedZNodeVersion . get ( ) ) ; if ( LOG... |
public class TextSimilarity { /** * 构造权重快速搜索容器
* @ param words 词列表
* @ return Map */
protected Map < String , Float > toFastSearchMap ( List < Word > words ) { } } | Map < String , Float > weights = new ConcurrentHashMap < > ( ) ; if ( words == null ) { return weights ; } words . parallelStream ( ) . forEach ( word -> { if ( word . getWeight ( ) != null ) { weights . put ( word . getText ( ) , word . getWeight ( ) ) ; } else { LOGGER . error ( "词没有权重信息:" + word . getText ( ) ) ; } ... |
public class CommitsApi { /** * Get a list of repository commit statuses that meet the provided filter .
* < pre > < code > GitLab Endpoint : GET / projects / : id / repository / commits / : sha / statuses < / code > < / pre >
* @ param projectIdOrPath the project in the form of an Integer ( ID ) , String ( path ) ... | if ( projectIdOrPath == null ) { throw new RuntimeException ( "projectIdOrPath cannot be null" ) ; } if ( sha == null || sha . trim ( ) . isEmpty ( ) ) { throw new RuntimeException ( "sha cannot be null" ) ; } MultivaluedMap < String , String > queryParams = ( filter != null ? filter . getQueryParams ( page , perPage )... |
public class CmsSitemapController { /** * Undeletes the resource with the given structure id . < p >
* @ param entryId the entry id
* @ param sitePath the site - path */
public void undelete ( CmsUUID entryId , String sitePath ) { } } | CmsSitemapChange change = new CmsSitemapChange ( entryId , sitePath , ChangeType . undelete ) ; CmsSitemapClipboardData data = CmsSitemapView . getInstance ( ) . getController ( ) . getData ( ) . getClipboardData ( ) . copy ( ) ; data . getDeletions ( ) . remove ( entryId ) ; change . setClipBoardData ( data ) ; commit... |
public class HtmlUtils { /** * Create a HTML paragraph from the given text .
* @ param value the value to enclose in paragraph .
* @ return a HTML paragraphe . */
public static String encloseInParagraphe ( String value ) { } } | Object [ ] _params = { value } ; return FORMAT_PARAGRAPH . format ( _params ) ; |
public class AbstractRemoteClient { /** * Method unlocks this instance .
* @ param maintainer the instance which currently holds the lock .
* @ throws CouldNotPerformException is thrown if the instance could not be
* unlocked . */
@ Override public void unlock ( final Object maintainer ) throws CouldNotPerformExc... | synchronized ( maintainerLock ) { if ( this . maintainer != null && this . maintainer != maintainer ) { throw new CouldNotPerformException ( "Could not unlock remote because it is locked by another instance!" ) ; } this . maintainer = null ; } |
public class CmsCopyToProjectDialog { /** * Submits the dialog . < p > */
void submit ( ) { } } | CmsResource target = m_context . getResources ( ) . get ( 0 ) ; String resPath = m_context . getCms ( ) . getSitePath ( target ) ; try { m_context . getCms ( ) . copyResourceToProject ( resPath ) ; m_context . finish ( Collections . singletonList ( target . getStructureId ( ) ) ) ; } catch ( CmsException e ) { m_contex... |
public class A_CmsPublishGroupHelper { /** * Returns a calendar object representing the start of the day in which a given time lies . < p >
* @ param time a long representing a time
* @ return a calendar object which represents the day in which the time lies */
public Calendar getStartOfDay ( long time ) { } } | Calendar cal = Calendar . getInstance ( ) ; cal . setTimeInMillis ( time ) ; int year = cal . get ( Calendar . YEAR ) ; int month = cal . get ( Calendar . MONTH ) ; int day = cal . get ( Calendar . DAY_OF_MONTH ) ; Calendar result = Calendar . getInstance ( ) ; result . set ( Calendar . YEAR , year ) ; result . set ( C... |
public class P1_QueryOp { /** * t为null表示没有记录 , 因此等价于空list */
private < T > T doInterceptAfterQuery ( Class < ? > clazz , T t , StringBuilder sql , List < Object > args ) { } } | List < T > list = new ArrayList < T > ( ) ; if ( t != null ) { list . add ( t ) ; } list = doInteceptAfterQueryList ( clazz , list , 1 , sql , args ) ; return list == null || list . isEmpty ( ) ? null : list . get ( 0 ) ; |
public class DSClient { /** * ( non - Javadoc )
* @ see com . impetus . client . cassandra . CassandraClientBase # find ( com . impetus . kundera . metadata . model . EntityMetadata ,
* java . util . List , java . util . List , int , java . util . List ) */
@ Override public List < EnhanceEntity > find ( EntityMeta... | throw new UnsupportedOperationException ( "Support available only for thrift/pelops." ) ; |
public class FactoryBackgroundModel { /** * Creates an instance of { @ link BackgroundMovingGmm } .
* @ param config Configures the background model
* @ param imageType Type of input image
* @ return new instance of the background model */
public static < T extends ImageBase < T > , Motion extends InvertibleTrans... | if ( config == null ) config = new ConfigBackgroundGmm ( ) ; else config . checkValidity ( ) ; BackgroundMovingGmm < T , Motion > ret ; switch ( imageType . getFamily ( ) ) { case GRAY : ret = new BackgroundMovingGmm_SB ( config . learningPeriod , config . decayCoefient , config . numberOfGaussian , transform , imageTy... |
public class CampaignManager { /** * Create a empty report . All campaign run will be " Not Executed " */
private void createReport ( ) { } } | CampaignReportManager . getInstance ( ) . startReport ( campaignStartTimeStamp , currentCampaign . getName ( ) ) ; for ( CampaignRun run : currentCampaign . getRuns ( ) ) { CampaignResult result = new CampaignResult ( run . getTestbed ( ) ) ; result . setStatus ( Status . NOT_EXECUTED ) ; CampaignReportManager . getIns... |
public class ClassUtil { /** * Make the { @ link Member } accessible if possible , throw
* { @ link IllegalArgumentException } is not .
* @ param member the member to check
* @ return the member
* @ throws IllegalArgumentException if cannot set accessibility */
@ SuppressWarnings ( "deprecation" ) public static... | com . fasterxml . jackson . databind . util . ClassUtil . checkAndFixAccess ( member ) ; return member ; |
public class AbstractVirtualHostBuilder { /** * Configures SSL or TLS of this { @ link VirtualHost } with the specified { @ code keyCertChainFile } ,
* { @ code keyFile } , { @ code keyPassword } and { @ code tlsCustomizer } . */
public B tls ( File keyCertChainFile , File keyFile , @ Nullable String keyPassword , Co... | requireNonNull ( keyCertChainFile , "keyCertChainFile" ) ; requireNonNull ( keyFile , "keyFile" ) ; requireNonNull ( tlsCustomizer , "tlsCustomizer" ) ; if ( ! keyCertChainFile . exists ( ) ) { throw new SSLException ( "non-existent certificate chain file: " + keyCertChainFile ) ; } if ( ! keyCertChainFile . canRead ( ... |
public class PopupMenuItemHttpMessageContainer { /** * Performs the actions on all the the given messages .
* Defaults to call the method { @ code performAction ( HttpMessage ) } for each message ( with the message as parameter ) .
* Normally overridden if other implementations of { @ code HttpMessageContainer } ar... | for ( HttpMessage httpMessage : httpMessages ) { if ( httpMessage != null ) { performAction ( httpMessage ) ; } } |
public class LoggerOnThread { /** * Rename the source file into the target file , deleting the target if
* necessary .
* @ param source
* @ param target */
private void renameFile ( File source , File target ) { } } | if ( ! source . exists ( ) ) { // don ' t do anything if the source file doesn ' t exist
return ; } if ( target . exists ( ) ) { target . delete ( ) ; } boolean rc = source . renameTo ( target ) ; if ( ! rc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , getFileName ( ... |
public class Config { /** * Sets the map of WAN replication configurations , mapped by config name .
* @ param wanReplicationConfigs the WAN replication configuration map to set
* @ return this config instance */
public Config setWanReplicationConfigs ( Map < String , WanReplicationConfig > wanReplicationConfigs ) ... | this . wanReplicationConfigs . clear ( ) ; this . wanReplicationConfigs . putAll ( wanReplicationConfigs ) ; for ( final Entry < String , WanReplicationConfig > entry : this . wanReplicationConfigs . entrySet ( ) ) { entry . getValue ( ) . setName ( entry . getKey ( ) ) ; } return this ; |
public class FTPPoolImpl { /** * returns a client from given connection
* @ param conn
* @ return
* @ return matching wrap
* @ throws IOException
* @ throws ApplicationException */
protected FTPWrap _get ( FTPConnection conn ) throws IOException , ApplicationException { } } | FTPWrap wrap = null ; if ( ! conn . hasLoginData ( ) ) { if ( StringUtil . isEmpty ( conn . getName ( ) ) ) { throw new ApplicationException ( "can't connect ftp server, missing connection definition" ) ; } wrap = wraps . get ( conn . getName ( ) ) ; if ( wrap == null ) { throw new ApplicationException ( "can't connect... |
public class NodeServiceImpl { /** * 根据nodeid到找node */
public Node findById ( Long nodeId ) { } } | Assert . assertNotNull ( nodeId ) ; List < Node > nodes = listByIds ( nodeId ) ; if ( nodes . size ( ) != 1 ) { String exceptionCause = "query nodeId:" + nodeId + " return null." ; logger . error ( "ERROR ## " + exceptionCause ) ; throw new ManagerException ( exceptionCause ) ; } return nodes . get ( 0 ) ; |
public class ByteArrayList { /** * Adds all the elements in the given array list to the array list .
* @ param values The values to add to the array list . */
public void add ( ByteArrayList values ) { } } | ensureCapacity ( size + values . size ) ; for ( int i = 0 ; i < values . size ; i ++ ) { this . add ( values . elements [ i ] ) ; } |
public class XMLBuilder2 { /** * Construct a builder from an existing XML document file .
* The provided XML document will be parsed and an XMLBuilder2
* object referencing the document ' s root element will be returned .
* @ param xmlFile
* an XML document file that will be parsed into a DOM .
* @ param enab... | try { return XMLBuilder2 . parse ( new InputSource ( new FileReader ( xmlFile ) ) , enableExternalEntities , isNamespaceAware ) ; } catch ( FileNotFoundException e ) { throw wrapExceptionAsRuntimeException ( e ) ; } |
public class AbstractDomainQuery { /** * Open a block , encapsulating predicate expressions */
public TerminalResult BR_OPEN ( ) { } } | ConcatenateExpression ce = new ConcatenateExpression ( Concatenator . BR_OPEN ) ; this . astObjectsContainer . addAstObject ( ce ) ; TerminalResult ret = APIAccess . createTerminalResult ( ce ) ; QueryRecorder . recordInvocation ( this , "BR_OPEN" , ret ) ; return ret ; |
public class ClassAvailableTransformer { /** * Inject the byte code required to call the { @ code processCandidate } proxy
* after class initialization .
* @ param classfileBuffer the source class file
* @ return the modified class file */
byte [ ] transformCandidate ( byte [ ] classfileBuffer ) { } } | // reader - - > serial version uid adder - - > process candidate hook adapter - - > tracing - - > writer
ClassReader reader = new ClassReader ( classfileBuffer ) ; ClassWriter writer = new ClassWriter ( reader , ClassWriter . COMPUTE_MAXS ) ; ClassVisitor visitor = writer ; StringWriter stringWriter = null ; if ( tc . ... |
public class PHS398FellowshipSupplementalV1_1Generator { /** * This method is used to get TutionRequestedYears data to Budget XMLObject
* from List of BudgetLineItem based on CostElement value of
* TUITION _ COST _ ELEMENTS */
private void setTutionRequestedYears ( Budget budget ) { } } | ProposalDevelopmentBudgetExtContract budgetEx = s2SCommonBudgetService . getBudget ( pdDoc . getDevelopmentProposal ( ) ) ; if ( budgetEx == null ) { return ; } ScaleTwoDecimal tutionTotal = ScaleTwoDecimal . ZERO ; for ( BudgetPeriodContract budgetPeriod : budgetEx . getBudgetPeriods ( ) ) { ScaleTwoDecimal tution = S... |
public class XmlEscape { /** * Perform an XML 1.0 level 1 ( only markup - significant chars ) < strong > escape < / strong > operation
* on a < tt > Reader < / tt > input meant to be an XML attribute value , writing results to a < tt > Writer < / tt > .
* < em > Level 1 < / em > means this method will only escape t... | escapeXml ( reader , writer , XmlEscapeSymbols . XML10_ATTRIBUTE_SYMBOLS , XmlEscapeType . CHARACTER_ENTITY_REFERENCES_DEFAULT_TO_HEXA , XmlEscapeLevel . LEVEL_1_ONLY_MARKUP_SIGNIFICANT ) ; |
public class CmsModuleUpdater { /** * Deletes and publishes resources with ID conflicts .
* @ param cms the CMS context to use
* @ param module the module
* @ param conflictingIds the conflicting ids
* @ throws CmsException if something goes wrong
* @ throws Exception if something goes wrong */
protected void... | CmsProject conflictProject = cms . createProject ( "Deletion of conflicting resources for " + module . getName ( ) , "Deletion of conflicting resources for " + module . getName ( ) , OpenCms . getDefaultUsers ( ) . getGroupAdministrators ( ) , OpenCms . getDefaultUsers ( ) . getGroupAdministrators ( ) , CmsProject . PR... |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcVolumetricFlowRateMeasure ( ) { } } | if ( ifcVolumetricFlowRateMeasureEClass == null ) { ifcVolumetricFlowRateMeasureEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 760 ) ; } return ifcVolumetricFlowRateMeasureEClass ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.