signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class OpenSslKeyMaterialProvider { /** * Returns the { @ link OpenSslKeyMaterial } or { @ code null } ( if none ) that should be used during the handshake by
* OpenSSL . */
OpenSslKeyMaterial chooseKeyMaterial ( ByteBufAllocator allocator , String alias ) throws Exception { } } | X509Certificate [ ] certificates = keyManager . getCertificateChain ( alias ) ; if ( certificates == null || certificates . length == 0 ) { return null ; } PrivateKey key = keyManager . getPrivateKey ( alias ) ; PemEncoded encoded = PemX509Certificate . toPEM ( allocator , true , certificates ) ; long chainBio = 0 ; lo... |
public class Validate { /** * Checks if the given iterable object contains < code > null < / code > values .
* @ param coll The iterable object to validate .
* @ throws ParameterException if the given object contains any < code > null < / code > values . */
public static < O extends Object > void noNullElements ( I... | if ( ! validation ) return ; notNull ( coll ) ; for ( O o : coll ) { try { notNull ( o ) ; } catch ( ParameterException e1 ) { throw new ParameterException ( ErrorCode . NULLELEMENTS ) ; } } |
public class AvailBlankingMarshaller { /** * Marshall the given parameter object . */
public void marshall ( AvailBlanking availBlanking , ProtocolMarshaller protocolMarshaller ) { } } | if ( availBlanking == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( availBlanking . getAvailBlankingImage ( ) , AVAILBLANKINGIMAGE_BINDING ) ; protocolMarshaller . marshall ( availBlanking . getState ( ) , STATE_BINDING ) ; } catch ( Excep... |
public class Hashids { /** * Encrypt hexa to string
* @ param hexa the hexa to encrypt
* @ return the encrypt string */
public String encodeHex ( String hexa ) { } } | if ( ! hexa . matches ( "^[0-9a-fA-F]+$" ) ) return "" ; List < Long > matched = new ArrayList < Long > ( ) ; Matcher matcher = Pattern . compile ( "[\\w\\W]{1,12}" ) . matcher ( hexa ) ; while ( matcher . find ( ) ) matched . add ( Long . parseLong ( "1" + matcher . group ( ) , 16 ) ) ; // conversion
long [ ] result =... |
public class LemmatizerFixedTrainer { /** * Instantiate the { @ code LemmatizerFactory } according to the features
* specified in the parameters properties file .
* @ param params
* the training parameters
* @ return the factory */
private final LemmatizerFactory getTrainerFactory ( final TrainingParameters par... | LemmatizerFactory lemmatizerFactory = null ; final String featureSet = Flags . getFeatureSet ( params ) ; if ( featureSet . equalsIgnoreCase ( "chunk" ) ) { try { lemmatizerFactory = LemmatizerFactory . create ( LemmatizerFactory . class . getName ( ) ) ; } catch ( final InvalidFormatException e ) { e . printStackTrace... |
public class SampleRibbonApplication { /** * Use this for debugging ( or if there is no Zipkin server running on port 9411) */
@ Bean @ ConditionalOnProperty ( value = "sample.zipkin.enabled" , havingValue = "false" ) public Reporter < Span > spanReporter ( ) { } } | return new Reporter < Span > ( ) { @ Override public void report ( Span span ) { logger . info ( span ) ; } } ; |
public class ForwardingDrawable { /** * TransformationCallback methods */
protected void getParentTransform ( Matrix transform ) { } } | if ( mTransformCallback != null ) { mTransformCallback . getTransform ( transform ) ; } else { transform . reset ( ) ; } |
public class EnumJsonSerializer { /** * { @ inheritDoc } */
@ Override public void doSerialize ( JsonWriter writer , E value , JsonSerializationContext ctx , JsonSerializerParameters params ) { } } | writer . unescapeValue ( value . name ( ) ) ; |
public class DiagnosticManager { /** * Reports an error . */
public void error ( String message , String sourceString , int position , int startPosition , int endPosition , Object info ) { } } | report ( new AnnotationReport ( Kind . ERROR , message , sourceString , position , startPosition , endPosition , info ) ) ; |
public class MDict { /** * / * Encodable */
@ Override public void encodeTo ( Encoder enc ) { } } | if ( ! isMutated ( ) ) { if ( flDict == null ) { enc . beginDict ( 0 ) ; enc . endDict ( ) ; } else { enc . writeValue ( flDict ) ; } } else { enc . beginDict ( valCount ) ; for ( Map . Entry < String , MValue > entry : valueMap . entrySet ( ) ) { final MValue value = entry . getValue ( ) ; if ( ! value . isEmpty ( ) )... |
public class H2GISFunctions { /** * Return a boolean property of the function
* @ param function
* @ param propertyKey
* @ param defaultValue
* @ return */
private static boolean getBooleanProperty ( Function function , String propertyKey , boolean defaultValue ) { } } | Object value = function . getProperty ( propertyKey ) ; return value instanceof Boolean ? ( Boolean ) value : defaultValue ; |
public class CreateSnapshotScheduleResult { /** * A list of clusters associated with the schedule . A maximum of 100 clusters is returned .
* @ return A list of clusters associated with the schedule . A maximum of 100 clusters is returned . */
public java . util . List < ClusterAssociatedToSchedule > getAssociatedClu... | if ( associatedClusters == null ) { associatedClusters = new com . amazonaws . internal . SdkInternalList < ClusterAssociatedToSchedule > ( ) ; } return associatedClusters ; |
public class ItemProcessorResolverChain { /** * Returns the { @ link ItemProcessor } to use for the given item . Iterates through the chain of resolvers until one
* of them returns a non - null processor . If non of them returns a processor , the { @ code defaultProcessor } will be
* returned . */
@ Override public... | ItemProcessor processor ; if ( CollectionUtils . isNotEmpty ( resolvers ) ) { for ( ItemProcessorResolver resolver : resolvers ) { processor = resolver . getProcessor ( item ) ; if ( processor != null ) { return processor ; } } } return defaultProcessor ; |
public class PlaintextSignatureService { /** * { @ inheritDoc } */
@ Override public String getSignature ( String baseString , String apiSecret , String tokenSecret ) { } } | try { Preconditions . checkEmptyString ( apiSecret , "Api secret cant be null or empty string" ) ; return OAuthEncoder . encode ( apiSecret ) + '&' + OAuthEncoder . encode ( tokenSecret ) ; } catch ( Exception e ) { throw new OAuthSignatureException ( baseString , e ) ; } |
public class RobustLoaderWriterResilienceStrategy { /** * Write the value to the loader - writer if it doesn ' t already exist in it . Note that the load and write pair
* is not atomic . This atomicity , if needed , should be handled by the something else .
* @ param key the key being put
* @ param value the valu... | // FIXME : Should I care about useLoaderInAtomics ?
try { try { V loaded = loaderWriter . load ( key ) ; if ( loaded != null ) { return loaded ; } } catch ( Exception e1 ) { throw ExceptionFactory . newCacheLoadingException ( e1 , e ) ; } try { loaderWriter . write ( key , value ) ; } catch ( Exception e1 ) { throw Exc... |
public class HttpInstanceSummary { /** * If you included any attributes when you registered the instance , the values of those attributes .
* @ param attributes
* If you included any attributes when you registered the instance , the values of those attributes .
* @ return Returns a reference to this object so tha... | setAttributes ( attributes ) ; return this ; |
public class FactoryEdgeDetectors { /** * Detects the edge of an object using the canny edge detector . The output can be a binary image and / or a
* graph of connected contour points .
* @ see CannyEdge
* @ see CannyEdgeDynamic
* @ param blurRadius Size of the kernel used to blur the image . Try 1 or 2
* @ p... | BlurFilter < T > blur = FactoryBlurFilter . gaussian ( ImageType . single ( imageType ) , - 1 , blurRadius ) ; ImageGradient < T , D > gradient = FactoryDerivative . three ( imageType , derivType ) ; if ( dynamicThreshold ) return new CannyEdgeDynamic < > ( blur , gradient , saveTrace ) ; else return new CannyEdge < > ... |
public class Day { /** * Find the first of a specific day in a given month . For instance
* first Tuesday of May :
* getFirstOfMonth ( Calendar . TUESDAY , Calendar . MAY , 2005 ) ;
* @ param dayOfWeek Weekday to get .
* @ param month Month of day to get .
* @ param year Year of day to get .
* @ return The ... | return Day . getNthOfMonth ( 1 , dayOfWeek , month , year ) ; |
public class BarrierBuffer { /** * Releases the blocks on all channels and resets the barrier count .
* Makes sure the just written data is the next to be consumed . */
private void releaseBlocksAndResetBarriers ( ) throws IOException { } } | LOG . debug ( "{}: End of stream alignment, feeding buffered data back." , inputGate . getOwningTaskName ( ) ) ; for ( int i = 0 ; i < blockedChannels . length ; i ++ ) { blockedChannels [ i ] = false ; } if ( currentBuffered == null ) { // common case : no more buffered data
currentBuffered = bufferBlocker . rollOverR... |
public class ConnecClient { /** * Return the url to the instance endpoint
* @ param entity
* name
* @ param customer
* group id
* @ param entity
* id
* @ return instance url */
public String getInstanceUrl ( String entityName , String groupId , String id ) { } } | return connec . getHost ( ) + getInstanceEndpoint ( entityName , groupId , id ) ; |
public class MediaPanel { /** * Add dirty regions for all our obscurers . */
protected void addObscurerDirtyRegions ( boolean changedOnly ) { } } | if ( _obscurerList != null ) { for ( Obscurer obscurer : _obscurerList ) { Rectangle obscured = obscurer . getObscured ( changedOnly ) ; if ( obscured != null ) { Point pt = new Point ( obscured . x , obscured . y ) ; SwingUtilities . convertPointFromScreen ( pt , this ) ; addObscurerDirtyRegion ( new Rectangle ( pt . ... |
public class StnemucodResource { /** * should read http : / / www . pixeldonor . com / 2013 / oct / 12 / concurrent - zip - compression - java - nio / */
@ GET @ javax . ws . rs . Path ( "/zip/{path : .*}" ) @ Produces ( "application/zip" ) public Response getDocumentsAsZip ( @ DefaultValue ( "" ) @ PathParam ( "path" ... | final StreamingOutput streamingOutput = new StreamingOutput ( ) { @ Override public void write ( OutputStream output ) throws IOException , WebApplicationException { try { final List < Path > list = documentHelper . list ( pathAsString . length ( ) == 0 ? get ( "/" ) : get ( pathAsString ) ) ; try ( ZipOutputStream zip... |
public class Jzvd { /** * / / 重力感应的时候调用的函数 , 、 、 这里有重力感应的参数 , 暂时不能删除 */
public void autoFullscreen ( float x ) { } } | if ( CURRENT_JZVD != null && ( currentState == CURRENT_STATE_PLAYING || currentState == CURRENT_STATE_PAUSE ) && currentScreen != SCREEN_WINDOW_FULLSCREEN && currentScreen != SCREEN_WINDOW_TINY ) { if ( x > 0 ) { JZUtils . setRequestedOrientation ( getContext ( ) , ActivityInfo . SCREEN_ORIENTATION_LANDSCAPE ) ; } else... |
public class BasePanel { /** * Set the default button for this basepanel .
* @ param The button to default to on return . */
public void setDefaultButton ( SBaseButton button ) { } } | this . getScreenFieldView ( ) . setDefaultButton ( button == null ? null : button . getScreenFieldView ( ) ) ; |
public class DevicesManagementApi { /** * Returns the all the tasks for a device type . ( asynchronously )
* Returns the all the tasks for a device type .
* @ param dtid Device Type ID . ( required )
* @ param count Max results count . ( optional )
* @ param offset Result starting offset . ( optional )
* @ pa... | ProgressResponseBody . ProgressListener progressListener = null ; ProgressRequestBody . ProgressRequestListener progressRequestListener = null ; if ( callback != null ) { progressListener = new ProgressResponseBody . ProgressListener ( ) { @ Override public void update ( long bytesRead , long contentLength , boolean do... |
public class BatchedTimeoutManager { /** * Stop the BatchedTimeoutManager */
public void stopTimer ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stopTimer" ) ; btmLockManager . lockExclusive ( ) ; try { // only stop if we are currently started
if ( ! isStopped ) { // set stopped to true
isStopped = true ; // iterate over the entries in the active list
LinkedListEntr... |
public class SassRubyGenerator { /** * ( non - Javadoc )
* @ see net . jawr . web . resource . bundle . generator . AbstractCachedGenerator #
* isCacheValid ( ) */
@ Override protected boolean isCacheValid ( ) { } } | String cachedUrlMode = cacheProperties . getProperty ( JawrConstant . SASS_GENERATOR_URL_MODE ) ; return super . isCacheValid ( ) && StringUtils . equals ( cachedUrlMode , config . getProperty ( JawrConstant . SASS_GENERATOR_URL_MODE , SASS_GENERATOR_DEFAULT_URL_MODE ) ) ; |
public class CmsSearchReplaceThread { /** * Search and replace function for properties . < p >
* @ param resources to be considered */
private void searchProperties ( List < CmsResource > resources ) { } } | if ( CmsSourceSearchForm . REGEX_ALL . equals ( m_settings . getSearchpattern ( ) ) ) { for ( CmsResource resource : resources ) { m_matchedResources . add ( resource ) ; getReport ( ) . println ( Messages . get ( ) . container ( Messages . RPT_SOURCESEARCH_MATCHED_0 ) , I_CmsReport . FORMAT_OK ) ; } } else { for ( Cms... |
public class FileChunker { /** * This method loops the arg baseDir and pushes the found content to the
* arg destSpace .
* @ param baseDir of content to push to DataStore
* @ param destSpaceId of content destination */
protected void addContentFrom ( File baseDir , String destSpaceId ) { } } | Collection < File > files = listFiles ( baseDir , options . getFileFilter ( ) , options . getDirFilter ( ) ) ; for ( File file : files ) { try { doAddContent ( baseDir , destSpaceId , file ) ; } catch ( Exception e ) { StringBuilder sb = new StringBuilder ( "Error: " ) ; sb . append ( "Unable to addContentFrom [" ) ; s... |
public class Args { /** * Produces the flag form of a path object , using { @ link Path # toAbsolutePath ( ) } as a string .
* @ return { @ code [ - - name , " / absolute / path " ] } or { @ code [ ] } if path is null or not set . */
static List < String > path ( String name , @ Nullable Path path ) { } } | if ( path != null && ! path . toString ( ) . isEmpty ( ) ) { return Arrays . asList ( "--" + name , path . toAbsolutePath ( ) . toString ( ) ) ; } return Collections . emptyList ( ) ; |
public class PropertyUpdate { /** * Add a new property with a specific value to the resource .
* @ param property
* The { @ link ElementDescriptor } of the property to add .
* @ param value
* The value of the property . */
public < T > void set ( ElementDescriptor < T > property , T value ) { } } | if ( mSet == null ) { mSet = new HashMap < ElementDescriptor < ? > , Object > ( 16 ) ; } mSet . put ( property , value ) ; if ( mRemove != null ) { mRemove . remove ( property ) ; } |
public class ArrayUtils { /** * < p > Converts an array of primitive booleans to objects . < / p >
* < p > This method returns < code > null < / code > for a < code > null < / code > input array . < / p >
* @ param array a < code > boolean < / code > array
* @ return a < code > Boolean < / code > array , < code >... | if ( array == null ) { return null ; } else if ( array . length == 0 ) { return EMPTY_BOOLEAN_OBJECT_ARRAY ; } final Boolean [ ] result = new Boolean [ array . length ] ; for ( int i = 0 ; i < array . length ; i ++ ) { result [ i ] = ( array [ i ] ? Boolean . TRUE : Boolean . FALSE ) ; } return result ; |
public class PersistableItemsContainer { /** * add a new element , throw a RuntimeException if the element already exists
* @ param element
* @ return the added element */
public T addElement ( T element ) { } } | // make sure that elements are initialized
getElements ( ) ; if ( ! containsElement ( this . elements , element ) ) { this . elements . add ( element ) ; element . addChangeListener ( this . elementChangeListener ) ; element . notifyState ( ) ; return element ; } throw new RuntimeException ( element . toString ( ) + " ... |
public class LanguageProfileReader { /** * Load profiles from the classpath in a specific directory .
* < p > This is usually used to load built - in profiles , shipped with the jar . < / p >
* @ param classLoader the ClassLoader to load the profiles from . Use { @ code MyClass . class . getClassLoader ( ) }
* @ ... | List < LanguageProfile > loaded = new ArrayList < > ( profileFileNames . size ( ) ) ; for ( String profileFileName : profileFileNames ) { String path = makePathForClassLoader ( profileDirectory , profileFileName ) ; try ( InputStream in = classLoader . getResourceAsStream ( path ) ) { if ( in == null ) { throw new IOEx... |
public class CMinMTTR { /** * Try to place the VMs associated on the actions in a random node while trying first to stay on the current node */
private void placeVMs ( Parameters ps , List < AbstractStrategy < ? > > strategies , List < VMTransition > actions , OnStableNodeFirst schedHeuristic , Map < IntVar , VM > map ... | IntValueSelector rnd = new WorstFit ( map , rp , new BiggestDimension ( ) ) ; if ( ! useResources ) { rnd = new RandomVMPlacement ( rp , map , true , ps . getRandomSeed ( ) ) ; } IntVar [ ] hosts = dSlices ( actions ) . map ( Slice :: getHoster ) . filter ( v -> ! v . isInstantiated ( ) ) . toArray ( IntVar [ ] :: new ... |
public class AbstractFFmpegStreamBuilder { /** * Builds the arguments
* @ param parent The parent FFmpegBuilder
* @ param pass The particular pass . For one - pass this value will be zero , for multi - pass , it will
* be 1 for the first pass , 2 for the second , and so on .
* @ return The arguments */
protecte... | checkNotNull ( parent ) ; if ( pass > 0 ) { // TODO Write a test for this :
checkArgument ( format != null , "Format must be specified when using two-pass" ) ; } ImmutableList . Builder < String > args = new ImmutableList . Builder < > ( ) ; addGlobalFlags ( parent , args ) ; if ( video_enabled ) { addVideoFlags ( pare... |
public class Form { /** * Returns the parameters containing all name value params beside submit button , image button , unchecked radio
* buttons and checkboxes and without Upload information . */
private Parameters composeParameters ( SubmitButton button , SubmitImage image , int x , int y ) { } } | Parameters params = new Parameters ( ) ; for ( FormElement element : this ) { String name = element . getName ( ) ; String value = element . getValue ( ) ; if ( element instanceof Checkable ) { if ( ( ( Checkable ) element ) . isChecked ( ) ) params . add ( name , value != null ? value : "" ) ; } else if ( element inst... |
public class RequestLaunchTemplateData { /** * One or more network interfaces .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setNetworkInterfaces ( java . util . Collection ) } or { @ link # withNetworkInterfaces ( java . util . Collection ) } if
* you w... | if ( this . networkInterfaces == null ) { setNetworkInterfaces ( new com . amazonaws . internal . SdkInternalList < LaunchTemplateInstanceNetworkInterfaceSpecificationRequest > ( networkInterfaces . length ) ) ; } for ( LaunchTemplateInstanceNetworkInterfaceSpecificationRequest ele : networkInterfaces ) { this . networ... |
public class FSElsewhere { @ Override public long getTotalSpace ( ) { } } | try { return Filess . getFileStore ( root ) . getTotalSpace ( ) ; } catch ( IOException e ) { throw u ( e ) ; } |
public class NumberUtil { /** * Return the string array that has been split using { @ link # RANGE _ PATTERN }
* @ param str string to split
* @ return string array that has been split using { @ link # RANGE _ PATTERN } */
private static String [ ] splitRange ( final String str ) { } } | if ( StringUtils . isBlank ( str ) ) { return new String [ ] { "" } ; } return str . split ( RANGE_PATTERN ) ; |
public class ManagementChannelHandler { /** * { @ inheritDoc } */
@ Override public < T , A > AsyncFuture < T > executeRequest ( final Integer operationId , final ManagementRequest < T , A > request ) throws IOException { } } | final ActiveOperation < T , A > operation = super . getActiveOperation ( operationId ) ; if ( operation == null ) { throw ProtocolLogger . ROOT_LOGGER . responseHandlerNotFound ( operationId ) ; } return executeRequest ( operation , request ) ; |
public class GosuFragment { /** * - - - - - Private helper methods */
private FragmentInstance createNewInstance ( ) { } } | try { return ( FragmentInstance ) getBackingClass ( ) . newInstance ( ) ; } catch ( InstantiationException e ) { throw new RuntimeException ( e ) ; } catch ( IllegalAccessException e ) { throw new RuntimeException ( e ) ; } |
public class RepositoryConfiguration { /** * Obtain the names of the workspaces that were listed as being predefined . This includes the name
* { @ link # getDefaultWorkspaceName ( ) default workspace } .
* @ return the set of predefined ( non - system ) workspace names ; never null */
public Set < String > getPred... | Set < String > names = new HashSet < String > ( ) ; Document workspaces = doc . getDocument ( FieldName . WORKSPACES ) ; if ( workspaces != null ) { List < ? > predefined = workspaces . getArray ( FieldName . PREDEFINED ) ; if ( predefined != null ) { for ( Object value : predefined ) { if ( value instanceof String ) n... |
public class CmsContainerpageController { /** * Calls the edit handler to prepare the given content element for editing . < p >
* @ param clientId the element id
* @ param editOption the selected edit option
* @ param callback the callback to execute */
public void prepareForEdit ( final String clientId , final S... | CmsRpcAction < CmsUUID > action = new CmsRpcAction < CmsUUID > ( ) { @ Override public void execute ( ) { getContainerpageService ( ) . prepareForEdit ( clientId , editOption , getData ( ) . getRpcContext ( ) . getPageStructureId ( ) , getData ( ) . getRequestParams ( ) , this ) ; } @ Override protected void onResponse... |
public class DefaultSentryClientFactory { /** * Creates an HTTP connection to the Sentry server .
* @ param dsn Data Source Name of the Sentry server .
* @ return an { @ link HttpConnection } to the server . */
protected Connection createHttpConnection ( Dsn dsn ) { } } | URL sentryApiUrl = HttpConnection . getSentryApiUrl ( dsn . getUri ( ) , dsn . getProjectId ( ) ) ; String proxyHost = getProxyHost ( dsn ) ; String proxyUser = getProxyUser ( dsn ) ; String proxyPass = getProxyPass ( dsn ) ; int proxyPort = getProxyPort ( dsn ) ; Proxy proxy = null ; if ( proxyHost != null ) { InetSoc... |
public class NomadScheduler { /** * Get the task spec for using the docker driver in Nomad
* In docker mode , Heron will be use in docker containers */
Task getTaskSpecDockerDriver ( Task task , String taskName , int containerIndex ) { } } | String executorBinary = Context . executorBinary ( this . clusterConfig ) ; // get arguments for heron executor command
String [ ] executorArgs = SchedulerUtils . executorCommandArgs ( this . clusterConfig , this . runtimeConfig , NomadConstants . EXECUTOR_PORTS , String . valueOf ( containerIndex ) ) ; // get complete... |
public class TransferThreadManager { /** * Act as the active side . Connect to the server and
* store the newly connected sockets in the socketPool . */
public void activeConnect ( HostPort hp , int connections ) { } } | for ( int i = 0 ; i < connections ; i ++ ) { SocketBox sbox = new ManagedSocketBox ( ) ; logger . debug ( "adding new empty socketBox to the socket pool" ) ; socketPool . add ( sbox ) ; logger . debug ( "connecting active socket " + i + "; total cached sockets = " + socketPool . count ( ) ) ; Task task = new GridFTPAct... |
public class ReferenceElement { /** * Add a reference to another users bare jid to a stanza .
* @ param stanza stanza .
* @ param begin start index of the mention in the messages body .
* @ param end end index of the mention in the messages body .
* @ param jid referenced jid . */
public static void addMention ... | URI uri ; try { uri = new URI ( "xmpp:" + jid . toString ( ) ) ; } catch ( URISyntaxException e ) { throw new AssertionError ( "Cannot create URI from bareJid." ) ; } ReferenceElement reference = new ReferenceElement ( begin , end , ReferenceElement . Type . mention , null , uri ) ; stanza . addExtension ( reference ) ... |
public class ResourceHandle { /** * property access */
public < T > T getProperty ( String key , T defaultValue ) { } } | Class < T > type = PropertyUtil . getType ( defaultValue ) ; T value = getProperty ( key , type ) ; return value != null ? value : defaultValue ; |
public class TemplateList { /** * Given a target element , find the template that best
* matches in the given XSL document , according
* to the rules specified in the xsl draft .
* @ param xctxt
* @ param targetNode
* @ param mode A string indicating the display mode .
* @ param quietConflictWarnings
* @ ... | TemplateSubPatternAssociation head = getHead ( xctxt , targetNode , dtm ) ; if ( null != head ) { // XSLT functions , such as xsl : key , need to be able to get to
// current ElemTemplateElement via a cast to the prefix resolver .
// Setting this fixes bug idkey03.
xctxt . pushNamespaceContextNull ( ) ; xctxt . pushCur... |
public class ConfigurationsInner { /** * Updates a configuration of a server .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param serverName The name of the server .
* @ param configuration... | return beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , configurationName , parameters ) . map ( new Func1 < ServiceResponse < ConfigurationInner > , ConfigurationInner > ( ) { @ Override public ConfigurationInner call ( ServiceResponse < ConfigurationInner > response ) { return response .... |
public class Filter { /** * Splits the filter from its disjunctive normal form . Or ' ng the filters
* together produces the full disjunctive normal form .
* @ return unmodifiable list of sub filters which don ' t perform any ' or '
* operations
* @ since 1.1.1 */
public List < Filter < S > > disjunctiveNormalF... | final List < Filter < S > > list = new ArrayList < Filter < S > > ( ) ; disjunctiveNormalForm ( ) . accept ( new Visitor < S , Object , Object > ( ) { @ Override public Object visit ( AndFilter < S > filter , Object param ) { list . add ( filter ) ; return null ; } @ Override public Object visit ( PropertyFilter < S > ... |
public class CommerceOrderPaymentLocalServiceBaseImpl { /** * Creates a new commerce order payment with the primary key . Does not add the commerce order payment to the database .
* @ param commerceOrderPaymentId the primary key for the new commerce order payment
* @ return the new commerce order payment */
@ Overr... | return commerceOrderPaymentPersistence . create ( commerceOrderPaymentId ) ; |
public class PageFlowContext { /** * Factory method that will return the < code > PageFlowContext < / code > object to the caller .
* @ return A < code > PageFlowContext < / code > that is associated with the tread . */
public static PageFlowContext getContext ( ) { } } | PageFlowContext ctxt = ( PageFlowContext ) pageflowContext . get ( ) ; if ( ctxt == null ) { ctxt = new PageFlowContext ( ) ; pageflowContext . set ( ctxt ) ; } return ctxt ; |
public class BuildStepCompatibilityLayer { /** * { @ inheritDoc }
* @ return Delegates to { @ link SimpleBuildStep # perform ( Run , FilePath , Launcher , TaskListener ) } if possible , always returning true or throwing an error . */
@ Override public boolean perform ( AbstractBuild < ? , ? > build , Launcher launche... | if ( this instanceof SimpleBuildStep ) { // delegate to the overloaded version defined in SimpleBuildStep
FilePath workspace = build . getWorkspace ( ) ; if ( workspace == null ) { throw new AbortException ( "no workspace for " + build ) ; } ( ( SimpleBuildStep ) this ) . perform ( build , workspace , launcher , listen... |
public class SubnetworkId { /** * Returns a subnetwork identity given the region identity and the subnetwork name . The subnetwork
* name must be 1-63 characters long and comply with RFC1035 . Specifically , the name must match
* the regular expression { @ code [ a - z ] ( [ - a - z0-9 ] * [ a - z0-9 ] ) ? } which ... | return new SubnetworkId ( regionId . getProject ( ) , regionId . getRegion ( ) , subnetwork ) ; |
public class DCacheBase { /** * This is a helper method to initialize event source for invalidation listener */
private boolean initEventSource ( ) { } } | boolean success = false ; try { eventSource = ServerCache . cacheUnit . createEventSource ( cacheConfig . useListenerContext , cacheName ) ; } catch ( Exception ex ) { com . ibm . ws . ffdc . FFDCFilter . processException ( ex , "com.ibm.ws.cache.Cache.initEventSource" , "3289" , this ) ; } if ( eventSource != null ) {... |
public class DefaultElementProducer { /** * leaves object creation to the first styler in the list
* @ param < E >
* @ param stylers
* @ param data
* @ param clazz
* @ return
* @ throws VectorPrintException */
public < E extends Element > E createElementByStyler ( Collection < ? extends BaseStyler > stylers... | // pdfptable , Section and others do not have a default constructor , a styler creates it
E e = null ; return styleHelper . style ( e , data , stylers ) ; |
public class SnowflakeFileTransferAgent { /** * A callable that can be executed in a separate thread using exeuctor service .
* The callable does compression if needed and upload the result to the
* table ' s staging area .
* @ param stage information about the stage
* @ param srcFilePath source file path
* @... | return new Callable < Void > ( ) { public Void call ( ) throws Exception { logger . debug ( "Entering getUploadFileCallable..." ) ; InputStream uploadStream = inputStream ; File fileToUpload = null ; if ( uploadStream == null ) { try { uploadStream = new FileInputStream ( srcFilePath ) ; } catch ( FileNotFoundException... |
public class SnomedCoderService { /** * Return some docs about how to call this webservice */
@ GET @ Produces ( MediaType . TEXT_PLAIN ) public InputStream doc ( ) throws IOException { } } | // noinspection ConstantConditions
return getClass ( ) . getClassLoader ( ) . getResource ( "SnomedCoderService_help.txt" ) . openStream ( ) ; |
public class BridgeMethodResolver { /** * If the supplied { @ link Class } has a declared { @ link Method } whose signature matches
* that of the supplied { @ link Method } , then this matching { @ link Method } is returned ,
* otherwise { @ code null } is returned . */
private static Method searchForMatch ( Class ... | return ReflectionUtils . findMethod ( type , bridgeMethod . getName ( ) , bridgeMethod . getParameterTypes ( ) ) ; |
public class DrizzlePreparedStatement { /** * Executes the SQL statement in this < code > PreparedStatement < / code > object , which must be an SQL Data Manipulation
* Language ( DML ) statement , such as < code > INSERT < / code > , < code > UPDATE < / code > or < code > DELETE < / code > ; or an SQL
* statement ... | startTimer ( ) ; try { setQueryResult ( getProtocol ( ) . executeQuery ( dQuery ) ) ; dQuery . clearParameters ( ) ; } catch ( QueryException e ) { throw SQLExceptionMapper . get ( e ) ; } finally { stopTimer ( ) ; } if ( getQueryResult ( ) . getResultSetType ( ) != ResultSetType . MODIFY ) { throw SQLExceptionMapper .... |
public class ImgUtil { /** * 将图片对象转换为Base64形式
* @ param image 图片对象
* @ param imageType 图片类型
* @ return Base64的字符串表现形式
* @ since 4.1.8 */
public static String toBase64 ( Image image , String imageType ) { } } | final ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; write ( image , imageType , out ) ; return Base64 . encode ( out . toByteArray ( ) ) ; |
public class JDBCStorageConnection { /** * The method < code > traverseQPath < / code > implemented thanks to simple queries . It allows
* to use Simple Queries instead of Complex Queries when complex queries are much slower such
* as with HSQLDB for example . */
protected QPath traverseQPathSQ ( String cpid ) thro... | // get item by Identifier usecase
List < QPathEntry > qrpath = new ArrayList < QPathEntry > ( ) ; // reverted path
String caid = cpid ; // container ancestor id
do { ResultSet parent = findItemByIdentifier ( caid ) ; try { if ( ! parent . next ( ) ) { throw new InvalidItemStateException ( "Parent not found, uuid: " + g... |
public class FetchConfFile { /** * 进行下载 */
@ Override public < T > T call ( ) throws Exception { } } | // 删除临时文件
// LOGGER . info ( " start to remove tmp download file : " + " "
// + localTmpFile . getAbsolutePath ( ) ) ;
if ( localTmpFile . exists ( ) ) { localTmpFile . delete ( ) ; } // start tp download
LOGGER . debug ( "start to download. From: " + remoteUrl + " , TO: " + localTmpFile . getAbsolutePath ( ) ) ; // 下载... |
public class AWSStorageGatewayClient { /** * Updates a gateway ' s metadata , which includes the gateway ' s name and time zone . To specify which gateway to
* update , use the Amazon Resource Name ( ARN ) of the gateway in your request .
* < note >
* For Gateways activated after September 2 , 2015 , the gateway ... | request = beforeClientExecution ( request ) ; return executeUpdateGatewayInformation ( request ) ; |
public class RingbufferContainer { /** * Reads the item at the specified sequence or loads it from the ringbuffer
* store if one is enabled . The type of the returned object is equal to the
* ringbuffer format . */
private Object readOrLoadItem ( long sequence ) { } } | Object item ; if ( sequence < ringbuffer . headSequence ( ) && store . isEnabled ( ) ) { item = store . load ( sequence ) ; } else { item = ringbuffer . read ( sequence ) ; } return item ; |
public class IpcLogEntry { /** * Set the server ASG for the request . In the case of the client side this will be
* automatically filled in if the { @ link NetflixHeader # ASG } is specified on the server
* response . The ASG value must follow the
* < a href = " https : / / github . com / Netflix / iep / tree / m... | this . serverAsg = asg ; if ( serverApp == null || serverCluster == null ) { ServerGroup group = ServerGroup . parse ( asg ) ; serverApp = ( serverApp == null ) ? group . app ( ) : serverApp ; serverCluster = ( serverCluster == null ) ? group . cluster ( ) : serverCluster ; } return this ; |
public class InstallUtil { /** * Get the last saved Jenkins instance version .
* @ return The last saved Jenkins instance version .
* @ see # saveLastExecVersion ( ) */
public static @ Nonnull String getLastExecVersion ( ) { } } | File lastExecVersionFile = getLastExecVersionFile ( ) ; if ( lastExecVersionFile . exists ( ) ) { try { String version = FileUtils . readFileToString ( lastExecVersionFile ) ; // JENKINS - 37438 blank will force the setup
// wizard regardless of current state of the system
if ( StringUtils . isBlank ( version ) ) { ret... |
public class DeleteConfigRuleRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteConfigRuleRequest deleteConfigRuleRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteConfigRuleRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteConfigRuleRequest . getConfigRuleName ( ) , CONFIGRULENAME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request... |
public class Processor { /** * The processor parameters .
* @ param parameters
* The processor parameters . */
public void setParameters ( java . util . Collection < ProcessorParameter > parameters ) { } } | if ( parameters == null ) { this . parameters = null ; return ; } this . parameters = new java . util . ArrayList < ProcessorParameter > ( parameters ) ; |
public class LazyDataObject { public Object put ( String key , Object o ) { } } | explode ( ) ; return delegee . put ( key , o ) ; |
public class ViolationEventMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ViolationEvent violationEvent , ProtocolMarshaller protocolMarshaller ) { } } | if ( violationEvent == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( violationEvent . getViolationId ( ) , VIOLATIONID_BINDING ) ; protocolMarshaller . marshall ( violationEvent . getThingName ( ) , THINGNAME_BINDING ) ; protocolMarshaller... |
public class LineItemSummary { /** * Gets the deliveryIndicator value for this LineItemSummary .
* @ return deliveryIndicator * Indicates how well the line item has been performing . This
* attribute is
* readonly and is populated by Google . This will be
* { @ code null } if the
* delivery indicator informat... | return deliveryIndicator ; |
public class SQLTable { /** * This is the getter method for instance variable { @ link # types } .
* @ return value of instance variable { @ link # types }
* @ see # types
* @ throws CacheReloadException on error */
public Set < Type > getTypes ( ) throws CacheReloadException { } } | final Set < Type > ret = new HashSet < > ( ) ; for ( final Long id : this . types ) { ret . add ( Type . get ( id ) ) ; } return Collections . unmodifiableSet ( ret ) ; |
public class LoaderUtil { /** * Loads a class by name . This method respects the { @ link # IGNORE _ TCCL _ PROPERTY } Log4j property . If this property is
* specified and set to anything besides { @ code false } , then the default ClassLoader will be used .
* @ param className The class name .
* @ return the Cla... | if ( isIgnoreTccl ( ) ) { return Class . forName ( className ) ; } try { return getThreadContextClassLoader ( ) . loadClass ( className ) ; } catch ( final Throwable ignored ) { return Class . forName ( className ) ; } |
public class SignerUtils { /** * Converts the given data to be safe for use in signed URLs for a private
* distribution by using specialized Base64 encoding . */
public static String makeBytesUrlSafe ( byte [ ] bytes ) { } } | byte [ ] encoded = Base64 . encode ( bytes ) ; for ( int i = 0 ; i < encoded . length ; i ++ ) { switch ( encoded [ i ] ) { case '+' : encoded [ i ] = '-' ; continue ; case '=' : encoded [ i ] = '_' ; continue ; case '/' : encoded [ i ] = '~' ; continue ; default : continue ; } } return new String ( encoded , UTF8 ) ; |
public class ClientAppBase { /** * The static method to print a log message to the console .
* @ param className Name of the class that prints this message .
* @ param msg The log message that needs to be printed .
* @ param args The arguments that may be needed for formatting the message . */
protected static vo... | if ( args != null ) { msg = String . format ( msg , args ) ; } String header = String . format ( "%s [%s] " , ZonedDateTime . now ( ) . format ( TIME_FORMAT ) , className ) ; System . out . println ( String . format ( "%s%s" , header , msg . replaceAll ( "\n" , "\n" + header ) ) ) ; |
public class BinaryJedis { /** * Select the DB with having the specified zero - based numeric index . For default every new client
* connection is automatically selected to DB 0.
* @ param index
* @ return Status code reply */
@ Override public String select ( final int index ) { } } | checkIsInMultiOrPipeline ( ) ; client . select ( index ) ; String statusCodeReply = client . getStatusCodeReply ( ) ; client . setDb ( index ) ; return statusCodeReply ; |
public class DefaultEntityHandler { /** * UPDATE SQL生成
* @ param metadata エンティティメタ情報
* @ param type エイティティタイプ
* @ param sqlConfig SQLコンフィグ
* @ param addCondition 条件を追加するかどうか 。 追加する場合 < code > true < / code >
* @ return UPDATE SQL */
protected String buildUpdateSQL ( final TableMetadata metadata , final Cla... | StringBuilder sql = new StringBuilder ( "UPDATE " ) . append ( "/* " ) . append ( sqlConfig . getSqlAgentFactory ( ) . getSqlIdKeyName ( ) ) . append ( " */" ) . append ( " " ) . append ( metadata . getTableIdentifier ( ) ) . append ( " SET " ) . append ( System . lineSeparator ( ) ) ; Map < String , MappingColumn > ma... |
public class GCLINERGImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case AfplibPackage . GCLINERG__XPOS : setXPOS ( ( Integer ) newValue ) ; return ; case AfplibPackage . GCLINERG__YPOS : setYPOS ( ( Integer ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ; |
public class CalendarFormatterBase { /** * Format the day of the month , optionally zero - padded . */
void formatDayOfMonth ( StringBuilder b , ZonedDateTime d , int width ) { } } | int day = d . getDayOfMonth ( ) ; zeroPad2 ( b , day , width ) ; |
public class HelpSearchService { /** * Index all HTML files within the content of the help module .
* @ param helpModule Help module to be indexed . */
@ Override public void indexHelpModule ( HelpModule helpModule ) { } } | try { if ( indexTracker . isSame ( helpModule ) ) { return ; } unindexHelpModule ( helpModule ) ; log . info ( "Indexing help module " + helpModule . getLocalizedId ( ) ) ; int i = helpModule . getUrl ( ) . lastIndexOf ( '/' ) ; String pattern = "classpath:" + helpModule . getUrl ( ) . substring ( 0 , i + 1 ) + "*.htm*... |
public class MapComposedElement { /** * Replies the specified point at the given index in the specified group .
* @ param groupIndex is the index of the group
* @ param indexInGroup is the index of the point in the group ( 0 for the
* first point of the group . . . ) .
* @ return the point
* @ throws IndexOut... | final int startIndex = firstInGroup ( groupIndex ) ; // Besure that the member ' s index is in the group index ' s range
final int groupMemberCount = getPointCountInGroup ( groupIndex ) ; if ( indexInGroup < 0 ) { throw new IndexOutOfBoundsException ( indexInGroup + "<0" ) ; // $ NON - NLS - 1 $
} if ( indexInGroup >= ... |
public class URLConnection { /** * Call this routine to get the content - type associated with this
* object . */
public String getContentType ( ) { } } | if ( contentType == null ) contentType = getHeaderField ( "content-type" ) ; if ( contentType == null ) { String ct = null ; try { ct = guessContentTypeFromStream ( getInputStream ( ) ) ; } catch ( java . io . IOException e ) { } String ce = properties . findValue ( "content-encoding" ) ; if ( ct == null ) { ct = prope... |
public class FeatureFileParser { /** * If parsedFeature has no configurations then we can return a single item list containg the parsedFeature
* If configurations are present we need to return a list with one feature per supported configuration
* @ param configurationNames
* @ param parsedFeature
* @ return */
... | List < FeatureToken > results = new ArrayList < > ( ) ; if ( parsedFeature != null ) { if ( configurationNames == null ) { results . add ( parsedFeature ) ; } else { createFeaturesWithConfigurations ( configurationNames , parsedFeature , results ) ; } } return results ; |
public class VoiceApi { /** * Remove a key / value pair from user data
* Delete data with the specified key from the call & # 39 ; s user data .
* @ param id The connection ID of the call . ( required )
* @ param keyData ( required )
* @ return ApiResponse & lt ; ApiSuccessResponse & gt ;
* @ throws ApiExcept... | com . squareup . okhttp . Call call = deleteUserDataPairValidateBeforeCall ( id , keyData , null , null ) ; Type localVarReturnType = new TypeToken < ApiSuccessResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; |
public class FctBnAccEntitiesProcessors { /** * < p > Get sales invoice good line utility . < / p >
* @ param pAddParam additional param
* @ return sales invoice good line utility
* @ throws Exception - an exception */
protected final UtlInvLine < RS , SalesInvoice , SalesInvoiceLine , SalesInvoiceTaxLine , Sales... | UtlInvLine < RS , SalesInvoice , SalesInvoiceLine , SalesInvoiceTaxLine , SalesInvoiceGoodsTaxLine > utlInvLn = this . utlSalInvGdLn ; if ( utlInvLn == null ) { utlInvLn = new UtlInvLine < RS , SalesInvoice , SalesInvoiceLine , SalesInvoiceTaxLine , SalesInvoiceGoodsTaxLine > ( ) ; utlInvLn . setUtlInvBase ( lazyGetUtl... |
public class FilterInvoker { /** * 取得方法的特殊参数配置
* @ param methodName 方法名
* @ param paramKey 参数关键字
* @ param defaultValue 默认值
* @ return 都找不到为false boolean method param */
protected boolean getBooleanMethodParam ( String methodName , String paramKey , boolean defaultValue ) { } } | if ( CommonUtils . isEmpty ( configContext ) ) { return defaultValue ; } Boolean o = ( Boolean ) configContext . get ( buildMethodKey ( methodName , paramKey ) ) ; if ( o == null ) { o = ( Boolean ) configContext . get ( paramKey ) ; return o == null ? defaultValue : o ; } else { return o ; } |
public class TransformProcess { /** * Based on the input schema ,
* map raw string values to the appropriate
* writable
* @ param values the values to convert
* @ return the transformed values based on the schema */
public List < Writable > transformRawStringsToInputList ( List < String > values ) { } } | List < Writable > ret = new ArrayList < > ( ) ; if ( values . size ( ) != initialSchema . numColumns ( ) ) throw new IllegalArgumentException ( String . format ( "Number of values %d does not match the number of input columns %d for schema" , values . size ( ) , initialSchema . numColumns ( ) ) ) ; for ( int i = 0 ; i ... |
public class ScriptController { /** * Get a specific script
* @ param model
* @ param scriptIdentifier
* @ return
* @ throws Exception */
@ RequestMapping ( value = "/api/scripts/{scriptIdentifier}" , method = RequestMethod . GET ) public @ ResponseBody Script getScript ( Model model , @ PathVariable String scr... | return ScriptService . getInstance ( ) . getScript ( Integer . parseInt ( scriptIdentifier ) ) ; |
public class CheckArg { /** * Checks that the iterator is not empty , and throws an exception if it is .
* @ param argument the iterator to check
* @ param name The name of the argument
* @ throws IllegalArgumentException If iterator is empty ( i . e . , iterator . hasNext ( ) returns false ) */
public static voi... | isNotNull ( argument , name ) ; if ( ! argument . hasNext ( ) ) { throw new IllegalArgumentException ( CommonI18n . argumentMayNotBeEmpty . text ( name ) ) ; } |
public class VarExporter { /** * Load the dynamic variable object .
* @ param variableName name of variable
* @ param < T > The data type of the exported variable .
* @ return Null if the variable was not found . The value otherwise . */
@ Override @ SuppressWarnings ( "unchecked" ) public < T > Variable < T > ge... | final String [ ] subTokens = getSubVariableTokens ( variableName ) ; if ( subTokens != null ) { final Variable < T > sub = getSubVariable ( subTokens [ 0 ] , subTokens [ 1 ] ) ; if ( sub != null ) { return sub ; } } final Variable < T > v ; synchronized ( variables ) { v = variables . get ( variableName ) ; } return v ... |
public class AwsSecurityFinding { /** * A list of name / value string pairs associated with the finding . These are custom , user - defined fields added to a
* finding .
* @ param userDefinedFields
* A list of name / value string pairs associated with the finding . These are custom , user - defined fields added
... | setUserDefinedFields ( userDefinedFields ) ; return this ; |
public class ServerWebExchangeLimiterBuilder { /** * Partition the limit by header .
* @ param name header name
* @ return Chainable builder */
public ServerWebExchangeLimiterBuilder partitionByHeader ( String name ) { } } | return partitionResolver ( exchange -> exchange . getRequest ( ) . getHeaders ( ) . getFirst ( name ) ) ; |
public class AppServiceEnvironmentsInner { /** * Get properties of a multi - role pool .
* Get properties of a multi - role pool .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param name Name of the App Service Environment .
* @ throws IllegalArgumentException throw... | return getMultiRolePoolWithServiceResponseAsync ( resourceGroupName , name ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class GutmanSplitStrategy { /** * This algorithm is from the original paper .
* Algorithm Split . Divide a set of M + 1 index entries into two groups .
* S1 . [ Pick first entry for each group ] . Apply Algorithm { @ link # pickSeeds ( List ) } to choose
* two entries to be the first elements of the groups... | List < Node > children = Lists . newArrayList ( node . getChildren ( ) ) ; Node [ ] seeds = pickSeeds ( children ) ; node . clear ( ) ; node . addChild ( seeds [ 0 ] ) ; node . addToBitmapIndex ( seeds [ 0 ] ) ; Node group1 = new Node ( seeds [ 1 ] . getMinCoordinates ( ) . clone ( ) , seeds [ 1 ] . getMaxCoordinates (... |
public class Kv { /** * key 存在 , 并且 value 为 false , 则返回 true */
public boolean isFalse ( Object key ) { } } | Object value = get ( key ) ; return ( value instanceof Boolean && ( ( Boolean ) value == false ) ) ; |
public class Geldbetrag { /** * Wandelt den angegebenen MonetaryAmount in einen Geldbetrag um . Um die
* Anzahl von Objekten gering zu halten , wird nur dann tatsaechlich eine
* neues Objekt erzeugt , wenn es sich nicht vermeiden laesst .
* In Anlehnung an { @ link BigDecimal } heisst die Methode " valueOf " .
... | return valueOf ( value , Waehrung . toCurrency ( currency ) ) ; |
public class TableProcessor { /** * Populate metadata .
* @ param < X >
* the generic type
* @ param < T >
* the generic type
* @ param metaModelBuilder
* the metaModelBuilder */
private < X , T > void onBuildMetaModelSuperClass ( Class < ? super X > clazz , MetaModelBuilder < X , T > metaModelBuilder ) { }... | if ( clazz != null && clazz . isAnnotationPresent ( javax . persistence . Entity . class ) ) { while ( clazz != null && clazz . isAnnotationPresent ( javax . persistence . Entity . class ) ) { metaModelBuilder . process ( ( Class < X > ) clazz ) ; for ( Field f : clazz . getDeclaredFields ( ) ) { if ( f != null && ! Mo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.