signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class GetRelationalDatabaseSnapshotRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetRelationalDatabaseSnapshotRequest getRelationalDatabaseSnapshotRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getRelationalDatabaseSnapshotRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getRelationalDatabaseSnapshotRequest . getRelationalDatabaseSnapshotName ( ) , RELATIONALDATABASESNAPSHOTNAME_BINDING ) ; } catch ( Exception e ) { ... |
public class Convert { /** * 给定字符串转换字符编码 < br >
* 如果参数为空 , 则返回原字符串 , 不报错 。
* @ param str 被转码的字符串
* @ param sourceCharset 原字符集
* @ param destCharset 目标字符集
* @ return 转换后的字符串
* @ see CharsetUtil # convert ( String , String , String ) */
public static String convertCharset ( String str , String sourceCharset ,... | if ( StrUtil . hasBlank ( str , sourceCharset , destCharset ) ) { return str ; } return CharsetUtil . convert ( str , sourceCharset , destCharset ) ; |
public class GradientToEdgeFeatures { /** * Sets edge intensities to zero if the pixel has an intensity which is less than either of
* the two adjacent pixels . Pixel adjacency is determined by the gradients discretized direction .
* @ param intensity Edge intensities . Not modified .
* @ param direction 8 - Disc... | InputSanityCheck . checkSameShape ( intensity , direction ) ; output = InputSanityCheck . checkDeclare ( intensity , output ) ; if ( BoofConcurrency . USE_CONCURRENT ) { ImplEdgeNonMaxSuppression_MT . inner8 ( intensity , direction , output ) ; ImplEdgeNonMaxSuppression_MT . border8 ( intensity , direction , output ) ;... |
public class Convert { /** * Convert c .
* @ param < T > the type parameter
* @ param < C > the type parameter
* @ param object the object
* @ param collectionClass the collection class
* @ param componentClass the component class
* @ return the c */
@ SuppressWarnings ( "unchecked" ) public static < T , C ... | if ( collectionClass == null || ! Collection . class . isAssignableFrom ( collectionClass ) ) { log . fine ( "{0} does not extend collection." , collectionClass ) ; return null ; } return Cast . as ( CollectionConverter . COLLECTION ( Cast . < Class < C > > as ( collectionClass ) , componentClass ) . apply ( object ) )... |
public class Description { /** * Returns the byte representation of this description structure .
* @ return byte array containing structure data */
public byte [ ] toByteArray ( ) { } } | final byte [ ] data = new byte [ 7 ] ; data [ 0 ] = ( byte ) oindex ; data [ 1 ] = ( byte ) id ; data [ 2 ] = ( byte ) pindex ; data [ 3 ] = ( byte ) ( write ? 0x80 : 0x00 ) ; data [ 3 ] |= pdt & 0x3f ; data [ 4 ] = ( byte ) ( maxElems >> 8 ) ; data [ 5 ] = ( byte ) maxElems ; data [ 6 ] = ( byte ) ( rLevel << 4 | ( wL... |
public class DCModuleGenerator { /** * Populate an element tree with elements for a module .
* @ param module the module to populate from .
* @ param element the root element to attach child elements to . */
@ Override public final void generate ( final Module module , final Element element ) { } } | final DCModule dcModule = ( DCModule ) module ; final String title = dcModule . getTitle ( ) ; if ( title != null ) { element . addContent ( generateSimpleElementList ( "title" , dcModule . getTitles ( ) ) ) ; } final String creator = dcModule . getCreator ( ) ; if ( creator != null ) { element . addContent ( generateS... |
public class MarkLogicRepositoryConnection { /** * add triples via URL
* sets base URI to url if none is supplied
* @ param url
* @ param baseURI
* @ param dataFormat
* @ param contexts
* @ throws IOException
* @ throws RDFParseException
* @ throws RepositoryException */
@ Override public void add ( URL... | if ( notNull ( baseURI ) ) { getClient ( ) . sendAdd ( new URL ( url . toString ( ) ) . openStream ( ) , baseURI , dataFormat , contexts ) ; } else { getClient ( ) . sendAdd ( new URL ( url . toString ( ) ) . openStream ( ) , url . toString ( ) , dataFormat , contexts ) ; } |
public class CorePlugin { /** * Implements the { @ link de . is24 . util . monitoring . InApplicationMonitor } side of the Visitor pattern .
* Iterates through all registered { @ link de . is24 . util . monitoring . Reportable } instances and calls
* the corresponding method on the { @ link de . is24 . util . monit... | counters . accept ( reportVisitor ) ; timers . accept ( reportVisitor ) ; stateValues . accept ( reportVisitor ) ; multiValues . accept ( reportVisitor ) ; versions . accept ( reportVisitor ) ; historizableLists . accept ( reportVisitor ) ; |
public class ObjectManager { /** * Factory method to crate a new transaction for use with the ObjectManager .
* @ return Transaction the new transaction .
* @ throws ObjectManagerException */
public final Transaction getTransaction ( ) throws ObjectManagerException { } } | if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "getTransaction" ) ; // If the log is full introduce a delay for a checkpoiunt before allowing the
// application to proceed .
objectManagerState . transactionPacing ( ) ; Transaction transaction = objectManagerState ... |
public class ExcelReader { /** * 读取工作簿中指定的Sheet
* @ param startRowIndex 起始行 ( 包含 , 从0开始计数 )
* @ param endRowIndex 结束行 ( 包含 , 从0开始计数 )
* @ return 行的集合 , 一行使用List表示 */
@ SuppressWarnings ( { } } | "rawtypes" , "unchecked" } ) public List < List < Object > > read ( int startRowIndex , int endRowIndex ) { checkNotClosed ( ) ; List < List < Object > > resultList = new ArrayList < > ( ) ; startRowIndex = Math . max ( startRowIndex , this . sheet . getFirstRowNum ( ) ) ; // 读取起始行 ( 包含 )
endRowIndex = Math . min ( end... |
public class ListCertificatesRequest { /** * Filter the certificate list by status value .
* @ param certificateStatuses
* Filter the certificate list by status value .
* @ see CertificateStatus */
public void setCertificateStatuses ( java . util . Collection < String > certificateStatuses ) { } } | if ( certificateStatuses == null ) { this . certificateStatuses = null ; return ; } this . certificateStatuses = new java . util . ArrayList < String > ( certificateStatuses ) ; |
public class Metric { /** * Use { @ link # getTagsMap ( ) } instead . */
@ java . lang . Deprecated public java . util . Map < java . lang . String , java . lang . String > getTags ( ) { } } | return getTagsMap ( ) ; |
public class TargetStreamControl { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . runtime . SIMPDeliveryStreamReceiverControllable # getQueuedMessageByID */
public SIMPReceivedMessageControllable getReceivedMessageByID ( String id ) { } } | SIMPReceivedMessageControllable returnMessage = null ; SIMPIterator iterator = getReceivedMessageIterator ( SIMPConstants . SIMPCONTROL_RETURN_ALL_MESSAGES ) ; while ( iterator . hasNext ( ) ) { SIMPReceivedMessageControllable receivedMessage = ( SIMPReceivedMessageControllable ) iterator . next ( ) ; String msgID = re... |
public class SessionApi { /** * Get business attribute hierarchy
* Get the business attribute hierarchy for the specified business attribute .
* @ param id The unique ID of the business attribute . ( required )
* @ return ApiSuccessResponse
* @ throws ApiException If fail to call the API , e . g . server error ... | ApiResponse < ApiSuccessResponse > resp = getBusinessAttributeHierarchyWithHttpInfo ( id ) ; return resp . getData ( ) ; |
public class UCharacterName { /** * Gets the group index for the codepoint , or the group before it .
* @ param codepoint The codepoint index .
* @ return group index containing codepoint or the group before it . */
public int getGroup ( int codepoint ) { } } | int endGroup = m_groupcount_ ; int msb = getCodepointMSB ( codepoint ) ; int result = 0 ; // binary search for the group of names that contains the one for
// code
// find the group that contains codepoint , or the highest before it
while ( result < endGroup - 1 ) { int gindex = ( result + endGroup ) >> 1 ; if ( msb < ... |
public class DateTimeUtils { /** * Add / Subtract the specified amount of hours to the given { @ link Calendar } .
* The returned { @ link Calendar } has its fields synced .
* @ param origin
* @ param value
* @ return
* @ since 0.9.2 */
public static Calendar addHours ( Calendar origin , int value ) { } } | Calendar cal = sync ( ( Calendar ) origin . clone ( ) ) ; cal . add ( Calendar . HOUR_OF_DAY , value ) ; return sync ( cal ) ; |
public class TemplateList { /** * Get the head of the most likely list of associations to check , based on
* the name and type of the targetNode argument .
* @ param xctxt The XPath runtime context .
* @ param targetNode The target node that will be checked for a match .
* @ param dtm The dtm owner for the targ... | short targetNodeType = dtm . getNodeType ( targetNode ) ; TemplateSubPatternAssociation head ; switch ( targetNodeType ) { case DTM . ELEMENT_NODE : case DTM . ATTRIBUTE_NODE : head = ( TemplateSubPatternAssociation ) m_patternTable . get ( dtm . getLocalName ( targetNode ) ) ; break ; case DTM . TEXT_NODE : case DTM .... |
public class InternalSimpleAntlrParser { /** * InternalSimpleAntlr . g : 1086:1 : ruleNotExpression returns [ EObject current = null ] : ( this _ PrimaryExpression _ 0 = rulePrimaryExpression | ( ( ) otherlv _ 2 = ' ! ' ( ( lv _ value _ 3_0 = ruleNotExpression ) ) ) ) ; */
public final EObject ruleNotExpression ( ) thr... | EObject current = null ; Token otherlv_2 = null ; EObject this_PrimaryExpression_0 = null ; EObject lv_value_3_0 = null ; enterRule ( ) ; try { // InternalSimpleAntlr . g : 1089:28 : ( ( this _ PrimaryExpression _ 0 = rulePrimaryExpression | ( ( ) otherlv _ 2 = ' ! ' ( ( lv _ value _ 3_0 = ruleNotExpression ) ) ) ) )
/... |
public class appfwpolicy_appfwpolicylabel_binding { /** * Use this API to fetch appfwpolicy _ appfwpolicylabel _ binding resources of given name . */
public static appfwpolicy_appfwpolicylabel_binding [ ] get ( nitro_service service , String name ) throws Exception { } } | appfwpolicy_appfwpolicylabel_binding obj = new appfwpolicy_appfwpolicylabel_binding ( ) ; obj . set_name ( name ) ; appfwpolicy_appfwpolicylabel_binding response [ ] = ( appfwpolicy_appfwpolicylabel_binding [ ] ) obj . get_resources ( service ) ; return response ; |
public class WxaAPI { /** * < strong > 图片检查 < / strong > < br >
* 校验一张图片是否含有违法违规内容 。 < br >
* 应用场景举例 : < br >
* 1 ) 图片智能鉴黄 : 涉及拍照的工具类应用 ( 如美拍 , 识图类应用 ) 用户拍照上传检测 ; 电商类商品上架图片检测 ; 媒体类用户文章里的图片检测等 ; < br >
* 2 ) 敏感人脸识别 : 用户头像 ; 媒体类用户文章里的图片检测 ; 社交类用户上传的图片检测等 < br >
* < br >
* 频率限制 : 单个 appId 调用上限为 1000 次 / 分钟 , 1... | HttpPost httpPost = new HttpPost ( BASE_URI + "/wxa/img_sec_check" ) ; FileBody bin = new FileBody ( media ) ; HttpEntity reqEntity = MultipartEntityBuilder . create ( ) . addPart ( "media" , bin ) . addTextBody ( PARAM_ACCESS_TOKEN , API . accessToken ( access_token ) ) . build ( ) ; httpPost . setEntity ( reqEntity )... |
public class ThrowableFormatCommand { /** * Set the log data .
* @ see FormatCommandInterface # execute ( String , String , long , Level , Object ,
* Throwable ) */
public String execute ( String clientID , String name , long time , Level level , Object message , Throwable throwable ) { } } | StringBuilder sb = new StringBuilder ( ) ; if ( throwable != null ) { sb . append ( throwable . toString ( ) ) ; String newline = System . getProperty ( "line.separator" ) ; StackTraceElement [ ] stackTrace = throwable . getStackTrace ( ) ; for ( int i = 0 ; i < stackTrace . length ; i ++ ) { StackTraceElement element ... |
public class Model { /** * Returns parent of this model , assuming that this table represents a child .
* This method may return < code > null < / code > in cases when you have orphan record and
* referential integrity is not enforced in DBMS with a foreign key constraint .
* @ param parentClass class of a parent... | return parent ( parentClass , false ) ; |
public class SchemaTypeAdapter { /** * Constructs { @ link Schema . Type # UNION UNION } type schema from the json input .
* @ param reader The { @ link JsonReader } for streaming json input tokens .
* @ param knownRecords Set of record name already encountered during the reading .
* @ return A { @ link Schema } ... | ImmutableList . Builder < Schema > unionSchemas = ImmutableList . builder ( ) ; reader . beginArray ( ) ; while ( reader . peek ( ) != JsonToken . END_ARRAY ) { unionSchemas . add ( read ( reader , knownRecords ) ) ; } reader . endArray ( ) ; return Schema . unionOf ( unionSchemas . build ( ) ) ; |
public class StreamletUtils { /** * Selects a random item from a list . Used in many example source streamlets . */
public static < T > T randomFromList ( List < T > ls ) { } } | return ls . get ( new Random ( ) . nextInt ( ls . size ( ) ) ) ; |
public class DefaultPrincipalElectionStrategy { /** * Gets principal attributes for principal .
* @ param principal the principal
* @ param principalAttributes the principal attributes
* @ return the principal attributes for principal */
protected Map < String , List < Object > > getPrincipalAttributesForPrincipa... | return principalAttributes ; |
public class DefuzzifierFactory { /** * Creates a Defuzzifier by executing the registered constructor
* @ param key is the unique name by which constructors are registered
* @ param resolution is the resolution of an IntegralDefuzzifier
* @ return a Defuzzifier by executing the registered constructor and setting ... | Defuzzifier result = constructObject ( key ) ; if ( result instanceof IntegralDefuzzifier ) { ( ( IntegralDefuzzifier ) result ) . setResolution ( resolution ) ; } return result ; |
public class PravegaTablesStoreHelper { /** * We dont want to do indefinite retries because for controller ' s graceful shutting down , it waits on grpc service to
* be terminated which in turn waits on all outstanding grpc calls to complete . And the store may stall the calls if
* there is indefinite retries . Res... | return RetryHelper . withRetriesAsync ( exceptionalCallback ( futureSupplier , errorMessage ) , e -> { Throwable unwrap = Exceptions . unwrap ( e ) ; return unwrap instanceof StoreException . StoreConnectionException ; } , NUM_OF_RETRIES , executor ) ; |
public class Flowable { /** * Maps the upstream items into { @ link CompletableSource } s and subscribes to them one after the
* other completes .
* < img width = " 640 " height = " 305 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / concatMap . png " alt = " " >
*... | ObjectHelper . requireNonNull ( mapper , "mapper is null" ) ; ObjectHelper . verifyPositive ( prefetch , "prefetch" ) ; return RxJavaPlugins . onAssembly ( new FlowableConcatMapCompletable < T > ( this , mapper , ErrorMode . IMMEDIATE , prefetch ) ) ; |
public class Rss2Parser { /** * Parses the media content of the entry
* @ param tag The tag which to handle .
* @ param article Article object to assign the node value to . */
private void handleMediaContent ( String tag , Article article ) { } } | String url = xmlParser . getAttributeValue ( null , "url" ) ; if ( url == null ) { throw new IllegalArgumentException ( "Url argument must not be null" ) ; } Article . MediaContent mc = new Article . MediaContent ( ) ; article . addMediaContent ( mc ) ; mc . setUrl ( url ) ; if ( xmlParser . getAttributeValue ( null , ... |
public class BaseMessageManager { /** * Add this message filter to the appropriate queue .
* The message filter contains the queue name and type and a listener to send the message to .
* @ param messageFilter The message filter to add .
* @ return An error code . */
public int addMessageFilter ( MessageFilter mes... | MessageReceiver receiver = this . getMessageQueue ( messageFilter . getQueueName ( ) , messageFilter . getQueueType ( ) ) . getMessageReceiver ( ) ; receiver . addMessageFilter ( messageFilter ) ; return Constant . NORMAL_RETURN ; |
public class SequenceFileSource { /** * { @ inheritDoc } */
@ Override protected FileBasedSource < KV < K , V > > createForSubrangeOfFile ( Metadata fileMetadata , long start , long end ) { } } | LOG . debug ( "Creating source for subrange: " + start + "-" + end ) ; return new SequenceFileSource < > ( fileMetadata , start , end , keyClass , keySerializationClass , valueClass , valueSerializationClass , getMinBundleSize ( ) , coder ) ; |
public class ElementMatchers { /** * Matches a field in its defined shape .
* @ param matcher The matcher to apply to the matched field ' s defined shape .
* @ param < T > The matched object ' s type .
* @ return A matcher that matches a matched field ' s defined shape . */
public static < T extends FieldDescript... | return new DefinedShapeMatcher < T , FieldDescription . InDefinedShape > ( matcher ) ; |
public class TimeZone { /** * Return a new String array containing all system TimeZone IDs
* with the given raw offset from GMT . These IDs may be passed to
* < code > get ( ) < / code > to construct the corresponding TimeZone
* object .
* @ param rawOffset the offset in milliseconds from GMT
* @ return an ar... | Set < String > ids = getAvailableIDs ( SystemTimeZoneType . ANY , null , Integer . valueOf ( rawOffset ) ) ; return ids . toArray ( new String [ 0 ] ) ; |
public class Seq { /** * This is equivalent to :
* < pre >
* < code >
* if ( isEmpty ( ) ) {
* return Nullable . empty ( ) ;
* final Iterator < T > iter = iterator ( ) ;
* T result = iter . next ( ) ;
* while ( iter . hasNext ( ) ) {
* result = accumulator . apply ( result , iter . next ( ) ) ;
* retu... | N . checkArgNotNull ( accumulator ) ; if ( isEmpty ( ) ) { return Nullable . empty ( ) ; } final Iterator < T > iter = iterator ( ) ; T result = iter . next ( ) ; while ( iter . hasNext ( ) ) { result = accumulator . apply ( result , iter . next ( ) ) ; } return Nullable . of ( result ) ; |
public class FeatureGenerators { /** * See { @ link # productFeatureGenerator ( Iterable ) } .
* @ param generators
* @ return */
public static < A , B > FeatureGenerator < A , List < B > > productFeatureGenerator ( FeatureGenerator < A , B > ... generators ) { } } | return FeatureGenerators . productFeatureGenerator ( Arrays . asList ( generators ) ) ; |
public class RequestCreator { /** * An error drawable to be used if the request image could not be loaded . */
@ NonNull public RequestCreator error ( @ DrawableRes int errorResId ) { } } | if ( errorResId == 0 ) { throw new IllegalArgumentException ( "Error image resource invalid." ) ; } if ( errorDrawable != null ) { throw new IllegalStateException ( "Error image already set." ) ; } this . errorResId = errorResId ; return this ; |
public class GroupCombineOperator { @ Override protected GroupCombineOperatorBase < ? , OUT , ? > translateToDataFlow ( Operator < IN > input ) { } } | String name = getName ( ) != null ? getName ( ) : "GroupCombine at " + defaultName ; // distinguish between grouped reduce and non - grouped reduce
if ( grouper == null ) { // non grouped reduce
UnaryOperatorInformation < IN , OUT > operatorInfo = new UnaryOperatorInformation < > ( getInputType ( ) , getResultType ( ) ... |
public class StorageAccountsInner { /** * Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail... | return listSasTokensNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < SasTokenInformationInner > > , Page < SasTokenInformationInner > > ( ) { @ Override public Page < SasTokenInformationInner > call ( ServiceResponse < Page < SasTokenInformationInner > > response ) { return res... |
public class RegisteredResources { /** * Delist the specified resource from the transaction .
* @ param xaRes the XAResource to delist .
* @ param flag the XA flags to pass to the resource .
* TMSUSPEND , TMFAIL or TMSUCCESS flag to xa _ end
* @ throws SystemException if the resource is not successfully
* dis... | if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "delistResource" , new Object [ ] { xaRes , Util . printFlag ( flag ) } ) ; // get resource manager instance
JTAResourceBase jtaRes = ( JTAResourceBase ) getResourceTable ( ) . get ( xaRes ) ; if ( jtaRes == null && _onePhaseResourceEnlisted != null ) { if ( _onePhaseRes... |
public class CPInstanceUtil { /** * Returns the cp instance where CPDefinitionId = & # 63 ; and sku = & # 63 ; or throws a { @ link NoSuchCPInstanceException } if it could not be found .
* @ param CPDefinitionId the cp definition ID
* @ param sku the sku
* @ return the matching cp instance
* @ throws NoSuchCPIn... | return getPersistence ( ) . findByC_S ( CPDefinitionId , sku ) ; |
public class WebhooksInner { /** * Updates a webhook with the specified parameters .
* @ param resourceGroupName The name of the resource group to which the container registry belongs .
* @ param registryName The name of the container registry .
* @ param webhookName The name of the webhook .
* @ param webhookU... | return beginUpdateWithServiceResponseAsync ( resourceGroupName , registryName , webhookName , webhookUpdateParameters ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class ReflectionUtils { /** * Get wrapper type of a primitive type .
* @ param primitiveType to get its wrapper type
* @ return the wrapper type of the given primitive type */
public Class < ? > getWrapperType ( Class < ? > primitiveType ) { } } | for ( PrimitiveEnum p : PrimitiveEnum . values ( ) ) { if ( p . getType ( ) . equals ( primitiveType ) ) { return p . getClazz ( ) ; } } return primitiveType ; // if not primitive , return it as is |
public class HttpFields { public boolean containsKey ( String name ) { } } | FieldInfo info = getFieldInfo ( name ) ; return getField ( info , true ) != null ; |
public class ElasticsearchRestClientFactoryBean { /** * Classpath root for index and mapping files ( default : / es )
* < p > Example : < / p >
* < pre >
* { @ code
* < property name = " classpathRoot " value = " / es " / >
* < / pre >
* That means that the factory will look in es folder to find index and m... | // For compatibility reasons , we need to convert " / classpathroot " to " classpathroot "
if ( classpathRoot . startsWith ( "/" ) ) { this . classpathRoot = classpathRoot . substring ( 1 , classpathRoot . length ( ) ) ; } else { this . classpathRoot = classpathRoot ; } |
public class BaseCrawler { /** * Copies all the Selenium cookies for the current domain to the HTTP client cookie store . */
private void syncHttpClientCookies ( ) { } } | webDriver . manage ( ) . getCookies ( ) . stream ( ) . map ( CookieConverter :: convertToHttpClientCookie ) . forEach ( cookieStore :: addCookie ) ; |
public class StandardQueryFactory { /** * Returns a new or cached query for the given query specification .
* @ param filter optional filter object , defaults to open filter if null
* @ param values optional values object , defaults to filter initial values
* @ param ordering optional order - by properties */
pub... | return query ( filter , values , ordering , null ) ; |
public class OvhSmsSender { /** * Handle OVH response . If status provided in response is less than 200,
* then the message has been sent . Otherwise , the message has not been sent .
* @ param message
* the SMS to send
* @ param response
* the received response from OVH API
* @ throws IOException
* when ... | if ( response . getStatus ( ) . isSuccess ( ) ) { JsonNode json = mapper . readTree ( response . getBody ( ) ) ; int ovhStatus = json . get ( "status" ) . asInt ( ) ; // 100 < = ovh status < 200 = = = = > OK - > just log response
// 200 < = ovh status = = = = > KO - > throw an exception
if ( ovhStatus >= OK_STATUS ) { ... |
public class JSONWorldDataHelper { /** * Builds the player position data to be used as observation signals by the listener .
* @ param json a JSON object into which the positional information will be added . */
public static void buildPositionStats ( JsonObject json , EntityPlayerMP player ) { } } | json . addProperty ( "XPos" , player . posX ) ; json . addProperty ( "YPos" , player . posY ) ; json . addProperty ( "ZPos" , player . posZ ) ; json . addProperty ( "Pitch" , player . rotationPitch ) ; json . addProperty ( "Yaw" , player . rotationYaw ) ; |
public class SnappyServer { /** * Define a REST endpoint mapped to HTTP PUT
* @ param url The relative URL to be map this endpoint .
* @ param endpoint The endpoint handler
* @ param mediaTypes ( Optional ) The accepted and returned types for this endpoint */
public static void put ( String url , HttpConsumer < H... | addResource ( Methods . PUT , url , endpoint , mediaTypes ) ; |
public class CKMSQuantiles { /** * Specifies the allowable error for this rank , depending on which quantiles
* are being targeted .
* This is the f ( r _ i , n ) function from the CKMS paper . It ' s basically how
* wide the range of this rank can be .
* @ param rank
* the index in the list of samples */
pri... | // NOTE : according to CKMS , this should be count , not size , but this
// leads
// to error larger than the error bounds . Leaving it like this is
// essentially a HACK , and blows up memory , but does " work " .
// int size = count ;
int size = sample . size ( ) ; double minError = size + 1 ; for ( Quantile q : quan... |
public class CallableUtils { /** * Returns a composed function that first applies the Callable and then applies
* { @ linkplain BiFunction } { @ code after } to the result .
* @ param < T > return type of callable
* @ param < R > return type of handler
* @ param handler the function applied after callable
* @... | return ( ) -> { try { T result = callable . call ( ) ; return handler . apply ( result , null ) ; } catch ( Exception exception ) { return handler . apply ( null , exception ) ; } } ; |
public class ViewSet { /** * ( this is for backwards compatibility ) */
@ JsonSetter ( "enterpriseContextViews" ) void setEnterpriseContextViews ( Collection < SystemLandscapeView > enterpriseContextViews ) { } } | if ( enterpriseContextViews != null ) { this . systemLandscapeViews = new HashSet < > ( enterpriseContextViews ) ; } |
public class druidGParser { /** * druidG . g : 332:1 : getEquals returns [ EqualsToHolder holder ] : ( a = ID ( WS ) ? EQUALS ( WS ) ? b = ( SINGLE _ QUOTE _ STRING | FLOAT | LONG ) ) ; */
public final EqualsToHolder getEquals ( ) throws RecognitionException { } } | EqualsToHolder holder = null ; Token a = null ; Token b = null ; try { // druidG . g : 333:2 : ( ( a = ID ( WS ) ? EQUALS ( WS ) ? b = ( SINGLE _ QUOTE _ STRING | FLOAT | LONG ) ) )
// druidG . g : 333:4 : ( a = ID ( WS ) ? EQUALS ( WS ) ? b = ( SINGLE _ QUOTE _ STRING | FLOAT | LONG ) )
{ // druidG . g : 333:4 : ( a =... |
public class AWSSimpleSystemsManagementClient { /** * Delete a custom inventory type , or the data associated with a custom Inventory type . Deleting a custom inventory
* type is also referred to as deleting a custom inventory schema .
* @ param deleteInventoryRequest
* @ return Result of the DeleteInventory oper... | request = beforeClientExecution ( request ) ; return executeDeleteInventory ( request ) ; |
public class CmsSearchManager { /** * Sets the update frequency of the offline indexer in milliseconds . < p >
* @ param offlineUpdateFrequency the update frequency in milliseconds to set */
public void setOfflineUpdateFrequency ( String offlineUpdateFrequency ) { } } | try { setOfflineUpdateFrequency ( Long . parseLong ( offlineUpdateFrequency ) ) ; } catch ( Exception e ) { LOG . error ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_PARSE_OFFLINE_UPDATE_FAILED_2 , offlineUpdateFrequency , new Long ( DEFAULT_OFFLINE_UPDATE_FREQNENCY ) ) , e ) ; setOfflineUpdateFrequency (... |
public class PerformanceProfiler { /** * Returns the duration of the measured tasks in ms */
public double getDurationMs ( ) { } } | double durationMs = 0 ; for ( Duration duration : durations ) { if ( duration . taskFinished ( ) ) { durationMs += duration . getDurationMS ( ) ; } } return durationMs ; |
public class Widgets { /** * Create and return a widget using the given factory and the given options . */
protected < W extends Widget > W widget ( Element e , WidgetFactory < W > factory , WidgetInitializer < W > initializer ) { } } | if ( ! isWidgetCreationAuthorizedFrom ( e ) ) { return null ; } W widget = factory . create ( e ) ; if ( initializer != null ) { initializer . initialize ( widget , e ) ; } return widget ; |
public class VpTree { /** * Builds the tree from a set of points by recursively partitioning
* them according to a random pivot .
* @ param lower start of range
* @ param upper end of range ( exclusive )
* @ return root of the tree or null if lower = = upper */
private Node buildFromPoints ( int lower , int upp... | if ( upper == lower ) { return null ; } final Node node = new Node ( ) ; node . index = lower ; if ( upper - lower > 1 ) { // choose an arbitrary vantage point and move it to the start
int i = random . nextInt ( upper - lower - 1 ) + lower ; listSwap ( items , lower , i ) ; listSwap ( indexes , lower , i ) ; int median... |
public class BeanMap { /** * Convenience method for getting an iterator over the entries .
* @ return an iterator over the entries */
public Iterator < Entry < String , Object > > entryIterator ( ) { } } | final Iterator < String > iter = keyIterator ( ) ; return new Iterator < Entry < String , Object > > ( ) { @ Override public boolean hasNext ( ) { return iter . hasNext ( ) ; } @ Override public Entry < String , Object > next ( ) { String key = iter . next ( ) ; Object value = get ( key ) ; return new MyMapEntry ( Bean... |
public class BeamToCDK { /** * Insert the vertex ' v ' into sorted position in the array ' vs ' .
* @ param v a vertex ( int id )
* @ param vs array of vertices ( int ids )
* @ return array with ' u ' inserted in sorted order */
private static int [ ] insert ( int v , int [ ] vs ) { } } | final int n = vs . length ; final int [ ] ws = Arrays . copyOf ( vs , n + 1 ) ; ws [ n ] = v ; // insert ' u ' in to sorted position
for ( int i = n ; i > 0 && ws [ i ] < ws [ i - 1 ] ; i -- ) { int tmp = ws [ i ] ; ws [ i ] = ws [ i - 1 ] ; ws [ i - 1 ] = tmp ; } return ws ; |
public class FunctionArgumentSignatureFactory { /** * Create a new factory . */
public List < FunctionArgumentSignature > createDefaultArgumentSignature ( Parameter parameter ) { } } | List < FunctionArgumentSignature > list = new LinkedList < > ( ) ; String name = getParameterName ( parameter ) ; Object defaultValue = getDefaultValue ( parameter ) ; list . add ( new FunctionArgumentSignature ( name , defaultValue ) ) ; return list ; |
public class JsDocInfoParser { /** * Parses a string containing a JsDoc type declaration , returning the
* type if the parsing succeeded or { @ code null } if it failed . */
public static Node parseTypeString ( String typeString ) { } } | JsDocInfoParser parser = getParser ( typeString ) ; return parser . parseTopLevelTypeExpression ( parser . next ( ) ) ; |
public class BatchOperation { /** * Method to add the query batch operation to batchItemRequest
* @ param query the query
* @ param bId the batch Id */
public void addQuery ( String query , String bId ) { } } | BatchItemRequest batchItemRequest = new BatchItemRequest ( ) ; batchItemRequest . setBId ( bId ) ; batchItemRequest . setQuery ( query ) ; batchItemRequests . add ( batchItemRequest ) ; bIds . add ( bId ) ; |
public class ObjectIdentifier { /** * Gets full authority for a URL by appending port to the url authority .
* @ param uri the URL to get the full authority for .
* @ return the full authority . */
protected String getFullAuthority ( URI uri ) { } } | String authority = uri . getAuthority ( ) ; if ( ! authority . contains ( ":" ) && uri . getPort ( ) > 0 ) { // Append port for complete authority
authority = String . format ( "%s:%d" , uri . getAuthority ( ) , uri . getPort ( ) ) ; } return authority ; |
public class AnalyticFormulas { /** * Calculates the Black - Scholes option value of a call , i . e . , the payoff max ( S ( T ) - K , 0 ) P , where S follows a log - normal process with constant log - volatility .
* The model specific quantities are considered to be random variable , i . e . ,
* the function may c... | if ( optionMaturity < 0 ) { return forward . mult ( 0.0 ) ; } else { RandomVariableInterface dPlus = forward . div ( optionStrike ) . log ( ) . add ( volatility . squared ( ) . mult ( 0.5 * optionMaturity ) ) . div ( volatility ) . div ( Math . sqrt ( optionMaturity ) ) ; RandomVariableInterface dMinus = dPlus . sub ( ... |
public class IndicesResource { /** * Index set */
@ GET @ Timed @ Path ( "/{indexSetId}/list" ) @ ApiOperation ( value = "List all open, closed and reopened indices." ) @ Produces ( MediaType . APPLICATION_JSON ) public AllIndices indexSetList ( @ ApiParam ( name = "indexSetId" ) @ PathParam ( "indexSetId" ) String ind... | return AllIndices . create ( this . indexSetClosed ( indexSetId ) , this . indexSetReopened ( indexSetId ) , this . indexSetOpen ( indexSetId ) ) ; |
public class XLinkUtils { /** * Returns a Calendarobject to a given dateString in the Format ' DATEFORMAT ' .
* If the given String is of the wrong format , null is returned .
* @ see XLinkUtils # DATEFORMAT */
public static Calendar dateStringToCalendar ( String dateString ) { } } | Calendar calendar = Calendar . getInstance ( ) ; SimpleDateFormat formatter = new SimpleDateFormat ( XLinkConstants . DATEFORMAT ) ; try { calendar . setTime ( formatter . parse ( dateString ) ) ; } catch ( Exception ex ) { return null ; } return calendar ; |
public class PHS398CoverPageSupplementBaseGenerator { /** * This method splits the passed explanation comprising cell line
* information , puts into a list and returns the list .
* @ param explanation
* String of cell lines
* @ return { @ link List } */
protected List < String > getCellLines ( String explanatio... | int startPos = 0 ; List < String > cellLines = new ArrayList < > ( ) ; for ( int commaPos = 0 ; commaPos > - 1 ; ) { commaPos = explanation . indexOf ( "," , startPos ) ; if ( commaPos >= 0 ) { String cellLine = ( explanation . substring ( startPos , commaPos ) . trim ( ) ) ; explanation = explanation . substring ( com... |
public class CmsADEConfigData { /** * Gets the main detail page for a specific type . < p >
* @ param type the type name
* @ return the main detail page for that type */
public CmsDetailPageInfo getMainDetailPage ( String type ) { } } | List < CmsDetailPageInfo > detailPages = getDetailPagesForType ( type ) ; if ( ( detailPages == null ) || detailPages . isEmpty ( ) ) { return null ; } return detailPages . get ( 0 ) ; |
public class PoolUtil { /** * Helper method
* @ param o items to print
* @ return String for safe printing . */
protected static String safePrint ( Object ... o ) { } } | StringBuilder sb = new StringBuilder ( ) ; for ( Object obj : o ) { sb . append ( obj != null ? obj : "null" ) ; } return sb . toString ( ) ; |
public class MultiUserChat { /** * Joins the chat room using the specified nickname . If already joined
* using another nickname , this method will first leave the room and then
* re - join using the new nickname . The default connection timeout for a reply
* from the group chat server that the join succeeded wil... | MucEnterConfiguration . Builder builder = getEnterConfigurationBuilder ( nickname ) ; join ( builder . build ( ) ) ; |
public class LongStream { /** * Creates a { @ code LongStream } by iterative application { @ code LongUnaryOperator } function
* to an initial element { @ code seed } . Produces { @ code LongStream } consisting of
* { @ code seed } , { @ code f ( seed ) } , { @ code f ( f ( seed ) ) } , etc .
* < p > The first el... | Objects . requireNonNull ( f ) ; return new LongStream ( new LongIterate ( seed , f ) ) ; |
public class DeleteFollowRequest { /** * check a delete follow edge request for validity concerning NSSP
* @ param request
* Tomcat servlet request
* @ param deleteRequest
* basic delete request object
* @ param deleteFollowResponse
* delete follow edge response object
* @ return delete follow edge reques... | final Node user = checkUserIdentifier ( request , deleteFollowResponse ) ; if ( user != null ) { final Node followed = checkFollowedIdentifier ( request , deleteFollowResponse ) ; if ( followed != null ) { return new DeleteFollowRequest ( deleteRequest . getType ( ) , user , followed ) ; } } return null ; |
public class CBADao { /** * Distribute account CBA across all COMMITTED unpaid invoices */
private void useExistingCBAFromTransaction ( final BigDecimal accountCBA , final List < Tag > invoicesTags , final EntitySqlDaoWrapperFactory entitySqlDaoWrapperFactory , final InternalCallContext context ) throws InvoiceApiExcep... | if ( accountCBA . compareTo ( BigDecimal . ZERO ) <= 0 ) { return ; } // PERF : Computing the invoice balance is difficult to do in the DB , so we effectively need to retrieve all invoices on the account and filter the unpaid ones in memory .
// This should be infrequent though because of the account CBA check above .
... |
public class HeaderCell { /** * Implementation of the { @ link IBehaviorConsumer } interface that extends the functionality of this
* tag beyond that exposed via the JSP tag attributes . This method accepts the following facets :
* < table >
* < tr > < td > Facet Name < / td > < td > Operation < / td > < / tr >
... | if ( facet != null && facet . equals ( BEHAVIOR_RENDERER_NAME ) ) { String className = value != null ? value . toString ( ) : null ; /* provides a way to extend the existing decorators */
CellDecorator cellDecorator = ( CellDecorator ) ExtensionUtil . instantiateClass ( className , CellDecorator . class ) ; if ( name .... |
public class AreaStyle { /** * Compares two styles and decides if it is the same style . The thresholds of the style are taken from the { @ link Config } .
* @ param other the other area to be compared
* @ return < code > true < / code > if the areas are considered to have the same style */
public boolean isSameSty... | double fsdif = Math . abs ( getAverageFontSize ( ) - other . getAverageFontSize ( ) ) ; double wdif = Math . abs ( getAverageFontWeight ( ) - other . getAverageFontWeight ( ) ) ; double sdif = Math . abs ( getAverageFontStyle ( ) - other . getAverageFontStyle ( ) ) ; double ldif = Math . abs ( getAverageColorLuminosity... |
public class WMultiDropdownRenderer { /** * Paints the given WMultiDropdown .
* @ param component the WMultiDropdown to paint .
* @ param renderContext the RenderContext to paint to . */
@ Override public void doRender ( final WComponent component , final WebXmlRenderContext renderContext ) { } } | WMultiDropdown dropdown = ( WMultiDropdown ) component ; XmlStringBuilder xml = renderContext . getWriter ( ) ; String dataKey = dropdown . getListCacheKey ( ) ; boolean readOnly = dropdown . isReadOnly ( ) ; xml . appendTagOpen ( "ui:multidropdown" ) ; xml . appendAttribute ( "id" , component . getId ( ) ) ; xml . app... |
public class HttpChannelConfig { /** * Parse the configuration data into the separate values .
* @ param cc */
private void parseConfig ( ChannelData cc ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "parseConfig: " + cc . getName ( ) ) ; } Map < Object , Object > propsIn = cc . getPropertyBag ( ) ; Map < Object , Object > props = new HashMap < Object , Object > ( ) ; // convert all keys to valid case independent of case
... |
public class X509SubjectAlternativeNameUPNPrincipalResolver { /** * Get alt name seq .
* @ param sanItem subject alternative name value encoded as a two elements List with elem ( 0 ) representing object id and elem ( 1)
* representing object ( subject alternative name ) itself .
* @ return ASN1Sequence abstractio... | // Should not be the case , but still , a extra " safety " check
if ( sanItem . size ( ) < 2 ) { LOGGER . error ( "Subject Alternative Name List does not contain at least two required elements. Returning null principal id..." ) ; } val itemType = ( Integer ) sanItem . get ( 0 ) ; if ( itemType == 0 ) { val altName = ( ... |
public class SARLRuntime { /** * Returns the XML representation of the given SRE .
* @ param sre the SRE to serialize .
* @ return an XML representation of the given SRE .
* @ throws CoreException if trying to compute the XML for the SRE state encounters a problem . */
public static String getSREAsXML ( ISREInsta... | try { final DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; final DocumentBuilder builder = factory . newDocumentBuilder ( ) ; final Document xmldocument = builder . newDocument ( ) ; final Element sreNode = xmldocument . createElement ( "SRE" ) ; // $ NON - NLS - 1 $
sreNode . setAttribute ... |
public class PreferenceInputFactory { /** * Create a single - valued choice preference input .
* @ param name
* @ param label
* @ param displayType
* @ param options
* @ param defaultValue
* @ return */
public static Preference createSingleChoicePreference ( String name , String label , SingleChoiceDisplay ... | SingleChoicePreferenceInput input = new SingleChoicePreferenceInput ( ) ; input . setDefault ( defaultValue ) ; input . setDisplay ( displayType ) ; input . getOptions ( ) . addAll ( options ) ; Preference pref = new Preference ( ) ; pref . setName ( name ) ; pref . setLabel ( label ) ; pref . setPreferenceInput ( new ... |
public class DeletePolicyRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeletePolicyRequest deletePolicyRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deletePolicyRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deletePolicyRequest . getPolicyId ( ) , POLICYID_BINDING ) ; protocolMarshaller . marshall ( deletePolicyRequest . getDeleteAllPolicyResources ( ) , DELETEALLPOLICYR... |
public class CProductPersistenceImpl { /** * Returns the c products before and after the current c product in the ordered set where uuid = & # 63 ; .
* @ param CProductId the primary key of the current c product
* @ param uuid the uuid
* @ param orderByComparator the comparator to order the set by ( optionally < ... | CProduct cProduct = findByPrimaryKey ( CProductId ) ; Session session = null ; try { session = openSession ( ) ; CProduct [ ] array = new CProductImpl [ 3 ] ; array [ 0 ] = getByUuid_PrevAndNext ( session , cProduct , uuid , orderByComparator , true ) ; array [ 1 ] = cProduct ; array [ 2 ] = getByUuid_PrevAndNext ( ses... |
public class LdapConnectionWrapper { /** * Retrieves a list of all the groups in the directory .
* @ param dirContext a DirContext
* @ return A list of Strings representing the fully qualified DN of each group
* @ throws NamingException if an exception if thrown
* @ since 1.4.0 */
public List < String > getGrou... | LOGGER . debug ( "Retrieving all groups" ) ; final List < String > groupDns = new ArrayList < > ( ) ; final SearchControls sc = new SearchControls ( ) ; sc . setSearchScope ( SearchControls . SUBTREE_SCOPE ) ; final NamingEnumeration < SearchResult > ne = dirContext . search ( BASE_DN , GROUPS_FILTER , sc ) ; while ( h... |
public class Dsn { /** * Extracts the scheme and additional protocol options from the DSN provided as an { @ code URI } .
* @ param dsnUri DSN as an URI . */
private void extractProtocolInfo ( URI dsnUri ) { } } | String scheme = dsnUri . getScheme ( ) ; if ( scheme == null ) { return ; } String [ ] schemeDetails = scheme . split ( "\\+" ) ; protocolSettings . addAll ( Arrays . asList ( schemeDetails ) . subList ( 0 , schemeDetails . length - 1 ) ) ; protocol = schemeDetails [ schemeDetails . length - 1 ] ; |
public class ListAuditFindingsResult { /** * The findings ( results ) of the audit .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setFindings ( java . util . Collection ) } or { @ link # withFindings ( java . util . Collection ) } if you want to override
... | if ( this . findings == null ) { setFindings ( new java . util . ArrayList < AuditFinding > ( findings . length ) ) ; } for ( AuditFinding ele : findings ) { this . findings . add ( ele ) ; } return this ; |
public class BeanUtil { /** * Map转换为Bean对象
* @ param < T > Bean类型
* @ param map { @ link Map }
* @ param beanClass Bean Class
* @ param isIgnoreError 是否忽略注入错误
* @ return Bean */
public static < T > T mapToBean ( Map < ? , ? > map , Class < T > beanClass , boolean isIgnoreError ) { } } | return fillBeanWithMap ( map , ReflectUtil . newInstance ( beanClass ) , isIgnoreError ) ; |
public class DoubleCheckedLocking { /** * Matches an instance of DCL . The canonical pattern is :
* < pre > { @ code
* if ( $ X = = null ) {
* synchronized ( . . . ) {
* if ( $ X = = null ) {
* } < / pre >
* Gaps before the synchronized or inner ' if ' statement are ignored , and the operands in the
* nul... | // TODO ( cushon ) : Optional . ifPresent . . .
ExpressionTree outerIfTest = getNullCheckedExpression ( outerIf . getCondition ( ) ) ; if ( outerIfTest == null ) { return null ; } SynchronizedTree synchTree = getChild ( outerIf . getThenStatement ( ) , SynchronizedTree . class ) ; if ( synchTree == null ) { return null... |
public class ComplexNumber { /** * Get real part from the complex numbers .
* @ param cn Complex numbers .
* @ return Real part . */
public static double [ ] [ ] getReal ( ComplexNumber [ ] [ ] cn ) { } } | double [ ] [ ] n = new double [ cn . length ] [ cn [ 0 ] . length ] ; for ( int i = 0 ; i < n . length ; i ++ ) { for ( int j = 0 ; j < n [ 0 ] . length ; j ++ ) { n [ i ] [ j ] = cn [ i ] [ j ] . real ; } } return n ; |
public class PriorityParametersImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case BpsimPackage . PRIORITY_PARAMETERS__INTERRUPTIBLE : setInterruptible ( ( Parameter ) newValue ) ; return ; case BpsimPackage . PRIORITY_PARAMETERS__PRIORITY : setPriority ( ( Parameter ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ; |
public class Completable { /** * Returns a Completable which subscribes to this and the other Completable and completes
* when both of them complete or one emits an error .
* < img width = " 640 " height = " 442 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / Complet... | ObjectHelper . requireNonNull ( other , "other is null" ) ; return mergeArray ( this , other ) ; |
public class BaseXMLBuilder { /** * Add a named attribute value to the element for this builder node .
* @ param name
* the attribute ' s name .
* @ param value
* the attribute ' s value . */
protected void attributeImpl ( String name , String value ) { } } | if ( ! ( this . xmlNode instanceof Element ) ) { throw new RuntimeException ( "Cannot add an attribute to non-Element underlying node: " + this . xmlNode ) ; } ( ( Element ) xmlNode ) . setAttribute ( name , value ) ; |
public class TagLinkToken { /** * winkler scorer . Compute the Winkler heuristic as in Winkler 1999.
* @ param score double
* @ param S String
* @ param T String
* @ return double */
private double winkler ( double totalScore , String S , String T ) { } } | totalScore = totalScore + ( getPrefix ( S , T ) * 0.1 * ( 1.0 - totalScore ) ) ; return totalScore ; |
public class SourceStream { /** * This method is called when a Nack message is received from the
* downstream ME corresponding to this InternalOutputStream .
* It sends Value and Silence messages downstream for any ticks
* in these states in the stream , and for any ticks in Unknown or
* Requested state it send... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "processNack" , nm ) ; boolean sendPending = false ; List sendList = new ArrayList ( ) ; boolean sendLeadingSilence = false ; long lsstart = 0 ; long lsend = 0 ; boolean sendTrailingSilence = false ; long tsstart = 0 ... |
public class DefaultElementProducer { /** * Create a Anchor , style it and add the data
* @ param data
* @ param stylers
* @ return
* @ throws VectorPrintException */
public Anchor createAnchor ( Object data , Collection < ? extends BaseStyler > stylers ) throws VectorPrintException { } } | return initTextElementArray ( styleHelper . style ( new Anchor ( Float . NaN ) , data , stylers ) , data , stylers ) ; |
public class Single { /** * Instructs a Single to pass control to another Single rather than invoking
* { @ link SingleObserver # onError ( Throwable ) } if it encounters an error .
* < img width = " 640 " height = " 451 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators ... | ObjectHelper . requireNonNull ( resumeSingleInCaseOfError , "resumeSingleInCaseOfError is null" ) ; return onErrorResumeNext ( Functions . justFunction ( resumeSingleInCaseOfError ) ) ; |
public class CommerceAccountOrganizationRelLocalServiceWrapper { /** * Adds the commerce account organization rel to the database . Also notifies the appropriate model listeners .
* @ param commerceAccountOrganizationRel the commerce account organization rel
* @ return the commerce account organization rel that was... | return _commerceAccountOrganizationRelLocalService . addCommerceAccountOrganizationRel ( commerceAccountOrganizationRel ) ; |
public class EConv { /** * / * output _ hex _ charref */
private int outputHexCharref ( ) { } } | final byte [ ] utfBytes ; final int utfP ; int utfLen ; if ( caseInsensitiveEquals ( lastError . source , "UTF-32BE" . getBytes ( ) ) ) { utfBytes = lastError . errorBytes ; utfP = lastError . errorBytesP ; utfLen = lastError . errorBytesLength ; } else { Ptr utfLenA = new Ptr ( ) ; // TODO : better calculation ?
byte ... |
public class LevelOrderAxis { /** * { @ inheritDoc } */
@ Override public void reset ( final long paramNodeKey ) { } } | super . reset ( paramNodeKey ) ; mFirstChildKeyList = new LinkedList < Long > ( ) ; if ( isSelfIncluded ( ) ) { mNextKey = getNode ( ) . getDataKey ( ) ; } else { if ( ( ( ITreeStructData ) getNode ( ) ) . hasRightSibling ( ) ) { mNextKey = ( ( ITreeStructData ) getNode ( ) ) . getRightSiblingKey ( ) ; } else if ( ( ( ... |
public class QueryBuilder { /** * Set the parent IDs that will be used to constraint the query results ; replacing any
* previously configured IDs . Use the addParentIds ( ) and removeParentIds ( ) methods to
* modify the existing configuration .
* @ param ids the new set of parent IDs used to constrain the query... | parentIds = new HashSet < Integer > ( ) ; if ( ids != null ) { parentIds . addAll ( ids ) ; } return this ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.