signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class Table { /** * Adds elements from the list to the table * @ param list The list of tuples of seqnos and elements . If remove _ added _ elements is true , if elements could * not be added to the table ( e . g . because they were already present or the seqno was < HD ) , those * elements will be removed...
if ( list == null || list . isEmpty ( ) ) return false ; boolean added = false ; // find the highest seqno ( unfortunately , the list is not ordered by seqno ) long highest_seqno = findHighestSeqno ( list ) ; lock . lock ( ) ; try { if ( highest_seqno != - 1 && computeRow ( highest_seqno ) >= matrix . length ) resize (...
public class FailoverGuacamoleSocket { /** * Parses the given " error " instruction , throwing an exception if the * instruction represents an error from the upstream remote desktop . * @ param instruction * The " error " instruction to parse . * @ throws GuacamoleUpstreamException * If the " error " instruct...
// Ignore error instructions which are missing the status code List < String > args = instruction . getArgs ( ) ; if ( args . size ( ) < 2 ) { logger . debug ( "Received \"error\" instruction without status code." ) ; return ; } // Parse the status code from the received error instruction int statusCode ; try { statusC...
public class MessageStoreImpl { /** * JsMonitoredComponent Implementation */ @ Override public final void reportGlobalError ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "reportGlobalError" ) ; // Set our health status to GLOBAL _ ERROR // to stop any other servers attempting // to recover our session . if ( _healthState . couldBeWorse ( ) ) { _healthState = JsHealthState . getGlobalE...
public class AttachedRemoteSubscriberIterator { /** * This method returns the attached remote subscriber control or null if there isn ' t one . * @ return SIMPAttachedRemoteSubscriberControl * @ see java . util . Iterator # next ( ) */ public Object next ( ) { } }
if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "next" ) ; } Object result ; if ( hasNext ( ) ) { AnycastInputHandler aih = ( AnycastInputHandler ) anycastIHIterator . next ( ) ; result = aih . getControlAdapter ( ) ; } else { result = null ; } if ( tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , "next" , result ...
public class QuadTreeNode { /** * Set the Fourth child of this node . * @ param newChild is the new child for the fourth zone * @ return < code > true < / code > on success , otherwhise < code > false < / code > */ public boolean setFourthChild ( N newChild ) { } }
final N oldChild = this . nSouthEast ; if ( oldChild == newChild ) { return false ; } if ( oldChild != null ) { oldChild . setParentNodeReference ( null , true ) ; -- this . notNullChildCount ; firePropertyChildRemoved ( 3 , oldChild ) ; } if ( newChild != null ) { final N oldParent = newChild . getParentNode ( ) ; if ...
public class ApiOvhDedicatedserver { /** * Get this object properties * REST : GET / dedicated / server / { serviceName } / virtualMac / { macAddress } / virtualAddress / { ipAddress } * @ param serviceName [ required ] The internal name of your dedicated server * @ param macAddress [ required ] Virtual MAC addre...
String qPath = "/dedicated/server/{serviceName}/virtualMac/{macAddress}/virtualAddress/{ipAddress}" ; StringBuilder sb = path ( qPath , serviceName , macAddress , ipAddress ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhVirtualMacManagement . class ) ;
public class ObjectManager { /** * Create an iterator over all transactions known to this ObjectManager . * The iterator returned is safe against concurrent modification of the set of transactions , * new transactions created after the iterator is created may not be covered by the iterator . * @ return java . uti...
if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "getTransactionIterator" ) ; java . util . Iterator transactionIterator = objectManagerState . getTransactionIterator ( ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , ...
public class ImageJPGCodec { /** * { @ inheritDoc } */ @ Override public Image decode ( String value ) { } }
if ( value == null || value . isEmpty ( ) ) { return null ; } byte [ ] buffer = Base64 . decodeBase64 ( value ) ; InputStream in = new ByteArrayInputStream ( buffer ) ; BufferedImage bImageFromConvert ; try { bImageFromConvert = ImageIO . read ( in ) ; return bImageFromConvert ; } catch ( IOException e ) { throw new Ru...
public class DispatcherServlet { /** * Handle flow . * @ param request the specified request * @ param response the specified response * @ return context */ public static RequestContext handle ( final HttpServletRequest request , final HttpServletResponse response ) { } }
try { request . setCharacterEncoding ( "UTF-8" ) ; response . setCharacterEncoding ( "UTF-8" ) ; } catch ( final Exception e ) { LOGGER . log ( Level . ERROR , "Sets request context character encoding failed" , e ) ; } final RequestContext ret = new RequestContext ( ) ; ret . setRequest ( request ) ; ret . setResponse ...
public class WebService { /** * method to generate an image for a monomer * @ param monomer * Monomer Input * @ param showRgroups * wheter to show the r groups in the image * @ return generated molecule image in byte [ ] * @ throws BuilderMoleculeException * if the molecule can not be built * @ throws C...
return Images . generateImageofMonomer ( monomer , showRgroups ) ;
public class SessionApi { /** * Login ( HTTP session only ) * Starts the OAuth 2 flow for the Authorization Code grant type and returns a redirect to the Authentication service . For more information , see the [ Authentication API ] ( / reference / authentication / ) . * @ param redirectUri The URI the Authenticati...
loginWithHttpInfo ( redirectUri , type , locale , includeState ) ;
public class JMeterPluginsUtils { /** * Find in panel appropriate place and put hyperlink there . I know that it * is stupid way . But the result is so good ! * @ param panel - supposed to be result of makeTitlePanel ( ) * @ param helpPage wiki page name , or full URL in case of external wiki * @ return origina...
if ( ! java . awt . Desktop . isDesktopSupported ( ) ) { return panel ; } JLabel icon = new JLabel ( ) ; icon . setIcon ( new javax . swing . ImageIcon ( JMeterPluginsUtils . class . getResource ( "vizualizers/information.png" ) ) ) ; JLabel link = new JLabel ( "Help on this plugin" ) ; link . setForeground ( Color . b...
public class AmazonSimpleWorkflowClient { /** * Used by deciders to get a < a > DecisionTask < / a > from the specified decision < code > taskList < / code > . A decision task * may be returned for any open workflow execution that is using the specified task list . The task includes a * paginated view of the histor...
request = beforeClientExecution ( request ) ; return executePollForDecisionTask ( request ) ;
public class Gosuc { /** * - Then run this from IJ using ' classpath of module ' setting to match the proper module for pl / pc / cc etc . ( this is so the global loaders will be in the classpath ) */ public static void main ( String [ ] args ) throws FileNotFoundException { } }
String error = GosucArg . parseArgs ( args ) ; if ( error != null ) { System . err . println ( error ) ; return ; } String strFile = GosucArg . PROJECT . getValue ( ) ; Gosuc gosuc = new Gosuc ( strFile , maybeGetCustomParser ( ) ) ; gosuc . initializeGosu ( ) ; gosuc . compile ( ( String ) null , Collections . singlet...
public class AptUtil { /** * Returns unqualified class name ( e . g . String , if java . lang . String ) * NB : This method requires the given element has the kind of { @ link ElementKind # CLASS } . * @ param element * @ return unqualified class name * @ author vvakame */ public static String getSimpleName ( E...
if ( element . getKind ( ) != ElementKind . CLASS ) { throw new IllegalStateException ( ) ; } String str = element . asType ( ) . toString ( ) ; int i = str . lastIndexOf ( "." ) ; return str . substring ( i + 1 ) ;
public class GsmUtil { /** * Creates multiple short messages ( that include a user data header ) by * splitting the binaryShortMessage data into 134 byte parts . If the * binaryShortMessage does not need to be concatenated ( less than or equal * to 140 bytes ) , this method will return NULL . * < br > < br > ...
if ( binaryShortMessage == null ) { return null ; } // if the short message does not need to be concatenated if ( binaryShortMessage . length <= 140 ) { return null ; } // since the UDH will be 6 bytes , we ' ll split the data into chunks of 134 int numParts = ( int ) ( binaryShortMessage . length / 134 ) + ( binarySho...
public class LocalQueuePoint { /** * / * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . runtime . SIMPLocalQueueControllable # getMessageHandler ( ) */ public SIMPMessageHandlerControllable getMessageHandler ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMessageHandler" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getMessageHandler" , handlerControl ) ; return handlerControl ;
public class FileSystemClassInformationRepository { /** * Add a custom class . * @ param className name of class * @ param classInformation information for class * @ throws NullPointerException if any argument is { @ code null } * @ throws IllegalArgumentException if { @ code className } already exists in this ...
Validate . notNull ( className ) ; Validate . notNull ( classInformation ) ; Validate . isTrue ( ! hierarchyMap . containsKey ( className ) ) ; hierarchyMap . put ( className , classInformation ) ;
public class EscapeUtil { /** * Create a split pattern for a given delimiter */ private static Pattern [ ] createSplitPatterns ( String pEscape , String pDel ) { } }
return new Pattern [ ] { // Escape ( $ 1 : Everything before the delimiter , $ 2 : Trailing escaped values ( optional ) Pattern . compile ( "(.*?)" + // Any chars "(?:" + // The delimiter not preceded by an escape ( but pairs of escape & value can be in // are allowed before nevertheless ) . A negative - look - before ...
public class YamlUtil { /** * Constructs the path of the node with the provided { @ code parent } * node and { @ code nodeName } . * @ param parent The parent node * @ param childName The name of the node the path is constructed for * @ return the constructed path of the node */ public static String constructPa...
if ( childName != null ) { childName = NAME_APOSTROPHE_PATTERN . matcher ( childName ) . replaceAll ( "\"$1\"" ) ; } if ( parent != null && parent . path ( ) != null ) { return parent . path ( ) + "/" + childName ; } return childName ;
public class DataLabelingServiceClient { /** * Gets an example by resource name , including both data and annotation . * < p > Sample code : * < pre > < code > * try ( DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient . create ( ) ) { * String formattedName = DataLabelingServiceCli...
EXAMPLE_PATH_TEMPLATE . validate ( name , "getExample" ) ; GetExampleRequest request = GetExampleRequest . newBuilder ( ) . setName ( name ) . setFilter ( filter ) . build ( ) ; return getExample ( request ) ;
public class ValueStack { /** * convertToDouble . * @ param fromStack a { @ link java . lang . Object } object . * @ return a double . * @ throws java . text . ParseException if any . */ protected double convertToDouble ( final Object fromStack ) throws ParseException { } }
if ( fromStack instanceof Number ) return ( ( Number ) fromStack ) . doubleValue ( ) ; if ( fromStack instanceof String ) return Double . parseDouble ( ( String ) fromStack ) ; if ( fromStack instanceof LocalDateTime ) return CalendarFactory . asDateLong ( ( LocalDateTime ) fromStack ) ; final StringBuilder errMsg = ne...
public class DefaultWriteFutureEx { /** * { @ inheritDoc } */ @ Override public boolean isWritten ( ) { } }
if ( isDone ( ) ) { Object v = getValue ( ) ; if ( v instanceof Boolean ) { return ( Boolean ) v ; } } return false ;
public class CxDxSessionFactoryImpl { /** * ( non - Javadoc ) * @ seeorg . jdiameter . api . cxdx . ClientCxDxSessionListener # doRegistrationTerminationRequest ( * org . jdiameter . api . cxdx . ClientCxDxSession , org . jdiameter . api . cxdx . events . JRegistrationTerminationRequest ) */ @ Override public void ...
logger . info ( "Diameter Cx/Dx Session Factory :: doRegistrationTerminationRequest :: appSession[{}], Request[{}]" , appSession , request ) ;
public class JsonHelper { /** * Parses an ISO 8601 date + time string into a Java Date object . */ public static Date parseTimestamp ( @ Nullable String string ) { } }
Date date = null ; try { if ( string != null ) { date = ISO8601Utils . parse ( string , new ParsePosition ( 0 ) ) ; } } catch ( ParseException e ) { throw Throwables . propagate ( e ) ; } return date ;
public class DefaultWhenFileSystem { /** * Open the file represented by { @ code path } , asynchronously . * The file is opened for both reading and writing . If the file does not already exist it will be created . * @ param path path to the file * @ param options options describing how the file should be opened ...
return adapter . toPromise ( handler -> vertx . fileSystem ( ) . open ( path , options , handler ) ) ;
public class FileChooserFilter { /** * Whether the given file is accepted by this filter . * @ param f java . io . File * @ return boolean */ @ Override public boolean accept ( final File f ) { } }
if ( f . isDirectory ( ) ) return true ; int len = extensions . size ( ) ; if ( len == 0 ) return true ; for ( int i = 0 ; i < len ; i ++ ) { String suffix = extensions . get ( i ) ; if ( suffix . equals ( "*" ) ) return true ; if ( f . getName ( ) . toLowerCase ( ) . endsWith ( '.' + suffix ) ) return true ; if ( f . ...
public class ns_aaasession { /** * < pre > * Get ns aaasession information from NS Instance . * < / pre > */ public static ns_aaasession [ ] get ( nitro_service client ) throws Exception { } }
ns_aaasession resource = new ns_aaasession ( ) ; resource . validate ( "get" ) ; return ( ns_aaasession [ ] ) resource . get_resources ( client ) ;
public class Cob2Xsd { /** * Generates a model from an Abstract Syntax Tree . * @ param ast the abstract syntax tree produced by parser * @ return a list of root COBOL data items * @ throws RecognizerException if tree cannot be walked */ public List < CobolDataItem > emitModel ( final CommonTree ast ) throws Reco...
List < CobolDataItem > cobolDataItems = new ArrayList < CobolDataItem > ( ) ; if ( _log . isDebugEnabled ( ) ) { _log . debug ( "4. Emitting Model from AST: {}" , ( ( ast == null ) ? "null" : ast . toStringTree ( ) ) ) ; } if ( ast == null ) { return cobolDataItems ; } try { TreeNodeStream nodes = new CommonTreeNodeStr...
public class TypeRegistry { /** * Used in code the generated code replaces invokevirtual calls . Determine if the code can run as it was originally * compiled . * This method will return FALSE if nothing has changed to interfere with the invocation and it should proceed . This * method will return TRUE if somethi...
// Check 1 : FAST : Has anything at all been reloaded ? if ( nothingReloaded ) { return false ; } // if ( GlobalConfiguration . isRuntimeLogging & & log . isLoggable ( Level . FINER ) ) { // log . entering ( " TypeRegistry " , " ivicheck " , new Object [ ] { ids , nameAndDescriptor } ) ; // TODO [ perf ] global check (...
public class Text { /** * Returns the local name of the given < code > qname < / code > . Please note , that this method does not * validate the name . < br > the qname has the format : qname : = [ prefix ' : ' ] local ; * @ param qname * a qualified name * @ return the localname * @ see # getNamespacePrefix ...
int pos = qname . indexOf ( ':' ) ; return pos >= 0 ? qname . substring ( pos + 1 ) : qname ;
public class MigrationFilter { /** * { @ inheritDoc } */ @ Override public void filter ( ContainerRequestContext req ) throws IOException { } }
if ( ! ran ) { UriInfo uriInfo = req . getUriInfo ( ) ; String path = uriInfo . getPath ( ) ; if ( path . equals ( FAVICON_ICO ) || path . endsWith ( "/" + FAVICON_ICO ) ) { return ; } path = "/" + path ; String migrationUri = MigrationResource . MIGRATION_BASE_URI + MigrationFeature . getMigrationId ( ) ; String repai...
public class ProcessMonitor { /** * 重新获取最新的process列表 */ private void initProcess ( List < String > currentProcesses ) { } }
// 3 . 循环处理每个process List < Long > processIds = new ArrayList < Long > ( ) ; for ( String process : currentProcesses ) { processIds . add ( StagePathUtils . getProcessId ( process ) ) ; } Collections . sort ( processIds ) ; // 排序一下 if ( logger . isDebugEnabled ( ) ) { logger . debug ( "pipeline[{}] old processIds{},cur...
public class ReflectionUtils { /** * Converts a List to an array * @ param type the Class type of the elements of the List * @ param values the List to convert * @ return the array */ public static Object convertToArray ( final Class type , final List < ? > values ) { } }
final Object exampleArray = Array . newInstance ( type , values . size ( ) ) ; try { return values . toArray ( ( Object [ ] ) exampleArray ) ; } catch ( ClassCastException e ) { for ( int i = 0 ; i < values . size ( ) ; i ++ ) { Array . set ( exampleArray , i , values . get ( i ) ) ; } return exampleArray ; }
public class PoolSchedulable { /** * Get the snapshot of the configuration from the configuration manager . * Synchronized on config manager to ensure that config is atomically updated * per pool . */ private void snapshotConfig ( ) { } }
synchronized ( configManager ) { maximum = configManager . getPoolMaximum ( poolInfo , getType ( ) ) ; minimum = configManager . getPoolMinimum ( poolInfo , getType ( ) ) ; weight = configManager . getWeight ( poolInfo ) ; priority = configManager . getPriority ( poolInfo ) ; preemptable = configManager . isPoolPreempt...
public class SocketChannelImpl { /** * package - private */ int sendOutOfBandData ( byte b ) throws IOException { } }
synchronized ( writeLock ) { ensureWriteOpen ( ) ; int n = 0 ; try { begin ( ) ; synchronized ( stateLock ) { if ( ! isOpen ( ) ) return 0 ; writerThread = NativeThread . current ( ) ; } for ( ; ; ) { n = sendOutOfBandData ( fd , b ) ; if ( ( n == IOStatus . INTERRUPTED ) && isOpen ( ) ) continue ; return IOStatus . no...
public class FhirTerser { /** * Returns values stored in an element identified by its path . The list of values is of * type { @ link Object } . * @ param theResource The resource instance to be accessed . Must not be null . * @ param thePath The path for the element to be accessed . * @ return A list of values...
Class < Object > wantedClass = Object . class ; return getValues ( theResource , thePath , wantedClass ) ;
public class CommerceUserSegmentEntryPersistenceImpl { /** * Returns the commerce user segment entry with the primary key or throws a { @ link com . liferay . portal . kernel . exception . NoSuchModelException } if it could not be found . * @ param primaryKey the primary key of the commerce user segment entry * @ r...
CommerceUserSegmentEntry commerceUserSegmentEntry = fetchByPrimaryKey ( primaryKey ) ; if ( commerceUserSegmentEntry == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchUserSegmentEntryException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey...
public class CmdArgs { /** * Add a mandatory option * @ param < T > Type of option * @ param cls Option type class * @ param name Option name Option name without * @ param description Option description * @ param exclusiveGroup A group of options . Only options of a single group * are accepted . */ public f...
addOption ( cls , name , description , exclusiveGroup , true ) ;
public class ConvertBitmap { /** * Converts a { @ link Bitmap } into a BoofCV image . Type is determined at runtime . * @ param input Bitmap image . * @ param output Output image . Automatically resized to match input shape . * @ param storage Byte array used for internal storage . If null it will be declared int...
if ( BOverrideConvertAndroid . invokeBitmapToBoof ( input , output , storage ) ) return ; switch ( output . getImageType ( ) . getFamily ( ) ) { case GRAY : { if ( output . getClass ( ) == GrayF32 . class ) bitmapToGray ( input , ( GrayF32 ) output , storage ) ; else if ( output . getClass ( ) == GrayU8 . class ) bitma...
public class RoboRemoteServer { /** * Return a view with the specified name or null * @ param viewName * @ return */ protected View getView ( String viewName ) { } }
for ( View view : solo . getCurrentViews ( ) ) { if ( view . toString ( ) . contains ( viewName ) ) { return view ; } } return null ;
public class Journal { /** * @ throws AssertionError if the given expression is not true . * The message of the exception is formatted using the ' msg ' and * ' formatArgs ' parameters . * This should be used in preference to Java ' s built - in assert in * non - performance - critical paths , where a failure o...
if ( ! expression ) { throw new AssertionError ( String . format ( msg , formatArgs ) ) ; }
public class Stack { /** * The actions that are enabled or disabled for users during their streaming sessions . By default these actions are * enabled . * @ param userSettings * The actions that are enabled or disabled for users during their streaming sessions . By default these * actions are enabled . */ publi...
if ( userSettings == null ) { this . userSettings = null ; return ; } this . userSettings = new java . util . ArrayList < UserSetting > ( userSettings ) ;
public class PipelineScriptParser { /** * Parses an AE defined on ONE line in inline java code ( interpreted ) */ private static void parseAEJava ( String line , IteratorWithPrevious < String > it , Pipeline pipeline ) throws ParseException { } }
LOG . info ( "+-parsing line '{}'" , line ) ; Interpreter i = new Interpreter ( ) ; // Construct an interpreter // Eval a statement and get the result try { String script = line . replaceFirst ( "ae_java: " , "" ) . trim ( ) ; i . eval ( "aed = " + script + ";" ) ; AnalysisEngineDescription aed = ( AnalysisEngineDescri...
public class ShellGetCommand { /** * Sets the subcommand to delegate to * @ param subcommand the subcommand */ @ CommandDescList ( { } }
@ CommandDesc ( longName = "style" , description = "get the current citation style" , command = ShellGetStyleCommand . class ) , @ CommandDesc ( longName = "locale" , description = "get the current citation locale" , command = ShellGetLocaleCommand . class ) , @ CommandDesc ( longName = "format" , description = "get th...
public class DefaultGroovyMethods { /** * Create a new Collection composed of the elements of the first Collection minus * every occurrence of elements of the given Collection . * < pre class = " groovyTestCase " > assert [ 1 , " a " , true , true , false , 5.3 ] - [ true , 5.3 ] = = [ 1 , " a " , false ] < / pre >...
Collection < T > ansCollection = createSimilarCollection ( self ) ; if ( self . size ( ) == 0 ) return ansCollection ; T head = self . iterator ( ) . next ( ) ; boolean nlgnSort = sameType ( new Collection [ ] { self , removeMe } ) ; // We can ' t use the same tactic as for intersection // since AbstractCollection only...
public class ReplicationService { /** * Start the set of replications specified in the set of { @ link Replicator } s passed to * { @ link # setReplicators ( Replicator [ ] ) } . */ protected void startReplications ( ) { } }
if ( mReplicationPolicyManager != null ) { // Make sure we ' ve got a WiFi lock so that the wifi isn ' t switched off while we ' re // trying to replicate . if ( mWifiLock != null ) { synchronized ( mWifiLock ) { if ( ! mWifiLock . isHeld ( ) ) { mWifiLock . acquire ( ) ; } } } mReplicationPolicyManager . startReplicat...
public class SipAssert { /** * Asserts that the given incoming or outgoing call leg was answered . Assertion failure output * includes the given message text . * @ param msg message text to output if the assertion fails . * @ param call The incoming or outgoing call leg . */ public static void assertAnswered ( St...
assertNotNull ( "Null assert object passed in" , call ) ; assertTrue ( msg , call . isCallAnswered ( ) ) ;
public class PTDImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setXPUNITVL ( Integer newXPUNITVL ) { } }
Integer oldXPUNITVL = xpunitvl ; xpunitvl = newXPUNITVL ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . PTD__XPUNITVL , oldXPUNITVL , xpunitvl ) ) ;
public class KAFDocument { /** * Creates a new relation between entities and / or sentiment features . It receives its ID as an argument . The relation is added to the document . * @ param id the ID of the relation * @ param from source of the relation * @ param to target of the relation * @ return a new relati...
idManager . updateCounter ( AnnotationType . RELATION , id ) ; Relation newRelation = new Relation ( id , from , to ) ; annotationContainer . add ( newRelation , Layer . RELATIONS , AnnotationType . RELATION ) ; return newRelation ;
public class FileChannelDataLoggerFactory { /** * destroys a logfiles */ @ Override public synchronized void cleanup ( ) { } }
String pattern = MessageFormat . format ( LOGGER_SYSTEM_FORMAT_PATTERN , this . loggerSystemName ) ; LogFilenameMatcher matcher = new LogFilenameMatcher ( pattern ) ; LogFileTraverser . ICollectorCallback cb = new LogFileTraverser . ICollectorCallback ( ) { @ Override public void match ( File file , LogFilenameMatcher ...
public class TomcatServletWebServerFactory { /** * Set { @ link TomcatProtocolHandlerCustomizer } s that should be applied to the Tomcat * { @ link Connector } . Calling this method will replace any existing customizers . * @ param tomcatProtocolHandlerCustomizer the customizers to set * @ since 2.2.0 */ public v...
Assert . notNull ( tomcatProtocolHandlerCustomizer , "TomcatProtocolHandlerCustomizers must not be null" ) ; this . tomcatProtocolHandlerCustomizers = new ArrayList < > ( tomcatProtocolHandlerCustomizer ) ;
public class AbstractConnectionManager { /** * This method must be called after all the connection pool properties have been set . */ public void initialisePool ( ) { } }
Properties loginProperties = createLoginProperties ( ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "about to create pool with user-id : " + this . getJdbcUser ( ) ) ; } ConnectionFactory connectionFactory = createConnectionFactory ( loginProperties ) ; PoolableObjectFactory objectFactoryForConnectionPool = ...
public class AbstractPool { /** * Get prefill credential * @ return credential used to prefill */ @ Override public Credential getPrefillCredential ( ) { } }
if ( this . prefillCredential == null ) { if ( cm . getSubjectFactory ( ) == null || cm . getConnectionManagerConfiguration ( ) . getSecurityDomain ( ) == null ) { prefillCredential = new Credential ( null , null ) ; } else { prefillCredential = new Credential ( SecurityActions . createSubject ( cm . getSubjectFactory ...
public class ApiOvhEmailpro { /** * Get this object properties * REST : GET / email / pro / { service } / account / { email } / fullAccess / { allowedAccountId } * @ param service [ required ] The internal name of your pro organization * @ param email [ required ] Default email for this mailbox * @ param allowe...
String qPath = "/email/pro/{service}/account/{email}/fullAccess/{allowedAccountId}" ; StringBuilder sb = path ( qPath , service , email , allowedAccountId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhAccountFullAccess . class ) ;
public class SDBaseOps { /** * Array permutation operation : permute the dimensions according to the specified permutation indices . < br > * Example : if input has shape [ a , b , c ] and dimensions = [ 2,0,1 ] the output has shape [ c , a , b ] * @ param name Output variable name * @ param x Input variable * ...
SDVariable result = f ( ) . permute ( x , dimensions ) ; return updateVariableNameAndReference ( result , name ) ;
public class ExternalChildResourcesNonCachedImpl { /** * Prepare the given model of an external child resource for independent definition ( without the parent context ) . * @ param model the model to prepare for independent create definition * @ return the external child resource prepared for create */ protected fi...
model . setPendingOperation ( ExternalChildResourceImpl . PendingOperation . ToBeCreated ) ; return model ;
public class DataSourceContextHolder { /** * 设置是否使用从库 * @ param useSlave */ public DataSourceContextHolder useSlave ( boolean useSlave ) { } }
DataSourceContextVals vals = contextVals . get ( ) ; if ( vals == null ) vals = new DataSourceContextVals ( ) ; vals . userSlave = useSlave ; contextVals . set ( vals ) ; return this ;
public class AbstractMemberWriter { /** * Add the deprecated information for the given member . * @ param member the member being documented . * @ param contentTree the content tree to which the deprecated information will be added . */ protected void addDeprecatedInfo ( ProgramElementDoc member , Content contentTr...
Content output = ( new DeprecatedTaglet ( ) ) . getTagletOutput ( member , writer . getTagletWriterInstance ( false ) ) ; if ( ! output . isEmpty ( ) ) { Content deprecatedContent = output ; Content div = HtmlTree . DIV ( HtmlStyle . block , deprecatedContent ) ; contentTree . addContent ( div ) ; }
public class BaseDrawerItem { /** * helper method to decide for the correct color * @ param ctx * @ return */ public int getIconColor ( Context ctx ) { } }
int iconColor ; if ( this . isEnabled ( ) ) { iconColor = ColorHolder . color ( getIconColor ( ) , ctx , R . attr . material_drawer_primary_icon , R . color . material_drawer_primary_icon ) ; } else { iconColor = ColorHolder . color ( getDisabledIconColor ( ) , ctx , R . attr . material_drawer_hint_icon , R . color . m...
public class Word { /** * Retrieves a prefix of the given length . If < code > length < / code > is negative , then a prefix consisting of all but * the last < code > - length < / code > symbols is returned . * @ param prefixLen * the length of the prefix ( may be negative , see above ) . * @ return the prefix ...
final int length = prefixLen < 0 ? length ( ) + prefixLen : prefixLen ; return subWord ( 0 , length ) ;
public class TemplateBase { /** * Not to be used in user application or template */ protected String __internalRender ( ) { } }
__internalBuild ( ) ; if ( __hasParent ( ) ) { __parent . __setLayoutContent ( toString ( ) ) ; __parent . addAllLayoutSections ( layoutSections ) ; __parent . addAllRenderProperties ( renderProperties ) ; __parent . __setRenderArgs ( __renderArgs ) ; // _ _ parent . _ _ renderArgs . putAll ( _ _ renderArgs ) ; return ...
public class RedisInputStream { /** * Slow path in case a line of bytes cannot be read in one # fill ( ) operation . This is still faster * than creating the StrinbBuilder , String , then encoding as byte [ ] in Protocol , then decoding * back into a String . */ private byte [ ] readLineBytesSlowly ( ) { } }
ByteArrayOutputStream bout = null ; while ( true ) { ensureFill ( ) ; byte b = buf [ count ++ ] ; if ( b == '\r' ) { ensureFill ( ) ; // Must be one more byte byte c = buf [ count ++ ] ; if ( c == '\n' ) { break ; } if ( bout == null ) { bout = new ByteArrayOutputStream ( 16 ) ; } bout . write ( b ) ; bout . write ( c ...
public class JCudaDriver { /** * Returns an identifer string for the device . * < pre > * CUresult cuDeviceGetName ( * char * name , * int len , * CUdevice dev ) * < / pre > * < div > * < p > Returns an identifer string for the * device . Returns an ASCII string identifying the device < tt > dev < / t...
return checkResult ( cuDeviceGetNameNative ( name , len , dev ) ) ;
public class BrokerHelper { /** * Unlink the specified reference from this object . * More info see OJB doc . * @ param obj Object with reference * @ param ord the ObjectReferenceDescriptor of the reference * @ param insert flag signals insert operation */ public void unlink ( Object obj , ObjectReferenceDescri...
linkOrUnlink ( false , obj , ord , insert ) ;
public class Callbacks { /** * For every element , invoke the given callback . * Stops if { @ link CallbackRefusedException } is thrown . */ @ SafeVarargs public static < T > void stream ( Callback < T > callback , T ... items ) throws Exception { } }
stream ( callback , Arrays . asList ( items ) ) ;
public class AptTask { /** * The srcExtensions attribute can be set to a comma - separated list of source filename * extensions that are considered to be valid inputs to APT processing . * The default value is " * . java " . */ public void setSrcExtensions ( String srcExts ) { } }
StringTokenizer tok = new StringTokenizer ( srcExts , "," ) ; while ( tok . hasMoreTokens ( ) ) _srcExts . add ( tok . nextToken ( ) ) ;
public class ApiOvhMe { /** * Alter this object properties * REST : PUT / me / accessRestriction / ip / { id } * @ param body [ required ] New object properties * @ param id [ required ] The Id of the restriction */ public void accessRestriction_ip_id_PUT ( Long id , OvhIpRestriction body ) throws IOException { }...
String qPath = "/me/accessRestriction/ip/{id}" ; StringBuilder sb = path ( qPath , id ) ; exec ( qPath , "PUT" , sb . toString ( ) , body ) ;
public class GenericDeserializer { /** * 当读取list时会调用此方法 */ public Object readList ( AbstractHessianInput in , int length ) throws IOException { } }
List list = ( List ) DEFAULT_COLLECTION_DESERIALIZER . readList ( in , length ) ; return convertGeneric ( length , list ) ;
public class CryptoHelper { /** * < p > Lazy getter of public key of another A - Jetty . < / p > * @ return public key of another A - Jetty * @ throws Exception - an exception */ @ Override public final PublicKey lazyGetPublicKeyAnotherAjetty ( ) throws Exception { } }
if ( this . publicKeyAnotherAjetty == null && this . publicKeyDir != null && lazyGetOurPublicKey ( ) != null ) { File pkDir = new File ( this . publicKeyDir ) ; if ( pkDir . exists ( ) ) { File [ ] lstFl = pkDir . listFiles ( ) ; if ( lstFl != null && lstFl . length == 1 && lstFl [ 0 ] . isFile ( ) ) { FileInputStream ...
public class ComponentTag { /** * Inject OSGI services for attributes marked for injection in a new component instance , if not already * initialized e . g . by Sling - Models . */ protected void injectServices ( SlingBean component ) throws IllegalAccessException { } }
final Field [ ] declaredFields ; if ( fieldCache . containsKey ( component . getClass ( ) ) ) { declaredFields = fieldCache . get ( component . getClass ( ) ) ; } else { declaredFields = component . getClass ( ) . getDeclaredFields ( ) ; fieldCache . put ( component . getClass ( ) , declaredFields ) ; } for ( Field fie...
public class PubSubInputHandler { /** * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . impl . interfaces . DownstreamControl # sendNotFlushedMessage ( com . ibm . ws . sib . utils . SIBUuid12 , long ) * Not called as flushQuery is processed by PubSubOuptutHandler */ @ Override public void sendNotFlush...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendNotFlushedMessage" , new Object [ ] { target , streamID , new Long ( requestID ) } ) ; InvalidOperationException e = new InvalidOperationException ( nls . getFormattedMessage ( "INTERNAL_MESSAGING_ERROR_CWSIP0001" , new...
public class GenericTransactionManagerLookup { /** * Get the system - wide used TransactionManager * @ return TransactionManager */ @ Override public synchronized TransactionManager getTransactionManager ( ) { } }
if ( ! lookupDone ) { doLookups ( globalCfg . classLoader ( ) ) ; } if ( tm != null ) return tm ; if ( lookupFailed ) { if ( ! noJBossTM ) { // First try an embedded JBossTM / Wildly instance tryEmbeddedJBossTM ( ) ; } if ( noJBossTM ) { // fall back to a dummy from Infinispan useDummyTM ( ) ; } } return tm ;
public class SerializationServiceV1 { /** * Init the ObjectDataInput for the given Data skipping the serialization header - bytes and navigating to the position * from where the readData ( ) starts reading the object fields . * @ param data data to initialize the ObjectDataInput with . * @ return the initialized ...
ObjectDataInput input = createObjectDataInput ( data ) ; byte header = input . readByte ( ) ; if ( isFlagSet ( header , IDS_FLAG ) ) { skipBytesSafely ( input , FACTORY_AND_CLASS_ID_BYTE_LENGTH ) ; } else { input . readUTF ( ) ; } if ( isFlagSet ( header , EE_FLAG ) ) { skipBytesSafely ( input , EE_BYTE_LENGTH ) ; } re...
public class ClassesManager { /** * This method returns the name of the field whose name matches with regex . * @ param aClass a class to control * @ param regex field name * @ return true if exists a field with this name in aClass , false otherwise */ public static String fieldName ( Class < ? > aClass , String ...
if ( isNestedMapping ( regex ) ) return regex ; String result = null ; for ( Class < ? > clazz : getAllsuperClasses ( aClass ) ) if ( ! isNull ( result = getFieldName ( clazz , regex ) ) ) return result ; return result ;
public class KeyVaultClientBaseImpl { /** * Creates or updates a new SAS definition for the specified storage account . This operation requires the storage / setsas permission . * @ param vaultBaseUrl The vault name , for example https : / / myvault . vault . azure . net . * @ param storageAccountName The name of t...
if ( vaultBaseUrl == null ) { throw new IllegalArgumentException ( "Parameter vaultBaseUrl is required and cannot be null." ) ; } if ( storageAccountName == null ) { throw new IllegalArgumentException ( "Parameter storageAccountName is required and cannot be null." ) ; } if ( sasDefinitionName == null ) { throw new Ill...
public class TargetStreamManager { /** * Sends an " are you flushed " query to the source of any unflushed streams . * We use this to determine when it ' s safe to delete a destination with * possibly indoubt messages . */ public void queryUnflushedStreams ( ) throws SIResourceException { } }
synchronized ( streamSets ) { for ( Iterator i = streamSets . iterator ( ) ; i . hasNext ( ) ; ) { StreamSet next = ( StreamSet ) i . next ( ) ; // Note the use of - 1 for the request ID . This guarantees // that we won ' t accidentally overlap with a request // in the local request map . upControl . sendAreYouFlushedM...
public class DateFormat { /** * < strong > [ icu ] < / strong > Creates a { @ link DateFormat } object that can be used to format dates and * times in the calendar system specified by < code > cal < / code > . * @ param cal The calendar system for which a date / time format is desired . * @ param skeleton The ske...
DateTimePatternGenerator generator = DateTimePatternGenerator . getInstance ( locale ) ; final String bestPattern = generator . getBestPattern ( skeleton ) ; SimpleDateFormat format = new SimpleDateFormat ( bestPattern , locale ) ; format . setCalendar ( cal ) ; return format ;
public class Task { /** * Turns a Task < T > into a Task < Void > , dropping any result . */ public Task < Void > makeVoid ( ) { } }
return this . continueWithTask ( new Continuation < TResult , Task < Void > > ( ) { @ Override public Task < Void > then ( Task < TResult > task ) throws Exception { if ( task . isCancelled ( ) ) { return Task . cancelled ( ) ; } if ( task . isFaulted ( ) ) { return Task . forError ( task . getError ( ) ) ; } return Ta...
public class SuperToast { /** * Sets the { @ link com . github . johnpersano . supertoasts . library . SuperToast . OnDismissListener } * of the SuperActivityToast . The listener will be triggered when the * SuperActivityToast is dismissed . * @ param tag A unique tag for this listener * @ param onDismissListen...
this . mOnDismissListener = onDismissListener ; this . mStyle . dismissTag = tag ; this . mStyle . dismissToken = null ; return this ;
public class ClassHelper { /** * Check if the passed class is public , instancable and has a no - argument * constructor . * @ param aClass * The class to check . May be < code > null < / code > . * @ return < code > true < / code > if the class is public , instancable and has a * no - argument constructor th...
if ( ! isPublicClass ( aClass ) ) return false ; // Check if a default constructor is present try { aClass . getConstructor ( ( Class < ? > [ ] ) null ) ; } catch ( final NoSuchMethodException ex ) { return false ; } return true ;
public class BundleUtils { /** * Returns a optional long value . In other words , returns the value mapped by key if it exists and is a long . * The bundle argument is allowed to be { @ code null } . If the bundle is null , this method returns 0. * @ param bundle a bundle . If the bundle is null , this method will ...
return optLong ( bundle , key , 0L ) ;
public class GrahamScanConvexHull2D { /** * The actual graham scan main loop . */ private void grahamScan ( ) { } }
if ( points . size ( ) < 3 ) { return ; } Iterator < double [ ] > iter = points . iterator ( ) ; Stack < double [ ] > stack = new Stack < > ( ) ; // Start with the first two points on the stack final double [ ] first = iter . next ( ) ; stack . add ( first ) ; while ( iter . hasNext ( ) ) { double [ ] n = iter . next (...
public class KontonummerCalculator { /** * Returns a List with random but syntactically valid Kontonummer instances * for a given AccountType . * @ param accountType * A String representing the AccountType to use for all * Kontonummer instances * @ param length * Specifies the number of Kontonummer instance...
KontonummerValidator . validateAccountTypeSyntax ( accountType ) ; final class AccountTypeKontonrDigitGenerator extends KontonummerDigitGenerator { private final String accountType ; AccountTypeKontonrDigitGenerator ( String accountType ) { this . accountType = accountType ; } @ Override String generateKontonummer ( ) ...
public class CategoryGraph { /** * As the categoryGraph is a graph rather than a tree , the hyponymCount for top nodes can be greater than the number of nodes in the graph . * This is due to the multiple counting of nodes having more than one parent . * Thus , we have to scale hyponym counts to fall in [ 0 , Number...
for ( int key : getHyponymCountMap ( ) . keySet ( ) ) { if ( getHyponymCountMap ( ) . get ( key ) > graph . vertexSet ( ) . size ( ) ) { // TODO scaling function is not optimal ( to say the least : ) getHyponymCountMap ( ) . put ( key , ( graph . vertexSet ( ) . size ( ) - 1 ) ) ; } }
public class ParenBindVariableNode { /** * 配列の値をIN句として加工してバインドする * @ param transformContext transformコンテキスト * @ param values バインドする値の配列 */ private void bindArray ( final TransformContext transformContext , final Object values ) { } }
int length = Array . getLength ( values ) ; if ( length == 0 ) { throw new ParameterNotFoundRuntimeException ( "Parameter is not set. [" + expression + "]" ) ; } transformContext . addSqlPart ( "(?" ) ; transformContext . addBindVariable ( Array . get ( values , 0 ) ) ; for ( int i = 1 ; i < length ; i ++ ) { transform...
public class LBiObjDblConsumerBuilder { /** * One of ways of creating builder . In most cases ( considering all _ functional _ builders ) it requires to provide generic parameters ( in most cases redundantly ) */ @ Nonnull public final LBiObjDblConsumerBuilder < T1 , T2 > withHandling ( @ Nonnull HandlingInstructions <...
Null . nonNullArg ( handling , "handling" ) ; if ( this . handling != null ) { throw new UnsupportedOperationException ( "Handling is already set for this builder." ) ; } this . handling = handling ; return self ( ) ;
public class DeeplearningMojoModel { /** * This method will be derived from the scoring / prediction function of deeplearning model itself . However , * we followed closely what is being done in deepwater mojo . The variable offset is not used . * @ param dataRow * @ param offset * @ param preds * @ return */...
assert ( dataRow != null ) : "doubles are null" ; // check to make sure data is not null double [ ] neuronsInput = new double [ _units [ 0 ] ] ; // store inputs into the neural network double [ ] neuronsOutput ; // save output from a neural network layer // transform inputs : NAs in categoricals are always set to new e...
public class MenuScreen { /** * Code to display a Menu . * @ param strMenu The name of the menu to set up . */ public void preSetupGrid ( String strMenu ) { } }
super . preSetupGrid ( strMenu ) ; if ( m_strMenuObjectID == null ) this . setMenuProperty ( strMenu ) ; Record menu = this . getMainRecord ( ) ; menu . setKeyArea ( MenusModel . PARENT_FOLDER_ID_KEY ) ; if ( m_strMenuObjectID != null ) strMenu = m_strMenuObjectID ; StringSubFileFilter behMenu = new StringSubFileFilter...
public class MessageEndpointBase { /** * Resource adapter calls this method prior to invoking * a method on the MDB to process message that is delivered . * @ param method - description of a target method . This information * about the intended target method allows an application server * to decide whether to s...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "MessageEndpoint.beforeDelivery called for " + method . getName ( ) ) ; } // method param for checkState can be null since it ' s only used when the method is a MDB _ BUSINESS _ METHOD checkState ( - 1 , method , BEFORE_DELIV...
public class KllHelper { /** * Checks the sequential validity of the given array of float values . * They must be unique , monotonically increasing and not NaN . * @ param values the given array of values */ static final void validateValues ( final float [ ] values ) { } }
for ( int i = 0 ; i < values . length ; i ++ ) { if ( Float . isNaN ( values [ i ] ) ) { throw new SketchesArgumentException ( "Values must not be NaN" ) ; } if ( ( i < ( values . length - 1 ) ) && ( values [ i ] >= values [ i + 1 ] ) ) { throw new SketchesArgumentException ( "Values must be unique and monotonically in...
public class FieldAccessor { /** * アノテーションのタイプを指定してアノテーションを取得します 。 * < p > 繰り返しのアノテーションの場合 、 初めに見つかったものを返します 。 < / p > * @ param < A > 取得対象のアノテーションのタイプ * @ param annoClass 取得対象のアノテーションのタイプ 。 * @ return 指定したアノテーションが見つからない場合は 、 空を返します 。 * @ throws NullPointerException { @ literal annoClass is null . } */ pu...
Objects . requireNonNull ( annoClass , "annoClass should not be null." ) ; return getAnnotationsByType ( expandedAnnos , annoClass ) . stream ( ) . findFirst ( ) ;
public class Messages { /** * Get the table name . */ public String getTableNames ( boolean bAddQuotes ) { } }
return ( m_tableName == null ) ? Record . formatTableNames ( MESSAGES_FILE , bAddQuotes ) : super . getTableNames ( bAddQuotes ) ;
public class DateTimeZone { /** * Gets the default zone provider . * This tries four approaches to loading data : * < ol > * < li > loads the provider identifier by the system property * < code > org . joda . time . DateTimeZone . Provider < / code > . * < li > load < code > ZoneInfoProvider < / code > using ...
// approach 1 try { String providerClass = System . getProperty ( "org.joda.time.DateTimeZone.Provider" ) ; if ( providerClass != null ) { try { // do not initialize the class until the type has been checked Class < ? > cls = Class . forName ( providerClass , false , DateTimeZone . class . getClassLoader ( ) ) ; if ( !...
public class StringUtil { /** * Checks if two strings have the same suffix of specified length * @ param s string * @ param p string * @ param len length of the common suffix * @ return true if both s and p are not null and both have the same suffix . Otherwise - false */ public static boolean commonSuffixOfLen...
return s != null && p != null && len >= 0 && s . regionMatches ( s . length ( ) - len , p , p . length ( ) - len , len ) ;
public class TimeTableEditor { /** * getTableCellRendererComponent , Returns the renderer that is used for drawing the cell . This * is required by the TableCellRenderer interface . * For additional details , see the Javadocs for the function : * TableCellRenderer . getTableCellRendererComponent ( ) . */ @ Overri...
// Save the supplied value to the time picker . setCellEditorValue ( value ) ; // Draw the appropriate background colors to indicate a selected or unselected state . if ( isSelected ) { if ( matchTableSelectionBackgroundColor ) { timePicker . getComponentTimeTextField ( ) . setBackground ( table . getSelectionBackgroun...
public class XMLSerializer { /** * End tag . * @ param namespace the namespace * @ param name the name * @ return serializer * @ throws IOException Signals that an I / O exception has occurred . */ public XMLSerializer endTag ( String namespace , String name ) throws IOException { } }
// check that level is valid // / / assert namespace ! = null ; // if ( namespace ! = null ) { // namespace = namespace . intern ( ) ; seenBracket = seenBracketBracket = false ; if ( namespace != null ) { if ( ! namesInterned ) { namespace = namespace . intern ( ) ; } else if ( checkNamesInterned ) { checkInterning ( n...
public class IterableOfProtosSubject { /** * Specifies that the ordering of repeated fields for these explicitly specified top - level field * numbers should be ignored when comparing for equality . Sub - fields must be specified explicitly * ( via { @ link FieldDescriptor } ) if their orders are to be ignored as w...
return usingConfig ( config . ignoringRepeatedFieldOrderOfFields ( fieldNumbers ) ) ;
public class HtmlTagMatchingPass { /** * Perform tag matching / error reporting for invalid HTML . */ private void visit ( HtmlMatcherTagNode tagNode , Map < Equivalence . Wrapper < ExprNode > , Boolean > exprValueMap , HtmlStack stack ) { } }
HtmlTagNode tag = ( HtmlTagNode ) tagNode . getSoyNode ( ) . get ( ) ; TagName openTagName = tag . getTagName ( ) ; HtmlStack prev = stack ; switch ( tagNode . getTagKind ( ) ) { case VOID_TAG : HtmlOpenTagNode voidTag = ( HtmlOpenTagNode ) tag ; // Report errors for non - void tags that are self - closing . // For voi...
public class MemoryMapArchiveBase { /** * Removes the specified node and its associated children from the contents * of this archive . * @ param node the node to remove recursively * @ param path the path denoting the specified node * @ return the removed node itself */ private Node removeNodeRecursively ( fina...
final NodeImpl parentNode = content . get ( path . getParent ( ) ) ; if ( parentNode != null ) { parentNode . removeChild ( node ) ; } // Remove from nested archives if present nestedArchives . remove ( path ) ; // Recursively delete children if present if ( node . getChildren ( ) != null ) { final Set < Node > childre...