signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class FluoConfiguration { /** * Adds an { @ link ObserverSpecification } to the configuration using a unique integer prefix that ' s
* not currently in use .
* @ deprecated since 1.1.0 . Replaced by { @ link # setObserverProvider ( String ) } and
* { @ link # getObserverProvider ( ) } */
@ Deprecated publi... | int next = getNextObserverId ( ) ; addObserver ( oconf , next ) ; return this ; |
public class AddShoppingCampaignForShowcaseAds { /** * Creates a Showcase ad . */
private static AdGroupAd createShowcaseAd ( AdWordsServicesInterface adWordsServices , AdWordsSession session , AdGroup adGroup ) throws IOException { } } | // Create the Showcase ad .
AdGroupAdServiceInterface adGroupAdService = adWordsServices . get ( session , AdGroupAdServiceInterface . class ) ; ShowcaseAd showcaseAd = new ShowcaseAd ( ) ; showcaseAd . setName ( "Showcase ad #" + System . currentTimeMillis ( ) ) ; showcaseAd . setFinalUrls ( new String [ ] { "http://e... |
public class ItemIdValueImpl { /** * Parses an item IRI
* @ param iri
* the item IRI like http : / / www . wikidata . org / entity / Q42
* @ throws IllegalArgumentException
* if the IRI is invalid or does not ends with an item id */
static ItemIdValueImpl fromIri ( String iri ) { } } | int separator = iri . lastIndexOf ( '/' ) + 1 ; try { return new ItemIdValueImpl ( iri . substring ( separator ) , iri . substring ( 0 , separator ) ) ; } catch ( IllegalArgumentException e ) { throw new IllegalArgumentException ( "Invalid Wikibase entity IRI: " + iri , e ) ; } |
public class Criteria { /** * Adds IN criteria ,
* customer _ id in ( 1,10,33,44)
* large values are split into multiple InCriteria
* IN ( 1,10 ) OR IN ( 33 , 44 ) < / br >
* The attribute will NOT be translated into column name
* @ param column The column name to be used without translation
* @ param value... | List list = splitInCriteria ( column , values , false , IN_LIMIT ) ; int index = 0 ; InCriteria inCrit ; Criteria allInCritaria ; inCrit = ( InCriteria ) list . get ( index ) ; inCrit . setTranslateAttribute ( false ) ; allInCritaria = new Criteria ( inCrit ) ; for ( index = 1 ; index < list . size ( ) ; index ++ ) { i... |
public class GeneralSubtrees { /** * intersect this GeneralSubtrees with other . This function
* is used in merging permitted NameConstraints . The operation
* is performed as follows :
* < ul >
* < li > If a name in other narrows all names of the same type in this ,
* the result will contain the narrower nam... | if ( other == null ) { throw new NullPointerException ( "other GeneralSubtrees must not be null" ) ; } GeneralSubtrees newThis = new GeneralSubtrees ( ) ; GeneralSubtrees newExcluded = null ; // Step 1 : If this is empty , just add everything in other to this and
// return no new excluded entries
if ( size ( ) == 0 ) {... |
public class BifurcatedConsumerSessionImpl { /** * First check is to make sure that the original Consumer
* hasn ' t been closed . Then check that this bifurcated consumer
* session is not closed .
* @ throws SIObjectClosedException */
private void checkNotClosed ( ) throws SISessionUnavailableException { } } | if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkNotClosed" ) ; // Check that the consumer session isn ' t closed
_consumerSession . checkNotClosed ( ) ; // Now check that this consumer hasn ' t closed .
synchronized ( this ) { if ( _closed ) { SISessionUnavailableException e = new SISessionUnavailableExceptio... |
public class Branch { /** * Adds a leaf to the local branch , looking for collisions
* @ param leaf The leaf to add
* @ param tree The tree to report to with collisions
* @ return True if the leaf was new , false if the leaf already exists or
* would cause a collision
* @ throws IllegalArgumentException if th... | if ( leaf == null ) { throw new IllegalArgumentException ( "Null leaves are not allowed" ) ; } if ( leaves == null ) { leaves = new HashMap < Integer , Leaf > ( ) ; leaves . put ( leaf . hashCode ( ) , leaf ) ; return true ; } if ( leaves . containsKey ( leaf . hashCode ( ) ) ) { // if we try to sync a leaf with the sa... |
public class TaskReactivateHeaders { /** * Set the time at which the resource was last modified .
* @ param lastModified the lastModified value to set
* @ return the TaskReactivateHeaders object itself . */
public TaskReactivateHeaders withLastModified ( DateTime lastModified ) { } } | if ( lastModified == null ) { this . lastModified = null ; } else { this . lastModified = new DateTimeRfc1123 ( lastModified ) ; } return this ; |
public class ConverterRegistry { /** * 登记自定义转换器
* @ param type 转换的目标类型
* @ param converter 转换器
* @ return { @ link ConverterRegistry } */
public ConverterRegistry putCustom ( Type type , Converter < ? > converter ) { } } | if ( null == customConverterMap ) { synchronized ( this ) { if ( null == customConverterMap ) { customConverterMap = new ConcurrentHashMap < > ( ) ; } } } customConverterMap . put ( type , converter ) ; return this ; |
public class ConditionMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Condition condition , ProtocolMarshaller protocolMarshaller ) { } } | if ( condition == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( condition . getType ( ) , TYPE_BINDING ) ; protocolMarshaller . marshall ( condition . getKey ( ) , KEY_BINDING ) ; protocolMarshaller . marshall ( condition . getValue ( ) , ... |
public class HTTaxinvoiceServiceImp { /** * ( non - Javadoc )
* @ see com . popbill . api . HTTaxinvoiceService # getPopUpURL ( java . lang . String , java . lang . String ) */
@ Override public String getPopUpURL ( String CorpNum , String NTSConfirmNum ) throws PopbillException { } } | if ( NTSConfirmNum . length ( ) != 24 ) throw new PopbillException ( - 99999999 , "국세청승인번호가 올바르지 않았습니다." ) ; URLResponse response = httpget ( "/HomeTax/Taxinvoice/" + NTSConfirmNum + "/PopUp" , CorpNum , null , URLResponse . class ) ; return response . url ; |
public class WTableOptionsExample { /** * Create a radio button select containing the options .
* @ param < T > the enumeration type .
* @ param options the list of options
* @ return a radioButtonSelect with the options */
private < T extends Enum < T > > EnumerationRadioButtonSelect < T > createRadioButtonGroup... | EnumerationRadioButtonSelect < T > rbSelect = new EnumerationRadioButtonSelect < > ( options ) ; rbSelect . setButtonLayout ( EnumerationRadioButtonSelect . Layout . FLAT ) ; rbSelect . setFrameless ( true ) ; return rbSelect ; |
public class CollisionConfig { /** * Create an XML node from a collision .
* @ param root The node root ( must not be < code > null < / code > ) .
* @ param collision The collision reference ( must not be < code > null < / code > ) . */
public static void exports ( Xml root , Collision collision ) { } } | Check . notNull ( root ) ; Check . notNull ( collision ) ; final Xml node = root . createChild ( NODE_COLLISION ) ; node . writeString ( ATT_NAME , collision . getName ( ) ) ; node . writeInteger ( ATT_OFFSETX , collision . getOffsetX ( ) ) ; node . writeInteger ( ATT_OFFSETY , collision . getOffsetY ( ) ) ; node . wri... |
public class CasSimpleMultifactorAuthenticationTicketFactory { /** * Create delegated authentication request ticket .
* @ param service the service
* @ param properties the properties
* @ return the delegated authentication request ticket */
@ Override public TransientSessionTicket create ( final Service service ... | val id = ticketIdGenerator . getNewTicketId ( "CAS" ) ; return new TransientSessionTicketImpl ( id , expirationPolicy , service , properties ) ; |
public class ReciprocalOperator { /** * Gets the amount as reciprocal / multiplicative inversed value ( 1 / n ) .
* E . g . ' EUR 2.0 ' will be converted to ' EUR 0.5 ' .
* @ return the reciprocal / multiplicative inversed of the amount
* @ throws ArithmeticException if the arithmetic operation failed */
@ Overri... | Objects . requireNonNull ( amount , "Amount required." ) ; NumberValue num = amount . getNumber ( ) ; BigDecimal one = new BigDecimal ( "1.0" ) . setScale ( num . getScale ( ) < 5 ? 5 : num . getScale ( ) , BigDecimal . ROUND_HALF_EVEN ) ; return amount . getFactory ( ) . setNumber ( one . divide ( num . numberValue ( ... |
public class GeneratedDFactoryDaoImpl { /** * query - by method for field updatedBy
* @ param updatedBy the specified attribute
* @ return an Iterable of DFactorys for the specified updatedBy */
public Iterable < DFactory > queryByUpdatedBy ( java . lang . String updatedBy ) { } } | return queryByField ( null , DFactoryMapper . Field . UPDATEDBY . getFieldName ( ) , updatedBy ) ; |
public class GetClusterDetails { /** * Retrieves cluster information .
* https : / / developer . couchbase . com / documentation / server / 4.6 / rest - api / rest - cluster - get . html
* @ param endpoint Endpoint to which request will be sent . A valid endpoint will be formatted as it shows in
* bellow example ... | @ Output ( RETURN_CODE ) , @ Output ( RETURN_RESULT ) , @ Output ( EXCEPTION ) } , responses = { @ Response ( text = SUCCESS , field = RETURN_CODE , value = ReturnCodes . SUCCESS , matchType = MatchType . COMPARE_EQUAL , responseType = ResponseType . RESOLVED ) , @ Response ( text = FAILURE , field = RETURN_CODE , valu... |
public class WebSocketAddon { /** * { @ inheritDoc } */
@ Override public void setup ( final Application application ) { } } | endpointClasses . clear ( ) ; subscribeSystemEvent ( ClassFoundEvent . class , event -> event . accept ( info -> { if ( info . accpet ( ctClass -> ctClass . hasAnnotation ( WebSocket . class ) ) ) { endpointClasses . add ( info . toClass ( ) ) ; return true ; } return false ; } ) ) ; application . register ( WebSocketF... |
public class PropertiesUtils { /** * Resolve symbols in a supplied value against supplied known properties .
* @ param props a set of know properties
* @ param value the string to parse for tokens
* @ return the resolved string */
public static String resolveProperty ( Properties props , String value ) { } } | return PropertyResolver . resolve ( props , value ) ; |
public class JcrNodeType { /** * Returns < code > true < / code > if < code > value < / code > can be cast to < code > property . getRequiredType ( ) < / code > per the type
* conversion rules in section 3.6.4 of the JCR 2.0 specification AND < code > value < / code > satisfies the constraints ( if any )
* for the ... | for ( Value value : values ) { if ( ! canCastToTypeAndMatchesConstraints ( session , propertyDefinition , value ) ) return false ; } return true ; |
public class BandwidthClient { /** * Helper method to build the POST request for the server .
* @ param path the path .
* @ param param json string .
* @ return the post object . */
protected HttpPost generatePostRequest ( final String path , final String param ) { } } | final HttpPost post = new HttpPost ( buildUri ( path ) ) ; post . setEntity ( new StringEntity ( param , ContentType . APPLICATION_JSON ) ) ; return post ; |
public class DataTree { /** * remove the path from the datatree
* @ param path
* the path to of the node to be deleted
* @ param zxid
* the current zxid
* @ throws KeeperException . NoNodeException */
public void deleteNode ( String path , long zxid ) throws KeeperException . NoNodeException { } } | int lastSlash = path . lastIndexOf ( '/' ) ; String parentName = path . substring ( 0 , lastSlash ) ; String childName = path . substring ( lastSlash + 1 ) ; DataNode node = nodes . get ( path ) ; if ( node == null ) { throw new KeeperException . NoNodeException ( ) ; } nodes . remove ( path ) ; DataNode parent = nodes... |
public class WeakArrayList { /** * Trims the capacity of this < tt > WeakArrayList < / tt > instance to be the
* list ' s current size . An application can use this operation to minimize
* the storage of an < tt > WeakArrayList < / tt > instance . */
public void trimToSize ( ) { } } | this . modCount ++ ; final int oldCapacity = this . data . length ; if ( this . size < oldCapacity ) { this . data = Arrays . copyOf ( this . data , this . size ) ; } |
public class OptionGroup { /** * Returns all the values of the options of this group that are enabled .
* If the group itself is disabled , its options are also considered as disabled .
* @ return Set of values of enabled options */
public Set < String > getEnabledOptionValues ( ) { } } | Set < String > result = new HashSet < > ( ) ; if ( ! enabled ) { return result ; // This group is disabled entirely
} for ( Option option : options . values ( ) ) { if ( option . isEnabled ( ) ) { result . add ( option . getValue ( ) ) ; } } return result ; |
public class VideoPositionTargeting { /** * Sets the targetedPositions value for this VideoPositionTargeting .
* @ param targetedPositions * The { @ link VideoTargetingPosition } objects being targeted by
* the
* video { @ link LineItem } . */
public void setTargetedPositions ( com . google . api . ads . admanage... | this . targetedPositions = targetedPositions ; |
public class JDBCStorableIntrospector { /** * Figures out how to best access the given property , or returns null if
* not supported . An adapter may be applied .
* @ return null if not supported */
private static AccessInfo getAccessInfo ( StorableProperty property , int dataType , String dataTypeName , int column... | AccessInfo info = getAccessInfo ( property . getType ( ) , dataType , dataTypeName , columnSize , decimalDigits ) ; if ( info != null ) { return info ; } // Dynamically typed data sources ( e . g . SQLite3 ) always report
// dataType as java . sql . Types . VARCHAR . Infer the dataType from the
// dataTypeName and try ... |
public class ObjImpl { /** * Map impl */
@ Override public boolean containsKey ( Object key ) { } } | return key instanceof String ? members . containsKey ( Key . of ( ( String ) key ) ) : false ; |
public class DrawableContainerCompat { /** * Initializes a drawable for display in this container .
* @ param d The drawable to initialize . */
private void initializeDrawableForDisplay ( Drawable d ) { } } | if ( mBlockInvalidateCallback == null ) { mBlockInvalidateCallback = new BlockInvalidateCallback ( ) ; } // Temporary fix for suspending callbacks during initialization . We
// don ' t want any of these setters causing an invalidate ( ) since that
// may call back into DrawableContainer .
d . setCallback ( mBlockInvali... |
public class RandomMatrices_DDRM { /** * Sets the provided square matrix to be a random symmetric matrix whose values are selected from an uniform distribution
* from min to max , inclusive .
* @ param A The matrix that is to be modified . Must be square . Modified .
* @ param min Minimum value an element can hav... | if ( A . numRows != A . numCols ) throw new IllegalArgumentException ( "A must be a square matrix" ) ; double range = max - min ; int length = A . numRows ; for ( int i = 0 ; i < length ; i ++ ) { for ( int j = i ; j < length ; j ++ ) { double val = rand . nextDouble ( ) * range + min ; A . set ( i , j , val ) ; A . se... |
public class ReceiveMessageBuilder { /** * Sets the payload data on the message builder implementation .
* @ param payload
* @ return */
protected void setPayload ( String payload ) { } } | MessageContentBuilder messageContentBuilder = getMessageContentBuilder ( ) ; if ( messageContentBuilder instanceof PayloadTemplateMessageBuilder ) { ( ( PayloadTemplateMessageBuilder ) messageContentBuilder ) . setPayloadData ( payload ) ; } else if ( messageContentBuilder instanceof StaticMessageContentBuilder ) { ( (... |
public class Traverser { /** * Advances if possible , returning next valid node , or null if none . */
final Node < K , V > advance ( ) { } } | Node < K , V > e ; if ( ( e = next ) != null ) e = e . next ; for ( ; ; ) { Node < K , V > [ ] t ; int i , n ; // must use locals in checks
if ( e != null ) return next = e ; if ( baseIndex >= baseLimit || ( t = tab ) == null || ( n = t . length ) <= ( i = index ) || i < 0 ) return next = null ; if ( ( e = tabAt ( t , ... |
public class RestApiConnector { /** * get error message while executing http url
* @ return error message */
private static String getFirstErrorMessage ( String defaultMessage , JsonElement json ) { } } | if ( json == null ) { return defaultMessage ; } JsonObject jsonObject = null ; if ( ! json . isJsonArray ( ) ) { jsonObject = json . getAsJsonObject ( ) ; } else { JsonArray jsonArray = json . getAsJsonArray ( ) ; if ( jsonArray . size ( ) != 0 ) { jsonObject = jsonArray . get ( 0 ) . getAsJsonObject ( ) ; } } if ( jso... |
public class PathUtil { /** * Adds , if not already present , the absolute slash preceding the specified path , and returns the adjusted result .
* If the argument is null , adjusts to an empty String before processing .
* @ param path
* @ return */
public static String optionallyPrependSlash ( final String path ... | // Adjust null
String resolved = path ; if ( resolved == null ) { resolved = EMPTY ; } // If the first character is not a slash
if ( ! isFirstCharSlash ( resolved ) ) { // Prepend the slash
return ArchivePath . SEPARATOR + resolved ; } // Return as - is
return resolved ; |
public class UndertowOutputStream { /** * If the response has not yet been written to the client this method will clear the streams buffer ,
* invalidating any content that has already been written . If any content has already been sent to the client then
* this method will throw and IllegalStateException
* @ thr... | if ( anyAreSet ( state , FLAG_WRITE_STARTED ) ) { throw UndertowMessages . MESSAGES . cannotResetBuffer ( ) ; } buffer = null ; IoUtils . safeClose ( pooledBuffer ) ; pooledBuffer = null ; |
public class DefaultCrawler { /** * Fetch links to the next level of the crawl .
* @ param responses holding bodys where we should fetch the links .
* @ param allUrls every url we have fetched so far
* @ param nonWorkingUrls the urls that didn ' t work to fetch
* @ param verifiedUrls responses that are already ... | final Set < CrawlerURL > nextLevel = new LinkedHashSet < CrawlerURL > ( ) ; final Iterator < Entry < Future < HTMLPageResponse > , CrawlerURL > > it = responses . entrySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { final Entry < Future < HTMLPageResponse > , CrawlerURL > entry = it . next ( ) ; try { final HTMLP... |
public class WriteBehindManager { /** * todo get this via constructor function . */
@ Override public MapDataStore getMapDataStore ( String mapName , int partitionId ) { } } | return MapDataStores . createWriteBehindStore ( mapStoreContext , partitionId , writeBehindProcessor ) ; |
public class SipServletMessageImpl { /** * ( non - Javadoc )
* @ see javax . servlet . sip . SipServletMessage # getFrom ( ) */
public Address getFrom ( ) { } } | FromHeader from = ( FromHeader ) this . message . getHeader ( getCorrectHeaderName ( FromHeader . NAME ) ) ; // AddressImpl address = new AddressImpl ( from . getAddress ( ) , AddressImpl . getParameters ( ( Parameters ) from ) , ModifiableRule . From ) ;
// https : / / code . google . com / p / sipservlets / issues / ... |
public class PreambleUtil { /** * basic checks of SerVer , Format , preInts , Family , fiCol , lgK . */
static void checkLoPreamble ( final Memory mem ) { } } | rtAssertEquals ( getSerVer ( mem ) , SER_VER & 0XFF ) ; final Format fmt = getFormat ( mem ) ; final int preIntsDef = getDefinedPreInts ( fmt ) & 0XFF ; rtAssertEquals ( getPreInts ( mem ) , preIntsDef ) ; final Family fam = getFamily ( mem ) ; rtAssert ( fam == Family . CPC ) ; final int lgK = getLgK ( mem ) ; rtAsser... |
public class ExpressionList { /** * Aids debugging . Creates a diagrammatic form of the roots ( + tail instruction ) so that we can analyze control flow .
* < pre >
* I I I C C I U I U [ I ] I
* < / pre >
* @ param _ instruction The instruction we are considering adding ( may be null )
* @ return */
public St... | final StringBuilder sb = new StringBuilder ( ) ; final List < Instruction > list = new ArrayList < Instruction > ( ) ; for ( Instruction i = head ; i != null ; i = i . getNextExpr ( ) ) { list . add ( i ) ; } for ( Instruction i = _instruction ; i != null ; i = i . getNextPC ( ) ) { list . add ( i ) ; } final Instructi... |
public class ExtAtomContainerManipulator { /** * Returns IAtomContainer without Hydrogen . If an AtomContainer has atom single atom which
* is atom Hydrogen then its not removed .
* @ param atomContainer
* @ return IAtomContainer without Hydrogen . If an AtomContainer has atom single atom which
* is atom Hydrog... | IAtomContainer mol = atomContainer . getBuilder ( ) . newInstance ( IAtomContainer . class , atomContainer ) ; convertImplicitToExplicitHydrogens ( mol ) ; if ( mol . getAtomCount ( ) > 1 ) { mol = removeHydrogens ( mol ) ; } else if ( atomContainer . atoms ( ) . iterator ( ) . next ( ) . getSymbol ( ) . equalsIgnoreCa... |
public class InsertMeta { /** * be removed in future . */
public Map < String , Object > getSpec ( ) { } } | return ImmutableMap . < String , Object > of ( "ioConfig" , getIoConfig ( ) , "dataSchema" , getDataSchema ( ) , "tuningConfig" , getTuningConfig ( ) ) ; |
public class CPInstancePersistenceImpl { /** * Returns the cp instance where companyId = & # 63 ; and externalReferenceCode = & # 63 ; or throws a { @ link NoSuchCPInstanceException } if it could not be found .
* @ param companyId the company ID
* @ param externalReferenceCode the external reference code
* @ retu... | CPInstance cpInstance = fetchByC_ERC ( companyId , externalReferenceCode ) ; if ( cpInstance == null ) { StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "companyId=" ) ; msg . append ( companyId ) ; msg . append ( ", externalReferenceCode=" ) ; msg . append ( ext... |
public class CreateCommitRequest { /** * The files to add or update in this commit .
* @ param putFiles
* The files to add or update in this commit . */
public void setPutFiles ( java . util . Collection < PutFileEntry > putFiles ) { } } | if ( putFiles == null ) { this . putFiles = null ; return ; } this . putFiles = new java . util . ArrayList < PutFileEntry > ( putFiles ) ; |
public class DataStream { /** * Creates a new { @ link BroadcastConnectedStream } by connecting the current
* { @ link DataStream } or { @ link KeyedStream } with a { @ link BroadcastStream } .
* < p > The latter can be created using the { @ link # broadcast ( MapStateDescriptor [ ] ) } method .
* < p > The resul... | return new BroadcastConnectedStream < > ( environment , this , Preconditions . checkNotNull ( broadcastStream ) , broadcastStream . getBroadcastStateDescriptor ( ) ) ; |
public class CmsVfsDriver { /** * Build the whole WHERE sql statement part for the given relation filter . < p >
* @ param projectId the current project id
* @ param filter the filter
* @ param resource the resource ( may be null , if you want to delete all relations for the resource in the filter )
* @ param p... | StringBuffer conditions = new StringBuffer ( 128 ) ; params . clear ( ) ; // be sure the parameters list is clear
// source or target filter
if ( filter . isSource ( ) || filter . isTarget ( ) ) { // source or target id filter from resource
if ( resource != null ) { conditions . append ( BEGIN_CONDITION ) ; if ( filter... |
public class AnalyticFormulas { /** * This static method calculated the rho of a call option under a Black - Scholes model
* @ param initialStockValue The initial value of the underlying , i . e . , the spot .
* @ param riskFreeRate The risk free rate of the bank account numerarie .
* @ param volatility The Black... | if ( optionStrike <= 0.0 || optionMaturity <= 0.0 ) { // The Black - Scholes model does not consider it being an option
return 0.0 ; } else { // Calculate rho
double dMinus = ( Math . log ( initialStockValue / optionStrike ) + ( riskFreeRate - 0.5 * volatility * volatility ) * optionMaturity ) / ( volatility * Math . s... |
public class DynoJedisUtils { /** * This is the non pipelined version of the reads
* @ param key
* @ return the value of the corresponding key
* @ throws Exception */
public String nonPipelineRead ( String key ) throws Exception { } } | String res = jedisClient . get ( ) . get ( key ) ; if ( res != null ) { if ( res . isEmpty ( ) ) { throw new Exception ( "Data retrieved is not ok " ) ; } } else { return CacheMiss ; } return ResultOK ; |
public class VersionID { /** * Match ' this ' versionID against vid .
* The _ usePrefixMatch / _ useGreaterThan flag is used to determine if a
* prefix match of an exact match should be performed
* if _ isCompound , must match _ rest also .
* @ param vid TODO
* @ return TODO */
public boolean match ( VersionI... | if ( _isCompound ) { if ( ! _rest . match ( vid ) ) { return false ; } } return ( _usePrefixMatch ) ? this . isPrefixMatch ( vid ) : ( _useGreaterThan ) ? vid . isGreaterThanOrEqual ( this ) : matchTuple ( vid ) ; |
public class AuditFinding { /** * The list of related resources .
* @ param relatedResources
* The list of related resources . */
public void setRelatedResources ( java . util . Collection < RelatedResource > relatedResources ) { } } | if ( relatedResources == null ) { this . relatedResources = null ; return ; } this . relatedResources = new java . util . ArrayList < RelatedResource > ( relatedResources ) ; |
public class WeeklyAutoScalingSchedule { /** * The schedule for Tuesday .
* @ return The schedule for Tuesday . */
public java . util . Map < String , String > getTuesday ( ) { } } | if ( tuesday == null ) { tuesday = new com . amazonaws . internal . SdkInternalMap < String , String > ( ) ; } return tuesday ; |
public class DataSet { /** * Returns a distinct set of a { @ link Tuple } { @ link DataSet } using field position keys .
* < p > The field position keys specify the fields of Tuples on which the decision is made if two Tuples are distinct or
* not .
* < p > Note : Field position keys can only be specified for Tup... | return new DistinctOperator < > ( this , new Keys . ExpressionKeys < > ( fields , getType ( ) ) , Utils . getCallLocationName ( ) ) ; |
public class Benchmark { /** * Creates the output report .
* @ return the report as a String . */
public final String report ( ) { } } | StringBuilder sb = new StringBuilder ( ) ; sb . append ( String . format ( "%s stats: %s\n" , name , this ) ) ; if ( pubs . hasSamples ( ) ) { String indent = " " ; if ( subs . hasSamples ( ) ) { sb . append ( String . format ( "%sPub stats: %s\n" , indent , pubs ) ) ; indent = " " ; } if ( pubs . getSamples ( ) . siz... |
public class Validator { /** * Executes all registered validators ( in registration order ) . If any validator fires a rule
* that fails , its feedback will be displayed , the validation process will be stopped , and
* false will be returned . If all validators succeed , true will be returned . */
public boolean va... | for ( WidgetValidator < ? , ? > validator : _validators ) { if ( ! validator . validate ( asError ) ) return false ; } return true ; |
public class KeyAndCertificateFactory { /** * Create a KeyStore with a server certificate for the given domain and subject alternative names . */
synchronized KeyAndCertificateFactory buildAndSaveCertificates ( ) { } } | try { // personal keys
KeyPair keyPair = generateKeyPair ( FAKE_KEYSIZE ) ; PrivateKey mockServerPrivateKey = keyPair . getPrivate ( ) ; PublicKey mockServerPublicKey = keyPair . getPublic ( ) ; // ca keys
PrivateKey caPrivateKey = loadPrivateKeyFromPEMFile ( "org/mockserver/socket/CertificateAuthorityPrivateKey.pem" )... |
public class PhiAccrualFailureDetector { /** * The suspicion level of the accrual failure detector .
* If a connection does not have any records in failure detector then it is
* considered healthy . */
private double phi ( long timestampMillis ) { } } | long timeDiffMillis ; double meanMillis ; double stdDeviationMillis ; synchronized ( heartbeatHistory ) { long lastTimestampMillis = lastHeartbeatMillis ; if ( lastTimestampMillis == NO_HEARTBEAT_TIMESTAMP ) { return 0.0 ; } timeDiffMillis = timestampMillis - lastTimestampMillis ; meanMillis = heartbeatHistory . mean (... |
public class RestServlet { /** * Parses the request to get information about what controller is trying to call , then
* invoke the action from that controller ( if any ) , and finally gives an answer . < br >
* < br >
* Basically it only dispatchs the request to a controller . */
@ Override protected void service... | // Eliminamos de la URI el contexto
String url = request . getRequestURI ( ) . substring ( request . getContextPath ( ) . length ( ) ) ; if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "url => {}" , url ) ; LOGGER . debug ( "HTTP_METHOD => {}" , request . getMethod ( ) ) ; LOGGER . debug ( "queryString => {}" , r... |
public class VF2State { /** * { @ inheritDoc } */
public boolean isFeasiblePair ( int node1 , int node2 ) { } } | assert node1 < n1 ; assert node2 < n2 ; assert core1 [ node1 ] == NULL_NODE ; assert core2 [ node2 ] == NULL_NODE ; // TODO : add checks for compatible nodes here
// int i = 0 ; / / , other1 = 0 , other2 = 0;
int termout1 = 0 , termout2 = 0 , termin1 = 0 , termin2 = 0 , new1 = 0 , new2 = 0 ; // Check the ' out ' edges ... |
public class CyclicCarbohydrateRecognition { /** * Determine the horizontal offset of the projection . This allows
* projections that are drawn at angle to be correctly interpreted .
* Currently only projections of chair conformations are considered .
* @ param points points of the cycle
* @ param turns the tur... | // Haworth must currently be drawn vertically , I have seen them drawn
// slanted but it ' s difficult to determine which way the projection
// is relative
if ( projection != Projection . Chair ) return new Point2d ( 0 , 0 ) ; // the atoms either side of a central atom are our reference
int offset = chairCenterOffset (... |
public class JavaAnnotation { /** * Sets a value . */
public Object putValue ( String key , Object value ) { } } | return _valueMap . put ( key , value ) ; |
public class JobGraph { /** * Checks for all registered job vertices if their in - / out - degree is correct .
* @ return < code > null < / code > if the in - / out - degree of all vertices is correct or the first job vertex whose
* in - / out - degree is incorrect . */
public AbstractJobVertex areVertexDegreesCorr... | // Check input vertices
final Iterator < AbstractJobInputVertex > iter = getInputVertices ( ) ; while ( iter . hasNext ( ) ) { final AbstractJobVertex jv = iter . next ( ) ; if ( jv . getNumberOfForwardConnections ( ) < 1 || jv . getNumberOfBackwardConnections ( ) > 0 ) { return jv ; } } // Check task vertices
final It... |
public class ListenerContainer { /** * Utility - apply the given function to each listener . The function receives
* the listener as an argument .
* @ param function function to call for each listener */
public void forEach ( final Function < T , Void > function ) { } } | for ( final ListenerEntry < T > entry : listeners . values ( ) ) { entry . executor . execute ( new Runnable ( ) { @ Override public void run ( ) { try { function . apply ( entry . listener ) ; } catch ( Throwable e ) { log . error ( String . format ( "Listener (%s) threw an exception" , entry . listener ) , e ) ; } } ... |
public class VariablesInner { /** * Retrieve the variable identified by variable name .
* @ param resourceGroupName Name of an Azure Resource group .
* @ param automationAccountName The name of the automation account .
* @ param variableName The name of variable .
* @ param serviceCallback the async ServiceCall... | return ServiceFuture . fromResponse ( getWithServiceResponseAsync ( resourceGroupName , automationAccountName , variableName ) , serviceCallback ) ; |
public class OkHttpProtocolNegotiator { /** * Start and wait until the negotiation is done , returns the negotiated protocol .
* @ throws IOException if an IO error was encountered during the handshake .
* @ throws RuntimeException if the negotiation completed , but no protocol was selected . */
public String negot... | if ( protocols != null ) { configureTlsExtensions ( sslSocket , hostname , protocols ) ; } try { // Force handshake .
sslSocket . startHandshake ( ) ; String negotiatedProtocol = getSelectedProtocol ( sslSocket ) ; if ( negotiatedProtocol == null ) { throw new RuntimeException ( "TLS ALPN negotiation failed with protoc... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcExternalReference ( ) { } } | if ( ifcExternalReferenceEClass == null ) { ifcExternalReferenceEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 244 ) ; } return ifcExternalReferenceEClass ; |
public class WebSecurityConfig { /** * Work from the http security object and enable or disable CSRF handling ,
* as requested in the application properties .
* @ param http the http security object
* @ return the http security object
* @ throws Exception if there is a problem */
private HttpSecurity handleCsrf... | if ( "test" . equals ( activeProfile ) ) { return http . csrf ( ) . disable ( ) ; } else { return http . csrf ( ) . ignoringAntMatchers ( "/gedbrowserng/v1/login" , "/gedbrowserng/v1/signup" ) . csrfTokenRepository ( CookieCsrfTokenRepository . withHttpOnlyFalse ( ) ) . and ( ) ; } |
public class DownloadDefaultKeyPairRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DownloadDefaultKeyPairRequest downloadDefaultKeyPairRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( downloadDefaultKeyPairRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } |
public class PipelineArbitrateEvent { /** * 销毁对应的pipeline节点 , 同步调用 */
public void destory ( Long channelId , Long pipelineId ) { } } | String path = ManagePathUtils . getPipeline ( channelId , pipelineId ) ; String processRootPath = ManagePathUtils . getProcessRoot ( channelId , pipelineId ) ; String terminRootPath = ManagePathUtils . getTerminRoot ( channelId , pipelineId ) ; String remedyRootPath = ManagePathUtils . getRemedyRoot ( channelId , pipel... |
public class ByteBufUtil { /** * Returns a < a href = " http : / / en . wikipedia . org / wiki / Hex _ dump " > hex dump < / a >
* of the specified buffer ' s sub - region . */
public static String hexDump ( ByteBuf buffer , int fromIndex , int length ) { } } | return HexUtil . hexDump ( buffer , fromIndex , length ) ; |
public class MediaUtils { /** * Create a temporary file to use to handle selected images from the picker
* @ return the temporary file in the given storage directory
* @ throws IOException */
private static File createTempFile ( File storageDir ) throws IOException { } } | // Create an image file name
String timeStamp = new SimpleDateFormat ( "yyyyMMdd_HHmmss" , Locale . US ) . format ( new Date ( ) ) ; String imageFileName = "JPEG_" + timeStamp + "_" ; if ( ! storageDir . mkdir ( ) && ! storageDir . exists ( ) ) { throw new IOException ( "Unable to create temporary media directory" ) ; ... |
public class MediaType { /** * < em > Replaces < / em > all parameters with the given attribute with a single parameter with the
* given value . If multiple parameters with the same attributes are necessary use
* { @ link # withParameters } . Prefer { @ link # withCharset } for setting the { @ code charset } parame... | checkNotNull ( attribute ) ; checkNotNull ( value ) ; String normalizedAttribute = normalizeToken ( attribute ) ; ImmutableListMultimap . Builder < String , String > builder = ImmutableListMultimap . builder ( ) ; for ( Entry < String , String > entry : parameters . entries ( ) ) { String key = entry . getKey ( ) ; if ... |
public class ToDoubleFunctionBuilder { /** * One of ways of creating builder . This might be the only way ( considering all _ functional _ builders ) that might be utilize to specify generic params only once . */
@ Nonnull public static < T > ToDoubleFunctionBuilder < T > toDblFunction ( Consumer < ToDoubleFunction < T... | return new ToDoubleFunctionBuilder ( consumer ) ; |
public class DescribeApplicationVersionsResult { /** * List of < code > ApplicationVersionDescription < / code > objects sorted in order of creation .
* @ return List of < code > ApplicationVersionDescription < / code > objects sorted in order of creation . */
public java . util . List < ApplicationVersionDescription... | if ( applicationVersions == null ) { applicationVersions = new com . amazonaws . internal . SdkInternalList < ApplicationVersionDescription > ( ) ; } return applicationVersions ; |
public class BaseDestinationHandler { /** * Checks if there is space available on the outputHandlers ( xmit steams )
* for this message .
* @ param checkSendAllowed true if the " sendAllowed " flag on local
* messaging points should be taken into account . Otherwise they are ignored .
* @ return int result if a... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkPtoPOutputHandlers" , new Object [ ] { this , fixedMEUuid , scopedMEs } ) ; int result = DestinationHandler . OUTPUT_HANDLER_SEND_ALLOWED_FALSE ; // First make sure the destination is sendAllowed
if ( isSendAllowed ( )... |
public class AmazonGameLiftClient { /** * Places a request for a new game session in a queue ( see < a > CreateGameSessionQueue < / a > ) . When processing a
* placement request , Amazon GameLift searches for available resources on the queue ' s destinations , scanning each
* until it finds resources or the placeme... | request = beforeClientExecution ( request ) ; return executeStartGameSessionPlacement ( request ) ; |
public class SoapServiceClient { /** * Creates the { @ link SoapCall } from the { @ code soapClientMethod } and its
* { @ code args } . */
protected SoapCall < T > createSoapCall ( Method soapClientMethod , Object [ ] args ) { } } | return new SoapCall < T > ( soapClientMethod , soapClient , args ) ; |
public class AgentRegistrationInformationsInner { /** * Retrieve the automation agent registration information .
* @ param resourceGroupName Name of an Azure Resource group .
* @ param automationAccountName The name of the automation account .
* @ throws IllegalArgumentException thrown if parameters fail the vali... | return getWithServiceResponseAsync ( resourceGroupName , automationAccountName ) . map ( new Func1 < ServiceResponse < AgentRegistrationInner > , AgentRegistrationInner > ( ) { @ Override public AgentRegistrationInner call ( ServiceResponse < AgentRegistrationInner > response ) { return response . body ( ) ; } } ) ; |
public class DescribeRemediationConfigurationsRequest { /** * A list of AWS Config rule names of remediation configurations for which you want details .
* @ return A list of AWS Config rule names of remediation configurations for which you want details . */
public java . util . List < String > getConfigRuleNames ( ) ... | if ( configRuleNames == null ) { configRuleNames = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return configRuleNames ; |
public class EncryptionUtil { /** * Decrypt .
* @ param encrypted
* the encrypted
* @ return the string
* @ throws Exception
* the exception */
public String decrypt ( String encrypted ) throws Exception { } } | byte [ ] decodedValue = Base64Coder . decode ( encrypted . toCharArray ( ) ) ; Cipher c = getCipher ( Cipher . DECRYPT_MODE ) ; byte [ ] decValue = c . doFinal ( decodedValue ) ; return new String ( decValue ) ; |
public class ClientInterface { /** * start or stop MigratePartitionLeader task */
void processMigratePartitionLeaderTask ( MigratePartitionLeaderMessage message ) { } } | synchronized ( m_lock ) { // start MigratePartitionLeader service
if ( message . startMigratingPartitionLeaders ( ) ) { if ( m_migratePartitionLeaderExecutor == null ) { m_migratePartitionLeaderExecutor = Executors . newSingleThreadScheduledExecutor ( CoreUtils . getThreadFactory ( "MigratePartitionLeader" ) ) ; final ... |
public class StreamSegmentContainer { /** * region AutoCloseable Implementation */
@ Override public void close ( ) { } } | if ( this . closed . compareAndSet ( false , true ) ) { this . extensions . values ( ) . forEach ( SegmentContainerExtension :: close ) ; Futures . await ( Services . stopAsync ( this , this . executor ) ) ; this . metadataCleaner . close ( ) ; this . writer . close ( ) ; this . durableLog . close ( ) ; this . readInde... |
public class ResolutionPreference { /** * Initializes the preference .
* @ param attributeSet
* The attribute set , the attributes should be obtained from , as an instance of the type
* { @ link AttributeSet } or null , if no attributes should be obtained
* @ param defaultStyle
* The default style to apply to... | obtainStyledAttributes ( attributeSet , defaultStyle , defaultStyleResource ) ; setPositiveButtonText ( android . R . string . ok ) ; setNegativeButtonText ( android . R . string . cancel ) ; addValidator ( Validators . notEmpty ( getContext ( ) , R . string . resolution_not_empty_error_message ) ) ; addValidator ( Val... |
public class GenericCollectionTypeResolver { /** * Extract the generic return type from the given method .
* @ param method the method to check the return type for
* @ param source the source class / interface defining the generic parameter types
* @ param typeIndex the index of the type ( e . g . 0 for Collectio... | return extractType ( method . getGenericReturnType ( ) , source , typeIndex , null , null , nestingLevel , 1 ) ; |
public class DefaultTypeRepository { /** * Finds the set of types referenced by the specified type .
* @ param typeName the starting type
* @ return a Set of Class objects , or an empty set if none were found */
public Set < Class < ? > > findReferencedTypes ( String typeName ) { } } | Set < Class < ? > > referencedTypes = new HashSet < > ( ) ; // use the cached version if possible
if ( referencedTypesCache . containsKey ( typeName ) ) { return referencedTypesCache . get ( typeName ) ; } try { CtClass cc = classPool . get ( typeName ) ; for ( Object referencedType : cc . getRefClasses ( ) ) { String ... |
public class MechanizeAgent { /** * Returns the resource received uppon the request . The resource can be casted to any expected subclass of resource
* but will fail with ClassCastException if the expected type of resource is not the actual returned resource . */
@ SuppressWarnings ( "unchecked" ) @ Override public <... | try { HttpResponse response = execute ( client , request ) ; Resource resource = toPage ( request , response ) ; return ( T ) resource ; } catch ( Exception e ) { throw MechanizeExceptionFactory . newException ( e ) ; } |
public class Transaction { /** * The transaction fee is the difference of the value of all inputs and the value of all outputs . Currently , the fee
* can only be determined for transactions created by us .
* @ return fee , or null if it cannot be determined */
public Coin getFee ( ) { } } | Coin fee = Coin . ZERO ; if ( inputs . isEmpty ( ) || outputs . isEmpty ( ) ) // Incomplete transaction
return null ; for ( TransactionInput input : inputs ) { if ( input . getValue ( ) == null ) return null ; fee = fee . add ( input . getValue ( ) ) ; } for ( TransactionOutput output : outputs ) { fee = fee . subtract... |
public class MultipleSequenceAlignment { /** * A sequence that has been aligned to other sequences will have inserts .
* @ param sequence */
public void addAlignedSequence ( S sequence ) { } } | if ( length == null ) { length = sequence . getLength ( ) ; } if ( sequence . getLength ( ) != length ) { throw new IllegalArgumentException ( sequence . getAccession ( ) + " length = " + sequence . getLength ( ) + " not equal to MSA length = " + length ) ; } sequences . add ( sequence ) ; |
public class AttachmentLoader { /** * validates the current attachment
* @ param currentAttachment given attachment
* @ return true , if the current attachment is valid , false otherwisesr */
public static boolean validateAttachment ( Attachment currentAttachment ) { } } | try { currentAttachment . getId ( ) ; if ( currentAttachment . getAlternateId ( ) == "null" || currentAttachment . getAlternateId ( ) . isEmpty ( ) ) { return false ; } if ( currentAttachment . getCapGroupName ( ) == "null" || currentAttachment . getCapGroupName ( ) . isEmpty ( ) ) { return false ; } if ( currentAttach... |
public class WrappedByteBuffer { /** * Puts a string into the buffer at the current position , using the character set to encode the string as bytes .
* @ param v
* the string
* @ param cs
* the character set
* @ return the buffer */
public WrappedByteBuffer putString ( String v , Charset cs ) { } } | java . nio . ByteBuffer strBuf = cs . encode ( v ) ; _autoExpand ( strBuf . limit ( ) ) ; _buf . put ( strBuf ) ; return this ; |
public class Workflow { /** * Create a WorkflowCreator to execute create .
* @ param pathWorkspaceSid The workspace _ sid
* @ param friendlyName A string representing a human readable name for this
* Workflow .
* @ param configuration JSON document configuring the rules for this Workflow .
* @ return Workflow... | return new WorkflowCreator ( pathWorkspaceSid , friendlyName , configuration ) ; |
public class StringPropertyReplacer { /** * Go through the input string and replace any occurrence of $ { p } with
* the System . getProtocolProperty ( p ) value . If there is no such property p defined ,
* then the $ { p } reference will remain unchanged .
* If the property reference is of the form $ { p : v } a... | Properties props = System . getProperties ( ) ; for ( Map . Entry < String , String > var : System . getenv ( ) . entrySet ( ) ) { String propKey = ENV_VAR_BASE_PROPERTY_KEY + var . getKey ( ) ; // honor overridden environment variable ( primarily for testing )
if ( ! props . containsKey ( propKey ) ) { props . setProp... |
public class DefaultOrthologize { /** * Walks { @ link OrthologizedKam # RELS certain relationship types } and infers
* orthologous edges based on matching relationships .
* For instance if there are two { @ code transcribedTo } edges from an
* orthologized { @ code geneAbundance } then we infer that the downstre... | // get adjacent edges that can be inferred
final Set < KamEdge > out = kam . getAdjacentEdges ( snode , direction , inferf ) ; // map ACTS _ IN edges by activity function
final Map < FunctionEnum , KamNode > acts = new HashMap < FunctionEnum , KamNode > ( ) ; final Map < RelationshipType , KamNode > rels = new HashMap ... |
public class DefaultCertStoreInspector { /** * { @ inheritDoc } */
protected Collection < X509CertSelector > getRecipientSelectors ( ) { } } | boolean digitalSignature = false ; boolean nonRepudiation = false ; boolean keyEncipherment = true ; boolean dataEncipherment = false ; X509CertSelector keyEncSelector = new X509CertSelector ( ) ; keyEncSelector . setBasicConstraints ( - 2 ) ; keyEncSelector . setKeyUsage ( new boolean [ ] { digitalSignature , nonRepud... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link FunctionsType } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.w3.org/1998/Math/MathML" , name = "compose" ) public JAXBElement < FunctionsType > createCompose ( FunctionsType value ) { } } | return new JAXBElement < FunctionsType > ( _Compose_QNAME , FunctionsType . class , null , value ) ; |
public class FileEntryAdapterIterator { /** * @ return */
private SmbResource advance ( ) { } } | while ( this . delegate . hasNext ( ) ) { FileEntry fe = this . delegate . next ( ) ; if ( this . filter == null ) { try { return adapt ( fe ) ; } catch ( MalformedURLException e ) { log . error ( "Failed to create child URL" , e ) ; continue ; } } try ( SmbResource r = adapt ( fe ) ) { if ( this . filter . accept ( r ... |
public class EntryStream { /** * Merge series of adjacent stream entries with equal keys combining the
* corresponding values using the provided function .
* This is a < a href = " package - summary . html # StreamOps " > quasi - intermediate < / a >
* partial reduction operation .
* The key of the resulting en... | BinaryOperator < Entry < K , V > > entryMerger = ( e1 , e2 ) -> new SimpleImmutableEntry < > ( e1 . getKey ( ) , merger . apply ( e1 . getValue ( ) , e2 . getValue ( ) ) ) ; return new EntryStream < > ( new CollapseSpliterator < > ( equalKeys ( ) , Function . identity ( ) , entryMerger , entryMerger , spliterator ( ) )... |
public class ListIdentityPoolUsageResult { /** * Usage information for the identity pools .
* @ return Usage information for the identity pools . */
public java . util . List < IdentityPoolUsage > getIdentityPoolUsages ( ) { } } | if ( identityPoolUsages == null ) { identityPoolUsages = new com . amazonaws . internal . SdkInternalList < IdentityPoolUsage > ( ) ; } return identityPoolUsages ; |
public class BindPath { /** * Called when we detect a change somewhere down our path .
* First , check to see if our object is changing . If so remove our old listener
* Next , update the reference object the children have and recurse
* Finally , add listeners if we have a different object
* @ param listener Th... | if ( currentObject != newObject ) { removeListeners ( ) ; } if ( ( children != null ) && ( children . length > 0 ) ) { try { Object newValue = null ; if ( newObject != null ) { updateSet . add ( newObject ) ; newValue = extractNewValue ( newObject ) ; } for ( BindPath child : children ) { child . updatePath ( listener ... |
public class MetadataServiceListUnmarshaller { /** * { @ inheritDoc } */
protected void processAttribute ( XMLObject samlObject , Attr attribute ) throws UnmarshallingException { } } | MetadataServiceList mdsl = ( MetadataServiceList ) samlObject ; if ( attribute . getLocalName ( ) . equals ( MetadataServiceList . ID_ATTR_NAME ) ) { mdsl . setID ( attribute . getValue ( ) ) ; attribute . getOwnerElement ( ) . setIdAttributeNode ( attribute , true ) ; } else if ( attribute . getLocalName ( ) . equals ... |
public class UndertowHttpManagementService { /** * Starts the service .
* @ param context The start context
* @ throws StartException If any errors occur */
@ Override public synchronized void start ( final StartContext context ) throws StartException { } } | final ModelController modelController = modelControllerSupplier . get ( ) ; final ControlledProcessStateService controlledProcessStateService = controlledProcessStateServiceSupplier . get ( ) ; socketBindingManager = socketBindingManagerSupplier != null ? socketBindingManagerSupplier . get ( ) : null ; final SecurityRe... |
public class AbstractMessage { /** * / * ( non - Javadoc )
* @ see javax . jms . Message # setJMSDestination ( javax . jms . Destination ) */
@ Override public final void setJMSDestination ( Destination destination ) throws JMSException { } } | assertDeserializationLevel ( MessageSerializationLevel . FULL ) ; this . destination = DestinationTools . asRef ( destination ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.