signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class MessageTimeoutProcess { /** * Run Method . */ public void run ( ) { } }
MessageLog recMessageLog = ( MessageLog ) this . getMainRecord ( ) ; try { Date timeTimeout = null ; while ( recMessageLog . hasNext ( ) ) { recMessageLog . next ( ) ; timeTimeout = ( ( DateTimeField ) recMessageLog . getField ( MessageLog . TIMEOUT_TIME ) ) . getDateTime ( ) ; if ( timeTimeout == null ) continue ; // ...
public class InternalPureXbaseParser { /** * InternalPureXbase . g : 2188:1 : ruleXPostfixOperation returns [ EObject current = null ] : ( this _ XMemberFeatureCall _ 0 = ruleXMemberFeatureCall ( ( ( ( ) ( ( ruleOpPostfix ) ) ) ) = > ( ( ) ( ( ruleOpPostfix ) ) ) ) ? ) ; */ public final EObject ruleXPostfixOperation ( ...
EObject current = null ; EObject this_XMemberFeatureCall_0 = null ; enterRule ( ) ; try { // InternalPureXbase . g : 2194:2 : ( ( this _ XMemberFeatureCall _ 0 = ruleXMemberFeatureCall ( ( ( ( ) ( ( ruleOpPostfix ) ) ) ) = > ( ( ) ( ( ruleOpPostfix ) ) ) ) ? ) ) // InternalPureXbase . g : 2195:2 : ( this _ XMemberFeatu...
public class ExifGpsWriter { /** * Private method - adds gps information to the exif data * @ param pos a GPSPosition object containing the information to encode * @ param exif the exif metadata to add the position to */ private IIOMetadata insertGPSCoords ( IIOMetadata exif ) { } }
IIOMetadata outExif = null ; try { TIFFDirectory ifd = TIFFDirectory . createFromMetadata ( exif ) ; TIFFField gpsInfoPointer = null ; // first get the pointer from the directory if it ' s not there create a new one if ( ifd . containsTIFFField ( EXIFParentTIFFTagSet . TAG_GPS_INFO_IFD_POINTER ) ) { gpsInfoPointer = if...
public class RamlTypeHelper { /** * Safely get description from a type with null checks * @ param type * The RAML TypeDeclaration to check * @ return The description if defined or null if empty */ public static String getDescription ( TypeDeclaration type ) { } }
if ( type == null || type . description ( ) == null ) { return null ; } else { return type . description ( ) . value ( ) ; }
public class QueueListener { /** * Setup subscriptions when the Observable subscription is set up . * @ param subscriber the subscriber */ @ Override public void call ( Subscriber < ? super Job < K , V > > subscriber ) { } }
log . debug ( "onSubscribe()" ) ; if ( subscriber . isUnsubscribed ( ) ) { return ; } String subscriberId = getClass ( ) . getSimpleName ( ) + "-" + id + "-" + subscriberIds . incrementAndGet ( ) ; subscriber . onStart ( ) ; try { Scheduler . Worker worker = scheduler . createWorker ( ) ; GetJobsAction < K , V > getJob...
public class CancelResizeResult { /** * The names of tables that are being currently imported . * Valid Values : List of table names . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setImportTablesInProgress ( java . util . Collection ) } or * { @ link #...
if ( this . importTablesInProgress == null ) { setImportTablesInProgress ( new com . amazonaws . internal . SdkInternalList < String > ( importTablesInProgress . length ) ) ; } for ( String ele : importTablesInProgress ) { this . importTablesInProgress . add ( ele ) ; } return this ;
public class Tracy { /** * Facilitate annotating annotations received from the Client in the X - Tracy - Annotations HTTP header < br > * Currently only supporting string annotations in CSV format . Example usage below : * e . g . * < code > < pre > * public void doGet ( HttpServletRequest request , HttpServlet...
if ( null != csvAnnotations ) { String [ ] split = csvAnnotations . split ( "," ) ; if ( split . length % 2 == 0 ) { String value = "null" ; for ( int i = 0 ; i < split . length / 2 ; i ++ ) { String key = split [ 2 * i ] . toString ( ) ; if ( null != split [ 2 * i + 1 ] ) { value = split [ 2 * i + 1 ] . toString ( ) ;...
public class ParserDescription { /** * Returns whether this parser is in the specified group . * @ param other * the name of the group * @ return < code > true < / code > if this parser is in the specified group */ public boolean isInGroup ( final String other ) { } }
return ParserRegistry . getParser ( group ) . getGroup ( ) . equals ( ParserRegistry . getParser ( other ) . getGroup ( ) ) ;
public class ZScreenField { /** * Display this screen ' s hidden params . * @ param out The html out stream . * @ exception DBException File exception . */ public void addHiddenParams ( PrintWriter out , Map < String , Object > mapParams ) { } }
for ( String key : mapParams . keySet ( ) ) { if ( mapParams . get ( key ) != null ) this . addHiddenParam ( out , key , mapParams . get ( key ) . toString ( ) ) ; }
public class JmxManagementService { /** * NotificationListener support for connection open and closed notifications */ @ Override public void handleNotification ( Notification notification , Object handback ) { } }
String notificationType = notification . getType ( ) ; if ( notificationType . equals ( JMXConnectionNotification . OPENED ) ) { managementContext . incrementManagementSessionCount ( ) ; } else if ( notificationType . equals ( JMXConnectionNotification . CLOSED ) ) { managementContext . decrementManagementSessionCount ...
public class BaasDocument { /** * Asynchronously retrieves the number of documents readable to the user that match the < code > filter < / code > * in < code > collection < / code > * @ param collection the collection to doCount not < code > null < / code > * @ param filter a { @ link BaasQuery . Criteria } to ap...
BaasBox box = BaasBox . getDefaultChecked ( ) ; filter = filter == null ? BaasQuery . builder ( ) . count ( true ) . criteria ( ) : filter . buildUpon ( ) . count ( true ) . criteria ( ) ; if ( collection == null ) throw new IllegalArgumentException ( "collection cannot be null" ) ; Count count = new Count ( box , coll...
public class PropertyLookup { /** * given a file reads in its properties * @ param propFile File to read * @ return a Properties object with data filled from propFile * @ throws PropertyLookupException thrown if error loading property file */ public static Properties fetchProperties ( final File propFile ) { } }
final Properties properties = new Properties ( ) ; try { FileInputStream fis = new FileInputStream ( propFile ) ; try { properties . load ( fis ) ; } finally { if ( null != fis ) { fis . close ( ) ; } } } catch ( IOException e ) { throw new PropertyLookupException ( "failed loading properties from file: " + propFile , ...
public class spilloverpolicy_gslbvserver_binding { /** * Use this API to fetch spilloverpolicy _ gslbvserver _ binding resources of given name . */ public static spilloverpolicy_gslbvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { } }
spilloverpolicy_gslbvserver_binding obj = new spilloverpolicy_gslbvserver_binding ( ) ; obj . set_name ( name ) ; spilloverpolicy_gslbvserver_binding response [ ] = ( spilloverpolicy_gslbvserver_binding [ ] ) obj . get_resources ( service ) ; return response ;
public class JsonConfigReader { /** * Reads configuration and parameterize it with given values . * @ param correlationId ( optional ) transaction id to trace execution through * call chain . * @ param parameters values to parameters the configuration * @ return ConfigParams configuration . * @ throws Applica...
Object value = readObject ( correlationId , parameters ) ; return ConfigParams . fromValue ( value ) ;
public class StatementParameter { /** * 获取参数类型数组 . * @ return */ protected int [ ] getArgTypes ( ) { } }
// { Types . CHAR , Types . VARCHAR , Types . TIMESTAMP , Types . VARCHAR } ; int [ ] valuesTypes = new int [ type . size ( ) ] ; Object [ ] types = type . toArray ( ) ; for ( int i = 0 ; i < types . length ; i ++ ) { valuesTypes [ i ] = this . getIntType ( i ) ; } return valuesTypes ;
public class SiteProperties { /** * Returns the list of additional fields that navigation items should extract from the item descriptor . */ public static String [ ] getNavigationAdditionalFields ( ) { } }
Configuration config = ConfigUtils . getCurrentConfig ( ) ; if ( config != null && config . containsKey ( NAVIGATION_ADDITIONAL_FIELDS_CONFIG_KEY ) ) { return config . getStringArray ( NAVIGATION_ADDITIONAL_FIELDS_CONFIG_KEY ) ; } else { return new String [ ] { } ; }
public class CodaHaleMetricsTracker { /** * { @ inheritDoc } */ @ Override public void close ( ) { } }
registry . remove ( MetricRegistry . name ( poolName , METRIC_CATEGORY , METRIC_NAME_WAIT ) ) ; registry . remove ( MetricRegistry . name ( poolName , METRIC_CATEGORY , METRIC_NAME_USAGE ) ) ; registry . remove ( MetricRegistry . name ( poolName , METRIC_CATEGORY , METRIC_NAME_CONNECT ) ) ; registry . remove ( MetricRe...
public class GenericHibernateDao { /** * Helper method : Creates a criteria for the { @ link # entityClass } of this dao . * The query results will be handled with a * { @ link DistinctRootEntityResultTransformer } . The criteria will contain * all passed criterions . * @ return */ protected Criteria createDist...
Criteria criteria = getSession ( ) . createCriteria ( entityClass ) ; addCriterionsToCriteria ( criteria , criterion ) ; criteria . setResultTransformer ( Criteria . DISTINCT_ROOT_ENTITY ) ; criteria . setCacheable ( this . useQueryCache ) ; return criteria ;
public class GetSecretValueResult { /** * A list of all of the staging labels currently attached to this version of the secret . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setVersionStages ( java . util . Collection ) } or { @ link # withVersionStages ( ...
if ( this . versionStages == null ) { setVersionStages ( new java . util . ArrayList < String > ( versionStages . length ) ) ; } for ( String ele : versionStages ) { this . versionStages . add ( ele ) ; } return this ;
public class Matrix4d { /** * / * ( non - Javadoc ) * @ see org . joml . Matrix4dc # perspectiveFov ( ) */ public double perspectiveFov ( ) { } }
/* * Compute the angle between the bottom and top frustum plane normals . */ double n1x , n1y , n1z , n2x , n2y , n2z ; n1x = m03 + m01 ; n1y = m13 + m11 ; n1z = m23 + m21 ; // bottom n2x = m01 - m03 ; n2y = m11 - m13 ; n2z = m21 - m23 ; // top double n1len = Math . sqrt ( n1x * n1x + n1y * n1y + n1z * n1z ) ; double n...
public class DoubleDistributionSummary { /** * Updates the statistics kept by the summary with the specified amount . * @ param amount * Amount for an event being measured . For example , if the size in bytes of responses * from a server . If the amount is less than 0 the value will be dropped . */ public void re...
if ( amount >= 0.0 ) { add ( totalAmount , amount ) ; add ( totalOfSquares , amount * amount ) ; max ( max , amount ) ; count . incrementAndGet ( ) ; lastUpdateTime . set ( clock . wallTime ( ) ) ; }
public class DataType { /** * When a data type is multi - valued , this method is called to convert raw data into a * collection of values matching this data type . If the raw value is a string , this * method assumes that the string represents a comma - delimited , multi - value * attribute . * @ param src the...
ArrayList < V > values = new ArrayList < V > ( ) ; if ( src instanceof String ) { String [ ] words = ( ( String ) src ) . split ( "," ) ; if ( words . length < 1 ) { values . add ( getValue ( src ) ) ; } else { for ( String word : words ) { values . add ( getValue ( word ) ) ; } } return values ; } else if ( src instan...
public class StringUtils { /** * < p > Checks if the CharSequence contains only Unicode letters or digits . < / p > * < p > { @ code null } will return { @ code false } . * An empty CharSequence ( length ( ) = 0 ) will return { @ code false } . < / p > * < pre > * StringUtils . isAlphanumeric ( null ) = false ...
if ( isEmpty ( cs ) ) { return false ; } final int sz = cs . length ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { if ( ! Character . isLetterOrDigit ( cs . charAt ( i ) ) ) { return false ; } } return true ;
public class VTimeZone { /** * Convert RFC2445 utc - offset string to milliseconds */ private static int offsetStrToMillis ( String str ) { } }
boolean isValid = false ; int sign = 0 , hour = 0 , min = 0 , sec = 0 ; do { if ( str == null ) { break ; } int length = str . length ( ) ; if ( length != 5 && length != 7 ) { // utf - offset must be 5 or 7 characters break ; } // sign char s = str . charAt ( 0 ) ; if ( s == '+' ) { sign = 1 ; } else if ( s == '-' ) { ...
public class ConcurrentConveyor { /** * Offers an item to the given queue . No check is performed that the queue * actually belongs to this conveyor . * @ return whether the item was accepted by the queue * @ throws ConcurrentConveyorException if the draining thread has already left */ public final boolean offer ...
if ( queue . offer ( item ) ) { return true ; } else { checkDrainerGone ( ) ; unparkDrainer ( ) ; return false ; }
public class AreaSizeConversions { /** * Convert an area size . * @ param a The area size * @ param < S > A phantom type parameter indicating the coordinate space of the * area size * @ return An area size */ public static < S > PAreaSizeI < S > toPAreaSizeI ( final AreaSizeI a ) { } }
Objects . requireNonNull ( a , "area size" ) ; return PAreaSizeI . of ( a . sizeX ( ) , a . sizeY ( ) ) ;
public class CpnlElFunctions { /** * Builds an external ( full qualified ) URL for a repository path using the LinkUtil . getURL ( ) method . * @ param request the current request ( domain host hint ) * @ param path the repository path * @ return the URL built in the context of the requested domain host */ public...
return LinkUtil . getAbsoluteUrl ( request , LinkUtil . getUrl ( request , path ) ) ;
public class VCard { /** * Load VCard information for a given user . XMPPConnection should be authenticated and not anonymous . * @ param connection connection . * @ param user user whos information we want to load . * @ throws XMPPErrorException * @ throws NoResponseException if there was no response from the ...
VCard result = VCardManager . getInstanceFor ( connection ) . loadVCard ( user ) ; copyFieldsFrom ( result ) ;
public class CmsSiteDetailDialog { /** * Build select options for the position . < p > * @ param currSite the current selected site * @ return the select options */ private List < CmsSelectWidgetOption > createNavOpts ( CmsSiteBean currSite ) { } }
List < CmsSite > sites = new ArrayList < CmsSite > ( ) ; for ( CmsSite site : OpenCms . getSiteManager ( ) . getAvailableSites ( getCms ( ) , true ) ) { if ( site . getSiteMatcher ( ) != null ) { sites . add ( site ) ; } } float maxValue = 0 ; float nextPos = 0 ; // calculate value for the first navigation position flo...
public class KeyVaultClientBaseImpl { /** * Deletes a SAS definition from a specified storage account . This operation requires the storage / deletesas permission . * @ param vaultBaseUrl The vault name , for example https : / / myvault . vault . azure . net . * @ param storageAccountName The name of the storage ac...
return ServiceFuture . fromResponse ( deleteSasDefinitionWithServiceResponseAsync ( vaultBaseUrl , storageAccountName , sasDefinitionName ) , serviceCallback ) ;
public class ArrayIterate { /** * Searches for the first occurrence of the given argument , testing * for equality using the < tt > equals < / tt > method . */ public static < T > int indexOf ( T [ ] objectArray , T elem ) { } }
return InternalArrayIterate . indexOf ( objectArray , objectArray . length , elem ) ;
public class ConstantPool { /** * Get or create a constant from the constant pool representing a field in * any class . */ public ConstantFieldInfo addConstantField ( String className , String fieldName , TypeDesc type ) { } }
return ConstantFieldInfo . make ( this , ConstantClassInfo . make ( this , className ) , ConstantNameAndTypeInfo . make ( this , fieldName , type ) ) ;
public class BatchGetTriggersRequest { /** * A list of trigger names , which may be the names returned from the < code > ListTriggers < / code > operation . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setTriggerNames ( java . util . Collection ) } or { @ ...
if ( this . triggerNames == null ) { setTriggerNames ( new java . util . ArrayList < String > ( triggerNames . length ) ) ; } for ( String ele : triggerNames ) { this . triggerNames . add ( ele ) ; } return this ;
public class Math { /** * Given a list of numbers , returns their avg as double * any value in the list that is not a valid number is ignored * avg ( 2 , " 2 " , " abc " ) = = Optional . of ( 2.0) */ public static Optional < Double > avg ( List < Object > args ) { } }
double sum = 0d ; int count = 0 ; for ( Object arg : args ) { Optional < ? extends Number > numberOptional = Objects . toNumber ( arg ) ; if ( numberOptional . isPresent ( ) ) { sum = sum + numberOptional . get ( ) . doubleValue ( ) ; count = count + 1 ; } } return count == 0 ? Optional . < Double > empty ( ) : Optiona...
public class VonNeumannIntTupleIterator { /** * Update the minimum / maximum value based on the current * tuple , for the given index * @ param index The index */ private void updateMinMax ( int index ) { } }
if ( index >= min . getSize ( ) ) { return ; } int sum = 0 ; for ( int i = 0 ; i < index ; i ++ ) { sum += Math . abs ( current . get ( i ) ) ; } int m = radius - sum ; min . set ( index , - m ) ; max . set ( index , m ) ;
public class AbstractFunction { /** * Allows to find a function handler instance for its class * @ param < E > the class of the needed function handler extends the * AbstractFunction class * @ param functionClass the class of the needed handler , must not be null * @ return an instance of the needed handler or ...
E result = null ; for ( final AbstractFunction function : getAllFunctions ( ) ) { if ( function . getClass ( ) == functionClass ) { result = functionClass . cast ( function ) ; break ; } } return result ;
public class StandardResourceDescriptionResolver { /** * { @ inheritDoc } */ @ Override public String getResourceAttributeDeprecatedDescription ( String attributeName , Locale locale , ResourceBundle bundle ) { } }
return bundle . getString ( getBundleKey ( attributeName , DEPRECATED ) ) ;
public class PropertyTypeImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eSet ( int featureID , Object newValue ) { } }
switch ( featureID ) { case BpsimPackage . PROPERTY_TYPE__NAME : setName ( ( String ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ;
public class IdentityFactoryImpl { /** * This method orders the specified field values based on the * specified { @ link org . apache . ojb . broker . metadata . FieldDescriptor } . * @ param flds The { @ link org . apache . ojb . broker . metadata . FieldDescriptor } array . * @ param fieldNames The field names ...
String fieldName ; Object [ ] orderedValues = new Object [ flds . length ] ; for ( int i = 0 ; i < flds . length ; i ++ ) { fieldName = flds [ i ] . getPersistentField ( ) . getName ( ) ; int realPosition = findIndexForName ( fieldNames , fieldName ) ; orderedValues [ i ] = fieldValues [ realPosition ] ; } return order...
public class DialogControl { /** * Returns the last saved response for this dialog . * @ return The response , or null if none found . */ public DialogResponse < T > getLastResponse ( ) { } }
String saved = saveResponseId == null ? null : PropertyUtil . getValue ( SAVED_RESPONSE_PROP_NAME , saveResponseId ) ; int i = NumberUtils . toInt ( saved , - 1 ) ; DialogResponse < T > response = i < 0 || i >= responses . size ( ) ? null : responses . get ( i ) ; return response == null || response . isExcluded ( ) ? ...
public class AuthorizationImpl { /** * Removes < code > IPermissions < / code > from the cache . * @ param permissions IPermission [ ] */ private void removeFromPermissionsCache ( IPermission [ ] permissions ) throws AuthorizationException { } }
IAuthorizationPrincipal [ ] principals = getPrincipalsFromPermissions ( permissions ) ; removeFromPermissionsCache ( principals ) ;
public class MapFixture { /** * Stores double value in map . * @ param value value to be passed . * @ param name name to use this value for . * @ param map map to store value in . */ public void setDoubleValueForIn ( double value , String name , Map < String , Object > map ) { } }
setValueForIn ( Double . valueOf ( value ) , name , map ) ;
public class ListAssociatedFleetsRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ListAssociatedFleetsRequest listAssociatedFleetsRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( listAssociatedFleetsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listAssociatedFleetsRequest . getStackName ( ) , STACKNAME_BINDING ) ; protocolMarshaller . marshall ( listAssociatedFleetsRequest . getNextToken ( ) , NEXTT...
public class BatchHelper { /** * Flush our buffer if we are not already in a flush operation and we have data to flush . */ private void flushIfPossible ( boolean flushAll ) throws IOException { } }
if ( flushAll ) { flushLock . lock ( ) ; } else if ( pendingRequests . isEmpty ( ) || ! flushLock . tryLock ( ) ) { return ; } try { do { flushPendingRequests ( ) ; if ( flushAll ) { awaitRequestsCompletion ( ) ; } } while ( flushAll && ( ! pendingRequests . isEmpty ( ) || ! responseFutures . isEmpty ( ) ) ) ; } finall...
public class NoteRef { /** * If this note is linked , then it loads the corresponding notebook for the linked notebook . Use * { @ link # loadLinkedNotebook ( ) } to get the linked notebook . * @ return The note ' s notebook from server . * @ see # isLinked ( ) * @ see EvernoteLinkedNotebookHelper # getCorrespo...
if ( mNotebookGuid == null ) { return null ; } if ( mLinked ) { LinkedNotebook linkedNotebook = NoteRefHelper . getLinkedNotebook ( mNotebookGuid ) ; return NoteRefHelper . getSession ( ) . getEvernoteClientFactory ( ) . getLinkedNotebookHelper ( linkedNotebook ) . getCorrespondingNotebook ( ) ; } EvernoteNoteStoreClie...
public class PaxLoggingServiceImpl { /** * Configure Java Util Logging according to the provided configuration . * Convert the log4j configuration to JUL config . * It ' s necessary to do that , because with pax logging , JUL loggers are not replaced . * So we need to configure JUL loggers in order that log messa...
for ( Enumeration enum_ = java . util . logging . LogManager . getLogManager ( ) . getLoggerNames ( ) ; enum_ . hasMoreElements ( ) ; ) { String name = ( String ) enum_ . nextElement ( ) ; java . util . logging . Logger . getLogger ( name ) . setLevel ( null ) ; } for ( Enumeration < String > keys = configuration . key...
public class CmsResourceHistoryTable { /** * Adds a table column . < p > */ private void addRevertColumn ( ) { } }
CmsButtonCell < CmsHistoryResourceBean > replaceCell = new CmsButtonCell < CmsHistoryResourceBean > ( CmsHistoryMessages . titleRevert ( ) , I_CmsButton . ICON_FONT + " " + I_CmsButton . RESET , new ActionCell . Delegate < CmsHistoryResourceBean > ( ) { @ SuppressWarnings ( "synthetic-access" ) public void execute ( Cm...
public class XMLAssert { /** * Assert that two XML documents are similar * @ param err Message to be displayed on assertion failure * @ param control XML to be compared against * @ param test XML to be tested * @ throws SAXException * @ throws IOException */ public static void assertXMLEqual ( String err , Re...
Diff diff = new Diff ( control , test ) ; assertXMLEqual ( err , diff , true ) ;
public class AppServicePlansInner { /** * Retrieve all Hybrid Connections in use in an App Service plan . * Retrieve all Hybrid Connections in use in an App Service plan . * ServiceResponse < PageImpl < HybridConnectionInner > > * @ param resourceGroupName Name of the resource group to which the resource belongs . ...
if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( name == null ) { throw new IllegalArgumentException ( "Parameter name is required and cannot be null." ) ; } if ( this . client . subscriptionId ( ) == null ) { throw new Ille...
public class VodClient { /** * Delete the specific media resource managed by VOD service . * The caller < i > must < / i > authenticate with a valid BCE Access Key / Private Key pair . * @ param request The request object containing all the options on how to * @ return empty response will be returned */ public Ge...
checkStringNotEmpty ( request . getMediaId ( ) , "Media ID should not be null or empty!" ) ; InternalRequest internalRequest = createRequest ( HttpMethodName . GET , request , PATH_MEDIA , request . getMediaId ( ) , PARA_GENDELIVERY ) ; internalRequest . addParameter ( PARAM_TRANSCODING_PRESET_NAME , request . getTrans...
public class MutableClock { /** * Alters the specified field of this clock . * Atomically updates this clock to the value of the following expression : * < pre > * ZonedDateTime . now ( thisClock ) * . with ( field , newValue ) * . toInstant ( ) * < / pre > * @ param field the field to set , not null * ...
Objects . requireNonNull ( field , "field" ) ; synchronized ( instantHolder ) { ZonedDateTime current = ZonedDateTime . ofInstant ( instantHolder . get ( ) , zone ) ; ZonedDateTime result = current . with ( field , newValue ) ; instantHolder . set ( result . toInstant ( ) ) ; }
public class MathFunctions { /** * < div color = ' red ' style = " font - size : 24px ; color : red " > < b > < i > < u > JCYPHER < / u > < / i > < / b > < / div > * < div color = ' red ' style = " font - size : 18px ; color : red " > < i > return the the half versine of a number . < / i > < / div > * < div color =...
JcNumber ret = new JcNumber ( null , this . argument , new FunctionInstance ( FUNCTION . Math . HAVERSIN , 1 ) ) ; QueryRecorder . recordInvocationConditional ( this , "haversin" , ret ) ; return ret ;
public class Assert { /** * Asserts that two { @ link Object objects } are the same { @ link Object } as determined by the identity comparison . * The assertion holds if and only if the two { @ link Object objects } are the same { @ link Object } in memory . * @ param obj1 { @ link Object left operand } in the iden...
same ( obj1 , obj2 , new IdentityException ( format ( message , arguments ) ) ) ;
public class BasePanel { /** * Process the " Help " toolbar command . * @ param bUseSameWindow Use the same window ? * @ retrun true if successful . */ public boolean onHelp ( int iOptions ) { } }
String strPrevAction = this . getScreenURL ( ) ; if ( ( strPrevAction == null ) || ( strPrevAction . length ( ) == 0 ) ) return false ; // Can ' t handle help if I ' m not the target screen . // Note : The following is a hack to make the demo screen stop displaying after the first help is pressed if ( this . getPropert...
public class KuberntesServiceUrlResourceProvider { /** * @ param qualifiers * The qualifiers * @ return true if qualifiers contain the ` PortForward ` qualifier . */ private static boolean isPortForwardingEnabled ( Annotation ... qualifiers ) { } }
for ( Annotation q : qualifiers ) { if ( q instanceof PortForward ) { return true ; } } return false ;
public class Descriptives { /** * Calculates Maximum absolute value . * @ param flatDataCollection * @ return */ public static double maxAbsolute ( FlatDataCollection flatDataCollection ) { } }
double maxAbs = 0.0 ; Iterator < Double > it = flatDataCollection . iteratorDouble ( ) ; while ( it . hasNext ( ) ) { Double v = it . next ( ) ; if ( v != null ) { maxAbs = Math . max ( maxAbs , Math . abs ( v ) ) ; } } return maxAbs ;
public class StickyGridHeadersGridView { /** * Gets the header at an item position . However , the position must be that * of a HeaderFiller . * @ param position Position of HeaderFiller . * @ return Header View wrapped in HeaderFiller or null if no header was * found . */ public View getHeaderAt ( int position...
if ( position == MATCHED_STICKIED_HEADER ) { return mStickiedHeader ; } try { return ( View ) getChildAt ( position ) . getTag ( ) ; } catch ( Exception e ) { } return null ;
public class StructureTools { /** * Count how many Atoms are contained within a Structure object . * @ param s * the structure object * @ return the number of Atoms in this Structure */ public static final int getNrAtoms ( Structure s ) { } }
int nrAtoms = 0 ; Iterator < Group > iter = new GroupIterator ( s ) ; while ( iter . hasNext ( ) ) { Group g = iter . next ( ) ; nrAtoms += g . size ( ) ; } return nrAtoms ;
public class TimerNpImpl { /** * Returns a collection of all active Timers associated with the specified * BeanId . ( It does not look for timers queued to start or on a cancelled queue ) < p > * @ param beanId Bean identity for which active Timers will be returned . * @ return a collection of Timers associated w...
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "findTimersByBeanId: " + beanId ) ; int numActive = 0 ; ArrayList < Timer > timers = new ArrayList < Timer > ( ) ; // Search the active timers for all timer taskIDs associated with the give...
public class MergePolicyValidator { /** * Checks if a { @ link SplitBrainMergeTypeProvider } provides all required types of a given { @ link SplitBrainMergePolicy } . * @ param mergeTypeProvider the { @ link SplitBrainMergeTypeProvider } to retrieve the provided merge types * @ param mergePolicyInstance the { @ lin...
List < Class > requiredMergeTypes = new ArrayList < Class > ( ) ; Class providedMergeTypes = mergeTypeProvider . getProvidedMergeTypes ( ) ; Class < ? > mergePolicyClass = mergePolicyInstance . getClass ( ) ; String mergePolicyClassName = mergePolicyClass . getName ( ) ; // iterate over the complete class hierarchy of ...
public class FormSectionController { /** * Removes the form element with the specified name from this section . * @ param name the name of the form element to remove * @ return the removed form element instance , or null of no such element was found . */ public FormElementController removeElement ( String name ) { ...
FormElementController element = elements . remove ( name ) ; orderedElements . remove ( element ) ; return element ;
public class StartRemediationExecutionRequest { /** * A list of resource keys to be processed with the current request . Each element in the list consists of the * resource type and resource ID . * @ return A list of resource keys to be processed with the current request . Each element in the list consists of * t...
if ( resourceKeys == null ) { resourceKeys = new com . amazonaws . internal . SdkInternalList < ResourceKey > ( ) ; } return resourceKeys ;
public class BoxRetentionPolicy { /** * Returns iterable with all assignments of given type of this retention policy . * @ param type the type of the retention policy assignment to retrieve . Can either be " folder " or " enterprise " . * @ param limit the limit of entries per response . The default value is 100. ...
QueryStringBuilder queryString = new QueryStringBuilder ( ) ; if ( type != null ) { queryString . appendParam ( "type" , type ) ; } if ( fields . length > 0 ) { queryString . appendParam ( "fields" , fields ) ; } URL url = ASSIGNMENTS_URL_TEMPLATE . buildWithQuery ( getAPI ( ) . getBaseURL ( ) , queryString . toString ...
public class MODCAInterchangeSetImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public boolean eIsSet ( int featureID ) { } }
switch ( featureID ) { case AfplibPackage . MODCA_INTERCHANGE_SET__ISTYPE : return ISTYPE_EDEFAULT == null ? iStype != null : ! ISTYPE_EDEFAULT . equals ( iStype ) ; case AfplibPackage . MODCA_INTERCHANGE_SET__ISID : return ISID_EDEFAULT == null ? iSid != null : ! ISID_EDEFAULT . equals ( iSid ) ; } return super . eIsS...
public class NotificationManager { /** * Create a changes object from a delete operation . * @ param schemaName schemaName of deleted instances * @ param instanceIds id of deleted instances * @ return changes object */ public final ConfigChanges deleted ( String schemaName , Collection < String > instanceIds ) { ...
ConfigChanges changes = new ConfigChanges ( ) ; for ( String instanceId : instanceIds ) { BeanId id = BeanId . create ( instanceId , schemaName ) ; Optional < Bean > before = beanManager . getEager ( id ) ; if ( ! before . isPresent ( ) ) { throw Events . CFG304_BEAN_DOESNT_EXIST ( id ) ; } Bean bean = before . get ( )...
public class Selection { /** * Sort the double array in ascending order using this algorithm . * @ param doubleArray the array of double that we want to sort */ public static void sort ( double [ ] doubleArray ) { } }
int index = 0 ; double value = 0.0 ; for ( int i = 1 ; i < doubleArray . length ; i ++ ) { index = i ; value = doubleArray [ index ] ; while ( index > 0 && value < doubleArray [ index - 1 ] ) { doubleArray [ index ] = doubleArray [ index - 1 ] ; index -- ; } doubleArray [ index ] = value ; }
public class AsciiSet { /** * Returns true if all characters in the string are contained within the set . */ public boolean containsAll ( CharSequence str ) { } }
final int n = str . length ( ) ; for ( int i = 0 ; i < n ; ++ i ) { if ( ! contains ( str . charAt ( i ) ) ) { return false ; } } return true ;
public class AddMetadataAction { /** * Validates if parent node type is { @ link Constants # NT _ RESOURCE } . */ private NodeImpl getAndValidateParent ( PropertyImpl property ) throws Exception { } }
NodeImpl parent = property . getParent ( ) ; if ( ! parent . isNodeType ( "nt:resource" ) ) { throw new Exception ( "Incoming node is not nt:resource type" ) ; } return parent ;
public class AbstractReady { /** * { @ inheritDoc } */ @ Override public final < S extends Service > List < S > getServices ( final UniqueKey < S > serviceKey ) { } }
localFacade ( ) . globalFacade ( ) . trackEvent ( JRebirthEventType . ACCESS_SERVICE , this . getClass ( ) , serviceKey . classField ( ) ) ; return localFacade ( ) . globalFacade ( ) . serviceFacade ( ) . retrieveMany ( serviceKey ) ;
public class ParallelExecutor { /** * Run a task on all available CPUs . * @ param ids IDs to process * @ param procs Processors to run */ public static void run ( DBIDs ids , Processor ... procs ) { } }
ParallelCore core = ParallelCore . getCore ( ) ; core . connect ( ) ; try { // TODO : try different strategies anyway ! ArrayDBIDs aids = DBIDUtil . ensureArray ( ids ) ; final int size = aids . size ( ) ; int numparts = core . getParallelism ( ) ; // TODO : are there better heuristics for choosing this ? numparts = ( ...
public class ExpressionResolverImpl { /** * Perform a standard { @ link org . jboss . dmr . ModelNode # resolve ( ) } on the given { @ code unresolved } node . * @ param unresolved the unresolved node , which should be of type { @ link org . jboss . dmr . ModelType # EXPRESSION } * @ return a node of type { @ link ...
try { return unresolved . resolve ( ) . asString ( ) ; } catch ( SecurityException e ) { // A security exception should propagate no matter what the value of ignoreUnresolvable is . The first call to // this method for any expression will have ignoreUnresolvable set to ' false ' which means a basic test of // ability t...
public class ActionMapping { /** * Support four types of url * 1 : http : / / abc . com / controllerKey - - - > 00 * 2 : http : / / abc . com / controllerKey / para - - - > 01 * 3 : http : / / abc . com / controllerKey / method - - - > 10 * 4 : http : / / abc . com / controllerKey / method / para - - - > 11 *...
Action action = mapping . get ( url ) ; if ( action != null ) { return action ; } int i = url . lastIndexOf ( '/' ) ; if ( i != - 1 ) { action = mapping . get ( url . substring ( 0 , i ) ) ; if ( action != null ) { urlPara [ 0 ] = url . substring ( i + 1 ) ; } } return action ;
public class PersistentStreamBase { /** * Method to calculate number of splits and merges . * Principle to calculate the number of splits and merges : * 1 - An event has occurred if a reference range is present ( overlaps ) in at least two consecutive target ranges . * 2 - If the direction of the check in 1 is fo...
return referenceSegmentsList . stream ( ) . filter ( segment -> targetSegmentsList . stream ( ) . filter ( target -> target . overlaps ( segment ) ) . count ( ) > 1 ) . count ( ) ;
public class ClassUtils { /** * Copy the given Collection into a Class array . * The Collection must contain Class elements only . * @ param collection the Collection to copy * @ return the Class array ( { @ code null } if the passed - in * Collection was { @ code null } ) */ public static Class < ? > [ ] toCla...
if ( collection == null ) { return null ; } return collection . toArray ( new Class < ? > [ collection . size ( ) ] ) ;
public class Referenceable { /** * Matches traits , values associated with this Referenceable and skips the id match * @ param o The Referenceable which needs to be matched with * @ return */ public boolean equalsContents ( Object o ) { } }
if ( this == o ) { return true ; } if ( o == null ) { return false ; } if ( o . getClass ( ) != getClass ( ) ) { return false ; } if ( ! super . equalsContents ( o ) ) { return false ; } Referenceable obj = ( Referenceable ) o ; if ( ! traitNames . equals ( obj . getTraits ( ) ) ) { return false ; } return true ;
public class AbstractDatabaseEngine { /** * Gets the result set of the specified prepared statement . * @ param name The prepared statement name . * @ return The result . * @ throws DatabaseEngineException If something occurs getting the result . */ @ Override public synchronized List < Map < String , ResultColum...
return processResultIterator ( getPSIterator ( name ) ) ;
public class DescribeEgressOnlyInternetGatewaysRequest { /** * One or more egress - only internet gateway IDs . * @ return One or more egress - only internet gateway IDs . */ public java . util . List < String > getEgressOnlyInternetGatewayIds ( ) { } }
if ( egressOnlyInternetGatewayIds == null ) { egressOnlyInternetGatewayIds = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return egressOnlyInternetGatewayIds ;
public class StringHelper { /** * Take a concatenated String and return the passed String array of all elements * in the passed string , using specified separator char . * @ param cSep * The separator to use . * @ param sElements * The concatenated String to convert . May be < code > null < / code > or empty ...
if ( nMaxItems == 1 ) return new String [ ] { sElements } ; if ( hasNoText ( sElements ) ) return ArrayHelper . EMPTY_STRING_ARRAY ; final int nMaxResultElements = 1 + getCharCount ( sElements , cSep ) ; if ( nMaxResultElements == 1 ) { // Separator not found return new String [ ] { sElements } ; } final String [ ] ret...
public class Graph { /** * Returns true if there exists a path from u to v in this graph . * If includeAdjacent is false , it returns true if there exists * another path from u to v of distance > 1 */ private boolean pathExists ( T u , T v , boolean includeAdjacent ) { } }
if ( ! nodes . contains ( u ) || ! nodes . contains ( v ) ) { return false ; } if ( includeAdjacent && isAdjacent ( u , v ) ) { return true ; } Deque < T > stack = new LinkedList < > ( ) ; Set < T > visited = new HashSet < > ( ) ; stack . push ( u ) ; while ( ! stack . isEmpty ( ) ) { T node = stack . pop ( ) ; if ( no...
public class JdbcCpoXaAdapter { /** * This method is called to determine if the resource manager instance represented by the target object is the same as the resouce manager * instance represented by the parameter xares . * @ param xaResource - An XAResource object whose resource manager instance is to be compared ...
if ( xaResource == null ) throw CpoXaError . createXAException ( CpoXaError . XAER_INVAL , "Invalid parameter. xaResource cannot be null." ) ; return xaResource instanceof JdbcCpoXaAdapter ;
public class WebSocketServerHandshakerFactory { /** * Return that we need cannot not support the web socket version */ public static ChannelFuture sendUnsupportedVersionResponse ( Channel channel , ChannelPromise promise ) { } }
HttpResponse res = new DefaultFullHttpResponse ( HttpVersion . HTTP_1_1 , HttpResponseStatus . UPGRADE_REQUIRED ) ; res . headers ( ) . set ( HttpHeaderNames . SEC_WEBSOCKET_VERSION , WebSocketVersion . V13 . toHttpHeaderValue ( ) ) ; HttpUtil . setContentLength ( res , 0 ) ; return channel . writeAndFlush ( res , prom...
public class DeviceProxyFactory { public static DeviceProxy get ( String deviceName , String tangoHost ) throws DevFailed { } }
// Get full device name ( with tango host ) to manage multi tango _ host String fullDeviceName ; if ( deviceName . startsWith ( "tango://" ) || deviceName . startsWith ( "//" ) ) fullDeviceName = deviceName ; else fullDeviceName = "tango://" + tangoHost + "/" + deviceName ; // Get it if already exists DeviceProxy dev =...
public class JdiInitiator { /** * / * launch child target vm */ private VirtualMachine launchTarget ( ) { } }
LaunchingConnector launcher = ( LaunchingConnector ) connector ; try { VirtualMachine new_vm = timedVirtualMachineCreation ( ( ) -> launcher . launch ( connectorArgs ) , null ) ; process = new_vm . process ( ) ; return new_vm ; } catch ( Throwable ex ) { throw reportLaunchFail ( ex , "launch" ) ; }
public class CmsSecurityManager { /** * Subscribes the user or group to the resource . < p > * @ param context the request context * @ param poolName the name of the database pool to use * @ param principal the principal that subscribes to the resource * @ param resource the resource to subscribe to * @ throw...
CmsDbContext dbc = m_dbContextFactory . getDbContext ( context ) ; try { m_driverManager . subscribeResourceFor ( dbc , poolName , principal , resource ) ; } catch ( Exception e ) { if ( principal instanceof CmsUser ) { dbc . report ( null , Messages . get ( ) . container ( Messages . ERR_SUBSCRIBE_RESOURCE_FOR_USER_2 ...
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link CustomFieldDefinition } { @ code > } } */ @ XmlElementDecl ( namespace = "http://schema.intuit.com/finance/v3" , name = "CustomFieldDefinition" , substitutionHeadNamespace = "http://schema.intuit.com/finance/v3" , subs...
return new JAXBElement < CustomFieldDefinition > ( _CustomFieldDefinition_QNAME , CustomFieldDefinition . class , null , value ) ;
public class KieModuleModelImpl { /** * / * ( non - Javadoc ) * @ see org . kie . kModule . KieProject # addKBase ( org . kie . kModule . KieBaseModelImpl ) */ public KieBaseModel newKieBaseModel ( String name ) { } }
KieBaseModel kbase = new KieBaseModelImpl ( this , name ) ; Map < String , KieBaseModel > newMap = new HashMap < String , KieBaseModel > ( ) ; newMap . putAll ( this . kBases ) ; newMap . put ( kbase . getName ( ) , kbase ) ; setKBases ( newMap ) ; return kbase ;
public class StringColumn { /** * Added for naming consistency with all other columns */ public StringColumn append ( String value ) { } }
try { lookupTable . append ( value ) ; } catch ( NoKeysAvailableException ex ) { lookupTable = lookupTable . promoteYourself ( ) ; try { lookupTable . append ( value ) ; } catch ( NoKeysAvailableException e ) { // this can ' t happen throw new IllegalStateException ( e ) ; } } return this ;
public class ExtensionHookView { /** * Adds the given { @ link AbstractPanel } to the view hook , to be later added to the * { @ link org . parosproxy . paros . view . WorkbenchPanel WorkbenchPanel } as a * { @ link org . parosproxy . paros . view . WorkbenchPanel . PanelType # SELECT select } panel . * @ param p...
if ( selectPanelList == null ) { selectPanelList = createList ( ) ; } selectPanelList . add ( panel ) ;
public class FileStorageModule { /** * { @ inheritDoc } */ @ Override public int checkBounds ( long logicalBlockAddress , int transferLengthInBlocks ) { } }
// Checking if the logical block address is out of bounds if ( logicalBlockAddress < 0 || logicalBlockAddress >= getSizeInBlocks ( ) ) { return 1 ; } else // if the logical block address is in bounds but the transferlength // either exceeds // the device size or is faulty return 2 if ( transferLengthInBlocks < 0 || log...
public class FieldTable { /** * Constructor . * @ param record The initial record for this table . */ public void init ( Rec record ) { } }
m_dataSource = null ; this . setRecord ( record ) ; if ( record != null ) { Object owner = record . getOwner ( ) ; record . setOwner ( null ) ; // Make sure I don ' t create a new table when I call getTable ( ) . if ( record . getTable ( ) == null ) record . setTable ( this ) ; // Just being careful ( Note : Thick mode...
public class RepeaterExampleWithEditableRows { /** * Add all the required UI artefacts for this example . */ private void createExampleUi ( ) { } }
add ( new WHeading ( HeadingLevel . H2 , "Contacts" ) ) ; add ( repeater ) ; WButton addBtn = new WButton ( "Add" ) ; addBtn . setAction ( new Action ( ) { @ Override public void execute ( final ActionEvent event ) { addNewContact ( ) ; } } ) ; newNameField . setDefaultSubmitButton ( addBtn ) ; WButton printBtn = new W...
public class Grantee { /** * Checks if this object can modify schema objects or grant access rights * to them . */ public boolean hasSchemaUpdateOrGrantRights ( String schemaName ) { } }
// If a DBA if ( isAdmin ( ) ) { return true ; } Grantee schemaOwner = granteeManager . database . schemaManager . toSchemaOwner ( schemaName ) ; // If owner of Schema if ( schemaOwner == this ) { return true ; } // If a member of Schema authorization role if ( hasRole ( schemaOwner ) ) { return true ; } return false ;
public class SparseTensor { /** * Eliminates { @ code dimensionsToEliminate } , either by summing or * maximizing . * @ param dimensionsToEliminate * @ param useSum * @ return */ private SparseTensor reduceDimensions ( Set < Integer > dimensionsToEliminate , boolean useSum , Backpointers backpointers ) { } }
// TODO ( jayantk ) : This method can be generalized to support a // generic reduce // operation ( as a function ) , but it ' s unclear what the effect on // performance will be . // Rotate all of the dimensions which are being eliminated to the // end of the keyNums array . int [ ] newLabels = new int [ numDimensions ...
public class ForLoopRepository { /** * { @ inheritDoc } */ @ Override public Data get ( Interest interest ) throws DataNotFoundException { } }
Name . Component selectedComponent = null ; Data selectedData = null ; for ( Record record : storage ) { if ( interest . matchesName ( record . data . getName ( ) ) ) { if ( hasNoChildSelector ( interest ) && hasAcceptableFreshness ( interest , record ) ) { selectedData = record . data ; } else { Name . Component compo...
public class Batch { /** * / * ( non - Javadoc ) * @ see com . googlecode . batchfb . Batcher # queryFirst ( java . lang . String ) */ @ Override public Later < JsonNode > queryFirst ( String fql ) { } }
Later < ArrayNode > q = this . query ( fql ) ; return new FirstNodeLater ( q ) ;
public class JavacHandlerUtil { /** * Given a list of field names and a node referring to a type , finds each name in the list that does not match a field within the type . */ public static List < Integer > createListOfNonExistentFields ( List < String > list , JavacNode type , boolean excludeStandard , boolean exclude...
boolean [ ] matched = new boolean [ list . size ( ) ] ; for ( JavacNode child : type . down ( ) ) { if ( list . isEmpty ( ) ) break ; if ( child . getKind ( ) != Kind . FIELD ) continue ; JCVariableDecl field = ( JCVariableDecl ) child . get ( ) ; if ( excludeStandard ) { if ( ( field . mods . flags & Flags . STATIC ) ...
public class CommandFaceDescriptor { /** * Configures the given action with the information contained in this descriptor . * @ param action The action to be configured . Must not be null . * @ throws IllegalArgumentException if { @ code action } is null . */ public void configure ( Action action ) { } }
Assert . notNull ( action , "The swing action to configure is required" ) ; action . putValue ( Action . NAME , getText ( ) ) ; action . putValue ( Action . MNEMONIC_KEY , new Integer ( getMnemonic ( ) ) ) ; action . putValue ( Action . SMALL_ICON , getIcon ( ) ) ; action . putValue ( "LargeIcon" , getLargeIcon ( ) ) ;...
public class SlotManager { /** * Free the given slot from the given allocation . If the slot is still allocated by the given * allocation id , then the slot will be marked as free and will be subject to new slot requests . * @ param slotId identifying the slot to free * @ param allocationId with which the slot is...
checkInit ( ) ; TaskManagerSlot slot = slots . get ( slotId ) ; if ( null != slot ) { if ( slot . getState ( ) == TaskManagerSlot . State . ALLOCATED ) { if ( Objects . equals ( allocationId , slot . getAllocationId ( ) ) ) { TaskManagerRegistration taskManagerRegistration = taskManagerRegistrations . get ( slot . getI...
public class HttpURLConnectionImpl { /** * Splits and validates a comma - separated string of protocols . * When append = = false , we require that the transport list contains " http / 1.1 " . * Throws { @ link IllegalStateException } when one of the protocols isn ' t * defined in { @ link Protocol OkHttp ' s pro...
List < Protocol > protocolsList = new ArrayList < > ( ) ; if ( append ) { protocolsList . addAll ( client . getProtocols ( ) ) ; } for ( String protocol : protocolsString . split ( "," , - 1 ) ) { try { protocolsList . add ( Protocol . get ( protocol ) ) ; } catch ( IOException e ) { throw new IllegalStateException ( e...
public class IntervalTree { /** * Removes the Interval . * @ param i the interval to remove */ public boolean remove ( Interval < K > i ) { } }
checkValidInterval ( i ) ; return remove ( root . left , i ) ;