signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class JsfActionListener { /** * { @ inheritDoc } */
@ Override public void processAction ( ActionEvent event ) { } } | // throws FacesException
// cette méthode est appelée par JSF RI ( Mojarra )
if ( DISABLED || ! JSF_COUNTER . isDisplayed ( ) ) { delegateActionListener . processAction ( event ) ; return ; } boolean systemError = false ; try { final String actionName = getRequestName ( event ) ; JSF_COUNTER . bindContextIncludingCpu... |
public class CFMLEngineFactorySupport { /** * replace path placeholder with the real path , placeholders are
* [ { temp - directory } , { system - directory } , { home - directory } ]
* @ param path
* @ return updated path */
public static String parsePlaceHolder ( String path ) { } } | if ( path == null ) return path ; // Temp
if ( path . startsWith ( "{temp" ) ) { if ( path . startsWith ( "}" , 5 ) ) path = new File ( getTempDirectory ( ) , path . substring ( 6 ) ) . toString ( ) ; else if ( path . startsWith ( "-dir}" , 5 ) ) path = new File ( getTempDirectory ( ) , path . substring ( 10 ) ) . toSt... |
public class Util { /** * Decodes a natural number from an { @ link InputStream } using vByte .
* @ param is an input stream .
* @ return a natural number decoded from { @ code is } using vByte . */
public static int readVByte ( final InputStream is ) throws IOException { } } | for ( int x = 0 ; ; ) { final int b = is . read ( ) ; x |= b & 0x7F ; if ( ( b & 0x80 ) == 0 ) return x ; x <<= 7 ; } |
public class EchoAutoReply { /** * { @ inheritDoc } It replies with the last received message . */
public FbBotMillResponse createResponse ( MessageEnvelope envelope ) { } } | String lastMessage = safeGetMessage ( envelope ) ; return ReplyFactory . addTextMessageOnly ( lastMessage ) . build ( envelope ) ; |
public class ConciseSet { /** * Gets the literal word that represents the first 31 bits of the given the
* word ( i . e . the first block of a sequence word , or the bits of a literal word ) .
* If the word is a literal , it returns the unmodified word . In case of a
* sequence , it returns a literal that represe... | if ( isLiteral ( word ) ) { return word ; } if ( simulateWAH ) { return isZeroSequence ( word ) ? ConciseSetUtils . ALL_ZEROS_LITERAL : ConciseSetUtils . ALL_ONES_LITERAL ; } // get bits from 30 to 26 and use them to set the corresponding bit
// NOTE : " 1 < < ( word > > > 25 ) " and " 1 < < ( ( word > > > 25 ) & 0x000... |
public class IntervalCollection { /** * / * [ deutsch ]
* < p > Ermittelt , ob das angegebene Intervall in dieser Menge gespeichert ist . < / p >
* @ param interval the interval to be checked
* @ return boolean
* @ since 3.35/4.30 */
public boolean contains ( ChronoInterval < T > interval ) { } } | for ( ChronoInterval < T > i : this . intervals ) { if ( i . equals ( interval ) ) { return true ; } } return false ; |
public class SARLReadAndWriteTracking { /** * Mark the given object as an assigned object after its initialization .
* < p > The given object has its value changed by a assignment operation .
* @ param object the written object .
* @ return { @ code true } if the write flag has changed . */
public boolean markAss... | assert object != null ; if ( ! isAssigned ( object ) ) { return object . eAdapters ( ) . add ( ASSIGNMENT_MARKER ) ; } return false ; |
public class Matrix2D { /** * Multiply a two element vector against this matrix .
* If out is null or not length four , a new double array will be returned .
* The values for vec and out can be the same ( though that ' s less efficient ) . */
public double [ ] mult ( double [ ] vec , double [ ] out ) { } } | if ( out == null || out . length != 2 ) { out = new double [ 2 ] ; } if ( vec == out ) { double tx = m00 * vec [ 0 ] + m01 * vec [ 1 ] + m02 ; double ty = m10 * vec [ 0 ] + m11 * vec [ 1 ] + m12 ; out [ 0 ] = tx ; out [ 1 ] = ty ; } else { out [ 0 ] = m00 * vec [ 0 ] + m01 * vec [ 1 ] + m02 ; out [ 1 ] = m10 * vec [ 0 ... |
public class IfElse { /** * Perform the if statement . It will pop a boolean from the data stack . If
* that boolean is false the next operand if popped from the operand stack ;
* if true , nothing is done . */
@ Override public Element execute ( Context context ) { } } | assert ( ops . length == 2 || ops . length == 3 ) ; // Pop the condition from the data stack .
boolean condition = false ; try { condition = ( ( BooleanProperty ) ops [ 0 ] . execute ( context ) ) . getValue ( ) ; } catch ( ClassCastException cce ) { throw new EvaluationException ( MessageUtils . format ( MSG_INVALID_I... |
public class CookieConfigTypeImpl { /** * Returns the < code > max - age < / code > element
* @ return the node defined for the element < code > max - age < / code > */
public Integer getMaxAge ( ) { } } | if ( childNode . getTextValueForPatternName ( "max-age" ) != null && ! childNode . getTextValueForPatternName ( "max-age" ) . equals ( "null" ) ) { return Integer . valueOf ( childNode . getTextValueForPatternName ( "max-age" ) ) ; } return null ; |
public class ThreadDumpFactory { /** * Create runtime from thread dump .
* @ throws IOException File could not be loaded . */
public @ Nonnull ThreadDumpRuntime fromFile ( @ Nonnull File threadDump ) throws IOException { } } | FileInputStream fis = new FileInputStream ( threadDump ) ; try { return fromStream ( fis ) ; } finally { fis . close ( ) ; } |
public class ModelImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } } | switch ( featureID ) { case PureXbasePackage . MODEL__IMPORT_SECTION : return getImportSection ( ) ; case PureXbasePackage . MODEL__BLOCK : return getBlock ( ) ; } return super . eGet ( featureID , resolve , coreType ) ; |
public class FileTag { /** * check if the content type is permitted
* @ param contentType
* @ throws PageException */
private static void checkContentType ( String contentType , String accept , String ext , boolean strict ) throws PageException { } } | if ( ! StringUtil . isEmpty ( ext , true ) ) { ext = ext . trim ( ) . toLowerCase ( ) ; if ( ext . startsWith ( "*." ) ) ext = ext . substring ( 2 ) ; if ( ext . startsWith ( "." ) ) ext = ext . substring ( 1 ) ; String blacklistedTypes = SystemUtil . getSystemPropOrEnvVar ( SystemUtil . SETTING_UPLOAD_EXT_BLACKLIST , ... |
public class Conversion { /** * Converts an array of Char into a long using the default ( little endian , Lsb0 ) byte and
* bit ordering .
* @ param src the hex string to convert
* @ param srcPos the position in { @ code src } , in Char unit , from where to start the
* conversion
* @ param dstInit initial val... | if ( 0 == nHex ) { return dstInit ; } if ( ( nHex - 1 ) * 4 + dstPos >= 64 ) { throw new IllegalArgumentException ( "(nHexs-1)*4+dstPos is greater or equal to than 64" ) ; } long out = dstInit ; for ( int i = 0 ; i < nHex ; i ++ ) { final int shift = i * 4 + dstPos ; final long bits = ( 0xfL & hexDigitToInt ( src . cha... |
public class JobConfigurationUtils { /** * Put all configuration properties in a given { @ link State } object into a given
* { @ link Configuration } object .
* @ param state the given { @ link State } object
* @ param configuration the given { @ link Configuration } object */
public static void putStateIntoConf... | for ( String key : state . getPropertyNames ( ) ) { configuration . set ( key , state . getProp ( key ) ) ; } |
public class IPAddress { /** * Does a reverse name lookup to get the canonical host name .
* Note that the canonical host name may differ on different systems , as it aligns with { @ link InetAddress # getCanonicalHostName ( ) }
* In particular , on some systems the loopback address has canonical host localhost and... | HostName host = canonicalHost ; if ( host == null ) { if ( isMultiple ( ) ) { throw new IncompatibleAddressException ( this , "ipaddress.error.unavailable.numeric" ) ; } InetAddress inetAddress = toInetAddress ( ) ; String hostStr = inetAddress . getCanonicalHostName ( ) ; // note : this does not return ipv6 addresses ... |
public class GPathResult { /** * Replaces the MetaClass of this GPathResult .
* @ param metaClass the new MetaClass */
@ Override public void setMetaClass ( final MetaClass metaClass ) { } } | final MetaClass newMetaClass = new DelegatingMetaClass ( metaClass ) { @ Override public Object getAttribute ( final Object object , final String attribute ) { return GPathResult . this . getProperty ( "@" + attribute ) ; } @ Override public void setAttribute ( final Object object , final String attribute , final Objec... |
public class CmsDomUtil { /** * Utility method to determine if the given element has a set background image . < p >
* @ param element the element
* @ return < code > true < / code > if the element has a background image set */
public static boolean hasBackgroundImage ( Element element ) { } } | String backgroundImage = CmsDomUtil . getCurrentStyle ( element , Style . backgroundImage ) ; if ( ( backgroundImage == null ) || ( backgroundImage . trim ( ) . length ( ) == 0 ) || backgroundImage . equals ( StyleValue . none . toString ( ) ) ) { return false ; } return true ; |
public class Basic1DMatrix { /** * Parses { @ link Basic1DMatrix } from the given Matrix Market .
* @ param is the input stream in Matrix Market format
* @ return a parsed matrix
* @ exception IOException if an I / O error occurs . */
public static Basic1DMatrix fromMatrixMarket ( InputStream is ) throws IOExcept... | return Matrix . fromMatrixMarket ( is ) . to ( Matrices . BASIC_1D ) ; |
public class DefaultGroovyMethods { /** * Sorts all Iterable members into ( sub ) groups determined by the supplied
* mapping closures . Each closure should return the key that this item
* should be grouped by . The returned LinkedHashMap will have an entry for each
* distinct ' key path ' returned from the closu... | final Closure head = closures . length == 0 ? Closure . IDENTITY : ( Closure ) closures [ 0 ] ; @ SuppressWarnings ( "unchecked" ) Map < Object , List > first = groupBy ( self , head ) ; if ( closures . length < 2 ) return first ; final Object [ ] tail = new Object [ closures . length - 1 ] ; System . arraycopy ( closu... |
public class TldTaglibTypeImpl { /** * If not already created , a new < code > taglib - extension < / code > element will be created and returned .
* Otherwise , the first existing < code > taglib - extension < / code > element will be returned .
* @ return the instance defined for the element < code > taglib - ext... | List < Node > nodeList = childNode . get ( "taglib-extension" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new TldExtensionTypeImpl < TldTaglibType < T > > ( this , "taglib-extension" , childNode , nodeList . get ( 0 ) ) ; } return createTaglibExtension ( ) ; |
public class AmazonRoute53Client { /** * Updates the comment for a specified traffic policy version .
* @ param updateTrafficPolicyCommentRequest
* A complex type that contains information about the traffic policy that you want to update the comment for .
* @ return Result of the UpdateTrafficPolicyComment operat... | request = beforeClientExecution ( request ) ; return executeUpdateTrafficPolicyComment ( request ) ; |
public class DrawerView { /** * Removes all items from the drawer view */
public DrawerView clearItems ( ) { } } | for ( DrawerItem item : mAdapter . getItems ( ) ) { item . detach ( ) ; } mAdapter . clear ( ) ; updateList ( ) ; return this ; |
public class JoltUtils { /** * Helper / overridden method for listKeyChain ( source ) , it accepts a key - value pair for convenience
* note : " key " : value ( an item in map ) and [ value ] ( an item in list ) is generalized here
* as [ value ] is interpreted in json path as 1 : value
* @ param key
* @ param ... | List < Object [ ] > keyChainList = new LinkedList < > ( ) ; List < Object [ ] > childKeyChainList = listKeyChains ( value ) ; if ( childKeyChainList . size ( ) > 0 ) { for ( Object [ ] childKeyChain : childKeyChainList ) { Object [ ] keyChain = new Object [ childKeyChain . length + 1 ] ; keyChain [ 0 ] = key ; System .... |
public class DescribeAcceleratorRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeAcceleratorRequest describeAcceleratorRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeAcceleratorRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeAcceleratorRequest . getAcceleratorArn ( ) , ACCELERATORARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall r... |
public class SimpleDateFormat { /** * Returns a DateFormat . Field constant associated with the specified format pattern
* character .
* @ param ch The pattern character
* @ return DateFormat . Field associated with the pattern character */
protected DateFormat . Field patternCharToDateFormatField ( char ch ) { }... | int patternCharIndex = getIndexFromChar ( ch ) ; if ( patternCharIndex != - 1 ) { return PATTERN_INDEX_TO_DATE_FORMAT_ATTRIBUTE [ patternCharIndex ] ; } return null ; |
public class CmsSystemInfo { /** * Returns the path to a configuration file . < p >
* This will either be a file below / system / config / or in case an override file exists below / system / config / overrides / . < p >
* @ param cms the cms ontext
* @ param configFile the config file path within / system / confi... | String path = CmsStringUtil . joinPaths ( VFS_CONFIG_OVERRIDE_FOLDER , configFile ) ; if ( ! cms . existsResource ( path ) ) { path = CmsStringUtil . joinPaths ( VFS_CONFIG_FOLDER , configFile ) ; } return path ; |
public class Blob { /** * { @ inheritDoc } */
public long position ( final java . sql . Blob pattern , final long start ) throws SQLException { } } | synchronized ( this ) { if ( this . underlying == null ) { if ( start > 1 ) { throw new SQLException ( "Invalid offset: " + start ) ; } // end of if
return - 1L ; } // end of if
return this . underlying . position ( pattern , start ) ; } // end of sync |
public class PubSubOutputHandler { /** * Creates a FLUSHED message for sending
* @ param target The target cellule ( er ME ) for the message .
* @ param stream The UUID of the stream the message should be sent on
* @ return the new FLUSHED message
* @ throws SIResourceException if the message can ' t be created... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createControlFlushed" , stream ) ; ControlFlushed flushedMsg ; // Create new message
try { flushedMsg = _cmf . createNewControlFlushed ( ) ; } catch ( MessageCreateFailedException e ) { // FFDC
FFDCFilter . processException... |
public class ClassGenerator { /** * Generate a list of import declarations given a set of imported types . */
List < String > generateImports ( Set < String > importedTypes ) { } } | List < String > importDecls = new ArrayList < > ( ) ; for ( String it : importedTypes ) { importDecls . add ( StubKind . IMPORT . format ( it ) ) ; } return importDecls ; |
public class CmsContainerpageHandler { /** * Fills in label and checkbox of a menu entry . < p >
* @ param entry the menu entry
* @ param name the label
* @ param checked true if checkbox should be shown */
protected void decorateMenuEntry ( CmsContextMenuEntry entry , String name , boolean checked ) { } } | CmsContextMenuEntryBean bean = new CmsContextMenuEntryBean ( ) ; bean . setLabel ( name ) ; bean . setActive ( true ) ; bean . setVisible ( true ) ; I_CmsInputCss inputCss = I_CmsInputLayoutBundle . INSTANCE . inputCss ( ) ; bean . setIconClass ( checked ? inputCss . checkBoxImageChecked ( ) : "" ) ; entry . setBean ( ... |
public class MutableBigInteger { /** * If this MutableBigInteger cannot hold len words , increase the size
* of the value array to len words . */
private final void ensureCapacity ( int len ) { } } | if ( value . length < len ) { value = new int [ len ] ; offset = 0 ; intLen = len ; } |
public class KeyVaultClientBaseImpl { /** * Lists deleted SAS definitions for the specified vault and storage account .
* The Get Deleted Sas Definitions operation returns the SAS definitions that have been deleted for a vault enabled for soft - delete . This operation requires the storage / listsas permission .
* ... | 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 ( this . apiVersion ( ) == null ) { throw new... |
public class Reflecter { /** * Auto exchange when the Field class type is primitive or wrapped primitive or Date
* @ return */
public Reflecter < T > autoExchange ( ) { } } | if ( ! this . autoExchangeAdd ) { exchange ( Funcs . TO_BOOLEAN , booleanD ) ; exchange ( Funcs . TO_BYTE , byteD ) ; exchange ( Funcs . TO_DOUBLE , doubleD ) ; exchange ( Funcs . TO_FLOAT , floatD ) ; exchange ( Funcs . TO_INTEGER , integerD ) ; exchange ( Funcs . TO_LONG , longD ) ; exchange ( Funcs . TO_SHORT , shor... |
public class S { /** * Generalize format parameter for the sake of dynamic evaluation
* @ param o
* @ param pattern
* @ return a formatted string representation of the object */
public static String format ( Object o , String pattern , Locale locale , String timezone ) { } } | if ( null == o ) return "" ; return format ( null , o , pattern , locale , timezone ) ; |
public class IntFloatVectorSlice { /** * Gets the index of the first element in this vector with the specified
* value , or - 1 if it is not present .
* @ param value The value to search for .
* @ param delta The delta with which to evaluate equality .
* @ return The index or - 1 if not present . */
public int ... | for ( int i = 0 ; i < size ; i ++ ) { if ( Primitives . equals ( elements [ i + start ] , value , delta ) ) { return i ; } } return - 1 ; |
public class FedoraAPIMImpl { /** * ( non - Javadoc )
* @ see org . fcrepo . server . management . FedoraAPIMMTOM # modifyObject ( String pid
* , ) String state , ) String label , ) String ownerId , ) String logMessage ) * */
@ Override public String modifyObject ( String pid , String state , String label , String ... | LOG . debug ( "start: modifyObject, {}" , pid ) ; assertInitialized ( ) ; try { MessageContext ctx = context . getMessageContext ( ) ; return DateUtility . convertDateToString ( m_management . modifyObject ( ReadOnlyContext . getSoapContext ( ctx ) , pid , state , label , ownerId , logMessage , null ) ) ; } catch ( Thr... |
public class Sheet { /** * Swap the positions of the two specified columns .
* @ param columnKeyA
* @ param columnKeyB */
public void swapColumns ( Object columnKeyA , Object columnKeyB ) { } } | checkFrozen ( ) ; final int columnIndexA = this . getColumnIndex ( columnKeyA ) ; final int columnIndexB = this . getColumnIndex ( columnKeyB ) ; final List < C > tmp = new ArrayList < > ( rowLength ( ) ) ; tmp . addAll ( _columnKeySet ) ; final C tmpColumnKeyA = tmp . get ( columnIndexA ) ; tmp . set ( columnIndexA , ... |
public class BaseDfuImpl { /** * A method that creates the bond to given device on API lower than Android 5.
* @ param device the target device
* @ return false if bonding failed ( no hidden createBond ( ) method in BluetoothDevice , or this method returned false */
private boolean createBondApi18 ( @ NonNull final... | /* * There is a createBond ( ) method in BluetoothDevice class but for now it ' s hidden . We will call it using reflections . It has been revealed in KitKat ( Api19) */
try { final Method createBond = device . getClass ( ) . getMethod ( "createBond" ) ; mService . sendLogBroadcast ( DfuBaseService . LOG_LEVEL_DEBUG , ... |
public class ShakeAroundAPI { /** * 从分组中移除设备
* @ param accessToken accessToken
* @ param deviceGroupDeleteDevice deviceGroupDeleteDevice
* @ return result */
public static DeviceGroupDeleteDeviceResult deviceGroupDeleteDevice ( String accessToken , DeviceGroupDeleteDevice deviceGroupDeleteDevice ) { } } | return deviceGroupDeleteDevice ( accessToken , JsonUtil . toJSONString ( deviceGroupDeleteDevice ) ) ; |
public class InternalSARLParser { /** * InternalSARL . g : 13947:1 : ruleXClosure returns [ EObject current = null ] : ( ( ( ( ( ) ' [ ' ) ) = > ( ( ) otherlv _ 1 = ' [ ' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( ( ( ( lv _ declaredFormalParameters... | EObject current = null ; Token otherlv_1 = null ; Token otherlv_3 = null ; Token lv_explicitSyntax_5_0 = null ; Token otherlv_7 = null ; EObject lv_declaredFormalParameters_2_0 = null ; EObject lv_declaredFormalParameters_4_0 = null ; EObject lv_expression_6_0 = null ; enterRule ( ) ; try { // InternalSARL . g : 13953:... |
public class DockerClientExecutor { /** * EXecutes command to given container returning the inspection object as well . This method does 3 calls to
* dockerhost . Create , Start and Inspect .
* @ param containerId
* to execute command . */
public ExecInspection execStartVerbose ( String containerId , String ... c... | this . readWriteLock . readLock ( ) . lock ( ) ; try { String id = execCreate ( containerId , commands ) ; CubeOutput output = execStartOutput ( id ) ; return new ExecInspection ( output , inspectExec ( id ) ) ; } finally { this . readWriteLock . readLock ( ) . unlock ( ) ; } |
public class AnalysisRunnerJobDelegate { /** * Prevents that any row processing components have input from different
* tables .
* @ param sourceColumnFinder
* @ param componentJobs */
private void validateSingleTableInput ( final SourceColumnFinder sourceColumnFinder , final Collection < ? extends ComponentJob > ... | for ( final ComponentJob componentJob : componentJobs ) { if ( ! componentJob . getDescriptor ( ) . isMultiStreamComponent ( ) ) { Table originatingTable = null ; final InputColumn < ? > [ ] input = componentJob . getInput ( ) ; for ( final InputColumn < ? > inputColumn : input ) { final Table table = sourceColumnFinde... |
public class AbstractRenderer { /** * The target method for paintChemModel , paintReaction , and paintMolecule .
* @ param drawVisitor
* the visitor to draw with
* @ param diagram
* the IRenderingElement tree to render */
protected void paint ( IDrawVisitor drawVisitor , IRenderingElement diagram ) { } } | if ( diagram == null ) return ; // cache the diagram for quick - redraw
this . cachedDiagram = diagram ; fontManager . setFontName ( rendererModel . getParameter ( FontName . class ) . getValue ( ) ) ; fontManager . setFontStyle ( rendererModel . getParameter ( UsedFontStyle . class ) . getValue ( ) ) ; drawVisitor . s... |
public class SessionDataManager { /** * Check when it ' s a Node and is versionable will a version history removed . Case of last version
* in version history .
* @ throws RepositoryException
* @ throws ConstraintViolationException
* @ throws VersionException */
public void removeVersionHistory ( String vhID , ... | NodeData vhnode = ( NodeData ) getItemData ( vhID ) ; if ( vhnode == null ) { ItemState vhState = changesLog . getItemState ( vhID ) ; if ( vhState != null && vhState . isDeleted ( ) ) { return ; } LOG . debug ( "Version history is not found. UUID: " + vhID + ". Context item (ancestor to save) " + ancestorToSave . getA... |
public class NodeCommmunicationClient { /** * 指定manager , 进行event调用 */
public Object callManager ( final Event event ) { } } | CommunicationException ex = null ; Object object = null ; for ( int i = index ; i < index + managerAddress . size ( ) ; i ++ ) { // 循环一次manager的所有地址
String address = managerAddress . get ( i % managerAddress . size ( ) ) ; try { object = delegate . call ( address , event ) ; index = i ; // 更新一下上一次成功的地址
return object ; ... |
public class RecurlyClient { /** * Get Account Adjustments
* @ param accountCode recurly account id
* @ param type { @ link com . ning . billing . recurly . model . Adjustments . AdjustmentType }
* @ param state { @ link com . ning . billing . recurly . model . Adjustments . AdjustmentState }
* @ return the adj... | return getAccountAdjustments ( accountCode , type , state , new QueryParams ( ) ) ; |
public class SoyListData { /** * Important : Do not use outside of Soy code ( treat as superpackage - private ) .
* < p > Puts data into this data object at the specified key .
* @ param key An individual key .
* @ param value The data to put at the specified key . */
@ Override public void putSingle ( String key... | set ( Integer . parseInt ( key ) , value ) ; |
public class FormatUtils { /** * Converts an integer to a string , prepended with a variable amount of ' 0'
* pad characters , and writes it to the given writer .
* < p > This method is optimized for converting small values to strings .
* @ param out receives integer converted to a string
* @ param value value ... | if ( value < 0 ) { out . write ( '-' ) ; if ( value != Integer . MIN_VALUE ) { value = - value ; } else { for ( ; size > 10 ; size -- ) { out . write ( '0' ) ; } out . write ( "" + - ( long ) Integer . MIN_VALUE ) ; return ; } } if ( value < 10 ) { for ( ; size > 1 ; size -- ) { out . write ( '0' ) ; } out . write ( va... |
public class ClinAsserTraitType { /** * Gets the value of the attributeSet property .
* This accessor method returns a reference to the live list ,
* not a snapshot . Therefore any modification you make to the
* returned list will be present inside the JAXB object .
* This is why there is not a < CODE > set < /... | if ( attributeSet == null ) { attributeSet = new ArrayList < ClinAsserTraitType . AttributeSet > ( ) ; } return this . attributeSet ; |
public class LongConverter { /** * Converts an { @ link Object } of { @ link Class type S } into an { @ link Object } of { @ link Class type T } .
* @ param value { @ link Object } of { @ link Class type S } to convert .
* @ return the converted { @ link Object } of { @ link Class type T } .
* @ throws Conversion... | if ( value instanceof Number ) { return ( ( Number ) value ) . longValue ( ) ; } else if ( value instanceof Calendar ) { return ( ( Calendar ) value ) . getTimeInMillis ( ) ; } else if ( value instanceof Date ) { return ( ( Date ) value ) . getTime ( ) ; } else if ( value instanceof String && StringUtils . containsDigi... |
public class RelationGraph { /** * Renders the graph in the specified format to the specified output location .
* @ param output the location to save the rendered graph .
* @ param format the graphic format to save the rendered graph in
* @ throws IOException Something went wrong rendering the graph */
public voi... | GraphViz < Annotation > graphViz = new GraphViz < > ( ) ; graphViz . setVertexEncoder ( v -> new Vertex ( v . toString ( ) + "_" + v . getPOS ( ) . toString ( ) , Collections . emptyMap ( ) ) ) ; graphViz . setEdgeEncoder ( e -> map ( "label" , Cast . < RelationEdge > as ( e ) . getRelation ( ) ) ) ; graphViz . setForm... |
public class DBEngineVersion { /** * A list of engine versions that this database engine version can be upgraded to .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setValidUpgradeTarget ( java . util . Collection ) } or { @ link # withValidUpgradeTarget ( j... | if ( this . validUpgradeTarget == null ) { setValidUpgradeTarget ( new java . util . ArrayList < UpgradeTarget > ( validUpgradeTarget . length ) ) ; } for ( UpgradeTarget ele : validUpgradeTarget ) { this . validUpgradeTarget . add ( ele ) ; } return this ; |
public class ExpandableArrayBuffer { public float getFloat ( final int index , final ByteOrder byteOrder ) { } } | boundsCheck0 ( index , SIZE_OF_FLOAT ) ; if ( NATIVE_BYTE_ORDER != byteOrder ) { final int bits = UNSAFE . getInt ( byteArray , ARRAY_BASE_OFFSET + index ) ; return Float . intBitsToFloat ( Integer . reverseBytes ( bits ) ) ; } else { return UNSAFE . getFloat ( byteArray , ARRAY_BASE_OFFSET + index ) ; } |
public class OmemoManager { /** * Encrypt a message for all recipients in the MultiUserChat .
* @ param muc multiUserChat
* @ param message message to send
* @ return encrypted message
* @ throws UndecidedOmemoIdentityException when there are undecided devices .
* @ throws CryptoFailedException
* @ throws X... | synchronized ( LOCK ) { if ( ! multiUserChatSupportsOmemo ( muc ) ) { throw new NoOmemoSupportException ( ) ; } Set < BareJid > recipients = new HashSet < > ( ) ; for ( EntityFullJid e : muc . getOccupants ( ) ) { recipients . add ( muc . getOccupant ( e ) . getJid ( ) . asBareJid ( ) ) ; } return encrypt ( recipients ... |
public class DatabaseConnectionRequest { /** * Set the Auth0 Database Connection used for this request using its name .
* @ param connection name
* @ return itself */
public DatabaseConnectionRequest < T , U > setConnection ( String connection ) { } } | request . addParameter ( ParameterBuilder . CONNECTION_KEY , connection ) ; return this ; |
public class CSSURI { /** * Set the URI string of this object . This may either be a regular URI or a
* data URL string ( starting with " data : " ) . The passed string may not start
* with the prefix " url ( " and end with " ) " .
* @ param sURI
* The URI to be set . May not be < code > null < / code > but may... | ValueEnforcer . notNull ( sURI , "URI" ) ; if ( CSSURLHelper . isURLValue ( sURI ) ) throw new IllegalArgumentException ( "Only the URI and not the CSS-URI value must be passed!" ) ; m_sURI = sURI ; return this ; |
public class HelpFormatter { /** * Print the help for < code > options < / code > with the specified command line
* syntax . This method prints help information to System . out .
* @ param sCmdLineSyntax
* the syntax for this application
* @ param sHeader
* the banner to display at the beginning of the help
... | printHelp ( sCmdLineSyntax , sHeader , aOptions , sFooter , false ) ; |
public class AbstractMessage { /** * / * ( non - Javadoc )
* @ see javax . jms . Message # setDoubleProperty ( java . lang . String , double ) */
@ Override public final void setDoubleProperty ( String name , double value ) throws JMSException { } } | setProperty ( name , new Double ( value ) ) ; |
public class Graphite { /** * Push samples from the given registry to Graphite at the given interval . */
public Thread start ( CollectorRegistry registry , int intervalSeconds ) { } } | Thread thread = new PushThread ( registry , intervalSeconds ) ; thread . setDaemon ( true ) ; thread . start ( ) ; return thread ; |
public class AbstractSockJsMessageCodec { /** * { @ inheritDoc } */
@ Override public String encode ( String ... messages ) { } } | Assert . notNull ( messages , "messages must not be null" ) ; StringBuilder sb = new StringBuilder ( ) ; sb . append ( "a[" ) ; for ( int i = 0 ; i < messages . length ; i ++ ) { sb . append ( '"' ) ; char [ ] quotedChars = applyJsonQuoting ( messages [ i ] ) ; sb . append ( escapeSockJsSpecialChars ( quotedChars ) ) ;... |
public class ExpressionUtils { /** * Rounding for decimals with support for negative digits */
public static BigDecimal decimalRound ( BigDecimal number , int numDigits , RoundingMode rounding ) { } } | BigDecimal rounded = number . setScale ( numDigits , rounding ) ; if ( numDigits < 0 ) { rounded = rounded . setScale ( 0 , BigDecimal . ROUND_UNNECESSARY ) ; } return rounded ; |
public class JettyCombinedLdapLoginModule { /** * Override to perform behavior of " ignoreRoles " option
* @ param dirContext context
* @ param username username
* @ return empty or supplemental roles list only if " ignoreRoles " is true , otherwise performs normal LDAP lookup
* @ throws LoginException
* @ th... | if ( _ignoreRoles ) { ArrayList < String > strings = new ArrayList < > ( ) ; addSupplementalRoles ( strings ) ; return strings ; } else { return super . getUserRoles ( dirContext , username ) ; } |
public class SimpleDigitalSkin { /** * * * * * * Canvas * * * * * */
private void setBar ( final double VALUE ) { } } | barCtx . clearRect ( 0 , 0 , size , size ) ; barCtx . setLineCap ( StrokeLineCap . BUTT ) ; barCtx . setStroke ( barColor ) ; barCtx . setLineWidth ( barWidth ) ; if ( sectionsVisible ) { int listSize = sections . size ( ) ; for ( int i = 0 ; i < listSize ; i ++ ) { Section section = sections . get ( i ) ; if ( section... |
public class BoxDeveloperEditionAPIConnection { /** * Creates a new Box Developer Edition connection with enterprise token .
* @ param enterpriseId the enterprise ID to use for requesting access token .
* @ param clientId the client ID to use when exchanging the JWT assertion for an access token .
* @ param clien... | BoxDeveloperEditionAPIConnection connection = new BoxDeveloperEditionAPIConnection ( enterpriseId , DeveloperEditionEntityType . ENTERPRISE , clientId , clientSecret , encryptionPref ) ; connection . authenticate ( ) ; return connection ; |
public class CloudantDatabaseService { /** * Returns the underlying cloudantClient object for this database and the provided resource config
* @ param info The ResourceConfig used with the associated cloudantDatabase lookup
* @ return the cloudantClient object , or null
* @ throws Exception */
public Object getCl... | return cloudantSvc . getCloudantClient ( info == null ? ResourceInfo . AUTH_APPLICATION : info . getAuth ( ) , info == null ? null : info . getLoginPropertyList ( ) ) ; |
public class XMLStreamReader { /** * Shortcut to move forward to the first START _ ELEMENT event , skipping the header or comments . */
public void startRootElement ( ) throws XMLException , IOException { } } | start ( ) ; while ( ! Type . START_ELEMENT . equals ( event . type ) ) next ( ) ; |
public class JavaMethodInfo { private IType [ ] convertTypes ( IJavaClassType [ ] genParamTypes , IType ownersType ) { } } | IType ot = ownersType == null ? getOwnersType ( ) : ownersType ; TypeVarToTypeMap actualParamByVarName = TypeLord . mapTypeByVarName ( ot , _md . getMethod ( ) . getEnclosingClass ( ) . getJavaType ( ) ) ; for ( IGenericTypeVariable tv : getTypeVariables ( ) ) { if ( actualParamByVarName . isEmpty ( ) ) { actualParamBy... |
public class EndpointInfoBuilder { /** * Sets the default { @ link MediaType } . */
public EndpointInfoBuilder defaultMimeType ( MediaType defaultMimeType ) { } } | requireNonNull ( defaultMimeType , "defaultMimeType" ) ; this . defaultMimeType = defaultMimeType ; if ( availableMimeTypes == null ) { availableMimeTypes = ImmutableSet . of ( defaultMimeType ) ; } else if ( ! availableMimeTypes . contains ( defaultMimeType ) ) { availableMimeTypes = addDefaultMimeType ( defaultMimeTy... |
public class OkHttp { /** * Download the resource at the URL and write it to the file .
* @ return Response whose body has already been consumed and closed */
public Response download ( String url , File destination ) throws IOException { } } | return download ( url , destination , ( String [ ] ) null ) ; |
public class JavaClass { /** * Adds an interface . */
public void addInterface ( String className ) { } } | _interfaces . add ( className ) ; if ( _isWrite ) getConstantPool ( ) . addClass ( className ) ; |
public class DiscordRecord { /** * The simple comparator based on the distance . Note that discord is " better " if the NN distance
* is greater .
* @ param other The discord record this one is compared to .
* @ return True if equals . */
@ Override public int compareTo ( DiscordRecord other ) { } } | if ( null == other ) { throw new NullPointerException ( "Unable compare to null!" ) ; } return Double . compare ( other . getNNDistance ( ) , this . nnDistance ) ; |
public class ESJPImporter { /** * This Method extracts the package name and sets the name of this Java
* definition ( the name is the package name together with the name of the
* file excluding the < code > . java < / code > ) .
* @ return class name of the ESJP */
@ Override protected String evalProgramName ( ) ... | final String urlPath = getUrl ( ) . getPath ( ) ; String name = urlPath . substring ( urlPath . lastIndexOf ( '/' ) + 1 ) ; name = name . substring ( 0 , name . lastIndexOf ( '.' ) ) ; // regular expression for the package name
final Pattern pckPattern = Pattern . compile ( "package +[^;]+;" ) ; final Matcher pckMatche... |
public class Validation { /** * method to check the attachment point ' s existence
* @ param mon
* Monomer
* @ param str
* Attachment point
* @ throws AttachmentException
* if the Attachment point is not there */
private static void checkAttachmentPoint ( Monomer mon , String str ) throws AttachmentExceptio... | if ( ! ( mon . getAttachmentListString ( ) . contains ( str ) ) ) { if ( ! ( str . equals ( "?" ) || str . equals ( "pair" ) ) && ! mon . getAlternateId ( ) . equals ( "?" ) ) { LOG . info ( "Attachment point for source is not there" ) ; throw new AttachmentException ( "Attachment point for source is not there: " + str... |
public class ApiOvhDedicatedserver { /** * Alter this object properties
* REST : PUT / dedicated / server / { serviceName } / burst
* @ param body [ required ] New object properties
* @ param serviceName [ required ] The internal name of your dedicated server */
public void serviceName_burst_PUT ( String serviceN... | String qPath = "/dedicated/server/{serviceName}/burst" ; StringBuilder sb = path ( qPath , serviceName ) ; exec ( qPath , "PUT" , sb . toString ( ) , body ) ; |
public class BusNetwork { /** * Replies the list of the bus stops of the bus network .
* @ return a list of bus stops */
@ Pure public Iterable < BusStop > busStops ( ) { } } | final MultiCollection < BusStop > col = new MultiCollection < > ( ) ; col . addCollection ( this . validBusStops ) ; col . addCollection ( this . invalidBusStops ) ; return Iterables . unmodifiableIterable ( col ) ; |
public class CompilerUtils { /** * Copy a classpath resource to the given location on a filesystem . */
public void copyResource ( String name , String destinationFilename ) { } } | ClassLoader classLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; if ( classLoader == null ) { String error = "Can not obtain classloader instance" ; throw new IllegalStateException ( error ) ; } try ( InputStream stream = classLoader . getResourceAsStream ( name ) ) { if ( stream == null ) { String er... |
public class HullWhiteModel { /** * Calculates \ ( B ( t , T ) = \ int _ { t } ^ { T } \ exp ( - \ int _ { s } ^ { T } a ( \ tau ) \ mathrm { d } \ tau ) \ mathrm { d } s \ ) , where a is the mean reversion parameter .
* For a constant \ ( a \ ) this results in \ ( \ frac { 1 - \ exp ( - a ( T - t ) } { a } \ ) , but... | int timeIndexStart = volatilityModel . getTimeDiscretization ( ) . getTimeIndex ( time ) ; if ( timeIndexStart < 0 ) { timeIndexStart = - timeIndexStart - 2 ; // Get timeIndex corresponding to previous point
} int timeIndexEnd = volatilityModel . getTimeDiscretization ( ) . getTimeIndex ( maturity ) ; if ( timeIndexEnd... |
public class Kryo { /** * Reads the class and object or null using the registered serializer .
* @ return May be null . */
public Object readClassAndObject ( Input input ) { } } | if ( input == null ) throw new IllegalArgumentException ( "input cannot be null." ) ; beginObject ( ) ; try { Registration registration = readClass ( input ) ; if ( registration == null ) return null ; Class type = registration . getType ( ) ; Object object ; if ( references ) { int stackSize = readReferenceOrNull ( in... |
public class SimpleJob { /** * This method is to determine automatically join the Simple and Big .
* @ param masterLabels label of master data
* @ param masterColumn master column
* @ param dataColumn data column
* @ param masterPath master data HDFS path
* @ param separator separator
* @ param regex master... | if ( regex ) { return setSimpleJoin ( masterLabels , masterColumn , dataColumn , masterPath , separator , regex ) ; } String javaOpt = conf . get ( "mapred.child.java.opts" ) ; String xmx = StringUtil . getXmx ( javaOpt ) ; int xmxSize = SizeUtils . xmx2MB ( xmx ) ; int masterSize = SizeUtils . byte2Mbyte ( pathUtils .... |
public class Rational { /** * return a + b , staving off overflow */
public Rational plus ( final Rational pOther ) { } } | // special cases
if ( equals ( ZERO ) ) { return pOther ; } if ( pOther . equals ( ZERO ) ) { return this ; } // Find gcd of numerators and denominators
long f = gcd ( numerator , pOther . numerator ) ; long g = gcd ( denominator , pOther . denominator ) ; // add cross - product terms for numerator
// multiply back in
... |
public class Review { /** * Retrieves a < code > Review < / code > object . */
public static Review retrieve ( String review , Map < String , Object > params , RequestOptions options ) throws StripeException { } } | String url = String . format ( "%s%s" , Stripe . getApiBase ( ) , String . format ( "/v1/reviews/%s" , ApiResource . urlEncodeId ( review ) ) ) ; return request ( ApiResource . RequestMethod . GET , url , params , Review . class , options ) ; |
public class ReferenceEntityLockService { /** * Returns a lock for the entity , lock type and owner if no conflicting locks exist .
* @ return org . apereo . portal . groups . IEntityLock
* @ param entityID org . apereo . portal . EntityIdentifier
* @ param lockType int
* @ param owner String
* @ param durati... | return newLock ( entityID . getType ( ) , entityID . getKey ( ) , lockType , owner , durationSecs ) ; |
public class ResourceManager { /** * Callback method when current resourceManager is granted leadership .
* @ param newLeaderSessionID unique leadershipID */
@ Override public void grantLeadership ( final UUID newLeaderSessionID ) { } } | final CompletableFuture < Boolean > acceptLeadershipFuture = clearStateFuture . thenComposeAsync ( ( ignored ) -> tryAcceptLeadership ( newLeaderSessionID ) , getUnfencedMainThreadExecutor ( ) ) ; final CompletableFuture < Void > confirmationFuture = acceptLeadershipFuture . thenAcceptAsync ( ( acceptLeadership ) -> { ... |
public class AWSSimpleSystemsManagementClient { /** * Describes one or more of your Systems Manager documents .
* @ param listDocumentsRequest
* @ return Result of the ListDocuments operation returned by the service .
* @ throws InternalServerErrorException
* An error occurred on the server side .
* @ throws ... | request = beforeClientExecution ( request ) ; return executeListDocuments ( request ) ; |
public class UnixPath { /** * Returns { @ code other } resolved against parent of { @ code path } .
* @ see java . nio . file . Path # resolveSibling ( java . nio . file . Path ) */
public UnixPath resolveSibling ( UnixPath other ) { } } | checkNotNull ( other ) ; UnixPath parent = getParent ( ) ; return parent == null ? other : parent . resolve ( other ) ; |
public class Nameserver { /** * Glue IP address of a name server entry . Glue IP addresses are required only when the name of the name server is a
* subdomain of the domain . For example , if your domain is example . com and the name server for the domain is
* ns . example . com , you need to specify the IP address... | if ( this . glueIps == null ) { setGlueIps ( new com . amazonaws . internal . SdkInternalList < String > ( glueIps . length ) ) ; } for ( String ele : glueIps ) { this . glueIps . add ( ele ) ; } return this ; |
public class AvatarShellCommand { /** * Check if either - zero - one or - address are specified . */
void eitherZeroOrOneOrAddress ( String command ) { } } | if ( ! isAddressCommand && ! ( isZeroCommand ^ isOneCommand ) ) { throwException ( CMD + command + ": (zero|one) specified incorrectly" ) ; } if ( isAddressCommand && ( isZeroCommand || isOneCommand ) ) { throwException ( CMD + command + ": cannot specify address with (zero|one)" ) ; } |
public class Say { /** * Attributes to set on the generated XML element
* @ return A Map of attribute keys to values */
protected Map < String , String > getElementAttributes ( ) { } } | // Preserve order of attributes
Map < String , String > attrs = new HashMap < > ( ) ; if ( this . getVoice ( ) != null ) { attrs . put ( "voice" , this . getVoice ( ) . toString ( ) ) ; } if ( this . getLoop ( ) != null ) { attrs . put ( "loop" , this . getLoop ( ) . toString ( ) ) ; } if ( this . getLanguage ( ) != nu... |
public class StructureController { /** * Branch access */
@ RequestMapping ( value = "entity/branch/{project}/{branch:.*}" , method = RequestMethod . GET ) public Branch branch ( @ PathVariable String project , @ PathVariable String branch ) { } } | return structureService . findBranchByName ( project , branch ) . orElseThrow ( ( ) -> new BranchNotFoundException ( project , branch ) ) ; |
public class JsMessageHandleImpl { /** * Flattens the SIMessageHandle to a String .
* This flattened format can be restored into a SIMessageHandle by using
* com . ibm . wsspi . sib . core . SIMessageHandleRestorer . restoreFromString ( String data )
* @ see com . ibm . wsspi . sib . core . SIMessageHandleRestore... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "flattenToString" ) ; StringBuffer buffer = new StringBuffer ( ) ; byte [ ] bytes = this . flattenToBytes ( ) ; HexString . binToHex ( bytes , 0 , bytes . length , buffer ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && ... |
public class RegionManager { /** * Merges all outstanding dirty regions into a single list of rectangles and returns that to
* the caller . Internally , the list of accumulated dirty regions is cleared out and prepared
* for the next frame . */
public Rectangle [ ] getDirtyRegions ( ) { } } | List < Rectangle > merged = Lists . newArrayList ( ) ; for ( int ii = _dirty . size ( ) - 1 ; ii >= 0 ; ii -- ) { // pop the next rectangle from the dirty list
Rectangle mr = _dirty . remove ( ii ) ; // merge in any overlapping rectangles
for ( int jj = ii - 1 ; jj >= 0 ; jj -- ) { Rectangle r = _dirty . get ( jj ) ; i... |
public class MessageLogger { /** * Logs a message by the provided key to the provided { @ link Logger } at info level after substituting the parameters in the message by the provided objects .
* @ param logger the logger to log to
* @ param messageKey the key of the message in the bundle
* @ param objects the sub... | logger . info ( getMessage ( messageKey , objects ) ) ; |
public class AuthenticationFilter { /** * Parses the Authorization request header into a username and password .
* @ param authHeader the auth header */
private Creds parseAuthorizationBasic ( String authHeader ) { } } | String userpassEncoded = authHeader . substring ( 6 ) ; String data = StringUtils . newStringUtf8 ( Base64 . decodeBase64 ( userpassEncoded ) ) ; int sepIdx = data . indexOf ( ':' ) ; if ( sepIdx > 0 ) { String username = data . substring ( 0 , sepIdx ) ; String password = data . substring ( sepIdx + 1 ) ; return new C... |
public class PerlinNoise { /** * Ordinary noise function .
* @ param x X Value .
* @ param y Y Value .
* @ return */
private double Noise ( int x , int y ) { } } | int n = x + y * 57 ; n = ( n << 13 ) ^ n ; return ( 1.0 - ( ( n * ( n * n * 15731 + 789221 ) + 1376312589 ) & 0x7fffffff ) / 1073741824.0 ) ; |
public class ExpressRouteCrossConnectionsInner { /** * Update the specified ExpressRouteCrossConnection .
* @ param resourceGroupName The name of the resource group .
* @ param crossConnectionName The name of the ExpressRouteCrossConnection .
* @ param parameters Parameters supplied to the update express route cr... | return createOrUpdateWithServiceResponseAsync ( resourceGroupName , crossConnectionName , parameters ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class Crowd { /** * / could not be added . */
public int addAgent ( float [ ] pos , CrowdAgentParams params ) { } } | // Find empty slot .
int idx = - 1 ; for ( int i = 0 ; i < m_maxAgents ; ++ i ) { if ( ! m_agents [ i ] . active ) { idx = i ; break ; } } if ( idx == - 1 ) { return - 1 ; } CrowdAgent ag = m_agents [ idx ] ; updateAgentParameters ( idx , params ) ; // Find nearest position on navmesh and place the agent there .
Result... |
public class MayNotContainSpacesValidator { /** * ( non - Javadoc )
* @ see
* com . fs . commons . desktop . validation . Validator # validate ( com . fs . commons . desktop .
* validation . Problems , java . lang . String , java . lang . Object ) */
@ Override public boolean validate ( final Problems problems , ... | final char [ ] chars = model . toCharArray ( ) ; for ( final char c : chars ) { if ( Character . isWhitespace ( c ) ) { problems . add ( ValidationBundle . getMessage ( MayNotContainSpacesValidator . class , "MAY_NOT_CONTAIN_WHITESPACE" , compName ) ) ; // NOI18N
return false ; } } return true ; |
public class DescriptorFactory { /** * Get a MethodDescriptor .
* @ param className
* name of the class containing the method , in VM format ( e . g . ,
* " java / lang / String " )
* @ param name
* name of the method
* @ param signature
* signature of the method
* @ param isStatic
* true if method is... | if ( className == null ) { throw new NullPointerException ( "className must be nonnull" ) ; } MethodDescriptor methodDescriptor = new MethodDescriptor ( className , name , signature , isStatic ) ; MethodDescriptor existing = methodDescriptorMap . get ( methodDescriptor ) ; if ( existing == null ) { methodDescriptorMap ... |
public class CommonXml { /** * Write the interfaces including the criteria elements .
* @ param writer the xml stream writer
* @ param modelNode the model
* @ throws XMLStreamException */
protected void writeInterfaces ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException ... | interfacesXml . writeInterfaces ( writer , modelNode ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.