signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class AbstractEnvironment { /** * Construct the path to the support servlet . Web components that need to construct a URL to target this servlet * will use this method . * @ return the path to the AJAX servlet . */ @ Override public String getWServletPath ( ) { } }
final String configValue = ConfigurationProperties . getServletSupportPath ( ) ; return configValue == null ? getPostPath ( ) : getServletPath ( configValue ) ;
public class BoundingBox { /** * Returns if an area built from the latLongs intersects with a bias towards * returning true . * The method returns fast if any of the points lie within the bbox . If none of the points * lie inside the box , it constructs the outer bbox for all the points and tests for intersection...
if ( latLongs . length == 0 || latLongs [ 0 ] . length == 0 ) { return false ; } for ( LatLong [ ] outer : latLongs ) { for ( LatLong latLong : outer ) { if ( this . contains ( latLong ) ) { // if any of the points is inside the bbox return early return true ; } } } // no fast solution , so accumulate boundary points d...
public class ListValue { /** * ( non - Javadoc ) * @ see java . util . List # subList ( int , int ) */ @ Override public List < V > subList ( final int fromIndex , final int toIndex ) { } }
return this . list . subList ( fromIndex , toIndex ) ;
public class ST_AddPoint { /** * Returns a new geometry based on an existing one , with a specific point as * a new vertex . * @ param geometry * @ param point * @ param tolerance * @ return Null if the vertex cannot be inserted * @ throws SQLException If the vertex can be inserted but it makes the * geom...
if ( geometry == null || point == null ) { return null ; } if ( geometry instanceof MultiPoint ) { return insertVertexInMultipoint ( geometry , point ) ; } else if ( geometry instanceof LineString ) { return insertVertexInLineString ( ( LineString ) geometry , point , tolerance ) ; } else if ( geometry instanceof Multi...
public class ClassUtil { /** * 指定类是否为Public * @ param clazz 类 * @ return 是否为public */ public static boolean isPublic ( Class < ? > clazz ) { } }
if ( null == clazz ) { throw new NullPointerException ( "Class to provided is null." ) ; } return Modifier . isPublic ( clazz . getModifiers ( ) ) ;
public class HttpServiceSchedulerClient { /** * Send payload to target HTTP connection to request a service * @ param data the byte [ ] to send * @ return true if got OK response successfully */ protected boolean requestSchedulerService ( Command command , byte [ ] data ) { } }
String endpoint = getCommandEndpoint ( schedulerHttpEndpoint , command ) ; final HttpURLConnection connection = NetworkUtils . getHttpConnection ( endpoint ) ; if ( connection == null ) { LOG . severe ( "Scheduler not found." ) ; return false ; } // now , we have a valid connection try { // send the actual http request...
public class ComputeNodeOperations { /** * Disables task scheduling on the specified compute node . * @ param poolId The ID of the pool . * @ param nodeId The ID of the compute node . * @ param nodeDisableSchedulingOption Specifies what to do with currently running tasks . * @ throws BatchErrorException Excepti...
disableComputeNodeScheduling ( poolId , nodeId , nodeDisableSchedulingOption , null ) ;
public class ApiOvhPrice { /** * Get the price of a JOB consumption for 1 hour * REST : GET / price / hpcspot / consumption / job / { reference } * @ param reference [ required ] The reference of the JOB consumption */ public OvhPrice hpcspot_consumption_job_reference_GET ( net . minidev . ovh . api . price . hpcsp...
String qPath = "/price/hpcspot/consumption/job/{reference}" ; StringBuilder sb = path ( qPath , reference ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhPrice . class ) ;
public class SoundGroup { /** * Called by the manager when the base gain has changed . */ protected void baseGainChanged ( ) { } }
// notify any sound currently holding a source for ( int ii = 0 , nn = _sources . size ( ) ; ii < nn ; ii ++ ) { Sound holder = _sources . get ( ii ) . holder ; if ( holder != null ) { holder . updateSourceGain ( ) ; } }
public class TeaCompiler { /** * Overridden to make public */ public Parser createParser ( org . teatrove . tea . compiler . Scanner scanner , CompilationUnit unit ) throws IOException { } }
Parser parser = super . createParser ( scanner , unit ) ; CompileListener parserListener = getParserListener ( ) ; if ( parserListener != null ) { parser . addCompileListener ( parserListener ) ; } return parser ;
public class WorkbookCreationHelper { /** * Added a new cell as date / time . * Important : don ' t forget to call { @ link # addCellStyle ( ExcelStyle ) } with * something like < code > new ExcelStyle ( ) . setDataFormat ( " dd . mm . yyyy " ) ; < / code > * after a date / time cell ! * Important : Excel canno...
if ( aValue == null ) return addCell ( ) ; return addCell ( PDTFactory . createZonedDateTime ( aValue ) ) ;
public class AbstractGs2Client { /** * DELETEリクエストを生成 * @ param url アクセス先URL * @ param credential 認証情報 * @ param service アクセス先サービス * @ param module アクセス先モジュール * @ param function アクセス先ファンクション * @ return リクエストオブジェクト */ protected HttpDelete createHttpDelete ( String url , IGs2Credential credential , String...
Long timestamp = System . currentTimeMillis ( ) / 1000 ; url = StringUtils . replace ( url , "{service}" , service ) ; url = StringUtils . replace ( url , "{region}" , region . getName ( ) ) ; HttpDelete delete = new HttpDelete ( url ) ; delete . setHeader ( "Content-Type" , "application/json" ) ; credential . authoriz...
public class ImageUtil { /** * Creates and returns a new image consisting of the supplied image traced with the given * color , thickness and alpha transparency . */ public static BufferedImage createTracedImage ( BufferedImage src , BufferedImage dest , Color tcolor , int thickness , float startAlpha , float endAlph...
// prepare various bits of working data int wid = src . getWidth ( ) , hei = src . getHeight ( ) ; int spixel = ( tcolor . getRGB ( ) & RGB_MASK ) ; int salpha = ( int ) ( startAlpha * 255 ) ; int tpixel = ( spixel | ( salpha << 24 ) ) ; boolean [ ] traced = new boolean [ wid * hei ] ; int stepAlpha = ( thickness <= 1 ...
public class OriginTrackedValue { /** * Create an { @ link OriginTrackedValue } containing the specified { @ code value } and * { @ code origin } . If the source value implements { @ link CharSequence } then so will * the resulting { @ link OriginTrackedValue } . * @ param value the source value * @ param origi...
if ( value == null ) { return null ; } if ( value instanceof CharSequence ) { return new OriginTrackedCharSequence ( ( CharSequence ) value , origin ) ; } return new OriginTrackedValue ( value , origin ) ;
public class SessionManagementBeanImpl { /** * Notify the management listeners on a filterWrite . * NOTE : this starts on the IO thread , but runs a task OFF the thread . */ @ Override public void doSessionClosedListeners ( ) { } }
runManagementTask ( new Runnable ( ) { @ Override public void run ( ) { try { // The particular management listeners change on strategy , so get them here . for ( final SessionManagementListener listener : getManagementListeners ( ) ) { listener . doSessionClosed ( SessionManagementBeanImpl . this ) ; } // XXX should t...
public class WhiteboxImpl { /** * Get the first parent constructor defined in a super class of * { @ code klass } . * @ param klass The class where the constructor is located . { @ code null } * @ return A . */ public static Constructor < ? > getFirstParentConstructor ( Class < ? > klass ) { } }
try { return getOriginalUnmockedType ( klass ) . getSuperclass ( ) . getDeclaredConstructors ( ) [ 0 ] ; } catch ( Exception e ) { throw new ConstructorNotFoundException ( "Failed to lookup constructor." , e ) ; }
public class Spies { /** * Proxies a binary consumer spying for first parameter . * @ param < T1 > the consumer first parameter type * @ param < T2 > the consumer second parameter type * @ param consumer the consumer that will be spied * @ param param1 a box that will be containing the first spied parameter *...
return spy ( consumer , param1 , Box . < T2 > empty ( ) ) ;
public class CmsSerialDateValue { /** * Read an optional month value form a JSON value . * @ param val the JSON value that should represent the month . * @ return the month from the JSON or null if reading the month fails . */ private Month readOptionalMonth ( JSONValue val ) { } }
String str = readOptionalString ( val ) ; if ( null != str ) { try { return Month . valueOf ( str ) ; } catch ( @ SuppressWarnings ( "unused" ) IllegalArgumentException e ) { // Do nothing - return the default value } } return null ;
public class FatCatAligner { /** * runs rigid chaining process */ private static Group [ ] rChainAfp ( FatCatParameters params , AFPChain afpChain , Atom [ ] ca1 , Atom [ ] ca2 ) throws StructureException { } }
params . setMaxTra ( 0 ) ; afpChain . setMaxTra ( 0 ) ; return chainAfp ( params , afpChain , ca1 , ca2 ) ;
public class AbstractBaseMessageInterpolator { /** * Visible for testing */ static Function < String , String > createAnnotationReplacer ( final Map < String , Object > map ) { } }
return from -> { final Object object = map . get ( from ) ; return object == null ? null : object . toString ( ) ; } ;
public class Strings { /** * Inject system properties into text with variables . Given text uses standard variable notation * < code > $ { variable - name } < / code > , as known from , for example , Ant or Log4j configuration . This method replace found * variable with system property using < code > variable - nam...
return Strings . replaceAll ( string , VARIABLE_PATTERN , new Handler < String , String > ( ) { @ Override public String handle ( String variableName ) { String property = System . getProperty ( variableName ) ; if ( property == null ) { throw new BugError ( "Missing system property |%s|. String |%s| variable injection...
public class DeliveryOptionsMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DeliveryOptions deliveryOptions , ProtocolMarshaller protocolMarshaller ) { } }
if ( deliveryOptions == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deliveryOptions . getSendingPoolName ( ) , SENDINGPOOLNAME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + ...
public class StatementManager { /** * Registers a compiled statement to be managed . * The only caller should be a Session that is attempting to prepare * a statement for the first time or process a statement that has been * invalidated due to DDL changes . * @ param csid existing id or negative if the statemen...
if ( csid < 0 ) { csid = nextID ( ) ; int schemaid = cs . getSchemaName ( ) . hashCode ( ) ; LongValueHashMap sqlMap = ( LongValueHashMap ) schemaMap . get ( schemaid ) ; if ( sqlMap == null ) { sqlMap = new LongValueHashMap ( ) ; schemaMap . put ( schemaid , sqlMap ) ; } sqlMap . put ( cs . getSQL ( ) , csid ) ; sqlLo...
public class CountingLruMap { /** * Gets the all matching elements . */ public synchronized ArrayList < LinkedHashMap . Entry < K , V > > getMatchingEntries ( @ Nullable Predicate < K > predicate ) { } }
ArrayList < LinkedHashMap . Entry < K , V > > matchingEntries = new ArrayList < > ( mMap . entrySet ( ) . size ( ) ) ; for ( LinkedHashMap . Entry < K , V > entry : mMap . entrySet ( ) ) { if ( predicate == null || predicate . apply ( entry . getKey ( ) ) ) { matchingEntries . add ( entry ) ; } } return matchingEntries...
public class EnumConstantWriterImpl { /** * { @ inheritDoc } */ @ Override protected void addSummaryLink ( LinkInfoImpl . Kind context , TypeElement typeElement , Element member , Content tdSummary ) { } }
Content memberLink = HtmlTree . SPAN ( HtmlStyle . memberNameLink , writer . getDocLink ( context , member , name ( member ) , false ) ) ; Content code = HtmlTree . CODE ( memberLink ) ; tdSummary . addContent ( code ) ;
public class PaperclipRepository { /** * region > findByAttachedTo ( programmatic ) */ @ Programmatic public List < Paperclip > findByAttachedTo ( final Object attachedTo ) { } }
if ( attachedTo == null ) { return null ; } final Bookmark bookmark = bookmarkService . bookmarkFor ( attachedTo ) ; if ( bookmark == null ) { return null ; } final String attachedToStr = bookmark . toString ( ) ; return repositoryService . allMatches ( new QueryDefault < > ( Paperclip . class , "findByAttachedTo" , "a...
public class IntervalHistogram { /** * Clones this histogram and zeroizes out hits afterwards if the ' reset ' is * true . * @ param reset * zero out hits * @ return clone of this histogram ' s state */ public IntervalHistogram snapshot ( boolean reset ) { } }
if ( reset ) { return new IntervalHistogram ( bins , getAndResetHits ( ) ) ; } return new IntervalHistogram ( bins , getHits ( ) ) ;
public class DefaultResolver { /** * Detects conflict but does not resolve it . * @ param siblings the list of siblings returned from Riak * @ return null or the single value in the collection * @ throws UnresolvedConflictException if { @ code siblings } has > 1 entry . */ @ Override public T resolve ( List < T >...
if ( siblings . size ( ) > 1 ) { throw new UnresolvedConflictException ( "Siblings found" , siblings ) ; } else if ( siblings . size ( ) == 1 ) { return siblings . get ( 0 ) ; } else { return null ; }
public class ModelUtils { /** * Creates a model of the given type and uses the list of OpenEngSBModelEntries as initialization data . */ public static < T > T createModel ( Class < T > model , List < OpenEngSBModelEntry > entries ) { } }
if ( ! ModelWrapper . isModel ( model ) ) { throw new IllegalArgumentException ( "The given class is no model" ) ; } try { T instance = model . newInstance ( ) ; for ( OpenEngSBModelEntry entry : entries ) { if ( tryToSetValueThroughField ( entry , instance ) ) { continue ; } if ( tryToSetValueThroughSetter ( entry , i...
public class PeriodicReplicationService { /** * Stop replications currently in progress and cancel future scheduled replications . */ public synchronized void stopPeriodicReplication ( ) { } }
if ( isPeriodicReplicationEnabled ( ) ) { setPeriodicReplicationEnabled ( false ) ; AlarmManager alarmManager = ( AlarmManager ) getSystemService ( Context . ALARM_SERVICE ) ; Intent alarmIntent = new Intent ( this , clazz ) ; alarmIntent . setAction ( PeriodicReplicationReceiver . ALARM_ACTION ) ; PendingIntent pendin...
public class ListAliasesRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ListAliasesRequest listAliasesRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( listAliasesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listAliasesRequest . getOrganizationId ( ) , ORGANIZATIONID_BINDING ) ; protocolMarshaller . marshall ( listAliasesRequest . getEntityId ( ) , ENTITYID_BINDING ) ; pr...
public class AsynchConsumer { /** * Calls the registered AsynchConsumerCallback with the given * message enumeration . * @ param msgEnumeration An enumeration of the locked messages for * this AsynchConsumerCallback . */ void processMsgs ( LockedMessageEnumeration msgEnumeration , ConsumerSession consumerSession ...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processMsgs" , new Object [ ] { msgEnumeration , consumerSession } ) ; // Remember that a callback is running asynchConsumerRunning = true ; try { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) S...
public class LockTable { /** * Get the waitlist for this bookmark . */ public SessionInfo popWaitlistSession ( Object bookmark ) { } }
Vector < SessionInfo > vector = m_htWaitLists . get ( bookmark ) ; if ( vector == null ) return null ; SessionInfo sessionInfo = vector . remove ( 0 ) ; if ( vector . size ( ) == 0 ) m_htWaitLists . remove ( bookmark ) ; return sessionInfo ;
public class SpringCamelContextFactory { /** * Create a single { @ link SpringCamelContext } from the given URL * @ throws IllegalStateException if the given URL does not contain a single context definition */ public static SpringCamelContext createSingleCamelContext ( URL contextUrl , ClassLoader classsLoader ) thro...
SpringCamelContextBootstrap bootstrap = new SpringCamelContextBootstrap ( contextUrl , classsLoader ) ; List < SpringCamelContext > list = bootstrap . createSpringCamelContexts ( ) ; IllegalStateAssertion . assertEquals ( 1 , list . size ( ) , "Single context expected in: " + contextUrl ) ; return list . get ( 0 ) ;
public class LDADemo { /** * Execute the projection algorithm and return a swing JComponent representing * the clusters . */ public JComponent learn ( ) { } }
double [ ] [ ] data = dataset [ datasetIndex ] . toArray ( new double [ dataset [ datasetIndex ] . size ( ) ] [ ] ) ; String [ ] names = dataset [ datasetIndex ] . toArray ( new String [ dataset [ datasetIndex ] . size ( ) ] ) ; if ( names [ 0 ] == null ) { names = null ; } int [ ] label = dataset [ datasetIndex ] . to...
public class Helpers { /** * Create a Deliverable inside the database that will track a file created by a JobInstance Must be called from inside a transaction * @ param path * FilePath ( relative to a root directory - cf . Node ) * @ param originalFileName * FileName * @ param fileFamily * File family ( may...
QueryResult qr = cnx . runUpdate ( "deliverable_insert" , fileFamily , path , jobId , originalFileName , UUID . randomUUID ( ) . toString ( ) ) ; return qr . getGeneratedId ( ) ;
public class VersionableWorkspaceDataManager { /** * { @ inheritDoc } */ @ Override public ItemData getItemData ( NodeData parentData , QPathEntry name , ItemType itemType ) throws RepositoryException { } }
return getItemData ( parentData , name , itemType , true ) ;
public class MetricName { /** * Same as { @ link # tagged ( Map ) } , but takes a variadic list * of arguments . * @ see # tagged ( Map ) * @ param pairs An even list of strings acting as key - value pairs . * @ return A newly created metric name with the specified tags associated * with it . */ public Metric...
if ( pairs == null ) { return this ; } if ( pairs . length % 2 != 0 ) { throw new IllegalArgumentException ( "Argument count must be even" ) ; } final Map < String , String > add = new HashMap < > ( ) ; for ( int i = 0 ; i < pairs . length ; i += 2 ) { add . put ( pairs [ i ] , pairs [ i + 1 ] ) ; } return tagged ( add...
public class ChannelManager { /** * Returns a channel from the ChannelManager ' s cache with the given name If * multiple channels are found , returns the most recently CREATED one . If * two channels with the very same date exist , avoid HUNGUP ones . * @ param name the name of the requested channel . * @ retu...
Date dateOfCreation = null ; AsteriskChannelImpl channel = null ; if ( name == null ) { return null ; } synchronized ( channels ) { for ( AsteriskChannelImpl tmp : channels . values ( ) ) { if ( name . equals ( tmp . getName ( ) ) ) { // return the most recent channel or when dates are similar , // the active one if ( ...
public class I2CLcdDisplay { /** * private voi */ private void write ( int incomingData ) throws Exception { } }
int tmpData = incomingData ; BitSet bits = fromByte ( ( byte ) tmpData ) ; byte out = ( byte ) ( ( bits . get ( 3 ) ? 1 << d7Bit : 0 << d7Bit ) | ( bits . get ( 2 ) ? 1 << d6Bit : 0 << d6Bit ) | ( bits . get ( 1 ) ? 1 << d5Bit : 0 << d5Bit ) | ( bits . get ( 0 ) ? 1 << d4Bit : 0 << d4Bit ) | ( isBacklight ( ) ? 1 << ba...
public class AmazonWorkDocsClient { /** * Describes the permissions of a specified resource . * @ param describeResourcePermissionsRequest * @ return Result of the DescribeResourcePermissions operation returned by the service . * @ throws UnauthorizedOperationException * The operation is not permitted . * @ t...
request = beforeClientExecution ( request ) ; return executeDescribeResourcePermissions ( request ) ;
public class AppsImpl { /** * Lists all of the user applications . * @ param listOptionalParameter the object representing the optional parameters to be set before calling this API * @ throws IllegalArgumentException thrown if parameters fail the validation * @ throws ErrorResponseException thrown if the request ...
return listWithServiceResponseAsync ( listOptionalParameter ) . toBlocking ( ) . single ( ) . body ( ) ;
public class AmazonCloudWatchClient { /** * Returns a list of the dashboards for your account . If you include < code > DashboardNamePrefix < / code > , only those * dashboards with names starting with the prefix are listed . Otherwise , all dashboards in your account are listed . * < code > ListDashboards < / code...
request = beforeClientExecution ( request ) ; return executeListDashboards ( request ) ;
public class CMYKColor { /** * Calculates a color or colors between two color at a specific increment . * @ param colorSet1 * interpolate from this color * @ param colorSet2 * interpolate to this color * @ param amt * between 0.0 and 1.0 * @ return * The calculated color values . */ public static Color ...
return lerpColor ( ( CMYKColor ) CMYKColor . color ( colorSet1 ) , ( CMYKColor ) CMYKColor . color ( colorSet2 ) , amt ) ;
public class InvocationStatFactory { /** * 对批量InvocationStat快照进行一个更新 * @ param snapshots InvocationStat */ public static void updateInvocationStats ( List < InvocationStat > snapshots ) { } }
for ( InvocationStat snapshot : snapshots ) { getInvocationStat ( snapshot . getDimension ( ) ) . update ( snapshot ) ; }
public class MySQLProtocol { /** * create a DrizzleQueryResult - precondition is that a result set packet has been read * @ param packet the result set packet from the server * @ return a DrizzleQueryResult * @ throws java . io . IOException when something goes wrong while reading / writing from the server */ pri...
final List < ColumnInformation > columnInformation = new ArrayList < ColumnInformation > ( ) ; for ( int i = 0 ; i < packet . getFieldCount ( ) ; i ++ ) { final RawPacket rawPacket = packetFetcher . getRawPacket ( ) ; final ColumnInformation columnInfo = MySQLFieldPacket . columnInformationFactory ( rawPacket ) ; colum...
public class KafkaSource { /** * This function need to be thread safe since it is called in the Runnable */ private List < WorkUnit > getWorkUnitsForTopic ( KafkaTopic topic , SourceState state , Optional < State > topicSpecificState ) { } }
Timer . Context context = this . metricContext . timer ( "isTopicQualifiedTimer" ) . time ( ) ; boolean topicQualified = isTopicQualified ( topic ) ; context . close ( ) ; List < WorkUnit > workUnits = Lists . newArrayList ( ) ; for ( KafkaPartition partition : topic . getPartitions ( ) ) { WorkUnit workUnit = getWorkU...
public class AmazonDynamoDBAsyncClient { /** * Retrieves a paginated list of table names created by the AWS Account * of the caller in the AWS Region ( e . g . < code > us - east - 1 < / code > ) . * @ param listTablesRequest Container for the necessary parameters to * execute the ListTables operation on AmazonDy...
return executorService . submit ( new Callable < ListTablesResult > ( ) { public ListTablesResult call ( ) throws Exception { return listTables ( listTablesRequest ) ; } } ) ;
public class Response { /** * If Content - Type header is not set , it is set to " application / octet - stream " . * @ param byteBuf Will be released */ public ChannelFuture respondBinary ( ByteBuf byteBuf ) throws Exception { } }
if ( HttpUtil . isTransferEncodingChunked ( response ) ) { respondHeadersOnlyForFirstChunk ( ) ; return channel . writeAndFlush ( new DefaultHttpContent ( byteBuf ) ) ; } else { if ( ! response . headers ( ) . contains ( CONTENT_TYPE ) ) response . headers ( ) . set ( CONTENT_TYPE , "application/octet-stream" ) ; respo...
public class SqlLoaderImpl { /** * 指定されたパッケージ以下のSQLを順次読み込みする < br > * 文末の " / " は削除される < br > * @ param packageName パッケージ名を格納するStringBuilder * @ param dir 探索対象ディレクトリ * @ return SQL識別子をキーとしたSQL文のMap * @ throws IOException ファイルアクセスに失敗した場合 */ private ConcurrentHashMap < String , String > load ( final String...
LOG . debug ( "Loading SQL template.[{}]" , packageName ) ; ConcurrentHashMap < String , String > sqlMap = new ConcurrentHashMap < > ( ) ; File [ ] files = dir . listFiles ( ) ; for ( File file : files ) { String fileName = file . getName ( ) ; if ( file . isDirectory ( ) ) { sqlMap . putAll ( load ( makeNewPackageName...
public class DirectedAcyclicGraph { /** * Sorts a given set of payloads topologically based on the DAG . This method requires all the * payloads to be in the DAG . * @ param payloads the set of input payloads * @ return the payloads after topological sort */ public List < T > sortTopologically ( Set < T > payload...
List < T > result = new ArrayList < > ( ) ; Set < T > input = new HashSet < > ( payloads ) ; Deque < DirectedAcyclicGraphNode < T > > toVisit = new ArrayDeque < > ( mRoots ) ; while ( ! toVisit . isEmpty ( ) ) { DirectedAcyclicGraphNode < T > visit = toVisit . removeFirst ( ) ; T payload = visit . getPayload ( ) ; if (...
public class CloseableExecutorService { /** * Closes any tasks currently in progress */ @ Override public void close ( ) { } }
isOpen . set ( false ) ; Iterator < Future < ? > > iterator = futures . iterator ( ) ; while ( iterator . hasNext ( ) ) { Future < ? > future = iterator . next ( ) ; iterator . remove ( ) ; if ( ! future . isDone ( ) && ! future . isCancelled ( ) && ! future . cancel ( true ) ) { log . warn ( "Could not cancel " + futu...
public class DRFModelV3 { /** * Version & Schema - specific filling into the impl */ @ Override public DRFModel createImpl ( ) { } }
DRFV3 . DRFParametersV3 p = this . parameters ; DRFModel . DRFParameters parms = p . createImpl ( ) ; return new DRFModel ( model_id . key ( ) , parms , new DRFModel . DRFOutput ( null ) ) ;
public class ReentrantTransactionDispatcher { /** * Acquire transaction with a single permit in a thread . Transactions are acquired reentrantly , i . e . * with respect to transactions already acquired in the thread . * @ return the number of acquired permits , identically equal to 1. */ int acquireTransaction ( @...
try ( CriticalSection ignored = criticalSection . enter ( ) ) { final int currentThreadPermits = getThreadPermitsToAcquire ( thread ) ; waitForPermits ( thread , currentThreadPermits > 0 ? nestedQueue : regularQueue , 1 , currentThreadPermits ) ; } return 1 ;
public class FloatAttribute { /** * ByteAttribute operands */ public FloatAttribute plus ( com . gs . fw . finder . attribute . ByteAttribute attribute ) { } }
return FloatNumericType . getInstance ( ) . createCalculatedAttribute ( FloatNumericType . getInstance ( ) . createAdditionCalculator ( this , ( ByteAttribute ) attribute ) ) ;
public class TranSynchronization { /** * Upon successful transaction commit status , store the value of the committed metrics . * Upon any other status value roll back the metrics to the last committed value . * @ see javax . transaction . Synchronization # afterCompletion ( int ) */ @ Override public void afterCom...
logger . log ( Level . FINE , "The status of the transaction commit is: " + status ) ; if ( status == Status . STATUS_COMMITTED ) { // Save the metrics object after a successful commit runtimeStepExecution . setCommittedMetrics ( ) ; } else { // status = 4 = STATUS _ ROLLEDBACK ; runtimeStepExecution . rollBackMetrics ...
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getIfcWindowStyle ( ) { } }
if ( ifcWindowStyleEClass == null ) { ifcWindowStyleEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 648 ) ; } return ifcWindowStyleEClass ;
public class AmazonRDSClient { /** * Modifies the properties of an endpoint in an Amazon Aurora DB cluster . * < note > * This action only applies to Aurora DB clusters . * < / note > * @ param modifyDBClusterEndpointRequest * @ return Result of the ModifyDBClusterEndpoint operation returned by the service . ...
request = beforeClientExecution ( request ) ; return executeModifyDBClusterEndpoint ( request ) ;
public class GradientActivity { /** * This is where you specify custom camera settings . See { @ link boofcv . android . camera2 . SimpleCamera2Activity } ' s * JavaDoc for more funcitons which you can override . * @ param captureRequestBuilder Used to configure the camera . */ @ Override protected void configureCa...
captureRequestBuilder . set ( CaptureRequest . CONTROL_AF_MODE , CaptureRequest . CONTROL_AF_MODE_CONTINUOUS_VIDEO ) ; captureRequestBuilder . set ( CaptureRequest . CONTROL_AE_MODE , CaptureRequest . CONTROL_AE_MODE_ON ) ;
public class CmsADEManager { /** * Returns the settings configured for the given formatter . < p > * @ param cms the cms context * @ param mainFormatter the formatter * @ param res the element resource * @ param locale the content locale * @ param req the current request , if available * @ return the settin...
Map < String , CmsXmlContentProperty > result = new LinkedHashMap < String , CmsXmlContentProperty > ( ) ; Visibility defaultVisibility = Visibility . elementAndParentIndividual ; if ( mainFormatter != null ) { for ( Entry < String , CmsXmlContentProperty > entry : mainFormatter . getSettings ( ) . entrySet ( ) ) { Vis...
public class AmazonQuickSightClient { /** * Lists the Amazon QuickSight groups that an Amazon QuickSight user is a member of . * The permission resource is * < code > arn : aws : quicksight : us - east - 1 : < i > & lt ; aws - account - id & gt ; < / i > : user / default / < i > & lt ; user - name & gt ; < / i > < ...
request = beforeClientExecution ( request ) ; return executeListUserGroups ( request ) ;
public class AbstractXMLReader { /** * / * - - - - - [ Properties ] - - - - - */ @ Override public void setProperty ( String name , Object value ) throws SAXNotRecognizedException , SAXNotSupportedException { } }
if ( ! _setProperty ( name , value ) ) throw new SAXNotRecognizedException ( name ) ;
public class PCA9685GpioProvider { /** * The built - in Oscillator runs at ~ 25MHz . For better accuracy user can provide a correction * factor to meet desired frequency . < p > * < b > Note : < / b > correction is limited to a certain degree because the calculated prescale value has to be * rounded to an integer...
validateFrequency ( targetFrequency ) ; frequency = targetFrequency ; periodDurationMicros = calculatePeriodDuration ( ) ; int prescale = calculatePrescale ( frequencyCorrectionFactor ) ; int oldMode ; try { oldMode = device . read ( PCA9685A_MODE1 ) ; int newMode = ( oldMode & 0x7F ) | 0x10 ; // sleep device . write (...
public class SlotPoolImpl { /** * Start the slot pool to accept RPC calls . * @ param jobMasterId The necessary leader id for running the job . * @ param newJobManagerAddress for the slot requests which are sent to the resource manager * @ param componentMainThreadExecutor The main thread executor for the job mas...
this . jobMasterId = jobMasterId ; this . jobManagerAddress = newJobManagerAddress ; this . componentMainThreadExecutor = componentMainThreadExecutor ; scheduleRunAsync ( this :: checkIdleSlot , idleSlotTimeout ) ; if ( log . isDebugEnabled ( ) ) { scheduleRunAsync ( this :: scheduledLogStatus , STATUS_LOG_INTERVAL_MS ...
public class FileCache { /** * Leave a 5 seconds delay to clear the local file . */ public void deleteTmpFile ( String name , JobID jobID ) { } }
DeleteProcess dp = new DeleteProcess ( name , jobID , count . get ( new ImmutablePair ( jobID , name ) ) ) ; executorService . schedule ( dp , 5000L , TimeUnit . MILLISECONDS ) ;
public class FileSystemSizeMarshaller { /** * Marshall the given parameter object . */ public void marshall ( FileSystemSize fileSystemSize , ProtocolMarshaller protocolMarshaller ) { } }
if ( fileSystemSize == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( fileSystemSize . getValue ( ) , VALUE_BINDING ) ; protocolMarshaller . marshall ( fileSystemSize . getTimestamp ( ) , TIMESTAMP_BINDING ) ; protocolMarshaller . marshall ...
public class TimeZone { /** * Returns a new SimpleTimeZone for an ID of the form " GMT [ + | - ] hh [ [ : ] mm ] " , or null . */ private static TimeZone getCustomTimeZone ( String id ) { } }
Matcher m = NoImagePreloadHolder . CUSTOM_ZONE_ID_PATTERN . matcher ( id ) ; if ( ! m . matches ( ) ) { return null ; } int hour ; int minute = 0 ; try { hour = Integer . parseInt ( m . group ( 1 ) ) ; if ( m . group ( 3 ) != null ) { minute = Integer . parseInt ( m . group ( 3 ) ) ; } } catch ( NumberFormatException i...
public class DataTypeParser { /** * Returns a long value from the input token stream assuming the long is bracketed with parenthesis . * @ param tokens * @ param dataType * @ return the long value */ protected long parseBracketedLong ( DdlTokenStream tokens , DataType dataType ) { } }
consume ( tokens , dataType , false , L_PAREN ) ; String value = consume ( tokens , dataType , false ) ; consume ( tokens , dataType , false , R_PAREN ) ; return parseLong ( value ) ;
public class Bean { /** * Reset the state timeout timer . If this timer fires , the client has waited too long for a * state update from the Bean and an error will be fired . */ private void resetSketchStateTimeout ( ) { } }
TimerTask onTimeout = new TimerTask ( ) { @ Override public void run ( ) { returnUploadError ( BeanError . STATE_TIMEOUT ) ; } } ; stopSketchStateTimeout ( ) ; sketchStateTimeout = new Timer ( ) ; sketchStateTimeout . schedule ( onTimeout , SKETCH_UPLOAD_STATE_TIMEOUT ) ;
public class Flow { /** * Adds a history as an extra to an Intent . */ public static void addHistory ( @ NonNull Intent intent , @ NonNull History history , @ NonNull KeyParceler parceler ) { } }
InternalLifecycleIntegration . addHistoryToIntent ( intent , history , parceler ) ;
public class CmsJlanNetworkFile { /** * Deletes the file . < p > * @ throws IOException if something goes wrong */ public void delete ( ) throws IOException { } }
try { load ( false ) ; ensureLock ( ) ; m_cms . deleteResource ( m_cms . getSitePath ( m_resource ) , CmsResource . DELETE_PRESERVE_SIBLINGS ) ; if ( ! m_resource . getState ( ) . isNew ( ) ) { try { m_cms . unlockResource ( m_cms . getSitePath ( m_resource ) ) ; } catch ( CmsException e ) { LOG . warn ( e . getLocaliz...
public class Models { /** * Summarize fields which are generic to water . Model . */ private static void summarizeModelCommonFields ( ModelSummary summary , Model model ) { } }
String [ ] names = model . _names ; summary . warnings = model . warnings ; summary . model_algorithm = model . getClass ( ) . toString ( ) ; // fallback only // model . job ( ) is a local copy ; on multinode clusters we need to get from the DKV Key job_key = ( ( Job ) model . job ( ) ) . self ( ) ; if ( null == job_ke...
public class LogViewSerialization { /** * Serializes the log view under the given path . * @ param logView Log view to serialize . * @ param path Target path of the serialized log view . * @ throws IOException If the log view can ' t be written under the given * path . */ public static void write ( LogView logV...
String xml = xstream . toXML ( logView ) ; try ( BufferedWriter out = new BufferedWriter ( new FileWriter ( path ) ) ) { out . write ( xml ) ; }
public class KeyDecoder { /** * Decodes the given byte array which was encoded by { @ link * KeyEncoder # encodeSingleDesc } . Always returns a new byte array instance . * @ param prefixPadding amount of extra bytes to skip from start of encoded byte array * @ param suffixPadding amount of extra bytes to skip at ...
try { int length = src . length - suffixPadding - prefixPadding ; if ( length == 0 ) { return EMPTY_BYTE_ARRAY ; } byte [ ] dst = new byte [ length ] ; while ( -- length >= 0 ) { dst [ length ] = ( byte ) ( ~ src [ prefixPadding + length ] ) ; } return dst ; } catch ( IndexOutOfBoundsException e ) { throw new CorruptEn...
public class TabularDataExtractor { /** * See also # 97 for details . */ private Object getKey ( CompositeType rowType , String key , String value ) { } }
OpenType keyType = rowType . getType ( key ) ; if ( SimpleType . STRING == keyType ) { return value ; } else if ( SimpleType . INTEGER == keyType ) { return Integer . parseInt ( value ) ; } else if ( SimpleType . LONG == keyType ) { return Long . parseLong ( value ) ; } else if ( SimpleType . SHORT == keyType ) { retur...
public class FileLog { /** * This method will check to see if the supplied parameters match the settings on the < code > oldLog < / code > , * if they do then the < code > oldLog < / code > is returned , otherwise a new FileLogHolder will be created . * @ param oldLog The previous FileLogHolder that may or may not ...
final FileLog logHolder ; // We ' re only supporting names in the log directory // Our configurations encourage use of forward slash on all platforms int lio = newFileName . lastIndexOf ( "/" ) ; if ( lio > 0 ) { newFileName = newFileName . substring ( lio + 1 ) ; } if ( File . separatorChar != '/' ) { // Go sniffing f...
public class FDBigInt { /** * Subtract one FDBigInt from another . Return a FDBigInt * Assert that the result is positive . */ public FDBigInt sub ( FDBigInt other ) { } }
int r [ ] = new int [ this . nWords ] ; int i ; int n = this . nWords ; int m = other . nWords ; int nzeros = 0 ; long c = 0L ; for ( i = 0 ; i < n ; i ++ ) { c += ( long ) this . data [ i ] & 0xffffffffL ; if ( i < m ) { c -= ( long ) other . data [ i ] & 0xffffffffL ; } if ( ( r [ i ] = ( int ) c ) == 0 ) nzeros ++ ;...
public class DFSFile { /** * Provides a detailed string for this file * @ return the string formatted as * < tt > & lt ; filename & gt ; ( & lt ; size & gt ; , r & lt ; replication & gt ; ) < / tt > */ public String toDetailedString ( ) { } }
final String [ ] units = { "b" , "Kb" , "Mb" , "Gb" , "Tb" } ; int unit = 0 ; double l = this . length ; while ( ( l >= 1024.0 ) && ( unit < units . length ) ) { unit += 1 ; l /= 1024.0 ; } return String . format ( "%s (%.1f %s, r%d)" , super . toString ( ) , l , units [ unit ] , this . replication ) ;
public class AbstractRadial { /** * Enables / disables the visibility of the arc that represents the range of measured values * @ param RANGE _ OF _ MEASURED _ VALUES _ VISIBLE */ public void setRangeOfMeasuredValuesVisible ( final boolean RANGE_OF_MEASURED_VALUES_VISIBLE ) { } }
getModel ( ) . setRangeOfMeasuredValuesVisible ( RANGE_OF_MEASURED_VALUES_VISIBLE ) ; init ( getInnerBounds ( ) . width , getInnerBounds ( ) . height ) ; repaint ( getInnerBounds ( ) ) ;
public class WhileyFileParser { /** * Parse an array type , which is of the form : * < pre > * ArrayType : : = Type ' [ ' ' ] ' * < / pre > * @ return */ private Type parseArrayType ( EnclosingScope scope ) { } }
int start = index ; Type element = parseBaseType ( scope ) ; while ( tryAndMatch ( true , LeftSquare ) != null ) { match ( RightSquare ) ; element = annotateSourceLocation ( new Type . Array ( element ) , start ) ; } return element ;
public class HttpOutboundServiceContextImpl { /** * Send the given body buffers for the outgoing request synchronously . * If chunked encoding is set , then each call to this method will be * considered a " chunk " and encoded as such . If the message is * Content - Length defined , then the buffers will simply b...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "sendRequestBody(sync)" ) ; } if ( isMessageSent ( ) ) { throw new MessageSentException ( "Message already sent" ) ; } // if headers haven ' t been sent , set for partial body transfer if ( ! headersSent ( ) ) { if ( TraceCom...
public class Lifecycle { /** * Adds a handler to the Lifecycle and starts it if the lifecycle has already been started . * @ param handler The hander to add to the lifecycle * @ param stage The stage to add the lifecycle at * @ throws Exception an exception thrown from handler . start ( ) . If an exception is thr...
synchronized ( handlers ) { if ( started . get ( ) ) { if ( currStage == null || stage . compareTo ( currStage ) < 1 ) { handler . start ( ) ; } } handlers . get ( stage ) . add ( handler ) ; }
public class HostVsanInternalSystem { /** * Query VSAN system statistics . This is a low level API that gathers low level statistic counters from the system . * The details of the counters remain undocumented and unsupported at this point , and this API remains internal . * The data for this API call mostly comes f...
return getVimService ( ) . queryVsanStatistics ( getMOR ( ) , labels ) ;
public class DriverFactory { /** * OperatorDesc can describe local reasources , URL , loaded resources and dynamic resources like * groovy code . This method instantiates an Operator based on the OperatorDesc . * @ param operatorDesc * @ return */ public static Operator buildOperator ( OperatorDesc operatorDesc ,...
Operator operator = null ; NitFactory nitFactory = new NitFactory ( ) ; NitDesc nitDesc = nitDescFromDynamic ( operatorDesc ) ; try { if ( nitDesc . getSpec ( ) == NitDesc . NitSpec . GROOVY_CLOSURE ) { operator = new GroovyOperator ( ( Closure ) nitFactory . construct ( nitDesc ) ) ; } else { operator = nitFactory . c...
public class FileUtils { /** * 将文件内容作为一个字符串返回 * @ param file * @ param encoding * @ return * @ throws Exception */ static public String fileToString ( String file , String encoding ) throws Exception { } }
FileInputStream fis = new FileInputStream ( file ) ; ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; byte [ ] buffer = new byte [ 10240 ] ; int len = fis . read ( buffer , 0 , buffer . length ) ; while ( len > 0 ) { baos . write ( buffer , 0 , len ) ; len = fis . read ( buffer , 0 , buffer . length ) ; } f...
public class CurrencyHelper { /** * Try to parse a string value formatted by the { @ link NumberFormat } object * returned from { @ link # getCurrencyFormat ( ECurrency ) } . E . g . * < code > & euro ; 5,00 < / code > * @ param eCurrency * The currency it is about . If < code > null < / code > is provided * ...
final PerCurrencySettings aPCS = getSettings ( eCurrency ) ; final DecimalFormat aCurrencyFormat = aPCS . getCurrencyFormat ( ) ; return parseCurrency ( sTextValue , aCurrencyFormat , aDefault , aPCS . getRoundingMode ( ) ) ;
public class StaticFilesConfiguration { /** * Configures location for static resources * @ param folder the location */ public synchronized void configureExternal ( String folder ) { } }
Assert . notNull ( folder , "'folder' must not be null" ) ; if ( ! externalStaticResourcesSet ) { try { ExternalResource resource = new ExternalResource ( folder ) ; if ( ! resource . getFile ( ) . isDirectory ( ) ) { LOG . error ( "External Static resource location must be a folder" ) ; return ; } if ( staticResourceH...
public class CRFModel { /** * 维特比后向算法标注 * @ param table */ public void tag ( Table table ) { } }
int size = table . size ( ) ; if ( size == 0 ) return ; int tagSize = id2tag . length ; double [ ] [ ] net = new double [ size ] [ tagSize ] ; for ( int i = 0 ; i < size ; ++ i ) { LinkedList < double [ ] > scoreList = computeScoreList ( table , i ) ; for ( int tag = 0 ; tag < tagSize ; ++ tag ) { net [ i ] [ tag ] = c...
public class DocNumberCache { /** * Returns the cache entry for < code > uuid < / code > , or < code > null < / code > if * no entry exists for < code > uuid < / code > . * @ param uuid the key . * @ return cache entry or < code > null < / code > . */ Entry get ( String uuid ) { } }
LRUMap cacheSegment = docNumbers [ getSegmentIndex ( uuid . charAt ( 0 ) ) ] ; // uuid may be invalid // if ( uuid . length ( ) ! = UUID . UUID _ FORMATTED _ LENGTH ) { // return null ; String key = uuid ; Entry entry ; synchronized ( cacheSegment ) { entry = ( Entry ) cacheSegment . get ( key ) ; } if ( log . isDebugE...
public class Graph { /** * Runs a ScatterGather iteration on the graph . * No configuration options are provided . * @ param scatterFunction the scatter function * @ param gatherFunction the gather function * @ param maximumNumberOfIterations maximum number of iterations to perform * @ return the updated Grap...
return this . runScatterGatherIteration ( scatterFunction , gatherFunction , maximumNumberOfIterations , null ) ;
public class WindowFunctionExpression { /** * Functions to find subexpressions by class . We need to search the * partition by and order by lists . */ @ Override public < aeClass > List < aeClass > findAllSubexpressionsOfClass ( Class < ? extends AbstractExpression > aeClass ) { } }
List < aeClass > list = super . findAllSubexpressionsOfClass ( aeClass ) ; for ( AbstractExpression pbexpr : m_partitionByExpressions ) { list . addAll ( pbexpr . findAllSubexpressionsOfClass ( aeClass ) ) ; } for ( AbstractExpression sortExpr : m_orderByExpressions ) { list . addAll ( sortExpr . findAllSubexpressionsO...
public class PartnerUserService { /** * Deletes the user with the given id . * @ param partnerId The id of the partner the user belongs to * @ param accountId The id of the account for the user * @ param userId The id of the user to delete * @ return This object */ public PartnerUserService delete ( long partne...
HTTP . DELETE ( String . format ( "/v2/partners/%d/accounts/%d/users/%d" , partnerId , accountId , userId ) ) ; return this ;
public class DateSpinner { /** * { @ inheritDoc } */ @ Override public void removeAdapterItemAt ( int index ) { } }
if ( index == getSelectedItemPosition ( ) ) { Calendar date = getSelectedDate ( ) ; selectTemporary ( new DateItem ( formatDate ( date ) , date , NO_ID ) ) ; } super . removeAdapterItemAt ( index ) ;
public class TAEnabledRandomAccessFile { /** * Schliesst die Datei und den FileChannel * @ throws java . io . IOException , wenn das Schliessen schief geht . */ public void close ( ) throws IOException { } }
if ( raf != null ) { // gibt Lock auf datei frei try { if ( this . fileLock != null ) { if ( ! fileLock . release ( ) ) { LOG . error ( "Filelock not release properly" ) ; } } else { LOG . error ( "No Filelock set" ) ; } } finally { // Schliessen der Daten - Datei this . fileLock = null ; raf . close ( ) ; raf = null ;...
public class JKDateTimeUtil { /** * Gets the difference . * @ param timeFrom the time from * @ param timeTo the time to * @ return the difference */ public static long getDifference ( Time timeFrom , Time timeTo ) { } }
try { DateFormat format = new SimpleDateFormat ( "HH:mm:ss" ) ; // the a means am / pm marker Date date = format . parse ( timeFrom . toString ( ) ) ; Date date2 = format . parse ( timeTo . toString ( ) ) ; long difference = ( date2 . getTime ( ) - date . getTime ( ) ) / 1000 / 60 ; return difference ; } catch ( Except...
public class JmsBytesMessageImpl { /** * Checks to see if the producer has promised not to modify the payload after it ' s been set . * If they have , then throw a JMS exception based on the parameters * @ throws JMSException */ private void checkProducerPromise ( String jmsMethod , String ffdcProbeID ) throws JMSE...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "checkProducerPromise" , new Object [ ] { jmsMethod , ffdcProbeID } ) ; // Only proceed if the producer hasn ' t promised not to modify the payload // after setting it . if ( producerWontModifyPayloadAfterSet ) { thro...
public class ArrayHelper { /** * Check if the passed object is an array or not . * @ param aObject * The object to be checked . May be < code > null < / code > . * @ return < code > true < / code > if the passed object is not < code > null < / code > and * represents an array . */ public static boolean isArray ...
return aObject != null && ClassHelper . isArrayClass ( aObject . getClass ( ) ) ;
public class Bond { /** * Returns the geometric 3D center of the bond . * @ return The geometric 3D center of the bond */ @ Override public Point3d get3DCenter ( ) { } }
double xOfCenter = 0 ; double yOfCenter = 0 ; double zOfCenter = 0 ; for ( IAtom atom : atoms ) { xOfCenter += atom . getPoint3d ( ) . x ; yOfCenter += atom . getPoint3d ( ) . y ; zOfCenter += atom . getPoint3d ( ) . z ; } return new Point3d ( xOfCenter / getAtomCount ( ) , yOfCenter / getAtomCount ( ) , zOfCenter / ge...
public class Hasher { /** * Hashes system environment . * http : / / docs . oracle . com / javase / tutorial / essential / environment / sysprop . html */ public String hashSystemEnv ( ) { } }
List < String > system = new ArrayList < String > ( ) ; for ( Entry < Object , Object > el : System . getProperties ( ) . entrySet ( ) ) { system . add ( el . getKey ( ) + " " + el . getValue ( ) ) ; } Map < String , String > env = System . getenv ( ) ; for ( Entry < String , String > el : env . entrySet ( ) ) { system...
public class SubWriterHolderWriter { /** * Add the summary link for the member . * @ param mw the writer for the member being documented * @ param member the member to be documented * @ param contentTree the content tree to which the link will be added */ public void addSummaryLinkComment ( AbstractMemberWriter m...
List < ? extends DocTree > tags = utils . getFirstSentenceTrees ( member ) ; addSummaryLinkComment ( mw , member , tags , contentTree ) ;