signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ConsoleReaderWrapper { /** * Print charSequence to console
* @ param charSequence to print */
public void print ( CharSequence charSequence ) { } } | try { consoleReader . println ( charSequence ) ; consoleReader . flush ( ) ; } catch ( IOException e ) { throw new IllegalStateException ( "Can't write to console" , e ) ; } |
public class CommerceNotificationAttachmentPersistenceImpl { /** * Returns all the commerce notification attachments .
* @ return the commerce notification attachments */
@ Override public List < CommerceNotificationAttachment > findAll ( ) { } } | return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; |
public class ElementMatchers { /** * Matches a method that declares the given generic exception type as a ( erased ) exception type .
* @ param exceptionType The exception type that is matched .
* @ param < T > The type of the matched object .
* @ return A matcher that matches any method that exactly matches the ... | return exceptionType . isAssignableTo ( Throwable . class ) ? ElementMatchers . < T > declaresGenericException ( new CollectionItemMatcher < TypeDescription . Generic > ( erasure ( exceptionType ) ) ) : new BooleanMatcher < T > ( false ) ; |
public class ScriptableObject { /** * Attach the specified object to this object , and delegate all indexed property lookups to it . In other words ,
* if the object has 3 elements , then an attempt to look up or modify " [ 0 ] " , " [ 1 ] " , or " [ 2 ] " will be delegated
* to this object . Additional indexed pro... | externalData = array ; if ( array == null ) { delete ( "length" ) ; } else { // Define " length " to return whatever length the List gives us .
defineProperty ( "length" , null , GET_ARRAY_LENGTH , null , READONLY | DONTENUM ) ; } |
public class CPDefinitionOptionValueRelUtil { /** * Returns the first cp definition option value rel in the ordered set where groupId = & # 63 ; .
* @ param groupId the group ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return the first matching cp ... | return getPersistence ( ) . findByGroupId_First ( groupId , orderByComparator ) ; |
public class MetaDataProcessorResolver { /** * Looks for the processor element ( by querying it with the { @ code processorElementXPathQuery } ) in the item ' s
* descriptor . If the element is found , the element value is mapped to a processor and that processor is
* returned .
* @ throws XmlException if the ele... | String processorElementValue = item . queryDescriptorValue ( processorElementXPathQuery ) ; if ( StringUtils . isNotEmpty ( processorElementValue ) ) { ItemProcessor processor = elementValueToProcessorMappings . get ( processorElementValue ) ; if ( processor != null ) { return processor ; } else { throw new XmlExceptio... |
public class SerializedFormWriterImpl { /** * { @ inheritDoc } */
public void addPackageSerializedTree ( Content serializedSummariesTree , Content packageSerializedTree ) { } } | serializedSummariesTree . addContent ( ( configuration . allowTag ( HtmlTag . SECTION ) ) ? HtmlTree . LI ( HtmlStyle . blockList , packageSerializedTree ) : packageSerializedTree ) ; |
public class ConcurrentLinkedList { /** * ( non - Javadoc )
* @ see ws . sib . objectManager . List # size ( ws . sib . objectManager . Transaction ) */
public long size ( Transaction transaction ) throws ObjectManagerException { } } | if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "size" , "Transaction=" + transaction ) ; long totalSize = 0 ; // Size to return .
for ( int i = 0 ; i < subLists . length ; i ++ ) { totalSize = totalSize + subLists [ i ] . size ( transaction ) ; } // for subLists .... |
public class ServletContextFacade { /** * / * ( non - Javadoc )
* @ see com . ibm . wsspi . webcontainer . servlet . IServletContext # addMappingTarget ( java . lang . String , com . ibm . ws . webcontainer . core . RequestProcessor ) */
public void addMappingTarget ( String mapping , RequestProcessor target ) throws... | context . addMappingTarget ( mapping , target ) ; |
public class AABBd { /** * Set the minimum corner coordinates .
* @ param min
* the minimum coordinates
* @ return this */
public AABBd setMin ( Vector3dc min ) { } } | return this . setMin ( min . x ( ) , min . y ( ) , min . z ( ) ) ; |
public class AuthRegistrationsCredentialListMapping { /** * Create a AuthRegistrationsCredentialListMappingCreator to execute create .
* @ param pathAccountSid The SID of the Account that will create the resource
* @ param pathDomainSid The SID of the SIP domain that will contain the new
* resource
* @ param cr... | return new AuthRegistrationsCredentialListMappingCreator ( pathAccountSid , pathDomainSid , credentialListSid ) ; |
public class current_timezone { /** * < pre >
* Use this operation to modify current time zone .
* < / pre > */
public static current_timezone update ( nitro_service client , current_timezone resource ) throws Exception { } } | resource . validate ( "modify" ) ; return ( ( current_timezone [ ] ) resource . update_resource ( client ) ) [ 0 ] ; |
public class LockCache { /** * Attempts to take a lock on the given key .
* @ param key the key to lock
* @ param mode lockMode to acquire
* @ return either empty or a lock resource which must be closed to unlock the key */
public Optional < LockResource > tryGet ( K key , LockMode mode ) { } } | ValNode valNode = getValNode ( key ) ; ReentrantReadWriteLock lock = valNode . mValue ; Lock innerLock ; switch ( mode ) { case READ : innerLock = lock . readLock ( ) ; break ; case WRITE : innerLock = lock . writeLock ( ) ; break ; default : throw new IllegalStateException ( "Unknown lock mode: " + mode ) ; } if ( ! i... |
public class JettyBoot { protected Configuration [ ] prepareConfigurations ( ) { } } | final List < Configuration > configList = new ArrayList < Configuration > ( ) ; setupConfigList ( configList ) ; return configList . toArray ( new Configuration [ configList . size ( ) ] ) ; |
public class srecParser { /** * / home / victor / srec / core / src / main / antlr / srec . g : 54:1 : expression : ( method _ call _ or _ varref | assignment | method _ def ) ; */
public final srecParser . expression_return expression ( ) throws RecognitionException { } } | srecParser . expression_return retval = new srecParser . expression_return ( ) ; retval . start = input . LT ( 1 ) ; CommonTree root_0 = null ; srecParser . method_call_or_varref_return method_call_or_varref9 = null ; srecParser . assignment_return assignment10 = null ; srecParser . method_def_return method_def11 = nul... |
public class AlertResources { /** * Deletes all notifications for a given alert .
* @ param req The HttpServlet request object . Cannot be null .
* @ param alertId The alert id . Cannot be null and must be a positive non - zero number .
* @ return Updated alert object .
* @ throws WebApplicationException The ex... | if ( alertId == null || alertId . compareTo ( BigInteger . ZERO ) < 1 ) { throw new WebApplicationException ( "Alert Id cannot be null and must be a positive non-zero number." , Status . BAD_REQUEST ) ; } Alert alert = alertService . findAlertByPrimaryKey ( alertId ) ; if ( alert != null ) { validateResourceAuthorizati... |
public class Table { /** * Returns a table with the same columns as this table */
public Table copy ( ) { } } | Table copy = new Table ( name ) ; for ( Column < ? > column : columnList ) { copy . addColumns ( column . emptyCopy ( rowCount ( ) ) ) ; } int [ ] rows = new int [ rowCount ( ) ] ; for ( int i = 0 ; i < rowCount ( ) ; i ++ ) { rows [ i ] = i ; } Rows . copyRowsToTable ( rows , this , copy ) ; return copy ; |
public class SequentialExecutionQueue { /** * Gets { @ link Runnable } s that are currently executed by a live thread . */
public synchronized Set < Runnable > getInProgress ( ) { } } | Set < Runnable > items = new HashSet < > ( ) ; for ( QueueEntry entry : inProgress ) { items . add ( entry . item ) ; } return items ; |
public class ParticleIO { /** * Load a single emitter from an XML file
* @ param ref
* The XML file to read
* @ return The configured emitter
* @ param factory
* The factory used to create the emitter than will be poulated
* with loaded data .
* @ throws IOException
* Indicates a failure to find , read ... | return loadEmitter ( new FileInputStream ( ref ) , factory ) ; |
public class InputStreamHelper { /** * Expands a zip file input stream into a temporary directory .
* @ param dir temporary directory
* @ param inputStream zip file input stream */
private static void processZipStream ( File dir , InputStream inputStream ) throws IOException { } } | ZipInputStream zip = new ZipInputStream ( inputStream ) ; while ( true ) { ZipEntry entry = zip . getNextEntry ( ) ; if ( entry == null ) { break ; } File file = new File ( dir , entry . getName ( ) ) ; if ( entry . isDirectory ( ) ) { FileHelper . mkdirsQuietly ( file ) ; continue ; } File parent = file . getParentFil... |
public class Tooltip { /** * Changes text tooltip to specified text . If tooltip content is not instance of VisLabel then previous tooltip content
* will be replaced by VisLabel instance .
* @ param text next tooltip text */
public void setText ( String text ) { } } | if ( content instanceof VisLabel ) { ( ( VisLabel ) content ) . setText ( text ) ; } else { setContent ( new VisLabel ( text ) ) ; } pack ( ) ; |
public class XMLUtil { /** * Replies the text inside the node at the specified path .
* < p > The path is an ordered list of tag ' s names and ended by the name of
* the desired node .
* Be careful about the fact that the names are case sensitives .
* @ param document is the XML document to explore .
* @ para... | assert document != null : AssertMessages . notNullParameter ( 0 ) ; Node parentNode = getNodeFromPath ( document , path ) ; if ( parentNode == null ) { parentNode = document ; } final StringBuilder text = new StringBuilder ( ) ; final NodeList children = parentNode . getChildNodes ( ) ; final int len = children . getLe... |
public class HostEndsWithOneOf { /** * Apply the filter to a given URI
* @ param uri the URI to be filtered
* @ return < code > true < / code > if the host part of < code > uri < / code > ends with one of the inner suffixes */
@ Override public boolean apply ( final URI uri ) { } } | String host = uri . getHost ( ) ; // BURL guarantees lower case .
for ( String suffix : suffixes ) if ( host . endsWith ( suffix ) ) return true ; return false ; |
public class SimulatorProtocolImpl { /** * listen for a complete message . */
protected void read ( ) throws Exception { } } | InputStream is = socket . getInputStream ( ) ; while ( is . available ( ) > 0 ) { byte [ ] bytes = new byte [ 1024 * 1024 ] ; int read = is . read ( bytes ) ; byte [ ] actuallyRead = new byte [ read ] ; System . arraycopy ( bytes , 0 , actuallyRead , 0 , read ) ; pushInput ( actuallyRead ) ; } |
public class CmsGalleryService { /** * Checks the current users permissions on the upload target folder to update the no upload reason . < p >
* @ param searchCms the cms context
* @ param searchObj the search data */
private void updateNoUploadReason ( CmsObject searchCms , CmsGallerySearchBean searchObj ) { } } | if ( ( searchObj . getGalleries ( ) . size ( ) + searchObj . getFolders ( ) . size ( ) ) == 1 ) { String target = ! searchObj . getGalleries ( ) . isEmpty ( ) ? searchObj . getGalleries ( ) . get ( 0 ) : searchObj . getFolders ( ) . iterator ( ) . next ( ) ; try { CmsResource targetRes ; if ( searchCms . existsResource... |
public class FacesBackingBeanFactory { /** * Load a " backing bean " associated with the JavaServer Faces page for a request .
* @ param requestContext a { @ link RequestContext } object which contains the current request and response .
* @ param backingClassName the name of the backing bean class .
* @ return an... | try { Class backingClass = null ; try { backingClass = getFacesBackingBeanClass ( backingClassName ) ; } catch ( ClassNotFoundException e ) { // ignore - - we deal with this and log this immediately below . getFacesBackingBeanClass ( ) by default
// does not throw this exception , but a derived version might .
} if ( b... |
public class CmsVfsSelection { /** * Sets the value of the widget . < p >
* @ param value the new value */
public void setFormValue ( Object value ) { } } | if ( value == null ) { value = "" ; } if ( value instanceof String ) { String strValue = ( String ) value ; m_selectionInput . m_textbox . setText ( strValue ) ; setTitle ( strValue ) ; } |
public class TableExtractor { /** * Cleans up the noising lines , e . g . , the continuing blank lines
* @ param linesOfAPage
* a list of lines of one page
* @ return a list of words of one page */
private ArrayList < TextPiece > dataCleaning ( ArrayList < TextPiece > linesOfAPage ) { } } | TextPiece line = null ; TextPiece preLine = null ; TextPiece nextLine = null ; for ( int i = 0 ; i < linesOfAPage . size ( ) ; i ++ ) { line = linesOfAPage . get ( i ) ; preLine = ( i == 0 ) ? null : linesOfAPage . get ( i - 1 ) ; nextLine = ( i == linesOfAPage . size ( ) - 1 ) ? null : linesOfAPage . get ( i + 1 ) ; i... |
public class DatabaseImpl { /** * < p > Returns the current winning revision of a local document . < / p >
* @ param docId ID of the local document
* @ return { @ code LocalDocument } of the document
* @ throws DocumentNotFoundException if the document ID doesn ' t exist */
public LocalDocument getLocalDocument (... | Misc . checkState ( this . isOpen ( ) , "Database is closed" ) ; try { return get ( queue . submit ( new GetLocalDocumentCallable ( docId ) ) ) ; } catch ( ExecutionException e ) { throw new DocumentNotFoundException ( e ) ; } |
public class CoreUtils { /** * Have shutdown actually means shutdown . Tasks that need to complete should use
* futures . */
public static ScheduledThreadPoolExecutor getScheduledThreadPoolExecutor ( String name , int poolSize , int stackSize ) { } } | ScheduledThreadPoolExecutor ses = new ScheduledThreadPoolExecutor ( poolSize , getThreadFactory ( null , name , stackSize , poolSize > 1 , null ) ) ; ses . setContinueExistingPeriodicTasksAfterShutdownPolicy ( false ) ; ses . setExecuteExistingDelayedTasksAfterShutdownPolicy ( false ) ; return ses ; |
public class Wxs { /** * 根据不同的消息类型 , 调用WxHandler不同的方法 */
public static WxOutMsg handle ( WxInMsg msg , WxHandler handler ) { } } | WxOutMsg out = null ; switch ( WxMsgType . valueOf ( msg . getMsgType ( ) ) ) { case text : out = handler . text ( msg ) ; break ; case image : out = handler . image ( msg ) ; break ; case voice : out = handler . voice ( msg ) ; break ; case video : out = handler . video ( msg ) ; break ; case location : out = handler ... |
public class CPDefinitionLinkPersistenceImpl { /** * Returns the cp definition link with the primary key or returns < code > null < / code > if it could not be found .
* @ param primaryKey the primary key of the cp definition link
* @ return the cp definition link , or < code > null < / code > if a cp definition li... | Serializable serializable = entityCache . getResult ( CPDefinitionLinkModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionLinkImpl . class , primaryKey ) ; if ( serializable == nullModel ) { return null ; } CPDefinitionLink cpDefinitionLink = ( CPDefinitionLink ) serializable ; if ( cpDefinitionLink == null ) { Session sess... |
public class RLogPanel { /** * System . getProperty ( " RLogPanel . filter " , " ( . * ) " ) ; */
public static void main ( String [ ] args ) throws Exception { } } | RLogPanel log = new RLogPanel ( ) ; JFrame f = new JFrame ( ) ; f . setContentPane ( log ) ; f . setVisible ( true ) ; f . pack ( ) ; Rsession R = RserveSession . newInstanceTry ( log , null ) ; R . rawEval ( "ls()" ) ; |
public class ShootistSipServlet { /** * ( non - Javadoc )
* @ see javax . servlet . sip . SipServletListener # servletInitialized ( javax . servlet . sip . SipServletContextEvent ) */
public void servletInitialized ( SipServletContextEvent ce ) { } } | SipFactory sipFactory = ( SipFactory ) ce . getServletContext ( ) . getAttribute ( SIP_FACTORY ) ; SipApplicationSession sipApplicationSession = sipFactory . createApplicationSession ( ) ; URI fromURI = sipFactory . createSipURI ( "BigGuy" , "here.com" ) ; URI toURI = sipFactory . createSipURI ( "LittleGuy" , "there.co... |
public class SDKUtil { /** * 通过传入的签名密钥进行签名并返回签名值 < br >
* @ param data
* 待签名数据Map键值对形式
* @ param encoding
* 编码
* @ param certPath
* 证书绝对路径
* @ param certPwd
* 证书密码
* @ return 签名值 */
public static boolean signByCertInfo ( Map < String , String > data , String certPath , String certPwd , String encoding... | if ( isEmpty ( encoding ) ) { encoding = "UTF-8" ; } if ( isEmpty ( certPath ) || isEmpty ( certPwd ) ) { LogUtil . writeErrorLog ( "CertPath or CertPwd is empty" ) ; return false ; } String signMethod = data . get ( param_signMethod ) ; String version = data . get ( SDKConstants . param_version ) ; if ( ! VERSION_1_0_... |
public class GuaranteedTargetStream { /** * This method will walk the oststream from the doubtHorizon to the stamp
* and send Nacks for any Unknown or Requested ticks it finds .
* It will also change Unknown ticks to Requested .
* @ exception GDException Thrown from the writeRange method */
@ Override public void... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "processAckExpected" , new Object [ ] { Long . valueOf ( stamp ) } ) ; List nackList = null ; List msgList = null ; boolean processNack = true ; // Take lock on target stream and hold it until messages have been
// ad... |
public class AbstractRemoteDocker { /** * / * - - - Public methods - - - */
public Set < AbstractRemoteDockerImage > pullRemoteDockerImages ( ) { } } | if ( isAllSoftwareRequiredInstalled ( ) ) { if ( loginToRemoteRegistry ( ) ) { imagesFound = getRemoteRegistryImagesList ( ) ; if ( imagesFound != null && ! imagesFound . isEmpty ( ) ) { imagesPulled = pullImagesFromRemoteRegistry ( ) ; } logger . info ( "{} New images were pulled" , pulledImagesCount ) ; logger . info... |
public class AbstractControllerService { /** * Boot , optionally disabling model and capability registry validation , using the given provider for the root
* { @ link ManagementResourceRegistration } .
* @ param bootOperations the operations . Cannot be { @ code null }
* @ param rollbackOnRuntimeFailure { @ code ... | return controller . boot ( bootOperations , OperationMessageHandler . logging , ModelController . OperationTransactionControl . COMMIT , rollbackOnRuntimeFailure , parallelBootRootResourceRegistrationProvider , skipModelValidation , getPartialModelIndicator ( ) . isModelPartial ( ) ) ; |
public class BpsimFactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public ResultType createResultTypeObjectFromString ( EDataType eDataType , String initialValue ) { } } | return createResultTypeFromString ( BpsimPackage . Literals . RESULT_TYPE , initialValue ) ; |
public class AbstractProjectCommand { /** * Filters the given value choices according the current enabled stack
* @ param select the { @ link SelectComponent } containing the value choices to be filtered
* @ return < code > true < / code > if it should be displayed in the UI */
protected < T extends ProjectFacet > ... | boolean result = true ; Optional < Stack > stackOptional = project . getStack ( ) ; // Filtering only supported facets
if ( stackOptional . isPresent ( ) ) { Stack stack = stackOptional . get ( ) ; Iterable < T > valueChoices = select . getValueChoices ( ) ; Set < T > filter = stack . filter ( select . getValueType ( )... |
public class Solo { /** * Asserts that the Activity matching the specified class is active , with the possibility to
* verify that the expected Activity is a new instance of the Activity .
* @ param message the message to display if the assert fails
* @ param activityClass the class of the Activity that is expect... | if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "assertCurrentActivity(\"" + message + "\", " + activityClass + ", " + isNewInstance + ")" ) ; } asserter . assertCurrentActivity ( message , activityClass , isNewInstance ) ; |
public class BaseSimpleReact { /** * This internal method has been left protected , so it can be mocked / stubbed as some of the entry points are final */
@ SuppressWarnings ( "unchecked" ) protected < U > BaseSimpleReactStream < U > reactI ( final Supplier < U > ... actions ) { } } | return construct ( Stream . of ( actions ) . map ( next -> CompletableFuture . supplyAsync ( next , getExecutor ( ) ) ) ) ; |
public class KTypeVTypeHashMap { /** * { @ inheritDoc } */
@ Override public void clear ( ) { } } | assigned = 0 ; hasEmptyKey = false ; Arrays . fill ( keys , Intrinsics . < KType > empty ( ) ) ; /* # if ( $ TemplateOptions . VTypeGeneric ) */
Arrays . fill ( values , Intrinsics . < VType > empty ( ) ) ; /* # end */ |
public class BandwidthClient { /** * This method implements an HTTP put . Use this method to update a resource .
* @ param uri the URI
* @ param params the parameters .
* @ return the put response .
* @ throws IOException unexpected exception .
* @ throws AppPlatformException unexpected exception . */
public ... | return request ( getPath ( uri ) , HttpPut . METHOD_NAME , params ) ; |
public class FixedModeScheduleActionStartSettingsMarshaller { /** * Marshall the given parameter object . */
public void marshall ( FixedModeScheduleActionStartSettings fixedModeScheduleActionStartSettings , ProtocolMarshaller protocolMarshaller ) { } } | if ( fixedModeScheduleActionStartSettings == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( fixedModeScheduleActionStartSettings . getTime ( ) , TIME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall r... |
public class AvatarZooKeeperClient { /** * Retrieves the last transaction id of the primary from zookeeper .
* @ param address
* the address of the cluster
* @ param sync
* whether or not to perform a sync before read
* @ throws IOException
* @ throws KeeperException
* @ throws InterruptedException */
pub... | Stat stat = new Stat ( ) ; String node = getLastTxIdNode ( address ) ; byte [ ] data = getNodeData ( node , stat , false , sync ) ; if ( data == null ) { return null ; } return ZookeeperTxId . getFromBytes ( data ) ; |
public class RTMPProtocolEncoder { /** * Encodes object with given protocol state to byte buffer
* @ param message
* Object to encode
* @ return IoBuffer with encoded data
* @ throws Exception
* Any decoding exception */
public IoBuffer encode ( Object message ) throws Exception { } } | if ( message != null ) { try { return encodePacket ( ( Packet ) message ) ; } catch ( Exception e ) { log . error ( "Error encoding" , e ) ; } } else if ( log . isDebugEnabled ( ) ) { try { String callingMethod = Thread . currentThread ( ) . getStackTrace ( ) [ 4 ] . getMethodName ( ) ; log . debug ( "Message is null a... |
public class JsonDiff { /** * TODO this is quite unclear and needs some serious documentation */
private static boolean isAllowed ( JsonPointer source , JsonPointer destination ) { } } | boolean isSame = source . equals ( destination ) ; int i = 0 ; int j = 0 ; // Hack to fix broken COPY operation , need better handling here
while ( i < source . size ( ) && j < destination . size ( ) ) { JsonPointer . RefToken srcValue = source . get ( i ) ; JsonPointer . RefToken dstValue = destination . get ( j ) ; S... |
public class Option { /** * Returns an { @ code Option } with the specified present value if it is not
* { @ code null } or { @ link # NONE } otherwise .
* @ param value
* the value
* @ param < T >
* the type of the value
* @ return an { @ code Option } describing the value if it is not { @ code null }
* ... | return null == value ? NONE : some ( value ) ; |
public class Encoder { /** * Returns a < code > PersistenceDelegate < / code > for the given class type .
* The < code > PersistenceDelegate < / code > is determined as following :
* < ol >
* < li > If a < code > PersistenceDelegate < / code > has been registered by calling < code > setPersistenceDelegate < / cod... | if ( type == null ) { return nullPD ; // may be return a special PD ?
} // registered delegate
PersistenceDelegate registeredPD = delegates . get ( type ) ; if ( registeredPD != null ) { return registeredPD ; } if ( type . getName ( ) . startsWith ( UtilCollectionsPersistenceDelegate . CLASS_PREFIX ) ) { return utilCol... |
public class CellConverterRegistry { /** * タイプに対する { @ link CellConverter } を登録する 。
* @ param clazz 変換対象のJavaのクラスタイプ 。
* @ param converterFactory 変換する { @ link CellConverterFactory } のインスタンス 。 */
public < T > void registerConverter ( final Class < T > clazz , final CellConverterFactory < T > converterFactory ) { ... | ArgUtils . notNull ( clazz , "clazz" ) ; ArgUtils . notNull ( converterFactory , "converterFactory" ) ; converterFactoryMap . put ( clazz , converterFactory ) ; |
public class TypeValidator { /** * Expect that the given variable has not been declared with a type .
* @ param sourceName The name of the source file we ' re in .
* @ param n The node where warnings should point to .
* @ param parent The parent of { @ code n } .
* @ param var The variable that we ' re checking... | TypedVar newVar = var ; JSType varType = var . getType ( ) ; // Only report duplicate declarations that have types . Other duplicates
// will be reported by the syntactic scope creator later in the
// compilation process .
if ( varType != null && varType != typeRegistry . getNativeType ( UNKNOWN_TYPE ) && newType != nu... |
public class IdentityMap { /** * Returns < tt > true < / tt > if this map maps one or more keys to the
* specified value .
* @ param value value whose presence in this map is to be tested .
* @ return < tt > true < / tt > if this map maps one or more keys to the
* specified value . */
public boolean containsVal... | Entry tab [ ] = mTable ; if ( value == null ) { for ( int i = tab . length ; i -- > 0 ; ) { for ( Entry e = tab [ i ] , prev = null ; e != null ; e = e . mNext ) { if ( e . getKey ( ) == null ) { // Clean up after a cleared Reference .
mModCount ++ ; if ( prev != null ) { prev . mNext = e . mNext ; } else { tab [ i ] =... |
public class Subframe_LPC { /** * Get the data from the last encode attempt . Data is returned in an
* EncodedElement , properly packed at the bit - level to be added directly to
* a FLAC stream .
* @ return EncodedElement containing encoded subframe */
public EncodedElement getData ( ) { } } | EncodedElement result = new EncodedElement ( _totalBits / 8 + 1 , _offset ) ; // result . clear ( ( int ) _ totalBits + 1 , _ offset ) ;
writeLPC ( _samples , _lastCount , _start , _increment , result , _frameSampleSize , _lowOrderBits , _precision , _shift , _quantizedCoeffs , _errors , _lpcOrder , rice ) ; int totalB... |
public class DateSpinner { /** * Sets the minimum allowed date .
* Spinner items and dates in the date picker before the given date will get disabled .
* @ param minDate The minimum date , or null to clear the previous min date . */
public void setMinDate ( @ Nullable Calendar minDate ) { } } | this . minDate = minDate ; // update the date picker ( even if it is not used right now )
if ( minDate == null ) datePickerDialog . setMinDate ( MINIMUM_POSSIBLE_DATE ) ; else if ( maxDate != null && compareCalendarDates ( minDate , maxDate ) > 0 ) throw new IllegalArgumentException ( "Minimum date must be before maxim... |
public class AbstractTopology { /** * The default placement group ( a . k . a . rack - aware group ) is " 0 " , if user override the setting
* in command line configuration , we need to check whether the partition layout meets the
* requirement ( tolerate entire rack loss without shutdown the cluster ) . And also b... | if ( m_unbalancedPartitionCount > 0 ) { return String . format ( "%d out of %d partitions are unbalanced across placement groups." , m_unbalancedPartitionCount , partitionsById . size ( ) ) ; } if ( liveHosts == null ) { return null ; } // verify the partition leaders on live hosts
for ( Host host : hostsById . values ... |
public class RecurlyClient { /** * Lookup all coupon redemptions on a subscription given query params .
* @ param subscriptionUuid String subscription uuid
* @ param params { @ link QueryParams }
* @ return the coupon redemptions for this subscription on success , null otherwise */
public Redemptions getCouponRed... | return doGET ( Subscription . SUBSCRIPTION_RESOURCE + "/" + subscriptionUuid + Redemptions . REDEMPTIONS_RESOURCE , Redemptions . class , params ) ; |
public class ST_ConstrainedDelaunay { /** * Build a constrained delaunay triangulation based on a geometry
* ( point , line , polygon )
* @ param geometry
* @ param flag
* @ return a set of polygons ( triangles )
* @ throws SQLException */
public static GeometryCollection createCDT ( Geometry geometry , int f... | if ( geometry != null ) { DelaunayData delaunayData = new DelaunayData ( ) ; delaunayData . put ( geometry , DelaunayData . MODE . CONSTRAINED ) ; delaunayData . triangulate ( ) ; if ( flag == 0 ) { return delaunayData . getTriangles ( ) ; } else if ( flag == 1 ) { return delaunayData . getTrianglesSides ( ) ; } else {... |
public class DomesticResult { /** * json format :
* < pre >
* " g1 " : {
* " type " : 1,
* " address " : " 台湾 "
* " g2 " : {
* " type " : 1,
* " address " : " 河北省 衡水市 武强县 "
* " g3 " : {
* " type " : 0,
* " address " : " "
* < / pre >
* @ param json response json string
* @ return list of Domes... | List < DomesticResult > results = new ArrayList < DomesticResult > ( ) ; for ( int i = 1 ; i <= MAX_RESULTS ; i ++ ) { String itemFieldName = String . format ( "g%d" , i ) ; if ( json . has ( itemFieldName ) ) { results . add ( parseItem ( json . get ( itemFieldName ) ) ) ; } else { break ; } } return results ; |
public class CrumbIssuer { /** * Get a crumb from multipart form data and validate it against other data
* in the current request . The salt and request parameter that is used is
* defined by the current configuration .
* @ param request
* @ param parser */
public boolean validateCrumb ( ServletRequest request ... | CrumbIssuerDescriptor < CrumbIssuer > desc = getDescriptor ( ) ; String crumbField = desc . getCrumbRequestField ( ) ; String crumbSalt = desc . getCrumbSalt ( ) ; return validateCrumb ( request , crumbSalt , parser . get ( crumbField ) ) ; |
public class Dim { /** * Called when a script exception has been thrown . */
private void handleExceptionThrown ( Context cx , Throwable ex , StackFrame frame ) { } } | if ( breakOnExceptions ) { ContextData cd = frame . contextData ( ) ; if ( cd . lastProcessedException != ex ) { interrupted ( cx , frame , ex ) ; cd . lastProcessedException = ex ; } } |
public class DistCp { /** * Job configuration */
@ SuppressWarnings ( "deprecation" ) private static JobConf createJobConfForCopyByChunk ( Configuration conf ) { } } | JobConf jobconf = new JobConf ( conf , DistCp . class ) ; jobconf . setJobName ( NAME ) ; // turn off speculative execution , because DFS doesn ' t handle
// multiple writers to the same file .
jobconf . setReduceSpeculativeExecution ( false ) ; jobconf . setMapOutputKeyClass ( Text . class ) ; jobconf . setMapOutputVa... |
public class CmsWorkplaceManager { /** * Returns the { @ link CmsWorkplaceMessages } for the given locale . < p >
* The workplace messages are a collection of resource bundles , containing the messages
* for all OpenCms core bundles and of all initialized modules . < p >
* Please note that the message objects are... | CmsWorkplaceMessages result = m_messages . get ( locale ) ; if ( result != null ) { // messages have already been read
return result ; } // messages have not been read so far
synchronized ( this ) { // check again
result = m_messages . get ( locale ) ; if ( result == null ) { result = new CmsWorkplaceMessages ( locale ... |
public class EasyPredictModelWrapper { private void validateModelCategory ( ModelCategory c ) throws PredictException { } } | if ( ! m . getModelCategories ( ) . contains ( c ) ) throw new PredictException ( c + " prediction type is not supported for this model." ) ; |
public class Triangle3d { /** * { @ inheritDoc } */
@ Override public void setP1 ( Point3D point ) { } } | setP1 ( point . getX ( ) , point . getY ( ) , point . getZ ( ) ) ; |
public class UfsJournalSnapshot { /** * Gets the first journal log sequence number that is not yet checkpointed .
* @ return the first journal log sequence number that is not yet checkpointed */
static long getNextLogSequenceNumberToCheckpoint ( UfsJournal journal ) throws IOException { } } | List < UfsJournalFile > checkpoints = new ArrayList < > ( ) ; UfsStatus [ ] statuses = journal . getUfs ( ) . listStatus ( journal . getCheckpointDir ( ) . toString ( ) ) ; if ( statuses != null ) { for ( UfsStatus status : statuses ) { UfsJournalFile file = UfsJournalFile . decodeCheckpointFile ( journal , status . ge... |
public class DeleteUserPoolClientRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteUserPoolClientRequest deleteUserPoolClientRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteUserPoolClientRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteUserPoolClientRequest . getUserPoolId ( ) , USERPOOLID_BINDING ) ; protocolMarshaller . marshall ( deleteUserPoolClientRequest . getClientId ( ) , CLIE... |
public class DtoSearchConverterServiceImpl { /** * Prune impossible combinations .
* ( eg . If And criteria filter different layers , they will return nothing , so they are pruned ) . */
void prune ( AndCriterion criterion ) { } } | Set < String > usedLayers = new HashSet < String > ( ) ; Set < String > badLayers = new HashSet < String > ( ) ; criterion . serverLayerIdVisitor ( usedLayers ) ; findUnmatchedLayers ( criterion , usedLayers , badLayers ) ; if ( usedLayers . isEmpty ( ) ) { criterion . getCriteria ( ) . clear ( ) ; } else if ( ! badLay... |
public class LinuxTaskController { /** * Convenience method used to sending appropriate Kill signal to the task
* VM
* @ param context
* @ param command
* @ throws IOException */
private void finishTask ( TaskControllerContext context , TaskCommands command ) throws IOException { } } | if ( context . task == null ) { LOG . info ( "Context task null not killing the JVM" ) ; return ; } ShellCommandExecutor shExec = buildTaskControllerExecutor ( command , context . env . conf . getUser ( ) , buildKillTaskCommandArgs ( context ) , context . env . workDir , context . env . env ) ; try { shExec . execute (... |
public class DynamicEndpointGroup { /** * Sets the specified { @ link Endpoint } s as current { @ link Endpoint } list . */
protected final void setEndpoints ( Iterable < Endpoint > endpoints ) { } } | final List < Endpoint > oldEndpoints = this . endpoints ; final List < Endpoint > newEndpoints = ImmutableList . sortedCopyOf ( endpoints ) ; if ( oldEndpoints . equals ( newEndpoints ) ) { return ; } endpointsLock . lock ( ) ; try { this . endpoints = newEndpoints ; } finally { endpointsLock . unlock ( ) ; } notifyLis... |
public class CaliperMain { /** * Entry point for the caliper benchmark runner application ; run with { @ code - - help } for details . */
public static void main ( String [ ] args ) { } } | PrintWriter stdout = new PrintWriter ( System . out , true ) ; PrintWriter stderr = new PrintWriter ( System . err , true ) ; int code = 1 ; // pessimism !
try { exitlessMain ( args , stdout , stderr ) ; code = 0 ; } catch ( InvalidCommandException e ) { e . display ( stderr ) ; code = e . exitCode ( ) ; } catch ( Inva... |
public class Matchers { /** * Applies the given matcher recursively to all descendants of an AST node , and matches if any
* matching descendant node is found .
* @ param clazz The type of node to be matched .
* @ param treeMatcher The matcher to apply recursively to the tree . */
public static < T extends Tree ,... | final Matcher < Tree > contains = new Contains ( toType ( clazz , treeMatcher ) ) ; return contains :: matches ; |
public class BufferedFileWriter { /** * Gets a writer that can write to the supplied file using the UTF - 8 charset .
* @ param aFile A file to which to write
* @ return A writer that writes to the supplied file
* @ throws FileNotFoundException If the supplied file cannot be found */
private static Writer getWrit... | try { return new OutputStreamWriter ( new FileOutputStream ( aFile ) , StandardCharsets . UTF_8 . name ( ) ) ; } catch ( final java . io . UnsupportedEncodingException details ) { throw new UnsupportedEncodingException ( details , StandardCharsets . UTF_8 . name ( ) ) ; } |
public class PipelineHistoryService { /** * we need placeholder stage for unscheduled stages in pipeline , so we can trigger it */
private void populatePlaceHolderStages ( PipelineInstanceModel pipeline ) { } } | StageInstanceModels stageHistory = pipeline . getStageHistory ( ) ; String pipelineName = pipeline . getName ( ) ; appendFollowingStagesFromConfig ( pipelineName , stageHistory ) ; |
public class ParseUtil { /** * Convert a partially parsed LIKE expression , in which the pattern and escape are
* in the form of token images , to the proper Selector expression to represent
* the LIKE expression
* @ param arg the argument of the like
* @ param pattern the pattern image ( still containing leadi... | try { pattern = reduceStringLiteralToken ( pattern ) ; boolean escaped = false ; char esc = 0 ; if ( escape != null ) { escape = reduceStringLiteralToken ( escape ) ; if ( escape . length ( ) != 1 ) return null ; escaped = true ; esc = escape . charAt ( 0 ) ; } return Matching . getInstance ( ) . createLikeOperator ( a... |
public class AbstractRegisteredServiceAttributeReleasePolicy { /** * Determines a default bundle of attributes that may be released to all services
* without the explicit mapping for each service .
* @ param p the principal
* @ param attributes the attributes
* @ return the released by default attributes */
pro... | val ctx = ApplicationContextProvider . getApplicationContext ( ) ; if ( ctx != null ) { LOGGER . trace ( "Located application context. Retrieving default attributes for release, if any" ) ; val props = ctx . getAutowireCapableBeanFactory ( ) . getBean ( CasConfigurationProperties . class ) ; val defaultAttrs = props . ... |
public class MockHttpServletResponse { /** * Retrieves the content written to the response .
* @ return the content written to the response outputStream or printWriter . Null is returned if neither
* { @ link # getOutputStream ( ) } or { @ link # getWriter ( ) } have been called . */
public String getOutputAsString... | if ( stringWriter != null ) { return stringWriter . toString ( ) ; } else if ( outputStream != null ) { String outputStr = null ; byte [ ] bytes = outputStream . getOutput ( ) ; if ( bytes != null ) { try { outputStr = new String ( bytes , characterEncoding ) ; } catch ( UnsupportedEncodingException e ) { outputStr = n... |
public class LevenbergMarquardt { /** * Finds the best fit parameters .
* @ param function The function being optimized
* @ param parameters ( Input / Output ) initial parameter estimate and storage for optimized parameters
* @ return true if it succeeded and false if it did not . */
public boolean optimize ( Res... | configure ( function , parameters . getNumElements ( ) ) ; // save the cost of the initial parameters so that it knows if it improves or not
double previousCost = initialCost = cost ( parameters ) ; // iterate until the difference between the costs is insignificant
double lambda = initialLambda ; // if it should recomp... |
public class SimpleTimeZone { /** * Sets the daylight savings ending rule . For example , in the U . S . , Daylight
* Savings Time ends at the first Sunday in November , at 2 AM in standard time .
* Therefore , you can set the end rule by calling :
* setEndRule ( Calendar . NOVEMBER , 1 , Calendar . SUNDAY , 2*60... | assert ( ! isFrozen ( ) ) ; endMonth = month ; endDay = dayOfWeekInMonth ; endDayOfWeek = dayOfWeek ; endTime = time ; endTimeMode = mode ; decodeEndRule ( ) ; transitionRulesInitialized = false ; |
public class Stagnation { /** * { @ inheritDoc } */
public boolean shouldTerminate ( PopulationData < ? > populationData ) { } } | double fitness = getFitness ( populationData ) ; if ( populationData . getGenerationNumber ( ) == 0 || hasFitnessImproved ( fitness ) ) { bestFitness = fitness ; fittestGeneration = populationData . getGenerationNumber ( ) ; } return populationData . getGenerationNumber ( ) - fittestGeneration >= generationLimit ; |
public class PaxChronology { @ Override public PaxDate resolveDate ( Map < TemporalField , Long > fieldValues , ResolverStyle resolverStyle ) { } } | return ( PaxDate ) super . resolveDate ( fieldValues , resolverStyle ) ; |
public class ApiZoneImpl { /** * / * ( non - Javadoc )
* @ see com . tvd12 . ezyfox . core . entities . ApiProperties # getProperty ( java . lang . Object , java . lang . Class ) */
@ SuppressWarnings ( "unchecked" ) @ Override public < T > T getProperty ( Object key , Class < T > clazz ) { } } | return ( T ) getProperty ( key ) ; |
public class BibTeXConverter { /** * Converts a BibTeX entry to a citation item
* @ param e the BibTeX entry to convert
* @ return the citation item */
public CSLItemData toItemData ( BibTeXEntry e ) { } } | // get all fields from the BibTeX entry
Map < String , String > entries = new HashMap < > ( ) ; for ( Map . Entry < Key , Value > field : e . getFields ( ) . entrySet ( ) ) { String us = field . getValue ( ) . toUserString ( ) . replaceAll ( "\\r" , "" ) ; // convert LaTeX string to normal text
try { List < LaTeXObject... |
public class HttpSender { /** * Convert a report to string
* @ param report the report to convert
* @ param format the format to convert to
* @ return a string representation of the report
* @ throws Exception if conversion failed */
@ NonNull @ SuppressWarnings ( "WeakerAccess" ) protected String convertToStri... | return format . toFormattedString ( report , config . reportContent ( ) , "&" , "\n" , true ) ; |
public class JobCallbackUtil { /** * This method takes the job context info . and put the values into a map with keys as the tokens .
* @ return Map < String , String > */
public static Map < String , String > buildJobContextInfoMap ( final Event event , final String server ) { } } | if ( event . getRunner ( ) instanceof JobRunner ) { final JobRunner jobRunner = ( JobRunner ) event . getRunner ( ) ; final ExecutableNode node = jobRunner . getNode ( ) ; final EventData eventData = event . getData ( ) ; final String projectName = node . getParentFlow ( ) . getProjectName ( ) ; final String flowName =... |
public class PageSourcePool { /** * sts a page object to the page pool
* @ param key key reference to store page object
* @ param ps pagesource to store */
public void setPage ( String key , PageSource ps ) { } } | ps . setLastAccessTime ( ) ; pageSources . put ( key . toLowerCase ( ) , ps ) ; |
public class Sheet { /** * Maps the rendered column index to the real column index .
* @ param renderCol the rendered index
* @ return the mapped index */
public int getMappedColumn ( final int renderCol ) { } } | if ( columnMapping == null || renderCol == - 1 ) { return renderCol ; } else { final Integer result = columnMapping . get ( renderCol ) ; if ( result == null ) { throw new IllegalArgumentException ( "Invalid index " + renderCol ) ; } return result ; } |
public class WonderPushUriHelper { /** * Checks that the provided URI points to the WonderPush REST server */
protected static boolean isAPIUri ( Uri uri ) { } } | if ( uri == null ) { return false ; } return getBaseUri ( ) . getHost ( ) . equals ( uri . getHost ( ) ) ; |
public class MarshallUtil { /** * Marshall a { @ link Collection } .
* This method supports { @ code null } { @ code collection } .
* @ param collection { @ link Collection } to marshal .
* @ param out { @ link ObjectOutput } to write .
* @ param < E > Collection ' s element type .
* @ throws IOException If a... | marshallCollection ( collection , out , ObjectOutput :: writeObject ) ; |
public class StaticImports { /** * to filter on method signature . */
private static ImmutableSet < Symbol > lookup ( Symbol . TypeSymbol typeSym , Symbol . TypeSymbol start , Name identifier , Types types , Symbol . PackageSymbol pkg ) { } } | if ( typeSym == null ) { return ImmutableSet . of ( ) ; } ImmutableSet . Builder < Symbol > members = ImmutableSet . builder ( ) ; members . addAll ( lookup ( types . supertype ( typeSym . type ) . tsym , start , identifier , types , pkg ) ) ; for ( Type i : types . interfaces ( typeSym . type ) ) { members . addAll ( ... |
public class FleetsApi { /** * Kick fleet member Kick a fleet member - - - SSO Scope :
* esi - fleets . write _ fleet . v1
* @ param fleetId
* ID for a fleet ( required )
* @ param memberId
* The character ID of a member in this fleet ( required )
* @ param datasource
* The server name you would like data... | deleteFleetsFleetIdMembersMemberIdWithHttpInfo ( fleetId , memberId , datasource , token ) ; |
public class TableBuilder { /** * Adds the specified constraint to the created table .
* @ param columnName The name of the column on which the constraint is applied .
* @ param constraintType The type of constraint to apply .
* One of
* < ul >
* < li > { @ link com . tjeannin . provigen . model . Constraint ... | constraints . add ( new Constraint ( columnName , constraintType , constraintConflictClause ) ) ; return this ; |
public class FluentSelect { /** * Clear all selected entries . This is only valid when the SELECT supports multiple selections .
* @ throws UnsupportedOperationException If the SELECT does not support multiple selections */
public FluentSelect deselectAll ( ) { } } | executeAndWrapReThrowIfNeeded ( new DeselectAll ( ) , Context . singular ( context , "deselectAll" ) , true ) ; return new FluentSelect ( super . delegate , currentElement . getFound ( ) , this . context , monitor , booleanInsteadOfNotFoundException ) ; |
public class AsynchronousRequest { /** * For more info on pets API go < a href = " https : / / wiki . guildwars2 . com / wiki / API : 2 / pets " > here < / a > < br / >
* Give user the access to { @ link Callback # onResponse ( Call , Response ) } and { @ link Callback # onFailure ( Call , Throwable ) } methods for c... | gw2API . getAllPetIDs ( ) . enqueue ( callback ) ; |
public class AuthCollection { /** * Obtain an AuthMethod of type T , if one is contained in this collection .
* @ param type The type of AuthMethod to be located
* @ param < T > The type of AuthMethod which will be returned
* @ return An AuthMethod subclass matching type
* @ throws NexmoUnacceptableAuthExceptio... | for ( AuthMethod availableAuthMethod : this . authList ) { if ( type . isInstance ( availableAuthMethod ) ) { return ( T ) availableAuthMethod ; } } throw new NexmoUnacceptableAuthException ( this . authList , new HashSet < > ( Arrays . asList ( new Class [ ] { type } ) ) ) ; |
public class ByteUtil { /** * Encodes a byte array into a hex string ( hex dump ) .
* @ deprecated Please see class HexUtil */
@ Deprecated public static String encodeHex ( byte [ ] data , char delimiter ) { } } | // the result
StringBuilder result = new StringBuilder ( ) ; short val = 0 ; // encode each byte into a hex dump
for ( int i = 0 ; i < data . length ; i ++ ) { val = decodeUnsigned ( data [ i ] ) ; result . append ( padLeading ( Integer . toHexString ( ( int ) val ) , 2 ) ) ; result . append ( delimiter ) ; } // return... |
public class PmiModuleConfig { /** * Return the list of statistic IDs that are in the given pre - defined statistic sets .
* Statistic sets are defined in { @ link com . ibm . websphere . pmi . stat . StatConstants } */
public int [ ] listStatisticsBySet ( String statisticSet ) { } } | // System . out . println ( " & & & & & calling listStatisticsBySet " + statisticSet ) ;
if ( statisticSet . equals ( StatConstants . STATISTIC_SET_NONE ) || statisticSet . equals ( StatConstants . STATISTIC_SET_CUSTOM ) ) return new int [ 0 ] ; int k = 0 ; if ( statisticSet . equals ( StatConstants . STATISTIC_SET_BAS... |
public class PEMReader { /** * Read the PEM file and save the DER encoded octet
* stream and begin marker .
* @ throws IOException */
protected void readFile ( ) throws IOException { } } | String line ; try ( BufferedReader reader = new BufferedReader ( new InputStreamReader ( stream ) ) ) { while ( ( line = reader . readLine ( ) ) != null ) { if ( line . contains ( BEGIN_MARKER ) ) { beginMarker = line . trim ( ) ; String endMarker = beginMarker . replace ( "BEGIN" , "END" ) ; derBytes = readBytes ( rea... |
public class Props { /** * Create a Props from a list of key value pairing . i . e . [ key1 , value1 , key2 , value2 . . . ] */
public static Props of ( final Props parent , final String ... args ) { } } | if ( args . length % 2 != 0 ) { throw new IllegalArgumentException ( "Must have an equal number of keys and values." ) ; } final Map < String , String > vals = new HashMap < > ( args . length / 2 ) ; for ( int i = 0 ; i < args . length ; i += 2 ) { vals . put ( args [ i ] , args [ i + 1 ] ) ; } return new Props ( paren... |
public class CmsVfsMemoryObjectCache { /** * Uses a transformer for loading an object from a path if it has not already been cached , and then caches it . < p >
* @ param cms the CMS context
* @ param rootPath the root path from which the object should be loaded
* @ param function the function which should load t... | Object result = getCachedObject ( cms , rootPath ) ; if ( result == null ) { result = function . transform ( rootPath ) ; putCachedObject ( cms , rootPath , result ) ; } return result ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.