signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Reflecter { /** * Returns the property value to which the specified property name
* @ param propName
* @ return */
public < F > F val ( String propName ) { } } | Triple < String , Field , Reflecter < Object > > triple = getNestRefInfo ( propName ) ; return triple . getR ( ) . getPropVal ( triple . getC ( ) , triple . getL ( ) ) ; |
public class MemcachedNodesManager { /** * Mark the given nodeId as available as specified .
* @ param nodeId the nodeId to update
* @ param available specifies if the node was abailable or not */
public void setNodeAvailable ( @ Nullable final String nodeId , final boolean available ) { } } | if ( _nodeIdService != null ) { _nodeIdService . setNodeAvailable ( nodeId , available ) ; } |
public class ST_Drape { /** * Drape a multilinestring to a set of triangles
* @ param polygons
* @ param triangles
* @ param sTRtree
* @ return */
public static Geometry drapeMultiPolygon ( MultiPolygon polygons , Geometry triangles , STRtree sTRtree ) { } } | GeometryFactory factory = polygons . getFactory ( ) ; // Split the triangles in lines to perform all intersections
Geometry triangleLines = LinearComponentExtracter . getGeometry ( triangles , true ) ; int nbPolygons = polygons . getNumGeometries ( ) ; Polygon [ ] polygonsDiff = new Polygon [ nbPolygons ] ; for ( int i... |
public class Instance { /** * A string map that contains the following information for the service that you specify in < code > ServiceId < / code > :
* < ul >
* < li >
* The attributes that apply to the records that are defined in the service .
* < / li >
* < li >
* For each attribute , the applicable valu... | setAttributes ( attributes ) ; return this ; |
public class GlobalDSFactory { /** * 获取默认的数据源工厂 , 读取默认数据库配置文件 < br >
* 此处使用懒加载模式 , 在第一次调用此方法时才创建默认数据源工厂 < br >
* 如果想自定义全局的数据源工厂 , 请在第一次调用此方法前调用 { @ link # set ( DSFactory ) } 方法自行定义
* @ return 当前使用的数据源工厂 */
public static DSFactory get ( ) { } } | if ( null == factory ) { synchronized ( lock ) { if ( null == factory ) { factory = DSFactory . create ( null ) ; } } } return factory ; |
public class CmsPrincipalSelectDialog { /** * Init ComboBox for choosing type of principal . < p >
* @ param defaultType Default mode to open */
private void initTypeCombo ( WidgetType defaultType ) { } } | IndexedContainer container = new IndexedContainer ( ) ; container . addContainerProperty ( "caption" , String . class , "" ) ; Item item = container . addItem ( WidgetType . groupwidget ) ; item . getItemProperty ( "caption" ) . setValue ( CmsVaadinUtils . getMessageText ( Messages . GUI_USERMANAGEMENT_GROUP_0 ) ) ; it... |
public class FloatMapper { /** * { @ inheritDoc } */
@ Override public Optional < Field > sortedField ( String name , Float value ) { } } | int sortable = NumericUtils . floatToSortableInt ( value ) ; return Optional . of ( new SortedNumericDocValuesField ( name , sortable ) ) ; |
public class AbstractSpreadSheetExporter { /** * Gets a 2 dimensional string array representation of the CSV export
* data ready to be written to a CSV file .
* @ param textNodes the nodes to get the values for
* @ param masterLanguage the masterLanguage
* @ param language the language
* @ param status the st... | int numberOfColumns = ( masterLanguage . equals ( language ) ) ? 4 : 5 ; List < String [ ] > rows = new ArrayList < > ( ) ; // add the header row
rows . add ( getHeaderRow ( masterLanguage , new String [ ] { language } ) ) ; for ( ITextNode textNode : textNodes ) { IValueNode valueNode = textNode . getValueNode ( langu... |
public class VerifyWebhook { /** * Verify Challenge Data
* @ return boolean whether challenge passed or not */
public Boolean challenge ( ) { } } | if ( ( this . hub_mode . equals ( "subscribe" ) ) && ( this . hub_verify_token . equals ( this . configs . get ( "verify_token" , "" ) ) ) ) { Logger . info ( "Verify token validated successfully." ) ; return true ; } Logger . error ( "Error validating verify token." ) ; return false ; |
public class BorderLayoutRenderer { /** * Paints the given WPanel ' s children .
* @ param component the container to paint .
* @ param renderContext the RenderContext to paint to . */
@ Override public void doRender ( final WComponent component , final WebXmlRenderContext renderContext ) { } } | WPanel panel = ( WPanel ) component ; XmlStringBuilder xml = renderContext . getWriter ( ) ; BorderLayout layout = ( BorderLayout ) panel . getLayout ( ) ; Size hgap = layout . getHorizontalGap ( ) ; String hgapString = hgap == null ? null : hgap . toString ( ) ; Size vgap = layout . getVerticalGap ( ) ; String vgapStr... |
public class IQConverterImpl { /** * Recursive */
private void insertChildren ( QueryNode parentNode , ImmutableList < IQTree > childrenTrees , IntermediateQueryBuilder queryBuilder ) { } } | AtomicInteger i = new AtomicInteger ( 0 ) ; childrenTrees . stream ( ) . map ( IQTree :: getRootNode ) . map ( n -> queryBuilder . contains ( n ) ? n . clone ( ) : n ) . forEach ( t -> insertChildTree ( parentNode , t , childrenTrees . get ( i . get ( ) ) , queryBuilder , i . getAndIncrement ( ) ) ) ; |
public class LdapAuthFilter { /** * Calls an external API to get the user profile using a given access token .
* @ param app the app where the user will be created , use null for root app
* @ param accessToken access token - in the case of LDAP this is should be " uid : password "
* @ return { @ link UserAuthenti... | UserAuthentication userAuth = null ; if ( accessToken != null && accessToken . contains ( Config . SEPARATOR ) ) { String [ ] parts = accessToken . split ( Config . SEPARATOR , 2 ) ; String username = parts [ 0 ] ; String password = parts [ 1 ] ; try { Authentication auth = new LDAPAuthentication ( username , password ... |
public class StatisticalMoments { /** * Get the kurtosis using sample variance .
* Note : this formula does < em > not < / em > include the correction factor , such
* that a normal distribution should be 0.
* @ return Kurtosis */
public double getSampleKurtosis ( ) { } } | if ( ! ( m2 > 0 ) || ! ( n > 3 ) ) { throw new ArithmeticException ( "Kurtosis not defined when variance is 0 or weight <= 3.0!" ) ; } final double nm1 = n - 1. ; return ( nm1 / ( ( n - 2. ) * ( n - 3. ) ) ) * ( n * ( n + 1 ) * m4 / ( m2 * m2 ) - 3 * nm1 ) + 3 ; |
public class AbstractHTTPDestination { /** * ( non - Javadoc )
* @ see org . apache . cxf . transport . AbstractMultiplexDestination # getId ( java . util . Map ) */
@ Override public String getId ( Map < String , Object > context ) { } } | String id = null ; if ( isMultiplexWithAddress ( ) ) { String address = ( String ) context . get ( Message . PATH_INFO ) ; if ( null != address ) { int afterLastSlashIndex = address . lastIndexOf ( "/" ) + 1 ; if ( afterLastSlashIndex > 0 && afterLastSlashIndex < address . length ( ) ) { id = address . substring ( afte... |
public class ObjectVector { /** * Tell if the table contains the given Object .
* @ param s object to look for
* @ return true if the object is in the list */
public final boolean contains ( Object s ) { } } | for ( int i = 0 ; i < m_firstFree ; i ++ ) { if ( m_map [ i ] == s ) return true ; } return false ; |
public class Rebalancer { /** * Support four different stages < br >
* For normal operation :
* < pre >
* | swapRO | changeClusterMetadata | changeRebalanceState | Order |
* | f | t | t | rebalance - > cluster |
* | f | f | t | rebalance |
* | t | t | f | cluster - > swap |
* | t | t | t | rebalance - > c... | Cluster currentCluster = metadataStore . getCluster ( ) ; List < StoreDefinition > currentStoreDefs = metadataStore . getStoreDefList ( ) ; logger . info ( "Server doing rebalance state change with options [ cluster metadata change - " + changeClusterAndStoresMetadata + " ], [ changing rebalancing state - " + changeReb... |
public class ThreadsProcessingItem { /** * Process the received event . */
public void processEvent ( ContentEvent event , int counter ) { } } | if ( this . piInstances == null || this . piInstances . size ( ) < this . getParallelism ( ) ) throw new IllegalStateException ( "ThreadsWorkerProcessingItem(s) need to be setup before process any event (i.e. in ThreadsTopology.start())." ) ; ThreadsProcessingItemInstance piInstance = this . piInstances . get ( counter... |
public class Item { /** * Queries multiple descriptor node text values . First looks in the properties , if not found it executes the XPath
* query . */
@ SuppressWarnings ( "unchecked" ) public List < String > queryDescriptorValues ( String xpathQuery ) { } } | if ( descriptorDom != null ) { List < String > value = ( List < String > ) getProperty ( xpathQuery ) ; if ( CollectionUtils . isEmpty ( value ) ) { value = XmlUtils . selectNodeValues ( descriptorDom , xpathQuery ) ; } return value ; } else { return Collections . emptyList ( ) ; } |
public class SimpleDateFormat { /** * Matches text ( starting at pos ) with patl . Returns the new pos , and sets complete [ 0]
* if it matched the entire text . Whitespace sequences are treated as singletons .
* < p > If isLenient and if we fail to match the first time , some special hacks are put into place .
*... | int originalPos = pos ; String patternLiteral = ( String ) items [ itemIndex ] ; int plen = patternLiteral . length ( ) ; int tlen = text . length ( ) ; int idx = 0 ; while ( idx < plen && pos < tlen ) { char pch = patternLiteral . charAt ( idx ) ; char ich = text . charAt ( pos ) ; if ( PatternProps . isWhiteSpace ( p... |
public class P3_UpdateOp { /** * / / / / / 拦截器 */
private < T > void doInterceptBeforeUpdate ( List < Object > tList , String setSql , List < Object > setSqlArgs ) { } } | for ( DBHelperInterceptor interceptor : interceptors ) { boolean isContinue = interceptor . beforeUpdate ( tList , setSql , setSqlArgs ) ; if ( ! isContinue ) { throw new NotAllowQueryException ( "interceptor class:" + interceptor . getClass ( ) ) ; } } |
public class CPDefinitionSpecificationOptionValuePersistenceImpl { /** * Clears the cache for the cp definition specification option value .
* The { @ link EntityCache } and { @ link FinderCache } are both cleared by this method . */
@ Override public void clearCache ( CPDefinitionSpecificationOptionValue cpDefinitio... | entityCache . removeResult ( CPDefinitionSpecificationOptionValueModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionSpecificationOptionValueImpl . class , cpDefinitionSpecificationOptionValue . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLAS... |
public class JobsInner { /** * Retrieve a list of jobs .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the PagedList & lt ; JobInner & gt ; object */
public Observa... | return listByAutomationAccountNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < JobInner > > , Page < JobInner > > ( ) { @ Override public Page < JobInner > call ( ServiceResponse < Page < JobInner > > response ) { return response . body ( ) ; } } ) ; |
public class WebServiceRefBinding { /** * This method is called when an @ WebServiceRef annotation with a name that has already been processed is found on
* additional fields or methods . This allows us to validate and augment any existing metadata for this service
* reference . */
@ Override public void merge ( We... | mergeWSRInfo ( webServiceRef , instanceClass , member ) ; // The former value should override the later one , i . e . the settings in DD should override the ones in annotation ,
// but we prefer the subclass .
Class < ? > annoType = webServiceRef . type ( ) ; if ( ! annoType . getName ( ) . equals ( Object . class . ge... |
public class ListenerMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Listener listener , ProtocolMarshaller protocolMarshaller ) { } } | if ( listener == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listener . getListenerArn ( ) , LISTENERARN_BINDING ) ; protocolMarshaller . marshall ( listener . getPortRanges ( ) , PORTRANGES_BINDING ) ; protocolMarshaller . marshall ( li... |
public class NodeReportsInner { /** * Retrieve the Dsc node report list by node id .
* @ param resourceGroupName Name of an Azure Resource group .
* @ param automationAccountName The name of the automation account .
* @ param nodeId The parameters supplied to the list operation .
* @ param filter The filter to ... | return listByNodeSinglePageAsync ( resourceGroupName , automationAccountName , nodeId , filter ) . concatMap ( new Func1 < ServiceResponse < Page < DscNodeReportInner > > , Observable < ServiceResponse < Page < DscNodeReportInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < DscNodeReportInner >... |
public class BackoffStrategies { /** * Returns a strategy that waits a random amount of time before retrying .
* @ param maximumTime the maximum time to wait
* @ param timeUnit the unit of the maximum time
* @ return a backoff strategy with a random wait time
* @ throws IllegalStateException if the maximum wait... | Preconditions . checkNotNull ( timeUnit , "The time unit may not be null" ) ; return new RandomBackoffStrategy ( 0L , timeUnit . toMillis ( maximumTime ) ) ; |
public class GJChronology { /** * Convert a datetime from one chronology to another . */
private static long convertByWeekyear ( final long instant , Chronology from , Chronology to ) { } } | long newInstant ; newInstant = to . weekyear ( ) . set ( 0 , from . weekyear ( ) . get ( instant ) ) ; newInstant = to . weekOfWeekyear ( ) . set ( newInstant , from . weekOfWeekyear ( ) . get ( instant ) ) ; newInstant = to . dayOfWeek ( ) . set ( newInstant , from . dayOfWeek ( ) . get ( instant ) ) ; newInstant = to... |
public class KDTree { /** * Returns the maximum attribute width of instances / points
* in a KDTreeNode relative to the whole dataset .
* @ param nodeRanges The attribute ranges of the
* KDTreeNode whose maximum relative width is to be
* determined .
* @ param universe The attribute ranges of the whole
* da... | int widest = widestDim ( nodeRanges , universe ) ; if ( widest < 0 ) return 0.0 ; else return nodeRanges [ widest ] [ WIDTH ] / universe [ widest ] [ WIDTH ] ; |
public class MemoryMapArchiveBase { /** * { @ inheritDoc }
* @ see org . jboss . shrinkwrap . api . Archive # addListener ( org . jboss . shrinkwrap . api . Filter , org . jboss . shrinkwrap . api . ArchiveEventHandler ) */
@ Override public T addHandlers ( ArchiveEventHandler ... handlers ) { } } | for ( ArchiveEventHandler handler : handlers ) { this . handlers . add ( handler ) ; } return covariantReturn ( ) ; |
public class HyperParameterTuningJobWarmStartConfig { /** * An array of hyperparameter tuning jobs that are used as the starting point for the new hyperparameter tuning job .
* For more information about warm starting a hyperparameter tuning job , see < a
* href = " http : / / docs . aws . amazon . com / sagemaker ... | if ( parentHyperParameterTuningJobs == null ) { this . parentHyperParameterTuningJobs = null ; return ; } this . parentHyperParameterTuningJobs = new java . util . ArrayList < ParentHyperParameterTuningJob > ( parentHyperParameterTuningJobs ) ; |
public class ClassInfoList { /** * Generate a . dot file which can be fed into GraphViz for layout and visualization of the class graph . The
* sizeX and sizeY parameters are the image output size to use ( in inches ) when GraphViz is asked to render the
* . dot file .
* To show non - public classes , call { @ li... | if ( isEmpty ( ) ) { throw new IllegalArgumentException ( "List is empty" ) ; } final ScanSpec scanSpec = get ( 0 ) . scanResult . scanSpec ; if ( ! scanSpec . enableClassInfo ) { throw new IllegalArgumentException ( "Please call ClassGraph#enableClassInfo() before #scan()" ) ; } return GraphvizDotfileGenerator . gener... |
public class AmazonSQSExtendedClientBase { /** * Deletes up to ten messages from the specified queue . This is a batch
* version of DeleteMessage . The result of the delete action on each message
* is reported individually in the response .
* < b > IMPORTANT : < / b > Because the batch request can result in a com... | return amazonSqsToBeExtended . deleteMessageBatch ( queueUrl , entries ) ; |
public class GenericsResolutionUtils { /** * Extracts declared upper bound from generic declaration . For example , { @ code Base < T > } will be resolved
* as Object ( default bound ) . { @ code Base < T extends A & B > } resolved as " impossible " wildcard
* { @ code ? extends A & B } in order to preserve all kno... | final Type res ; if ( variable . getBounds ( ) . length > 1 ) { // case : T extends A & B - - > ? extends A & B
final List < Type > types = new ArrayList < Type > ( ) ; for ( Type bound : variable . getBounds ( ) ) { // replace possible named generics with actual type ( for cases like K extends T )
final Type actual = ... |
public class JsonLogMetricsCreator { /** * Visible For Tests */
@ Nonnull protected MapAppender createMapDumper ( @ Nonnull OutputStream outputStream , @ Nonnull RecordCache recordCache ) { } } | return new JacksonMapAppender ( outputStream , recordCache ) ; |
public class Console { public static void main ( String [ ] args ) { } } | System . out . println ( "FitLayout interactive console" ) ; Console con = new Console ( ) ; try { con . interactiveSession ( System . in , System . out , System . err ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } |
public class ClassWriter { /** * Adds a float to the constant pool of the class being build . Does nothing if the constant pool already contains a
* similar item .
* @ param value the float value .
* @ return a new or already existing float item . */
private Item newFloat ( final float value ) { } } | Item result = get ( key . set ( FLOAT , value ) ) ; if ( result == null ) { pool . putByte ( FLOAT ) . putInt ( Float . floatToIntBits ( value ) ) ; result = new Item ( poolIndex ++ , key ) ; put ( result ) ; } return result ; |
public class ScopInstallation { /** * / * ( non - Javadoc )
* @ see org . biojava . nbio . structure . scop . ScopDatabase # filterByDescription ( java . lang . String ) */
@ Override public List < ScopDescription > filterByDescription ( String query ) throws ScopIOException { } } | try { ensureDesInstalled ( ) ; } catch ( IOException e ) { throw new ScopIOException ( e ) ; } query = query . toLowerCase ( ) ; List < ScopDescription > matches = new ArrayList < ScopDescription > ( ) ; for ( Integer i : sunidMap . keySet ( ) ) { ScopDescription sc = sunidMap . get ( i ) ; if ( sc . getDescription ( )... |
public class VpcClient { /** * Return a list of vpcs owned by the authenticated user .
* @ param request The request containing all options for listing own ' s vpc .
* @ return The response containing a list of vpcs owned by the authenticated user . */
public ListVpcsResponse listVpcs ( ListVpcsRequest request ) { ... | checkNotNull ( request , "request should not be null." ) ; InternalRequest internalRequest = this . createRequest ( request , HttpMethodName . GET , VPC_PREFIX ) ; if ( request . getMarker ( ) != null ) { internalRequest . addParameter ( "marker" , request . getMarker ( ) ) ; } if ( request . getMaxKeys ( ) > 0 ) { int... |
public class CmsDriverManager { /** * Copies the access control entries of a given resource to a destination resource . < p >
* Already existing access control entries of the destination resource are removed . < p >
* @ param dbc the current database context
* @ param source the resource to copy the access contro... | // get the entries to copy
ListIterator < CmsAccessControlEntry > aceList = getUserDriver ( dbc ) . readAccessControlEntries ( dbc , dbc . currentProject ( ) , source . getResourceId ( ) , false ) . listIterator ( ) ; // remove the current entries from the destination
getUserDriver ( dbc ) . removeAccessControlEntries ... |
public class Operation { /** * { @ inheritDoc } */
@ Override public int getDataType ( CssFormatter formatter ) { } } | if ( type == UNKNOWN ) { switch ( operator ) { case ' ' : case ',' : type = LIST ; break ; case '&' : case '|' : case '>' : case '<' : case '=' : case '≥' : case '≤' : type = BOOLEAN ; break ; default : type = maxOperadType ( formatter ) ; } } return type ; |
public class AbstractProtoRealization { /** * < p > Add all the live localisations to the set requiring clean - up < / p > */
public void addAllLocalisationsForCleanUp ( boolean singleServer ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addAllLocalisationsForCleanUp" , new Object [ ] { new Boolean ( singleServer ) } ) ; _localisationManager . addAllLocalisationsForCleanUp ( singleServer , _postMediatedItemStreamsRequiringCleanup ) ; if ( TraceComponent . i... |
public class JobExecutionTemplate { /** * Executes a job in the calling thread .
* @ param < T > Job result type
* @ param job the { @ link Job } to execute
* @ param progress { @ link Progress } to report progress to
* @ param jobExecutionContext { @ link Authentication } to run the job with
* @ return the r... | return runWithContext ( jobExecutionContext , ( ) -> tryCall ( job , progress ) ) ; |
public class EmbeddedChannel { /** * Run all tasks ( which also includes scheduled tasks ) that are pending in the { @ link EventLoop }
* for this { @ link Channel } */
public void runPendingTasks ( ) { } } | try { loop . runTasks ( ) ; } catch ( Exception e ) { recordException ( e ) ; } try { loop . runScheduledTasks ( ) ; } catch ( Exception e ) { recordException ( e ) ; } |
public class ST_RemoveRepeatedPoints { /** * Returns a version of the given geometry with duplicated points removed .
* @ param geometry
* @ return
* @ throws java . sql . SQLException */
public static Geometry removeRepeatedPoints ( Geometry geometry ) throws SQLException , SQLException , SQLException , SQLExcep... | return removeDuplicateCoordinates ( geometry , 0 ) ; |
public class PLZ { /** * Liefert die PLZ in mit Trennzeichen zwischen Landeskennung ( falls
* vorhanden ) und eigentlicher PLZ zurueck .
* @ return z . B . " D - 70839" */
public String toLongString ( ) { } } | String plz = this . getCode ( ) ; if ( this . hasLandeskennung ( ) ) { plz = toLongString ( plz ) ; } return plz ; |
public class ExampleDrawerConfig { /** * Config Methods */
@ Override protected void inflateItems ( List < DrawerItem > items ) { } } | items . add ( new IconDrawerItem . Builder ( BOOKS . id ( ) ) . text ( R . string . drawer_books ) . icon ( R . drawable . ic_book_black_24dp ) . build ( ) ) ; items . add ( new IconDrawerItem . Builder ( BOOKMARKS . id ( ) ) . text ( R . string . drawer_bookmarks ) . icon ( R . drawable . ic_bookmark_black_24dp ) . bu... |
public class syslog_server { /** * < pre >
* Use this operation to modify a syslog server in bulk .
* < / pre > */
public static syslog_server [ ] modify ( nitro_service client , syslog_server [ ] resources ) throws Exception { } } | if ( resources == null ) throw new Exception ( "Null resource array" ) ; for ( int i = 0 ; i < resources . length ; i ++ ) { resources [ i ] . validate ( "modify" ) ; } if ( resources . length == 1 ) return ( ( syslog_server [ ] ) resources [ 0 ] . update_resource ( client ) ) ; return ( ( syslog_server [ ] ) update_bu... |
public class PlacesInterface { /** * Return a list of the top 100 unique places clustered by a given placetype for a user .
* @ param placeType
* Use Type - constants at { @ link Place }
* @ param woeId
* A Where On Earth ( WOE ) ID . Optional , can be null .
* @ param placeId
* A Flickr Places ID . Optiona... | Map < String , Object > parameters = new HashMap < String , Object > ( ) ; PlacesList < Place > placesList = new PlacesList < Place > ( ) ; parameters . put ( "method" , METHOD_PLACES_FOR_USER ) ; parameters . put ( "place_type" , intPlaceTypeToString ( placeType ) ) ; if ( placeId != null ) { parameters . put ( "place... |
public class SeleniumSpec { /** * Type a { @ code text } on an numbered { @ code index } previously found element .
* @ param text
* @ param index */
@ When ( "^I type '(.+?)' on the element on index '(\\d+?)'$" ) public void seleniumType ( @ Transform ( NullableStringConverter . class ) String text , Integer index... | assertThat ( this . commonspec , commonspec . getPreviousWebElements ( ) ) . as ( "There are less found elements than required" ) . hasAtLeast ( index ) ; while ( text . length ( ) > 0 ) { Actions actions = new Actions ( commonspec . getDriver ( ) ) ; if ( - 1 == text . indexOf ( "\\n" ) ) { actions . moveToElement ( c... |
public class SnowflakeFileTransferAgent { /** * A small helper for extracting location name and path from full location path
* @ param stageLocationPath stage location
* @ return remoteLocation object */
static public remoteLocation extractLocationAndPath ( String stageLocationPath ) { } } | String location = stageLocationPath ; String path = "" ; // split stage location as location name and path
if ( stageLocationPath . contains ( "/" ) ) { location = stageLocationPath . substring ( 0 , stageLocationPath . indexOf ( "/" ) ) ; path = stageLocationPath . substring ( stageLocationPath . indexOf ( "/" ) + 1 )... |
public class JUnderlinedButton { /** * Paint .
* NOTE : This is just like paint in BasicButtonUI , except for all the fancy L & F stuff . */
public void paint ( Graphics g ) { } } | FontMetrics fm = this . getFontMetrics ( this . getFont ( ) ) ; Insets i = this . getInsets ( ) ; viewRect . x = i . left ; viewRect . y = i . top ; viewRect . width = this . getWidth ( ) - ( i . right + viewRect . x ) ; viewRect . height = this . getHeight ( ) - ( i . bottom + viewRect . y ) ; textRect . x = textRect ... |
public class ConciseSet { /** * Replace the current instance with another { @ link ConciseSet } instance . It
* also returns < code > true < / code > if the given set is actually different
* from the current one
* @ param other { @ link ConciseSet } instance to use to replace the current one
* @ return < code >... | if ( this == other ) { return false ; } boolean isSimilar = ( this . lastWordIndex == other . lastWordIndex ) && ( this . last == other . last ) ; for ( int i = 0 ; isSimilar && ( i <= lastWordIndex ) ; i ++ ) { isSimilar = this . words [ i ] == other . words [ i ] ; } if ( isSimilar ) { if ( other . size >= 0 ) { this... |
public class RedisJobStore { /** * Pause the < code > { @ link org . quartz . Trigger } < / code > with the given key .
* @ param triggerKey the key for the trigger to be paused
* @ see # resumeTrigger ( org . quartz . TriggerKey ) */
@ Override public void pauseTrigger ( final TriggerKey triggerKey ) throws JobPer... | doWithLock ( new LockCallbackWithoutResult ( ) { @ Override public Void doWithLock ( JedisCommands jedis ) throws JobPersistenceException { storage . pauseTrigger ( triggerKey , jedis ) ; return null ; } } , "Could not pause trigger." ) ; |
public class AbstractApplication { /** * Print an error message for the given error .
* @ param e Error Exception . */
protected static void printErrorMessage ( Exception e ) { } } | if ( e instanceof AbortException ) { // ensure we actually show the message :
LoggingConfiguration . setVerbose ( Level . VERBOSE ) ; LOG . verbose ( e . getMessage ( ) ) ; } else if ( e instanceof UnspecifiedParameterException ) { LOG . error ( e . getMessage ( ) ) ; } else if ( e instanceof ParameterException ) { LOG... |
public class CveDB { /** * Opens the database connection . If the database does not exist , it will
* create a new one .
* @ throws DatabaseException thrown if there is an error opening the
* database connection */
private synchronized void open ( ) throws DatabaseException { } } | try { if ( ! isOpen ( ) ) { connection = connectionFactory . getConnection ( ) ; final String databaseProductName = determineDatabaseProductName ( this . connection ) ; statementBundle = databaseProductName != null ? ResourceBundle . getBundle ( "data/dbStatements" , new Locale ( databaseProductName ) ) : ResourceBundl... |
public class HealthCheckClient { /** * Retrieves the list of HealthCheck resources available to the specified project .
* < p > Sample code :
* < pre > < code >
* try ( HealthCheckClient healthCheckClient = HealthCheckClient . create ( ) ) {
* ProjectName project = ProjectName . of ( " [ PROJECT ] " ) ;
* for... | ListHealthChecksHttpRequest request = ListHealthChecksHttpRequest . newBuilder ( ) . setProject ( project == null ? null : project . toString ( ) ) . build ( ) ; return listHealthChecks ( request ) ; |
public class TokenParam { /** * { @ inheritDoc } */
@ Override String doGetValueAsQueryToken ( FhirContext theContext ) { } } | if ( getSystem ( ) != null ) { if ( getValue ( ) != null ) { return ParameterUtil . escape ( StringUtils . defaultString ( getSystem ( ) ) ) + '|' + ParameterUtil . escape ( getValue ( ) ) ; } else { return ParameterUtil . escape ( StringUtils . defaultString ( getSystem ( ) ) ) + '|' ; } } return ParameterUtil . escap... |
public class ZmqMainThread { private byte [ ] [ ] readSocket ( ZMQ . Socket socket , int nb ) { } } | byte [ ] [ ] inputs = new byte [ nb ] [ ] ; // Try to resynchronize if drifts
if ( socket == heartbeatSocket ) { if ( heartbeatDrift > 0 ) { System . err . println ( "------> try to resynchronize heartbeat (" + heartbeatDrift + ")" ) ; for ( int i = 0 ; i < heartbeatDrift ; i ++ ) heartbeatSocket . recv ( 0 ) ; heartbe... |
public class ClusteredRoadPath { /** * Replies the road segment at the given index .
* @ param index an index .
* @ return the road segment . */
@ Pure public RoadSegment getRoadSegmentAt ( int index ) { } } | if ( index >= 0 ) { int b = 0 ; for ( final RoadPath p : this . paths ) { final int e = b + p . size ( ) ; if ( index < e ) { return p . get ( index - b ) ; } b = e ; } } throw new IndexOutOfBoundsException ( ) ; |
public class ArtifactResolver { /** * Fetches a maven artifact and returns a File Object that points to its location .
* @ param artifact The maven coordinates in the format of < code > groupId : artifactId : type : version < / code >
* @ return A File Object that points to the artifact .
* @ throws ArtifactResol... | // NOTE : This page on Aether ( https : / / docs . sonatype . org / display / AETHER / Home ) states that
// the plexus container uses the context class loader .
ClassLoader oldContext = Thread . currentThread ( ) . getContextClassLoader ( ) ; try { Thread . currentThread ( ) . setContextClassLoader ( this . getClass (... |
public class TcpServerInterceptorChain { /** * Add the next interceptor to this chain , which changes the type of objects read from the connections processed by
* the associated { @ link TcpServer } .
* @ param next Next interceptor to add .
* @ return A new interceptor chain with the interceptors current existin... | return new TcpServerInterceptorChain < > ( new TransformingInterceptor < R , W , RRR , WW > ( ) { @ Override public ConnectionHandler < R , W > intercept ( ConnectionHandler < RRR , WW > handler ) { return interceptor . intercept ( next . intercept ( handler ) ) ; } } ) ; |
public class NullAway { /** * check that all @ NonNull fields of the class are properly initialized
* @ param tree the class
* @ param state visitor state */
private void checkFieldInitialization ( ClassTree tree , VisitorState state ) { } } | FieldInitEntities entities = collectEntities ( tree , state ) ; Symbol . ClassSymbol classSymbol = ASTHelpers . getSymbol ( tree ) ; class2Entities . put ( classSymbol , entities ) ; // set of all non - null instance fields f such that * some * constructor does not initialize f
Set < Symbol > notInitializedInConstructo... |
public class PoiWorkSheet { /** * Create cell cell .
* @ param date the date
* @ return the cell */
public Cell createCell ( Date date ) { } } | Cell cell = this . getNextCell ( CellType . STRING ) ; if ( date != null ) { cell . setCellValue ( date ) ; } cell . setCellStyle ( this . style . getDateCs ( ) ) ; return cell ; |
public class DistributedDoubleBarrier { /** * Enter the barrier and block until all members have entered or the timeout has
* elapsed
* @ param maxWait max time to block
* @ param unit time unit
* @ return true if the entry was successful , false if the timeout elapsed first
* @ throws Exception interruptions... | long startMs = System . currentTimeMillis ( ) ; boolean hasMaxWait = ( unit != null ) ; long maxWaitMs = hasMaxWait ? TimeUnit . MILLISECONDS . convert ( maxWait , unit ) : Long . MAX_VALUE ; boolean readyPathExists = ( client . checkExists ( ) . usingWatcher ( watcher ) . forPath ( readyPath ) != null ) ; client . cre... |
public class AbstractRowProcessingConsumer { /** * Ensures that ALL outcomes are available */
@ Override public final boolean satisfiedForFlowOrdering ( FilterOutcomes outcomes ) { } } | if ( isAlwaysSatisfiedRequirement ( ) ) { return true ; } final ComponentRequirement componentRequirement = _hasComponentRequirement . getComponentRequirement ( ) ; if ( componentRequirement == null ) { return true ; } return componentRequirement . isSatisfied ( null , outcomes ) ; |
public class InternalXtextParser { /** * InternalXtext . g : 1279:1 : ruleNegatedToken : ( ( rule _ _ NegatedToken _ _ Group _ _ 0 ) ) ; */
public final void ruleNegatedToken ( ) throws RecognitionException { } } | int stackSize = keepStackSize ( ) ; try { // InternalXtext . g : 1283:2 : ( ( ( rule _ _ NegatedToken _ _ Group _ _ 0 ) ) )
// InternalXtext . g : 1284:2 : ( ( rule _ _ NegatedToken _ _ Group _ _ 0 ) )
{ // InternalXtext . g : 1284:2 : ( ( rule _ _ NegatedToken _ _ Group _ _ 0 ) )
// InternalXtext . g : 1285:3 : ( rule... |
public class NavItemEditor { /** * Item commands */
private void addCommands ( ) { } } | boolean dividerRequired = false ; if ( creationEnabled ) { boolean newGroupEnabled = isNewGroupEnabled ( ) ; if ( newGroupEnabled ) { this . addCommand ( view . i18nNewItem ( getGroupLiteral ( ) ) , this :: newGroup ) ; dividerRequired = true ; } boolean newDividerEnabled = isNewDividerEnabled ( ) ; if ( newDividerEnab... |
public class OrientedBox3f { /** * Set the second axis of the box .
* The third axis is updated to be perpendicular to the two other axis .
* @ param x
* @ param y
* @ param z
* @ param extent */
@ Override public void setSecondAxis ( double x , double y , double z , double extent ) { } } | setSecondAxis ( x , y , z , extent , CoordinateSystem3D . getDefaultCoordinateSystem ( ) ) ; |
public class QrCode { /** * Calculate the actual bit length of the proposed binary string . */
private static int getBinaryLength ( int version , QrMode [ ] inputModeUnoptimized , int [ ] inputData , boolean gs1 , int eciMode ) { } } | int i , j ; QrMode currentMode ; int inputLength = inputModeUnoptimized . length ; int count = 0 ; int alphaLength ; int percent = 0 ; // ZINT NOTE : in Zint , this call modifies the input mode array directly ; here , we leave
// the original array alone so that subsequent binary length checks don ' t irrevocably
// op... |
public class GrailsHibernateQueryUtils { /** * Populates criteria arguments for the given target class and arguments map
* @ param entity The { @ link org . grails . datastore . mapping . model . PersistentEntity } instance
* @ param query The criteria instance
* @ param argMap The arguments map */
@ SuppressWarn... | Integer maxParam = null ; Integer offsetParam = null ; if ( argMap . containsKey ( DynamicFinder . ARGUMENT_MAX ) ) { maxParam = conversionService . convert ( argMap . get ( DynamicFinder . ARGUMENT_MAX ) , Integer . class ) ; } if ( argMap . containsKey ( DynamicFinder . ARGUMENT_OFFSET ) ) { offsetParam = conversionS... |
public class JsonDBTemplate { /** * / * ( non - Javadoc )
* @ see org . jsondb . JsonDBOperations # upsert ( java . util . Collection , java . lang . String ) */
@ SuppressWarnings ( "unchecked" ) @ Override public < T > void upsert ( Collection < ? extends T > batchToSave , String collectionName ) { } } | if ( null == batchToSave ) { throw new InvalidJsonDbApiUsageException ( "Null Object batch cannot be upserted into DB" ) ; } CollectionMetaData collectionMeta = cmdMap . get ( collectionName ) ; collectionMeta . getCollectionLock ( ) . writeLock ( ) . lock ( ) ; try { Map < Object , T > collection = ( Map < Object , T ... |
public class DescriptionAnimation { /** * When next item is coming to show , let ' s hide the description layout .
* @ param next */
@ Override public void onPrepareNextItemShowInScreen ( View next ) { } } | View descriptionLayout = next . findViewById ( R . id . description_layout ) ; if ( descriptionLayout != null ) { next . findViewById ( R . id . description_layout ) . setVisibility ( View . INVISIBLE ) ; } |
public class SparkComputationGraph { /** * Calculate the score for all examples in the provided { @ code JavaRDD < DataSet > } , either by summing
* or averaging over the entire data set . To calculate a score for each example individually , use { @ link # scoreExamples ( JavaPairRDD , boolean ) }
* or one of the s... | JavaRDD < Tuple2 < Integer , Double > > rdd = data . mapPartitions ( new ScoreFlatMapFunctionCGDataSet ( conf . toJson ( ) , sc . broadcast ( network . params ( false ) ) , minibatchSize ) ) ; // Reduce to a single tuple , with example count + sum of scores
Tuple2 < Integer , Double > countAndSumScores = rdd . reduce (... |
public class DescribeMetricFiltersResult { /** * The metric filters .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setMetricFilters ( java . util . Collection ) } or { @ link # withMetricFilters ( java . util . Collection ) } if you want
* to override th... | if ( this . metricFilters == null ) { setMetricFilters ( new com . amazonaws . internal . SdkInternalList < MetricFilter > ( metricFilters . length ) ) ; } for ( MetricFilter ele : metricFilters ) { this . metricFilters . add ( ele ) ; } return this ; |
public class JsonUtils { /** * Un - serialize a report with Json
* @ param license String
* @ return License
* @ throws IOException */
public static License unserializeLicense ( final String license ) throws IOException { } } | final ObjectMapper mapper = new ObjectMapper ( ) ; mapper . disable ( MapperFeature . USE_GETTERS_AS_SETTERS ) ; return mapper . readValue ( license , License . class ) ; |
public class AnnotationSagaAnalyzer { /** * Adds a custom annotation to be used when scanning for methods
* starting a new saga . By default the { @ link com . codebullets . sagalib . StartsSaga } annotation
* will be used . */
public void addStartSagaAnnotation ( final Class < ? extends Annotation > annotationClas... | Objects . requireNonNull ( annotationClass , "The type of annotation is not allowed to be null" ) ; startSagaAnnotations . add ( annotationClass ) ; |
public class ProcessContext { /** * Adds a data attribute for an activity together with its usage . < br >
* The given activity / attributes have to be known by the context , i . e .
* be contained in the activity / attribute list . < br >
* When dataUsage is null , then no usage is added .
* @ param activity A... | validateActivity ( activity ) ; validateAttribute ( attribute ) ; Validate . notNull ( dataUsage ) ; if ( activityDataUsage . get ( activity ) == null ) { activityDataUsage . put ( activity , new HashMap < > ( ) ) ; } if ( activityDataUsage . get ( activity ) . get ( attribute ) == null ) { activityDataUsage . get ( ac... |
public class UnicodeEscaper { /** * Returns the escaped form of a given literal string , starting at the given
* index . This method is called by the { @ link # escape ( String ) } method when it
* discovers that escaping is required . It is protected to allow subclasses
* to override the fastpath escaping functi... | int end = s . length ( ) ; // Get a destination buffer and setup some loop variables .
char [ ] dest = DEST_TL . get ( ) ; int destIndex = 0 ; int unescapedChunkStart = 0 ; while ( index < end ) { int cp = codePointAt ( s , index , end ) ; if ( cp < 0 ) { throw new IllegalArgumentException ( "Trailing high surrogate at... |
public class ByteUtils { /** * Write the bytes representing < code > d < / code > into the byte array
* < code > data < / code > , starting at index < code > offset [ 0 ] < / code > , and
* increment < code > offset [ 0 ] < / code > by the number of bytes written ; if
* < code > data = = null < / code > , increme... | long bits = Double . doubleToLongBits ( d ) ; longToBytes ( bits , data , offset ) ; |
public class ReflectionUtil { /** * Changing the value of a given field .
* @ param object
* - - target object of injection
* @ param clazz
* - - type of argument object
* @ param fieldName
* - - name of field whose value is to be set
* @ param value
* - - object that is injected */
public static void s... | final Field field = clazz . getDeclaredField ( fieldName ) ; try { setField ( field , object , value ) ; } catch ( final Exception e ) { LOG . error ( e . getMessage ( ) , e ) ; } |
public class RebalanceUtils { /** * Given a list of partition plans and a set of stores , copies the store
* names to every individual plan and creates a new list
* @ param existingPlanList Existing partition plan list
* @ param storeDefs List of store names we are rebalancing
* @ return List of updated partiti... | List < RebalanceTaskInfo > plans = Lists . newArrayList ( ) ; List < String > storeNames = StoreDefinitionUtils . getStoreNames ( storeDefs ) ; for ( RebalanceTaskInfo existingPlan : existingPlanList ) { RebalanceTaskInfo info = RebalanceTaskInfo . create ( existingPlan . toJsonString ( ) ) ; // Filter the plans only f... |
public class Multiset { /** * The element will be removed if the specified count is 0.
* @ param e
* @ param occurrences
* @ return this Multiset .
* @ throws IllegalArgumentException if the occurrences of element is less than 0 */
public Multiset < T > set ( final T e , final int occurrences ) { } } | checkOccurrences ( occurrences ) ; if ( occurrences == 0 ) { valueMap . remove ( e ) ; } else { final MutableInt count = valueMap . get ( e ) ; if ( count == null ) { valueMap . put ( e , MutableInt . of ( occurrences ) ) ; } else { count . setValue ( occurrences ) ; } } return this ; |
public class SmbResourceLocatorImpl { /** * { @ inheritDoc }
* @ see jcifs . SmbResourceLocator # getType ( ) */
@ Override public int getType ( ) throws CIFSException { } } | if ( this . type == 0 ) { if ( getUNCPath ( ) . length ( ) > 1 ) { this . type = SmbConstants . TYPE_FILESYSTEM ; } else if ( getShare ( ) != null ) { if ( getShare ( ) . equals ( "IPC$" ) ) { this . type = SmbConstants . TYPE_NAMED_PIPE ; } else { this . type = SmbConstants . TYPE_SHARE ; } } else if ( this . url . ge... |
public class AxiomType_CustomFieldSerializer { /** * Deserializes the content of the object from the
* { @ link com . google . gwt . user . client . rpc . SerializationStreamReader } .
* @ param streamReader the { @ link com . google . gwt . user . client . rpc . SerializationStreamReader } to read the
* object '... | deserialize ( streamReader , instance ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link RelationsType } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.w3.org/1998/Math/MathML" , name = "lt" ) public JAXBElement < RelationsType > createLt ( RelationsType value ) { } } | return new JAXBElement < RelationsType > ( _Lt_QNAME , RelationsType . class , null , value ) ; |
public class StripedLock { /** * Acquires RL on all locks aggregated by this StripedLock , in the given timeout . */
public boolean acquireGlobalLock ( boolean exclusive , long timeout ) { } } | log . tracef ( "About to acquire global lock. Exclusive? %s" , exclusive ) ; boolean success = true ; for ( int i = 0 ; i < sharedLocks . length ; i ++ ) { Lock toAcquire = exclusive ? sharedLocks [ i ] . writeLock ( ) : sharedLocks [ i ] . readLock ( ) ; try { success = toAcquire . tryLock ( timeout , TimeUnit . MILLI... |
public class CoordinateUtils { /** * Checks if a coordinate array contains a specific coordinate .
* The equality is done only in 2D ( z values are not checked ) .
* @ param coords
* @ param coord
* @ return */
public static boolean contains2D ( Coordinate [ ] coords , Coordinate coord ) { } } | for ( Coordinate coordinate : coords ) { if ( coordinate . equals2D ( coord ) ) { return true ; } } return false ; |
public class JsonObject { /** * Reads a JSON object from the given reader .
* Characters are read in chunks and buffered internally , therefore wrapping an existing reader in
* an additional < code > BufferedReader < / code > does < strong > not < / strong > improve reading
* performance .
* @ param reader
* ... | return JsonValue . readFrom ( reader ) . asObject ( ) ; |
public class PageIterator { /** * Returns the next element of primary key collection .
* @ return the next element .
* @ throws NoSuchElementException
* if there are no more elements . */
public Object next ( ) throws java . util . NoSuchElementException { } } | Object element = null ; if ( nextElement != null ) { element = nextElement ; nextElement = null ; } else { element = getNextElement ( ) ; if ( element == null ) { throw new java . util . NoSuchElementException ( ) ; } } return element ; |
public class ReadBlockHeader { public void write ( DataOutput out ) throws IOException { } } | InjectionHandler . processEvent ( InjectionEvent . READ_BLOCK_HEAD_BEFORE_WRITE ) ; if ( getDataTransferVersion ( ) >= DataTransferProtocol . FEDERATION_VERSION ) { out . writeInt ( namespaceId ) ; } out . writeLong ( blockId ) ; out . writeLong ( genStamp ) ; out . writeLong ( startOffset ) ; out . writeLong ( len ) ;... |
public class JsonParserBuilder { /** * Sets the parser ' s integer value handler , or removes it if { @ code null } is passed .
* @ param integerHandler a new integer value handler . { @ code null } means there shouldn ' t be a integer
* value handler in the built parser .
* @ return a reference to this builder
... | checkNoConflict ( integerHandler , "integer" , numberHandler , "number" ) ; this . integerHandler = integerHandler ; return this ; |
public class DataSourceInitializer { /** * Initialize the schema if necessary .
* @ see DataSourceProperties # getData ( ) */
public void initSchema ( ) { } } | List < Resource > scripts = getScripts ( "spring.datasource.data" , this . properties . getData ( ) , "data" ) ; if ( ! scripts . isEmpty ( ) ) { if ( ! isEnabled ( ) ) { logger . debug ( "Initialization disabled (not running data scripts)" ) ; return ; } String username = this . properties . getDataUsername ( ) ; Stri... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Double } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link Double } { @ code > } */
@ XmlElementDecl... | return new JAXBElement < Double > ( _Covariance_QNAME , Double . class , null , value ) ; |
public class URLTemplates { /** * Retrieve a template from url - template - config by name .
* Always returns a copy of a URLTemplate with the same
* parsed template data but its own cleared set of
* token values for the substitue ( ) methods .
* This allows multiple client requests access to
* the same parse... | URLTemplate template = ( URLTemplate ) _templates . get ( templateName ) ; if ( template == null ) return null ; return new URLTemplate ( template ) ; |
public class Chronology { /** * Casts the { @ code Temporal } to { @ code ChronoLocalDate } with the same chronology .
* @ param temporal a date - time to cast , not null
* @ return the date - time checked and cast to { @ code ChronoLocalDate } , not null
* @ throws ClassCastException if the date - time cannot be... | @ SuppressWarnings ( "unchecked" ) D other = ( D ) temporal ; if ( this . equals ( other . getChronology ( ) ) == false ) { throw new ClassCastException ( "Chrono mismatch, expected: " + getId ( ) + ", actual: " + other . getChronology ( ) . getId ( ) ) ; } return other ; |
public class Modification { /** * The estimated size .
* @ param codec the { @ link Codec } to use for the size estimation .
* @ return the estimated size . */
public int estimateSize ( Codec codec ) { } } | int size = key . length + 1 ; // key + control
if ( ! ControlByte . NON_EXISTING . hasFlag ( control ) && ! ControlByte . NOT_READ . hasFlag ( control ) ) { size += 8 ; // long
} if ( ! ControlByte . REMOVE_OP . hasFlag ( control ) ) { size += value . length ; size += codec . estimateExpirationSize ( lifespan , lifespa... |
public class DateInterval { /** * / * [ deutsch ]
* < p > Erzeugt einen { @ code Stream } , der jeden Tag dieses Intervalls entsprechend der angegebenen Regel
* in einzelne Tagesabschnitte zerlegt . < / p >
* < p > Hiermit k & ouml ; nnen t & auml ; gliche Laden & ouml ; ffnungszeiten oder w & ouml ; chentliche A... | return this . streamDaily ( ) . flatMap ( date -> rule . getPartitions ( date ) . stream ( ) . map ( partition -> TimestampInterval . between ( date . at ( partition . getStart ( ) . getTemporal ( ) ) , date . at ( partition . getEnd ( ) . getTemporal ( ) ) ) ) ) ; |
public class Activator { /** * Initializes a preference store with default preference values for this plug - in . */
@ Override protected void initializeDefaultPreferences ( IPreferenceStore store ) { } } | store . setDefault ( ICodeGenConstants . GENERATE_CHAR_SEQUENCES_AS_STRINGS , ICodeGenConstants . GENERATE_CHAR_SEQUENCES_AS_STRING_DEFAULT ) ; store . setDefault ( ICodeGenConstants . DISABLE_CLONING , ICodeGenConstants . DISABLE_CLONING_DEFAULT ) ; store . setDefault ( ICodeGenConstants . GENERATE_CONCURRENCY_MECHANI... |
public class XmlUtil { /** * TODO : replace with stream - based version */
private static String asString ( Writable writable ) { } } | if ( writable instanceof GPathResult ) { return asString ( ( GPathResult ) writable ) ; // GROOVY - 4285
} Writer sw = new StringWriter ( ) ; try { writable . writeTo ( sw ) ; } catch ( IOException e ) { // ignore
} return sw . toString ( ) ; |
public class ElmBaseVisitor { /** * Visit a List . This method will be called for
* every node in the tree that is a List .
* @ param elm the ELM tree
* @ param context the context passed to the visitor
* @ return the visitor result */
public T visitList ( List elm , C context ) { } } | if ( elm . getTypeSpecifier ( ) != null ) { visitElement ( elm . getTypeSpecifier ( ) , context ) ; } for ( Expression element : elm . getElement ( ) ) { visitElement ( element , context ) ; } return null ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.