signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class JobClient { /** * 取消任务 */
public Response cancelJob ( String taskId , String taskTrackerNodeGroup ) { } } | checkStart ( ) ; final Response response = new Response ( ) ; Assert . hasText ( taskId , "taskId can not be empty" ) ; Assert . hasText ( taskTrackerNodeGroup , "taskTrackerNodeGroup can not be empty" ) ; JobCancelRequest request = CommandBodyWrapper . wrapper ( appContext , new JobCancelRequest ( ) ) ; request . setT... |
public class CipherUtils { /** * converts a byte [ ] that originally was created using { @ link PrivateKey # getEncoded ( ) } back to the corresponding
* instance .
* Example : CipherUtils . deserializePrivateKey ( data , " RSA " ) */
public static PrivateKey deserializePrivateKey ( byte [ ] keyData , String algori... | LOGGER . trace ( "deserialize private key from data using algorithm \"{}\"" , algorithm ) ; PKCS8EncodedKeySpec privSpec = new PKCS8EncodedKeySpec ( keyData ) ; try { KeyFactory keyFactory = KeyFactory . getInstance ( algorithm ) ; return keyFactory . generatePrivate ( privSpec ) ; } catch ( GeneralSecurityException e ... |
public class Assets { /** * Asynchronously loads and returns the image at the specified URL . The width and height of the
* image will be the supplied { @ code width } and { @ code height } until the image is loaded .
* < em > Note : < / em > on non - HTML platforms , this spawns a new thread for each loaded image ... | Exception error = new Exception ( "Remote image loading not yet supported: " + url + "@" + width + "x" + height ) ; ImageImpl image = createImage ( false , width , height , url ) ; image . fail ( error ) ; return image ; |
public class GetUsagePlanKeysResult { /** * The current page of elements from this collection .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setItems ( java . util . Collection ) } or { @ link # withItems ( java . util . Collection ) } if you want to overr... | if ( this . items == null ) { setItems ( new java . util . ArrayList < UsagePlanKey > ( items . length ) ) ; } for ( UsagePlanKey ele : items ) { this . items . add ( ele ) ; } return this ; |
public class MCWrapper { /** * This method is used for marking a connection to destroy .
* The connection state does not matter . The connection still
* can be useable . When the connection is returned to the
* free pool , this connection will be cleaned up and destroyed .
* This method may be called when total... | final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTracingEnabled && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "setDestroyConnectionOnReturn" ) ; } -- fatalErrorValue ; if ( isTracingEnabled && tc . isEntryEnabled ( ) ) { Tr . exit ( this , tc , "setDestroyConnectionOnReturn" ... |
public class Solo { /** * Clicks the specified item index and returns an ArrayList of the TextView objects that
* the item index is displaying . Will use the first RecyclerView it finds .
* @ param itemIndex the item index to click
* @ return an { @ code ArrayList } of the { @ link TextView } objects located in t... | if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "clickInRecyclerView(" + itemIndex + ")" ) ; } return clicker . clickInRecyclerView ( itemIndex ) ; |
public class NGAExtensions { /** * Delete all NGA extensions including custom extension tables for the
* GeoPackage
* @ param geoPackage
* GeoPackage */
public static void deleteExtensions ( GeoPackageCore geoPackage ) { } } | deleteGeometryIndexExtension ( geoPackage ) ; deleteFeatureTileLinkExtension ( geoPackage ) ; deleteTileScalingExtension ( geoPackage ) ; deletePropertiesExtension ( geoPackage ) ; deleteFeatureStyleExtension ( geoPackage ) ; deleteContentsIdExtension ( geoPackage ) ; // Delete future extension tables here |
public class GenericLogicDiscoverer { /** * Discover registered operations that consume all the types of input provided . That is , all those that have as input
* the types provided . All the input types should be matched to different inputs .
* @ param inputTypes the types of input to be consumed
* @ return a Se... | return findOperationsConsumingAll ( inputTypes , LogicConceptMatchType . Plugin ) ; |
public class AbstractHasTopLevelRules { /** * Get a list of all top - level rules that are support rules ( implementing
* { @ link CSSSupportsRule } ) .
* @ return A copy of all contained < code > @ supports < / code > rules . Never
* < code > null < / code > . */
@ Nonnull @ ReturnsMutableCopy public ICommonsLis... | return m_aRules . getAllMapped ( r -> r instanceof CSSSupportsRule , r -> ( CSSSupportsRule ) r ) ; |
public class CollectionUtils { /** * Adapts the { @ link Enumeration } into an instance of the { @ link Iterable } interface .
* @ param < T > Class type of the elements in the { @ link Enumeration } .
* @ param enumeration { @ link Enumeration } to adapt into an { @ link Iterable } .
* @ return an { @ link Itera... | return ( ) -> asIterator ( enumeration ) ; |
public class AgentManifestReader { /** * Read all the specific manifest files and return the set of packages containing type query beans . */
private AgentManifestReader readManifests ( ClassLoader classLoader , String path ) throws IOException { } } | Enumeration < URL > resources = classLoader . getResources ( path ) ; while ( resources . hasMoreElements ( ) ) { URL url = resources . nextElement ( ) ; try { addResource ( url . openStream ( ) ) ; } catch ( IOException e ) { System . err . println ( "Error reading manifest resources " + url ) ; e . printStackTrace ( ... |
public class DefaultXMLReader { /** * / * ( non - Javadoc )
* @ see tuwien . auto . calimero . xml . XMLReader # close ( ) */
public void close ( ) throws KNXMLException { } } | if ( closeReader ) try { r . close ( ) ; } catch ( final IOException e ) { throw new KNXMLException ( e . getMessage ( ) ) ; } |
public class KTypeHashSet { /** * / * # if ( $ TemplateOptions . KTypeGeneric ) */
@ SafeVarargs /* # end */
public final int addAll ( KType ... elements ) { } } | ensureCapacity ( elements . length ) ; int count = 0 ; for ( KType e : elements ) { if ( add ( e ) ) { count ++ ; } } return count ; |
public class PdfDocument { /** * Returns the bottomvalue of a < CODE > Table < / CODE > if it were added to this document .
* @ paramtablethe table that may or may not be added to this document
* @ returna bottom value */
float bottom ( Table table ) { } } | // constructing a PdfTable
PdfTable tmp = new PdfTable ( table , indentLeft ( ) , indentRight ( ) , indentTop ( ) - currentHeight ) ; return tmp . getBottom ( ) ; |
public class CmsLocaleGroup { /** * Gets the list of all resources of this group ( primary and secondary ) . < p >
* @ return the list of all resources of this group */
public List < CmsResource > getAllResources ( ) { } } | List < CmsResource > result = Lists . newArrayList ( ) ; result . add ( m_primaryResource ) ; for ( CmsResource res : getSecondaryResources ( ) ) { result . add ( res ) ; } return result ; |
public class HiveRegistrationUnitComparator { /** * Compare all parameters . */
@ SuppressWarnings ( "unchecked" ) public T compareAll ( ) { } } | this . compareInputFormat ( ) . compareOutputFormat ( ) . compareIsCompressed ( ) . compareIsStoredAsSubDirs ( ) . compareNumBuckets ( ) . compareBucketCols ( ) . compareRawLocation ( ) . compareParameters ( ) ; return ( T ) this ; |
public class SpatialReferenceSystemDao { /** * { @ inheritDoc } */
@ Override public SpatialReferenceSystem queryForId ( Long id ) throws SQLException { } } | SpatialReferenceSystem srs = super . queryForId ( id ) ; setDefinition_12_063 ( srs ) ; return srs ; |
public class CFCImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setRetired1 ( Integer newRetired1 ) { } } | Integer oldRetired1 = retired1 ; retired1 = newRetired1 ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . CFC__RETIRED1 , oldRetired1 , retired1 ) ) ; |
public class JsonBuilder { /** * Add a number to the object .
* @ param key key
* @ param n value
* @ return the builder */
public @ Nonnull JsonBuilder put ( String key , Number n ) { } } | object . put ( key , primitive ( n ) ) ; return this ; |
public class FxFlowableTransformers { /** * Performs an action on FX thread on onCompleted with the provided emission count
* @ param onComplete
* @ param < T > */
public static < T > FlowableTransformer < T , T > doOnCompleteCountFx ( Consumer < Integer > onComplete ) { } } | return obs -> obs . compose ( doOnCompleteCount ( i -> runOnFx ( i , onComplete ) ) ) ; |
public class GitHub { /** * Get matching paths found in given base directory
* @ param includes
* @ param excludes
* @ param baseDir
* @ return non - null but possibly empty array of string paths relative to the
* base directory */
public static String [ ] getMatchingPaths ( final String [ ] includes , final ... | DirectoryScanner scanner = new DirectoryScanner ( ) ; scanner . setBasedir ( baseDir ) ; if ( includes != null && includes . length > 0 ) { scanner . setIncludes ( includes ) ; } if ( excludes != null && excludes . length > 0 ) { scanner . setExcludes ( excludes ) ; } scanner . scan ( ) ; return scanner . getIncludedFi... |
public class TitlePaneIconifyButtonPainter { /** * Paint the background pressed state .
* @ param g the Graphics2D context to paint with .
* @ param c the component .
* @ param width the width of the component .
* @ param height the height of the component . */
private void paintBackgroundPressed ( Graphics2D g... | paintBackground ( g , c , width , height , pressed ) ; |
public class DataSinkNode { @ Override public List < PlanNode > getAlternativePlans ( CostEstimator estimator ) { } } | // check if we have a cached version
if ( this . cachedPlans != null ) { return this . cachedPlans ; } // calculate alternative sub - plans for predecessor
List < ? extends PlanNode > subPlans = getPredecessorNode ( ) . getAlternativePlans ( estimator ) ; List < PlanNode > outputPlans = new ArrayList < PlanNode > ( ) ;... |
public class SDBaseOps { /** * Reshape the input variable to the specified ( fixed ) shape . The output variable will have the same values as the
* input , but with the specified shape . < br >
* Note that prod ( shape ) must match length ( input ) = = prod ( input . shape )
* @ param name Output variable name
... | SDVariable result = f ( ) . reshape ( x , shape ) ; return updateVariableNameAndReference ( result , name ) ; |
public class LinkedPredict { /** * 合并重复标签 , 有问题 ( 未排序 ) */
public void mergeDuplicate ( ) { } } | for ( int i = 0 ; i < labels . size ( ) ; i ++ ) for ( int j = i + 1 ; j < labels . size ( ) ; j ++ ) { T tagi = labels . get ( i ) ; T tagj = labels . get ( j ) ; if ( tagi . equals ( tagj ) ) { scores . set ( i , scores . get ( i ) + scores . get ( j ) ) ; labels . remove ( j ) ; scores . remove ( j ) ; j -- ; } } |
public class QuickHull3D { /** * Triangulates any non - triangular hull faces . In some cases , due to
* precision issues , the resulting triangles may be very thin or small , and
* hence appear to be non - convex ( this same limitation is present in < a
* href = http : / / www . qhull . org > qhull < / a > ) . *... | double minArea = 1000 * charLength * DOUBLE_PREC ; newFaces . clear ( ) ; for ( Iterator it = faces . iterator ( ) ; it . hasNext ( ) ; ) { Face face = ( Face ) it . next ( ) ; if ( face . mark == Face . VISIBLE ) { face . triangulate ( newFaces , minArea ) ; // splitFace ( face ) ;
} } for ( Face face = newFaces . fir... |
public class Query { /** * < pre >
* { array : < array > , contains : < op > , values : [ values ] }
* < / pre > */
public static Query arrayContains ( String array , ArrOp op , Literal ... values ) { } } | Query q = new Query ( false ) ; q . add ( "array" , array ) . add ( "contains" , op . toString ( ) ) . add ( "values" , Literal . toJson ( values ) ) ; return q ; |
public class CloudMe { /** * Recursive method that parses folders XML and builds CMFolder structure .
* @ param element
* @ param cmFolder */
private void scanFolderLevel ( Element element , CMFolder cmFolder ) { } } | NodeList nodeList = element . getChildNodes ( ) ; for ( int i = 0 ; i < nodeList . getLength ( ) ; i ++ ) { Node currentNode = nodeList . item ( i ) ; if ( currentNode . getNodeType ( ) != Node . ELEMENT_NODE ) { continue ; } Element currentElement = ( Element ) currentNode ; if ( ! currentElement . getLocalName ( ) . ... |
public class ClientBeanDefinitionParser { /** * Managing common properties for TransportClient */
static BeanDefinitionBuilder startClientBuilder ( Class beanClass , String properties , boolean forceMapping , boolean forceTemplate , boolean mergeMapping , boolean mergeSettings , boolean autoscan , String classpathRoot ... | BeanDefinitionBuilder nodeFactory = BeanDefinitionBuilder . rootBeanDefinition ( beanClass ) ; if ( properties != null && properties . length ( ) > 0 ) { nodeFactory . addPropertyReference ( "properties" , properties ) ; } nodeFactory . addPropertyValue ( "forceMapping" , forceMapping ) ; nodeFactory . addPropertyValue... |
public class Reflecter { /** * Returns a new Reflecter instance
* @ param target
* @ return */
@ SuppressWarnings ( "unchecked" ) public static < T > Reflecter < T > from ( T target ) { } } | return Decisions . isClass ( ) . apply ( target ) ? ( ( ( Class < T > ) target ) . isArray ( ) ? ( Reflecter < T > ) from ( ObjectArrays . newArray ( ( ( Class < T > ) target ) . getComponentType ( ) , 0 ) ) : from ( ( Class < T > ) target ) ) : new Reflecter < T > ( target ) ; |
public class SDEFmethods { /** * Another method to force an input string into a fixed width field
* and set it on the right with the left side filled with space ' ' characters .
* @ param input input string
* @ param width required width
* @ return formatted string */
public static String rset ( String input , ... | String result ; // result to return
StringBuilder pad = new StringBuilder ( ) ; if ( input == null ) { for ( int i = 0 ; i < width - 1 ; i ++ ) { pad . append ( ' ' ) ; // put blanks into buffer
} result = " " + pad ; // one short to use + overload
} else { if ( input . length ( ) >= width ) { result = input . substrin... |
public class PushApplicationEndpoint { /** * Count Push Applications
* @ param pushApplicationID id of { @ link PushApplication }
* @ return count number for each { @ link org . jboss . aerogear . unifiedpush . api . VariantType } */
@ GET @ Path ( "/{pushAppID}/count" ) @ Produces ( MediaType . APPLICATION_JSON ) ... | logger . trace ( "counting devices by type for push application '{}'" , pushApplicationID ) ; Map < String , Long > result = pushAppService . countInstallationsByType ( pushApplicationID ) ; return Response . ok ( result ) . build ( ) ; |
public class ToStringStyle { /** * < p > Append to the < code > toString < / code > an < code > Object < / code >
* value that has been detected to participate in a cycle . This
* implementation will print the standard string value of the value . < / p >
* @ param buffer the < code > StringBuffer < / code > to po... | ObjectUtils . identityToString ( buffer , value ) ; |
public class TransformedMirage { /** * documentation inherited from interface Mirage */
public void paint ( Graphics2D gfx , int x , int y ) { } } | AffineTransform otrans = gfx . getTransform ( ) ; gfx . translate ( x , y ) ; gfx . transform ( _transform ) ; _base . paint ( gfx , 0 , 0 ) ; gfx . setTransform ( otrans ) ; |
public class CATBifurcatedConsumer { /** * This method will unlock a set of locked messages that have been delivered to
* us ( the server ) which we have then passed on to the client .
* @ param requestNumber The request number that replies should be sent with .
* @ param msgIds The array of message id ' s that s... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unlockSet" , new Object [ ] { requestNumber , msgHandles , reply } ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { SibTr . debug ( this , tc , "Request to unlock " + msgHandles . leng... |
public class Cookies { /** * Wait for the cookies to become available , cache them and subsequently return the
* cached map of cookies . */
public Map < CharSequence , Set < Cookie > > getCachedCookies ( ) { } } | if ( ! STATE . compareAndSet ( this , NOT_READ , READING ) ) { for ( ; ; ) { if ( state == READ ) { return cachedCookies ; } } } List < String > allCookieHeaders = nettyHeaders . getAll ( cookiesHeaderName ) ; Map < String , Set < Cookie > > cookies = new HashMap < > ( ) ; for ( String aCookieHeader : allCookieHeaders ... |
public class NettyServer { /** * 初始化handler适配包装
* @ param init
* @ return */
protected ChannelHandler initLogHandlerAdapter ( ChannelHandler init ) { } } | ChannelHandler handler = new ShareableChannelInboundHandler ( ) { @ Override public void channelRegistered ( ChannelHandlerContext ctx ) throws Exception { Channel ch = ctx . channel ( ) ; manageChannel ( ch ) ; LogLevel level = config . getChannelLevel ( ) ; if ( level != null ) { // 单个链路的日志记录器
ch . pipeline ( ) . add... |
public class AwtExtensions { /** * Gets the root parent from the given Component Object .
* @ param component
* The Component to find the root parent .
* @ return ' s the root parent . */
public static Component getRootParent ( Component component ) { } } | while ( null != component . getParent ( ) ) { component = component . getParent ( ) ; } return component ; |
public class DataMediaPairAction { /** * 添加DataMediaPair
* @ param channelInfo
* @ param channelParameterInfo
* @ throws Exception */
public void doAdd ( @ Param ( "submitKey" ) String submitKey , @ FormGroup ( "dataMediaPairInfo" ) Group dataMediaPairInfo , @ FormField ( name = "formDataMediaPairError" , group =... | DataMediaPair dataMediaPair = new DataMediaPair ( ) ; DataMedia sourceDataMedia = new DataMedia ( ) ; DataMedia targetDataMedia = new DataMedia ( ) ; dataMediaPairInfo . setProperties ( dataMediaPair ) ; // filter解析
ExtensionDataType filterType = ExtensionDataType . valueOf ( dataMediaPairInfo . getField ( "filterType"... |
public class BuildUtils { /** * Attaches a node into the network . If a node already exists that could
* substitute , it is used instead .
* @ param context
* The current build context
* @ param candidate
* The node to attach .
* @ return the actual attached node that may be the one given as parameter
* o... | BaseNode node = null ; RuleBasePartitionId partition = null ; if ( candidate . getType ( ) == NodeTypeEnums . EntryPointNode ) { // entry point nodes are always shared
node = context . getKnowledgeBase ( ) . getRete ( ) . getEntryPointNode ( ( ( EntryPointNode ) candidate ) . getEntryPoint ( ) ) ; // all EntryPointNode... |
public class SelectBase { /** * Adds a header to the top of the menu ; includes
* a close button by default . < br >
* < br >
* No header by default .
* @ param header */
public void setHeader ( final String header ) { } } | if ( header != null ) attrMixin . setAttribute ( HEADER , header ) ; else attrMixin . removeAttribute ( HEADER ) ; |
public class LocalResponseHandler { /** * { @ inheritDoc } */
@ Override public void handle ( Response response ) { } } | if ( LOG . equals ( response . getAction ( ) ) ) { logger . warn ( "Response executed for user:" + response . getUser ( ) . getUsername ( ) + ", Action: Increased Logging" ) ; } else if ( LOGOUT . equals ( response . getAction ( ) ) ) { logger . warn ( "Response executed for user <{}>, " + "Action: Logging out maliciou... |
public class MathExpressions { /** * Create a { @ code acos ( num ) } expression
* < p > Returns the principal value of the arc cosine of num , expressed in radians . < / p >
* @ param num numeric expression
* @ return acos ( num ) */
public static < A extends Number & Comparable < ? > > NumberExpression < Double... | return Expressions . numberOperation ( Double . class , Ops . MathOps . ACOS , num ) ; |
public class CmsListSearchAction { /** * Returns a sublist of the given items , that match the given filter string . < p >
* @ param items the items to filter
* @ param filter the string to filter
* @ return the filtered sublist */
public List < CmsListItem > filter ( List < CmsListItem > items , String filter ) ... | if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( filter ) ) { return items ; } String filterCriteria = filter ; if ( m_caseInSensitive ) { filterCriteria = filter . toLowerCase ( ) ; } List < CmsListItem > res = new ArrayList < CmsListItem > ( ) ; Iterator < CmsListItem > itItems = items . iterator ( ) ; while ( itItems ... |
public class KeyChainGroup { /** * < p > Returns a fresh address for a given { @ link KeyChain . KeyPurpose } and of a given
* { @ link Script . ScriptType } . < / p >
* < p > This method is meant for when you really need a fallback address . Normally , you should be
* using { @ link # freshAddress ( KeyChain . K... | DeterministicKeyChain chain = getActiveKeyChain ( outputScriptType , keyRotationTimeSecs ) ; return Address . fromKey ( params , chain . getKey ( purpose ) , outputScriptType ) ; |
public class MethodTimeHandlerImpl { /** * 获取各模块的总耗时 .
* @ param performanceVOList
* @ return */
protected double getAllTotalTime ( List < MethodDto > performanceVOList , String threadName ) { } } | double totalTime = 0 ; if ( threadName != null && threadName . length ( ) > 0 ) { totalTime = this . getAllTotalTimeByEntry ( performanceVOList ) ; if ( totalTime > - 1 ) { return totalTime ; } else { totalTime = 0 ; } } for ( MethodDto performanceVO : performanceVOList ) { totalTime += performanceVO . getAllTime ( ) ;... |
public class DockerCLI { /** * If the server advertises CLI endpoint , returns its location . */
protected CliPort getCliTcpPort ( String jenkinsAddr ) throws IOException { } } | URL jenkinsUrl = new URL ( jenkinsAddr ) ; if ( jenkinsUrl . getHost ( ) == null || jenkinsUrl . getHost ( ) . length ( ) == 0 ) { throw new IOException ( "Invalid URL: " + jenkinsAddr ) ; } URLConnection head = jenkinsUrl . openConnection ( ) ; try { head . connect ( ) ; } catch ( IOException e ) { throw ( IOException... |
public class NetworkConnectionServiceMessageCodec { /** * Encodes a network connection service message to bytes .
* @ param obj a message
* @ return bytes */
@ Override public byte [ ] encode ( final NetworkConnectionServiceMessage obj ) { } } | final Codec codec = connFactoryMap . get ( obj . getConnectionFactoryId ( ) ) . getCodec ( ) ; Boolean isStreamingCodec = isStreamingCodecMap . get ( codec ) ; if ( isStreamingCodec == null ) { isStreamingCodec = codec instanceof StreamingCodec ; isStreamingCodecMap . putIfAbsent ( codec , isStreamingCodec ) ; } try ( ... |
public class InternalSimpleAntlrParser { /** * InternalSimpleAntlr . g : 1229:1 : entryRuleReferenceOrLiteral returns [ EObject current = null ] : iv _ ruleReferenceOrLiteral = ruleReferenceOrLiteral EOF ; */
public final EObject entryRuleReferenceOrLiteral ( ) throws RecognitionException { } } | EObject current = null ; EObject iv_ruleReferenceOrLiteral = null ; try { // InternalSimpleAntlr . g : 1230:2 : ( iv _ ruleReferenceOrLiteral = ruleReferenceOrLiteral EOF )
// InternalSimpleAntlr . g : 1231:2 : iv _ ruleReferenceOrLiteral = ruleReferenceOrLiteral EOF
{ if ( state . backtracking == 0 ) { newCompositeNod... |
public class FileUtils { /** * Writes a map from symbols to file absolute paths to a file . Each line has a mapping with the key and value
* separated by a single tab . The file will have a trailing newline . */
public static void writeSymbolToFileMap ( Map < Symbol , File > symbolToFileMap , CharSink sink ) throws I... | writeSymbolToFileEntries ( symbolToFileMap . entrySet ( ) , sink ) ; |
public class BaseTransformerSource { /** * / * ( non - Javadoc )
* @ see org . apereo . portal . rendering . xslt . TransformerSource # getCacheKey ( javax . servlet . http . HttpServletRequest , javax . servlet . http . HttpServletResponse ) */
@ Override public final CacheKey getCacheKey ( HttpServletRequest reques... | final Resource stylesheetResource = this . getStylesheetResource ( request ) ; final Serializable stylesheetCacheKey ; try { stylesheetCacheKey = this . xmlUtilities . getStylesheetCacheKey ( stylesheetResource ) ; } catch ( TransformerConfigurationException e ) { throw new RuntimeException ( "Failed to get Transformer... |
public class Streams { /** * Perform a forEach operation over the Stream capturing any elements and errors in the supplied consumers ,
* < pre >
* @ { code
* Subscription next = Streams . forEach ( Stream . of ( ( ) - > 1 , ( ) - > 2 , ( ) - > { throw new RuntimeException ( ) } , ( ) - > 4)
* . map ( Supplier :... | val t2 = FutureStreamUtils . forEachWithError ( stream , consumerElement , consumerError ) ; t2 . _2 ( ) . run ( ) ; |
public class HttpMessage { /** * ZAP : Added getParamNames */
public String [ ] getParamNames ( ) { } } | Vector < String > v = new Vector < > ( ) ; // Get the params names from the query
SortedSet < String > pns = this . getParamNameSet ( HtmlParameter . Type . url ) ; Iterator < String > iterator = pns . iterator ( ) ; while ( iterator . hasNext ( ) ) { String name = iterator . next ( ) ; if ( name != null ) { v . add ( ... |
public class BuildsInner { /** * Gets a link to download the build logs .
* @ param resourceGroupName The name of the resource group to which the container registry belongs .
* @ param registryName The name of the container registry .
* @ param buildId The build ID .
* @ throws IllegalArgumentException thrown i... | if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( registr... |
public class CommonOps_DDF5 { /** * Extracts the row from the matrix a .
* @ param a Input matrix
* @ param row Which row is to be extracted
* @ param out output . Storage for the extracted row . If null then a new vector will be returned .
* @ return The extracted row . */
public static DMatrix5 extractRow ( D... | if ( out == null ) out = new DMatrix5 ( ) ; switch ( row ) { case 0 : out . a1 = a . a11 ; out . a2 = a . a12 ; out . a3 = a . a13 ; out . a4 = a . a14 ; out . a5 = a . a15 ; break ; case 1 : out . a1 = a . a21 ; out . a2 = a . a22 ; out . a3 = a . a23 ; out . a4 = a . a24 ; out . a5 = a . a25 ; break ; case 2 : out . ... |
public class PmcNxmlParser { /** * Use singleton design pattern , since JAXBContext is expensive to create */
private JAXBContext getSingleton ( ) throws JAXBException { } } | if ( jcSingelton == null ) jcSingelton = JAXBContext . newInstance ( Article . class . getPackage ( ) . getName ( ) ) ; return jcSingelton ; |
public class ComponentPropertyResolver { /** * Get property .
* @ param name Property name
* @ param type Property type
* @ param < T > Parameter type
* @ return Property value or null if not set */
public @ Nullable < T > T get ( @ NotNull String name , @ NotNull Class < T > type ) { } } | return getForComponent ( component , name , type ) ; |
public class PowerShell { /** * Creates a session in PowerShell console an returns an instance which allows
* to execute commands in PowerShell context . < br >
* This method allows to define a PowersShell executable path different from default
* @ param customPowerShellExecutablePath the path of powershell execu... | PowerShell powerShell = new PowerShell ( ) ; // Start with default configuration
powerShell . configuration ( null ) ; String powerShellExecutablePath = customPowerShellExecutablePath == null ? ( OSDetector . isWindows ( ) ? DEFAULT_WIN_EXECUTABLE : DEFAULT_LINUX_EXECUTABLE ) : customPowerShellExecutablePath ; return p... |
public class FastJsonWriter { /** * { @ inheritDoc } */
@ Override public FastJsonWriter rawValue ( Object value ) { } } | if ( value == null ) { return nullValue ( ) ; } writeDeferredName ( ) ; beforeValue ( false ) ; out . append ( value . toString ( ) ) ; return this ; |
public class DynamicCamera { /** * Creates a zoom value based on the result of { @ link MapboxMap # getCameraForLatLngBounds ( LatLngBounds , int [ ] ) } .
* 0 zoom is the world view , while 22 ( default max threshold ) is the closest you can position
* the camera to the map .
* @ param routeInformation for curre... | CameraPosition position = createCameraPosition ( routeInformation . location ( ) , routeInformation . routeProgress ( ) ) ; if ( position . zoom > MAX_CAMERA_ZOOM ) { return MAX_CAMERA_ZOOM ; } else if ( position . zoom < MIN_CAMERA_ZOOM ) { return MIN_CAMERA_ZOOM ; } return position . zoom ; |
public class GlobalPasswordSettings { /** * Set the global password constraint list .
* @ param aPasswordConstraintList
* The list to be set . May not be < code > null < / code > . */
public static void setPasswordConstraintList ( @ Nonnull final IPasswordConstraintList aPasswordConstraintList ) { } } | ValueEnforcer . notNull ( aPasswordConstraintList , "PasswordConstraintList" ) ; // Create a copy
final IPasswordConstraintList aRealPasswordConstraints = aPasswordConstraintList . getClone ( ) ; s_aRWLock . writeLocked ( ( ) -> { s_aPasswordConstraintList = aRealPasswordConstraints ; } ) ; LOGGER . info ( "Set global ... |
public class Sizes { /** * Returns a common size for all kinds of Request implementations . */
public static int minimumRequestSize ( Request request ) { } } | // Header and payload are common inside a Frame at the protocol level
// Frame header has a fixed size of 9 for protocol version > = V3 , which includes Frame flags
// size
int size = FrameCodec . headerEncodedSize ( ) ; if ( ! request . getCustomPayload ( ) . isEmpty ( ) ) { // Custom payload is not supported in v3 , ... |
public class SerializeGrammarTask { /** * Implementation . */
private static Node serializeEntry ( Entry e , DocumentFactory fac ) { } } | // Assertions . . .
if ( e == null ) { String msg = "Argument 'e [Entry]' cannot be null." ; throw new IllegalArgumentException ( msg ) ; } if ( fac == null ) { String msg = "Argument 'fac' cannot be null." ; throw new IllegalArgumentException ( msg ) ; } Element rslt = fac . createElement ( "entry" ) ; rslt . addAttri... |
public class AbstractBanDependencies { /** * Execute the rule .
* @ param helper the helper
* @ throws EnforcerRuleException the enforcer rule exception */
public void execute ( EnforcerRuleHelper helper ) throws EnforcerRuleException { } } | // get the project
MavenProject project = null ; try { project = ( MavenProject ) helper . evaluate ( "${project}" ) ; } catch ( ExpressionEvaluationException eee ) { throw new EnforcerRuleException ( "Unable to retrieve the MavenProject: " , eee ) ; } try { graphBuilder = ( DependencyGraphBuilder ) helper . getCompone... |
public class SaslMessage { /** * < code > optional . alluxio . grpc . sasl . SaslMessageType messageType = 1 ; < / code > */
public alluxio . grpc . SaslMessageType getMessageType ( ) { } } | alluxio . grpc . SaslMessageType result = alluxio . grpc . SaslMessageType . valueOf ( messageType_ ) ; return result == null ? alluxio . grpc . SaslMessageType . CHALLENGE : result ; |
public class DBTablePropertySheet { /** * GEN - END : initComponents */
private void tfConversionStrategyClassKeyTyped ( java . awt . event . KeyEvent evt ) // GEN - FIRST : event _ tfConversionStrategyClassKeyTyped
{ } } | // GEN - HEADEREND : event _ tfConversionStrategyClassKeyTyped
// Revert on ESC
if ( evt . getKeyChar ( ) == KeyEvent . VK_ESCAPE ) { this . tfConversionStrategyClass . setText ( aTable . getConversionStrategyClass ( ) ) ; } |
public class XMLEventParser { /** * call back error function if a error occour
* @ param pe */
private void error ( PageException pe ) { } } | if ( error == null ) throw new PageRuntimeException ( pe ) ; try { pc = ThreadLocalPageContext . get ( pc ) ; error . call ( pc , new Object [ ] { pe . getCatchBlock ( pc . getConfig ( ) ) } , false ) ; } catch ( PageException e ) { } |
public class LocPathIterator { /** * Initialize the context values for this expression
* after it is cloned .
* @ param context The XPath runtime context for this
* transformation . */
public void setRoot ( int context , Object environment ) { } } | m_context = context ; XPathContext xctxt = ( XPathContext ) environment ; m_execContext = xctxt ; m_cdtm = xctxt . getDTM ( context ) ; m_currentContextNode = context ; // only if top level ?
// Yech , shouldn ' t have to do this . - sb
if ( null == m_prefixResolver ) m_prefixResolver = xctxt . getNamespaceContext ( ) ... |
public class UptimeCheckServiceClient { /** * Deletes an uptime check configuration . Note that this method will fail if the uptime check
* configuration is referenced by an alert policy or other dependent configs that would be
* rendered invalid by the deletion .
* < p > Sample code :
* < pre > < code >
* tr... | DeleteUptimeCheckConfigRequest request = DeleteUptimeCheckConfigRequest . newBuilder ( ) . setName ( name ) . build ( ) ; deleteUptimeCheckConfig ( request ) ; |
public class WorkflowsInner { /** * Creates or updates a workflow .
* @ param resourceGroupName The resource group name .
* @ param workflowName The workflow name .
* @ param workflow The workflow .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the W... | return createOrUpdateWithServiceResponseAsync ( resourceGroupName , workflowName , workflow ) . map ( new Func1 < ServiceResponse < WorkflowInner > , WorkflowInner > ( ) { @ Override public WorkflowInner call ( ServiceResponse < WorkflowInner > response ) { return response . body ( ) ; } } ) ; |
public class GeometryEngine { /** * Indicates if one geometry is within another geometry .
* See OperatorWithin .
* @ param geometry1
* The base geometry that is tested for within relationship to
* the other geometry .
* @ param geometry2
* The comparison geometry that is tested for the contains
* relatio... | OperatorWithin op = ( OperatorWithin ) factory . getOperator ( Operator . Type . Within ) ; boolean result = op . execute ( geometry1 , geometry2 , spatialReference , null ) ; return result ; |
public class BaseExchangeRateProvider { /** * Checks if an { @ link javax . money . convert . ExchangeRate } between two { @ link javax . money . CurrencyUnit } is
* available from this provider . This method should check , if a given rate
* is < i > currently < / i > defined .
* @ param baseCode the base currenc... | return isAvailable ( Monetary . getCurrency ( baseCode ) , Monetary . getCurrency ( termCode ) ) ; |
public class PartnerLogData { /** * Write the recovery data to to the partner log if it has not already
* been written unless we are closing down or the RA is being terminated .
* This will only occur in main - line calls as any recovered data will
* already be written to disk . We need to check if the terminate ... | if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "logRecoveryEntry" , this ) ; if ( ! _loggedToDisk ) { if ( _terminating ) // d172471
{ Tr . warning ( tc , "WTRN0084_RESOURCE_ENDING" ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "logRecoveryEntry" , "Terminating" ) ; throw new IllegalStateException ( ) ; } if ( ... |
public class SchedulerStateManagerAdaptor { /** * Get the metricscache location for the given topology
* @ return MetricsCacheLocation */
public TopologyMaster . MetricsCacheLocation getMetricsCacheLocation ( String topologyName ) { } } | return awaitResult ( delegate . getMetricsCacheLocation ( null , topologyName ) ) ; |
public class SiteProperties { /** * Returns the list of available target IDs . */
public static String [ ] getAvailableTargetIds ( ) { } } | Configuration config = ConfigUtils . getCurrentConfig ( ) ; if ( config != null ) { return config . getStringArray ( AVAILABLE_TARGET_IDS_CONFIG_KEY ) ; } else { return null ; } |
public class Logger { /** * Log a message and a throwable with level { @ link LogLevel # WARN } .
* @ param msg the message to log
* @ param tr the throwable to be log */
public void w ( String msg , Throwable tr ) { } } | println ( LogLevel . WARN , msg , tr ) ; |
public class InMemoryIDistanceIndex { /** * Seek an iterator to the desired position , using binary search .
* @ param index Index to search
* @ param iter Iterator
* @ param val Distance to search to */
protected static void binarySearch ( ModifiableDoubleDBIDList index , DoubleDBIDListIter iter , double val ) {... | // Binary search . TODO : move this into the DoubleDBIDList class .
int left = 0 , right = index . size ( ) ; while ( left < right ) { final int mid = ( left + right ) >>> 1 ; final double curd = iter . seek ( mid ) . doubleValue ( ) ; if ( val < curd ) { right = mid ; } else if ( val > curd ) { left = mid + 1 ; } else... |
public class Encoder { /** * Get number of data bytes and number of error correction bytes for block id " blockID " . Store
* the result in " numDataBytesInBlock " , and " numECBytesInBlock " . See table 12 in 8.5.1 of
* JISX0510:2004 ( p . 30) */
static void getNumDataBytesAndNumECBytesForBlockID ( int numTotalByt... | if ( blockID >= numRSBlocks ) { throw new WriterException ( "Block ID too large" ) ; } // numRsBlocksInGroup2 = 196 % 5 = 1
int numRsBlocksInGroup2 = numTotalBytes % numRSBlocks ; // numRsBlocksInGroup1 = 5 - 1 = 4
int numRsBlocksInGroup1 = numRSBlocks - numRsBlocksInGroup2 ; // numTotalBytesInGroup1 = 196 / 5 = 39
int... |
public class Watch { /** * Creates a new Watch instance that listens on Queries .
* @ param query The query used for this watch .
* @ return A newly created Watch instance . */
static Watch forQuery ( Query query ) { } } | Target . Builder target = Target . newBuilder ( ) ; target . setQuery ( QueryTarget . newBuilder ( ) . setStructuredQuery ( query . buildQuery ( ) ) . setParent ( query . getResourcePath ( ) . getParent ( ) . getName ( ) ) . build ( ) ) ; target . setTargetId ( WATCH_TARGET_ID ) ; return new Watch ( ( FirestoreImpl ) q... |
public class StyleUtilities { /** * Creates a default { @ link Style } for a polygon .
* @ return the default style . */
public static Style createDefaultPolygonStyle ( ) { } } | FeatureTypeStyle featureTypeStyle = sf . createFeatureTypeStyle ( ) ; featureTypeStyle . rules ( ) . add ( createDefaultPolygonRule ( ) ) ; Style style = sf . createStyle ( ) ; style . featureTypeStyles ( ) . add ( featureTypeStyle ) ; return style ; |
public class BatchItemRequestSerializer { /** * Method to get the Jackson object mapper
* @ return ObjectMapper the object mapper */
private ObjectMapper getObjectMapper ( ) { } } | ObjectMapper mapper = new ObjectMapper ( ) ; AnnotationIntrospector primary = new JacksonAnnotationIntrospector ( ) ; AnnotationIntrospector secondary = new JaxbAnnotationIntrospector ( ) ; AnnotationIntrospector pair = new AnnotationIntrospectorPair ( primary , secondary ) ; mapper . setAnnotationIntrospector ( pair )... |
public class LRSubsetSearch { /** * Greedily apply a series of n moves generated by the given neighbourhood , where the move yielding the most
* improvement ( or smallest decline ) is iteratively selected . Returns the actual number of performed moves ,
* which is always lower than or equal to the requested number ... | int applied = 0 ; boolean cont = true ; while ( applied < n && cont ) { // go through all moves to find the best one
Move < ? super SubsetSolution > bestMove = null ; double bestDelta = - Double . MAX_VALUE , delta ; Evaluation newEvaluation , bestEvaluation = null ; SubsetValidation newValidation , bestValidation = nu... |
public class MariaDbConnection { /** * < p > Creates a default < code > PreparedStatement < / code > object capable of returning the
* auto - generated keys designated by the given array . This array contains the indexes of the
* columns in the target table that contain the auto - generated keys that should be made... | return prepareStatement ( sql , Statement . RETURN_GENERATED_KEYS ) ; |
public class Content { /** * Gets the hlsIngestErrors value for this Content .
* @ return hlsIngestErrors * The list of any errors that occurred during the most recent
* DAI ingestion process of the HLS
* media . This attribute is read - only and will be null
* if the { @ link # hlsIngestStatus } is { @ link
... | return hlsIngestErrors ; |
public class SymoplibParser { /** * Get the space group for the given international short name , using
* the PDB format , e . g . ' P 21 21 21 ' or ' C 1 c 1'
* @ param shortName
* @ return the SpaceGroup or null if the shortName is not valid */
public static SpaceGroup getSpaceGroup ( String shortName ) { } } | if ( shortName == null || shortName . length ( ) <= 2 ) return null ; // PDB uses group " P 1 - " for 13 racemic mixture entries ( as of Sep2011 ) , e . g . 3e7r
// they call the space group " P 1 - " unusually ( symop . lib and everyone else call it " P - 1 " )
if ( shortName . equals ( "P 1-" ) ) shortName = "P -1" ;... |
public class DomainValidation { /** * A list of email addresses that ACM used to send domain validation emails .
* @ param validationEmails
* A list of email addresses that ACM used to send domain validation emails . */
public void setValidationEmails ( java . util . Collection < String > validationEmails ) { } } | if ( validationEmails == null ) { this . validationEmails = null ; return ; } this . validationEmails = new java . util . ArrayList < String > ( validationEmails ) ; |
public class ConnectResponse { /** * Returns a textual representation of the status code .
* @ return short description of status as string */
public String getStatusString ( ) { } } | switch ( status ) { case ErrorCodes . NO_ERROR : return "the connection was established successfully" ; case ErrorCodes . CONNECTION_TYPE : return "the requested connection type is not supported" ; case ErrorCodes . CONNECTION_OPTION : return "one or more connection options are not supported" ; case ErrorCodes . NO_MOR... |
public class ClassWriter { /** * Emit a class file for a given class .
* @ param c The class from which a class file is generated . */
public JavaFileObject writeClass ( ClassSymbol c ) throws IOException , PoolOverflow , StringOverflow { } } | String name = ( c . owner . kind == MDL ? c . name : c . flatname ) . toString ( ) ; Location outLocn ; if ( multiModuleMode ) { ModuleSymbol msym = c . owner . kind == MDL ? ( ModuleSymbol ) c . owner : c . packge ( ) . modle ; outLocn = fileManager . getLocationForModule ( CLASS_OUTPUT , msym . name . toString ( ) ) ... |
public class ChainReducer { /** * Adds a Mapper class to the chain job ' s JobConf .
* It has to be specified how key and values are passed from one element of
* the chain to the next , by value or by reference . If a Mapper leverages the
* assumed semantics that the key and values are not modified by the collect... | job . setOutputKeyClass ( outputKeyClass ) ; job . setOutputValueClass ( outputValueClass ) ; Chain . addMapper ( false , job , klass , inputKeyClass , inputValueClass , outputKeyClass , outputValueClass , byValue , mapperConf ) ; |
public class BotmResourceUtil { public static String readText ( Reader reader ) { } } | BufferedReader in = new BufferedReader ( reader ) ; StringBuilder out = new StringBuilder ( 100 ) ; try { try { char [ ] buf = new char [ 8192 ] ; int n ; while ( ( n = in . read ( buf ) ) >= 0 ) { out . append ( buf , 0 , n ) ; } } finally { in . close ( ) ; } } catch ( IOException e ) { String msg = "The IOException ... |
public class SheetRenderer { /** * Encode hidden input fields
* @ param responseWriter
* @ param sheet
* @ param clientId
* @ throws IOException */
private void encodeHiddenInputs ( final ResponseWriter responseWriter , final Sheet sheet , final String clientId ) throws IOException { } } | responseWriter . startElement ( "input" , null ) ; responseWriter . writeAttribute ( "id" , clientId + "_input" , "id" ) ; responseWriter . writeAttribute ( "name" , clientId + "_input" , "name" ) ; responseWriter . writeAttribute ( "type" , "hidden" , null ) ; responseWriter . writeAttribute ( "value" , "" , null ) ; ... |
public class RandomICAutomatonGenerator { /** * Creates a random IC automaton generator instance for generating DFAs . The { @ code acceptingRatio } parameter
* controls the probability of a state in a generated automaton being an accepting state .
* @ param acceptingRatio
* the ( approximate ) ratio of accepting... | return new RandomICAutomatonGenerator < Boolean , Void > ( ) . withStateProperties ( r -> r . nextDouble ( ) < acceptingRatio ) ; |
public class SelenideTargetLocator { /** * Switch to window / tab by name / handle / title except some windows handles
* @ param title title of window / tab */
protected static WebDriver windowByTitle ( WebDriver driver , String title ) { } } | Set < String > windowHandles = driver . getWindowHandles ( ) ; for ( String windowHandle : windowHandles ) { driver . switchTo ( ) . window ( windowHandle ) ; if ( title . equals ( driver . getTitle ( ) ) ) { return driver ; } } throw new NoSuchWindowException ( "Window with title not found: " + title ) ; |
public class LayoutRefiner { /** * Restore the coordinates of atoms ( idxs ) in the stack to the provided
* source .
* @ param stack atom indexes to backup
* @ param src source of coordinates */
private void restoreCoords ( IntStack stack , Point2d [ ] src ) { } } | for ( int i = 0 ; i < stack . len ; i ++ ) { int v = stack . xs [ i ] ; atoms [ v ] . getPoint2d ( ) . x = src [ v ] . x ; atoms [ v ] . getPoint2d ( ) . y = src [ v ] . y ; } |
public class ConversionHandler { /** * This method surrounds the explicit conversion defined with a try - catch , to handle null pointers .
* @ return the body wrapped */
private String error ( ) { } } | Map < String , List < ConversionMethod > > conversions = xml . conversionsLoad ( ) ; String methodName = "illegalCode" ; String paramater = "" ; String resource = xml . getXmlPath ( ) ; if ( ! isNull ( resource ) ) { boolean isPath = isPath ( resource ) ; methodName = ! isPath ? "illegalCodeContent" : "illegalCode" ; i... |
public class LazyList { /** * This method includes associated objects . It will eagerly load associated models of
* models selected by the query . For instance , if there are models < code > Author < / code > , < code > Post < / code >
* and < code > Comment < / code > , where < code > Author < / code > has many < ... | // TODO : why cannot call include ( ) more than once ?
if ( ! includes . isEmpty ( ) ) { throw new IllegalArgumentException ( "Can't call include() more than once!" ) ; } for ( Class < ? extends Model > clazz : classes ) { if ( ! metaModel . isAssociatedTo ( clazz ) ) throw new IllegalArgumentException ( "Model: " + cl... |
public class CountTreeBitsCollection { /** * Compute sums tree run .
* @ return the tree run */
public TreeMap < Bits , Long > computeSums ( ) { } } | final TreeMap < Bits , Long > sums = new TreeMap < Bits , Long > ( ) ; long total = 0 ; for ( final Entry < Bits , AtomicInteger > e : this . map . entrySet ( ) ) { sums . put ( e . getKey ( ) , total += e . getValue ( ) . get ( ) ) ; } return sums ; |
public class AtlasMetricObserver { /** * Utility function to map an Observable & lt ; ByteBuf > to an Observable & lt ; Integer > while also
* updating our counters for metrics sent and errors . */
protected Func1 < HttpClientResponse < ByteBuf > , Integer > withBookkeeping ( final int batchSize ) { } } | return response -> { boolean ok = response . getStatus ( ) . code ( ) == 200 ; if ( ok ) { numMetricsSent . increment ( batchSize ) ; } else { LOGGER . info ( "Status code: {} - Lost {} metrics" , response . getStatus ( ) . code ( ) , batchSize ) ; numMetricsDroppedHttpErr . increment ( batchSize ) ; } return batchSize... |
public class MeasureFormat { /** * values in hms with 0. */
private StringBuilder formatNumeric ( Number [ ] hms , StringBuilder appendable ) { } } | // find the start and end of non - nil values in hms array . We have to know if we
// have hour - minute ; minute - second ; or hour - minute - second .
int startIndex = - 1 ; int endIndex = - 1 ; for ( int i = 0 ; i < hms . length ; i ++ ) { if ( hms [ i ] != null ) { endIndex = i ; if ( startIndex == - 1 ) { startInd... |
public class ElementDefinitionDt { /** * Adds a given new value for < b > constraint < / b > ( )
* < b > Definition : < / b >
* Formal constraints such as co - occurrence and other constraints that can be computationally evaluated within the context of the instance
* @ param theValue The constraint to add ( must ... | if ( theValue == null ) { throw new NullPointerException ( "theValue must not be null" ) ; } getConstraint ( ) . add ( theValue ) ; return this ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.