signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class SpiceServiceListenerNotifier { /** * Add the request update to the observer message queue .
* @ param runnable a runnable to be posted immediatly on the queue . */
protected void post ( Runnable runnable ) { } } | Ln . d ( "Message queue is " + messageQueue ) ; if ( messageQueue == null ) { return ; } messageQueue . postAtTime ( runnable , SystemClock . uptimeMillis ( ) ) ; |
public class XLogInfoImpl { /** * Creates a new log info summary with a collection of custom
* event classifiers .
* @ param log The event log to create an info summary for .
* @ param defaultClassifier The default event classifier to be used .
* @ param classifiers A collection of additional event classifiers ... | return new XLogInfoImpl ( log , defaultClassifier , classifiers ) ; |
public class Times { /** * Determines whether the specified date1 is the same month with the specified date2.
* @ param date1 the specified date1
* @ param date2 the specified date2
* @ return { @ code true } if it is the same month , returns { @ code false } otherwise */
public static boolean isSameMonth ( final... | final Calendar cal1 = Calendar . getInstance ( ) ; cal1 . setTime ( date1 ) ; final Calendar cal2 = Calendar . getInstance ( ) ; cal2 . setTime ( date2 ) ; return cal1 . get ( Calendar . ERA ) == cal2 . get ( Calendar . ERA ) && cal1 . get ( Calendar . YEAR ) == cal2 . get ( Calendar . YEAR ) && cal1 . get ( Calendar .... |
public class AbstractResourceAdapterDeployer { /** * Is a support type
* @ param t The type
* @ return True if supported , otherwise false */
private boolean isSupported ( Class < ? > t ) { } } | if ( Boolean . class . equals ( t ) || boolean . class . equals ( t ) || Byte . class . equals ( t ) || byte . class . equals ( t ) || Short . class . equals ( t ) || short . class . equals ( t ) || Integer . class . equals ( t ) || int . class . equals ( t ) || Long . class . equals ( t ) || long . class . equals ( t ... |
public class JsonReader { /** * Check if the passed input stream can be resembled to valid Json content .
* This is accomplished by fully parsing the Json file each time the method is
* called . This consumes < b > less memory < / b > than calling any of the
* < code > read . . . < / code > methods and checking f... | ValueEnforcer . notNull ( aIS , "InputStream" ) ; ValueEnforcer . notNull ( aFallbackCharset , "FallbackCharset" ) ; try { final Reader aReader = CharsetHelper . getReaderByBOM ( aIS , aFallbackCharset ) ; return isValidJson ( aReader ) ; } finally { StreamHelper . close ( aIS ) ; } |
public class Widget { /** * Searches the immediate children of { @ link GroupWidget groupWidget } for a
* { @ link Widget } with the specified { @ link Widget # getName ( ) name } .
* Any non - matching { @ code GroupWidget } children iterated prior to finding a
* match will be added to { @ code groupChildren } .... | Collection < Widget > children = groupWidget . getChildren ( ) ; for ( Widget child : children ) { if ( child . getName ( ) != null && child . getName ( ) . equals ( name ) ) { return child ; } if ( child instanceof GroupWidget ) { // Save the child for the next level of search if needed .
groupChildren . add ( child )... |
public class DataUtil { /** * little - endian or intel format . */
public static int readIntegerLittleEndian ( byte [ ] buffer , int offset ) { } } | int value ; value = ( buffer [ offset ] & 0xFF ) ; value |= ( buffer [ offset + 1 ] & 0xFF ) << 8 ; value |= ( buffer [ offset + 2 ] & 0xFF ) << 16 ; value |= ( buffer [ offset + 3 ] & 0xFF ) << 24 ; return value ; |
public class CommerceAccountUserRelUtil { /** * Returns the first commerce account user rel in the ordered set where commerceAccountId = & # 63 ; .
* @ param commerceAccountId the commerce account ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return ... | return getPersistence ( ) . findByCommerceAccountId_First ( commerceAccountId , orderByComparator ) ; |
public class Driver { /** * Direct connection , with given | handler | and random URL .
* @ param stmtHandler the statement handler
* @ param resHandler the resource handler
* @ param info Connection properties ( optional )
* @ return the configured connection
* @ throws IllegalArgumentException if handler is... | if ( stmtHandler == null ) { throw new IllegalArgumentException ( "Statement handler" ) ; } // end of if
if ( resHandler == null ) { throw new IllegalArgumentException ( "Resource handler" ) ; } // end of if
return connection ( new ConnectionHandler . Default ( stmtHandler , resHandler ) , info ) ; |
public class DatePickerSettings { /** * setDateRangeLimits , This is a convenience function , for setting a DateVetoPolicy that will
* limit the allowed dates in the parent object to a specified minimum and maximum date value .
* Calling this function will always replace any existing DateVetoPolicy .
* If you onl... | if ( ! hasParent ( ) ) { throw new RuntimeException ( "DatePickerSettings.setDateRangeLimits(), " + "A date range limit can only be set after constructing the parent " + "DatePicker or the parent independent CalendarPanel. (The parent component " + "should be constructed using the DatePickerSettings instance where the ... |
public class IdcardUtil { /** * 验证10位身份编码是否合法
* @ param idCard 身份编码
* @ return 身份证信息数组
* [ 0 ] - 台湾 、 澳门 、 香港 [ 1 ] - 性别 ( 男M , 女F , 未知N ) [ 2 ] - 是否合法 ( 合法true , 不合法false ) 若不是身份证件号码则返回null */
public static String [ ] isValidCard10 ( String idCard ) { } } | if ( StrUtil . isBlank ( idCard ) ) { return null ; } String [ ] info = new String [ 3 ] ; String card = idCard . replaceAll ( "[\\(|\\)]" , "" ) ; if ( card . length ( ) != 8 && card . length ( ) != 9 && idCard . length ( ) != 10 ) { return null ; } if ( idCard . matches ( "^[a-zA-Z][0-9]{9}$" ) ) { // 台湾
info [ 0 ] =... |
public class TransportFrameUtil { /** * Returns { @ code true } if { @ code subject } ends with { @ code suffix } . */
private static boolean endsWith ( byte [ ] subject , byte [ ] suffix ) { } } | int start = subject . length - suffix . length ; if ( start < 0 ) { return false ; } for ( int i = start ; i < subject . length ; i ++ ) { if ( subject [ i ] != suffix [ i - start ] ) { return false ; } } return true ; |
public class ParametricFactorGraph { /** * Accumulates sufficient statistics ( in { @ code statistics } ) for
* estimating a model from { @ code this } family based on a point
* distribution at { @ code assignment } . { @ code count } is the number
* of times that { @ code assignment } has been observed in the
... | incrementSufficientStatistics ( statistics , currentParameters , FactorMarginalSet . fromAssignment ( variables , assignment , 1.0 ) , count ) ; |
public class FnObject { /** * Determines whether the result of executing the specified function
* on the target object and the specified object parameter are NOT equal
* by calling the < tt > equals < / tt > method .
* @ param object the object to compare to the target
* @ return false if both objects are equal... | return FnFunc . chain ( by , notEq ( object ) ) ; |
public class TimestampUtils { /** * Returns the SQL Timestamp object matching the given bytes with { @ link Oid # TIMESTAMP } or
* { @ link Oid # TIMESTAMPTZ } .
* @ param tz The timezone used when received data is { @ link Oid # TIMESTAMP } , ignored if data
* already contains { @ link Oid # TIMESTAMPTZ } .
* ... | ParsedBinaryTimestamp parsedTimestamp = this . toParsedTimestampBin ( tz , bytes , timestamptz ) ; if ( parsedTimestamp . infinity == Infinity . POSITIVE ) { return new Timestamp ( PGStatement . DATE_POSITIVE_INFINITY ) ; } else if ( parsedTimestamp . infinity == Infinity . NEGATIVE ) { return new Timestamp ( PGStateme... |
public class RestApiClient { /** * Update chat room .
* @ param chatRoom
* the chat room
* @ return the response */
public Response updateChatRoom ( MUCRoomEntity chatRoom ) { } } | return restClient . put ( "chatrooms/" + chatRoom . getRoomName ( ) , chatRoom , new HashMap < String , String > ( ) ) ; |
public class CommonExpectations { /** * Sets expectations that will check :
* < ol >
* < li > 200 status code in the response for the specified test action
* < li > Response title is equivalent to expected login page title
* < / ol > */
public static Expectations successfullyReachedLoginPage ( String testAction... | Expectations expectations = new Expectations ( ) ; expectations . addSuccessStatusCodesForActions ( new String [ ] { testAction } ) ; expectations . addExpectation ( new ResponseTitleExpectation ( testAction , Constants . STRING_EQUALS , Constants . FORM_LOGIN_TITLE , "Title of page returned during test step " + testAc... |
public class AmazonEC2Client { /** * Creates a VPC with the specified IPv4 CIDR block . The smallest VPC you can create uses a / 28 netmask ( 16 IPv4
* addresses ) , and the largest uses a / 16 netmask ( 65,536 IPv4 addresses ) . For more information about how large to
* make your VPC , see < a href = " https : / /... | request = beforeClientExecution ( request ) ; return executeCreateVpc ( request ) ; |
public class CacheManager { /** * Lookup the most suitable CacheManager available .
* @ return CacheManager . */
public static Optional < CacheManager > lookup ( ) { } } | CacheManager manager = lookup . lookup ( CacheManager . class ) ; if ( manager != null ) { return Optional . of ( manager ) ; } else { return Optional . absent ( ) ; } |
public class DCacheBase { /** * This is a helper method to remove invalidation listener for all entries . */
public synchronized boolean removeInvalidationListener ( InvalidationListener listener ) { } } | if ( bEnableListener && listener != null ) { eventSource . removeListener ( listener ) ; return true ; } return false ; |
public class PluginAwareResourceBundleMessageSource { /** * Get a PropertiesHolder that contains the actually visible properties
* for a Locale , after merging all specified resource bundles .
* Either fetches the holder from the cache or freshly loads it .
* < p > Only used when caching resource bundle contents ... | return CacheEntry . getValue ( cachedMergedPluginProperties , locale , cacheMillis , new Callable < PropertiesHolder > ( ) { @ Override public PropertiesHolder call ( ) throws Exception { Properties mergedProps = new Properties ( ) ; PropertiesHolder mergedHolder = new PropertiesHolder ( mergedProps ) ; mergeBinaryPlug... |
public class AbstractEmbedderMojo { /** * Creates an instance of Embedder , either using
* { @ link # injectableEmbedderClass } ( if set ) or defaulting to
* { @ link # embedderClass } .
* @ return An Embedder */
protected Embedder newEmbedder ( ) { } } | Embedder embedder = null ; EmbedderClassLoader classLoader = classLoader ( ) ; if ( injectableEmbedderClass != null ) { embedder = classLoader . newInstance ( InjectableEmbedder . class , injectableEmbedderClass ) . injectedEmbedder ( ) ; } else { embedder = classLoader . newInstance ( Embedder . class , embedderClass ... |
public class BELUtilities { /** * Returns { @ code true } if no null arguments are provided , { @ code false }
* otherwise .
* @ param objects Objects , may be null
* @ return boolean */
public static boolean noNulls ( final Object ... objects ) { } } | if ( objects == null ) return false ; for ( final Object object : objects ) { if ( object == null ) return false ; } return true ; |
public class TargetPerspectiveEditor { /** * View callbacks */
public void onGroupSelected ( String id ) { } } | navGroupId = id ; updateNavGroups ( ) ; if ( onUpdateCommand != null ) { onUpdateCommand . execute ( ) ; } |
public class Dcs_fkeep { /** * Drops entries from a sparse matrix ;
* @ param A
* column - compressed matrix
* @ param fkeep
* drop aij if fkeep . fkeep ( i , j , aij , other ) is false
* @ param other
* optional parameter to fkeep
* @ return nz , new number of entries in A , - 1 on error */
public static... | int j , p , nz = 0 , n , Ap [ ] , Ai [ ] ; double Ax [ ] ; if ( ! Dcs_util . CS_CSC ( A ) ) return ( - 1 ) ; /* check inputs */
n = A . n ; Ap = A . p ; Ai = A . i ; Ax = A . x ; for ( j = 0 ; j < n ; j ++ ) { p = Ap [ j ] ; /* get current location of col j */
Ap [ j ] = nz ; /* record new location of col j */
for ( ; ... |
public class AbstractProcessHandler { /** * Gets the PID for the SeLion - Grid ( main ) process
* @ return the PID as an int
* @ throws ProcessHandlerException */
protected int getCurrentProcessID ( ) throws ProcessHandlerException { } } | int pid ; // Not ideal but using JNA failed on RHEL5.
RuntimeMXBean runtime = ManagementFactory . getRuntimeMXBean ( ) ; Field jvm = null ; try { jvm = runtime . getClass ( ) . getDeclaredField ( "jvm" ) ; jvm . setAccessible ( true ) ; VMManagement mgmt = ( VMManagement ) jvm . get ( runtime ) ; Method pid_method = mg... |
public class ClassUtils { /** * Determine the name of the package of the given class ,
* e . g . " java . lang " for the { @ code java . lang . String } class .
* @ param clazz the class
* @ return the package name , or the empty String if the class
* is defined in the default package */
public static String ge... | Assert . notNull ( clazz , "Class must not be null" ) ; return getPackageName ( clazz . getName ( ) ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link AbstractTextureParameterizationType } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link AbstractText... | return new JAXBElement < AbstractTextureParameterizationType > ( __TextureParameterization_QNAME , AbstractTextureParameterizationType . class , null , value ) ; |
public class BitsyElement { /** * WARNING : THERE IS ONE MORE COPY OF THIS CODE IN VERTEX */
@ Override public < T > Property < T > property ( String key ) { } } | T value = value ( key ) ; if ( value == null ) { return Property . < T > empty ( ) ; } else { return new BitsyProperty < T > ( this , key , value ) ; } |
public class DevicesManagementApi { /** * Create a new task for one or more devices
* Create a new task for one or more devices
* @ param taskPayload Task object to be created ( required )
* @ return ApiResponse & lt ; TaskEnvelope & gt ;
* @ throws ApiException If fail to call the API , e . g . server error or... | com . squareup . okhttp . Call call = createTasksValidateBeforeCall ( taskPayload , null , null ) ; Type localVarReturnType = new TypeToken < TaskEnvelope > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; |
public class ValidationMatcherRegistry { /** * Get library for validationMatcher prefix .
* @ param validationMatcherPrefix to be searched for
* @ return ValidationMatcherLibrary instance */
public ValidationMatcherLibrary getLibraryForPrefix ( String validationMatcherPrefix ) { } } | if ( validationMatcherLibraries != null ) { for ( ValidationMatcherLibrary validationMatcherLibrary : validationMatcherLibraries ) { if ( validationMatcherLibrary . getPrefix ( ) . equals ( validationMatcherPrefix ) ) { return validationMatcherLibrary ; } } } throw new NoSuchValidationMatcherLibraryException ( "Can not... |
public class ReloadablePropertiesBase { /** * 通过listener去通知 reload
* @ param oldProperties */
protected void notifyPropertiesChanged ( Properties oldProperties ) { } } | PropertiesReloadedEvent event = new PropertiesReloadedEvent ( this , oldProperties ) ; for ( IReloadablePropertiesListener listener : listeners ) { listener . propertiesReloaded ( event ) ; } |
public class DrpcTridentCoodinator { /** * { @ inheritDoc } */
@ Override public Object initializeTransaction ( long txid , Object prevMetadata , Object currMetadata ) { } } | if ( logger . isDebugEnabled ( ) == true ) { String logFormat = "initializeTransaction : txid={0}, prevMetadata={1}, currMetadata={2}" ; logger . debug ( MessageFormat . format ( logFormat , txid , prevMetadata , currMetadata ) ) ; } return null ; |
public class BinaryJedis { /** * Set a timeout on the specified key . After the timeout the key will be automatically deleted by
* the server . A key with an associated timeout is said to be volatile in Redis terminology .
* Volatile keys are stored on disk like the other keys , the timeout is persistent too like a... | checkIsInMultiOrPipeline ( ) ; client . expire ( key , seconds ) ; return client . getIntegerReply ( ) ; |
public class DeleteChannelRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteChannelRequest deleteChannelRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteChannelRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteChannelRequest . getChannelName ( ) , CHANNELNAME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " ... |
public class ChainableDecryptor { /** * { @ inheritDoc } */
@ Override public T decrypt ( final T encypted ) throws Exception { } } | T result = encypted ; for ( final Decryptor < T , T > encryptor : decryptors ) { result = encryptor . decrypt ( result ) ; } return result ; |
public class CCEXAdapters { /** * Adapts a org . knowm . xchange . ccex . api . model . OrderBook to a OrderBook Object
* @ param currencyPair ( e . g . BTC / USD )
* @ return The C - Cex OrderBook */
public static OrderBook adaptOrderBook ( CCEXGetorderbook ccexOrderBook , CurrencyPair currencyPair ) { } } | List < LimitOrder > asks = createOrders ( currencyPair , Order . OrderType . ASK , ccexOrderBook . getAsks ( ) ) ; List < LimitOrder > bids = createOrders ( currencyPair , Order . OrderType . BID , ccexOrderBook . getBids ( ) ) ; Date date = new Date ( ) ; return new OrderBook ( date , asks , bids ) ; |
public class TPCHQuery3 { public static void main ( String [ ] args ) throws Exception { } } | if ( ! parseParameters ( args ) ) { return ; } final ExecutionEnvironment env = ExecutionEnvironment . getExecutionEnvironment ( ) ; // get input data
DataSet < Lineitem > li = getLineitemDataSet ( env ) ; DataSet < Order > or = getOrdersDataSet ( env ) ; DataSet < Customer > cust = getCustomerDataSet ( env ) ; // Filt... |
public class TerminalManager { /** * Returns a card reader that has a card in it .
* Asks for card insertion , if the system only has a single reader .
* @ return a CardTerminal containing a card
* @ throws CardException if no suitable reader is found . */
public static CardTerminal getTheReader ( String spec ) t... | try { String msg = "This application expects one and only one card reader (with an inserted card)" ; TerminalFactory tf = getTerminalFactory ( spec ) ; CardTerminals tl = tf . terminals ( ) ; List < CardTerminal > list = tl . list ( State . CARD_PRESENT ) ; if ( list . size ( ) > 1 ) { throw new CardException ( msg ) ;... |
public class Tesseract1 { /** * A wrapper for { @ link # setImage ( int , int , ByteBuffer , Rectangle , int ) } .
* @ param image a rendered image
* @ param rect region of interest
* @ throws java . io . IOException */
protected void setImage ( RenderedImage image , Rectangle rect ) throws IOException { } } | ByteBuffer buff = ImageIOHelper . getImageByteBuffer ( image ) ; int bpp ; DataBuffer dbuff = image . getData ( new Rectangle ( 1 , 1 ) ) . getDataBuffer ( ) ; if ( dbuff instanceof DataBufferByte ) { bpp = image . getColorModel ( ) . getPixelSize ( ) ; } else { bpp = 8 ; // BufferedImage . TYPE _ BYTE _ GRAY image
} s... |
public class ManagedClustersInner { /** * Reset AAD Profile of a managed cluster .
* Update the AAD Profile for a managed cluster .
* @ param resourceGroupName The name of the resource group .
* @ param resourceName The name of the managed cluster resource .
* @ param parameters Parameters supplied to the Reset... | return ServiceFuture . fromResponse ( resetAADProfileWithServiceResponseAsync ( resourceGroupName , resourceName , parameters ) , serviceCallback ) ; |
public class AwsSecurityFindingFilters { /** * The identifier of the VPC in which the instance was launched .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setResourceAwsEc2InstanceVpcId ( java . util . Collection ) } or
* { @ link # withResourceAwsEc2Ins... | if ( this . resourceAwsEc2InstanceVpcId == null ) { setResourceAwsEc2InstanceVpcId ( new java . util . ArrayList < StringFilter > ( resourceAwsEc2InstanceVpcId . length ) ) ; } for ( StringFilter ele : resourceAwsEc2InstanceVpcId ) { this . resourceAwsEc2InstanceVpcId . add ( ele ) ; } return this ; |
public class Slices { /** * Creates a slice over the specified array range .
* @ param offset the array position at which the slice begins
* @ param length the number of array positions to include in the slice */
public static Slice wrappedDoubleArray ( double [ ] array , int offset , int length ) { } } | if ( length == 0 ) { return EMPTY_SLICE ; } return new Slice ( array , offset , length ) ; |
public class CPInstanceUtil { /** * Returns all the cp instances where uuid = & # 63 ; and companyId = & # 63 ; .
* @ param uuid the uuid
* @ param companyId the company ID
* @ return the matching cp instances */
public static List < CPInstance > findByUuid_C ( String uuid , long companyId ) { } } | return getPersistence ( ) . findByUuid_C ( uuid , companyId ) ; |
public class IPAddressDivision { /** * Returns the number of consecutive trailing one or zero bits .
* If network is true , returns the number of consecutive trailing zero bits .
* Otherwise , returns the number of consecutive trailing one bits .
* This method applies only to the lower value of the range if this ... | if ( network ) { // trailing zeros
return Long . numberOfTrailingZeros ( getDivisionValue ( ) | ( ~ 0L << getBitCount ( ) ) ) ; } // trailing ones
return Long . numberOfTrailingZeros ( ~ getDivisionValue ( ) ) ; |
public class LogNormalDistribution { /** * Probability density function of the normal distribution .
* < pre >
* 1 / ( SQRT ( 2 * pi ) * sigma * x ) * e ^ ( - log ( x - mu ) ^ 2/2sigma ^ 2)
* < / pre >
* @ param x The value .
* @ param mu The mean .
* @ param sigma The standard deviation .
* @ return PDF ... | if ( x <= 0. ) { return 0. ; } final double xrel = ( FastMath . log ( x ) - mu ) / sigma ; return 1 / ( MathUtil . SQRTTWOPI * sigma * x ) * FastMath . exp ( - .5 * xrel * xrel ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link StringOrRefType } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link StringOrRefType } { @ code > } *... | return new JAXBElement < StringOrRefType > ( _Description_QNAME , StringOrRefType . class , null , value ) ; |
public class DescribeConfigurationAggregatorSourcesStatusRequest { /** * Filters the status type .
* < ul >
* < li >
* Valid value FAILED indicates errors while moving data .
* < / li >
* < li >
* Valid value SUCCEEDED indicates the data was successfully moved .
* < / li >
* < li >
* Valid value OUTDA... | com . amazonaws . internal . SdkInternalList < String > updateStatusCopy = new com . amazonaws . internal . SdkInternalList < String > ( updateStatus . length ) ; for ( AggregatedSourceStatusType value : updateStatus ) { updateStatusCopy . add ( value . toString ( ) ) ; } if ( getUpdateStatus ( ) == null ) { setUpdateS... |
public class RegexGatewayPersonAttributeDao { /** * / * ( non - Javadoc )
* @ see org . jasig . services . persondir . IPersonAttributeDao # getAvailableQueryAttributes ( ) */
@ JsonIgnore @ Override public Set < String > getAvailableQueryAttributes ( final IPersonAttributeDaoFilter filter ) { } } | return this . targetPersonAttributeDao . getAvailableQueryAttributes ( filter ) ; |
public class ThemeManager { /** * Synonym for { @ link # cloneTheme ( Intent , Intent , boolean ) } with third arg -
* false
* @ see # cloneTheme ( Intent , Intent , boolean ) */
public static void cloneTheme ( Intent sourceIntent , Intent intent ) { } } | ThemeManager . cloneTheme ( sourceIntent , intent , false ) ; |
public class BucketsBitmapPool { /** * Determine if this bitmap is reusable ( i . e . ) if subsequent { @ link # get ( int ) } requests can
* use this value .
* The bitmap is reusable if
* - it has not already been recycled AND
* - it is mutable
* @ param value the value to test for reusability
* @ return t... | Preconditions . checkNotNull ( value ) ; return ! value . isRecycled ( ) && value . isMutable ( ) ; |
public class ForwardingGridDialect { /** * @ see org . hibernate . ogm . dialect . queryable . spi . QueryableGridDialect */
@ Override public ClosableIterator < Tuple > executeBackendQuery ( BackendQuery < T > query , QueryParameters queryParameters , TupleContext tupleContext ) { } } | return queryableGridDialect . executeBackendQuery ( query , queryParameters , tupleContext ) ; |
public class ContainerMetrics { /** * Get a { @ link ContainerMetrics } instance given the { @ link State } of a container , the name of the application the
* container belongs to , and the workerId of the container .
* @ param containerState the { @ link State } of the container
* @ param applicationName a { @ l... | return ( ContainerMetrics ) GOBBLIN_METRICS_REGISTRY . getOrDefault ( name ( workerId ) , new Callable < GobblinMetrics > ( ) { @ Override public GobblinMetrics call ( ) throws Exception { return new ContainerMetrics ( containerState , applicationName , workerId ) ; } } ) ; |
public class GreenPepperXmlRpcServer { /** * { @ inheritDoc } */
public Vector < Object > createSpecification ( Vector < Object > specificationParams ) { } } | try { Specification specification = XmlRpcDataMarshaller . toSpecification ( specificationParams ) ; specification = service . createSpecification ( specification ) ; log . debug ( "Created specification: " + specification . getName ( ) ) ; return specification . marshallize ( ) ; } catch ( Exception e ) { return error... |
public class BinaryString { /** * Returns a substring of this .
* @ param start the position of first code point
* @ param until the position after last code point , exclusive . */
public BinaryString substring ( final int start , final int until ) { } } | ensureMaterialized ( ) ; if ( until <= start || start >= sizeInBytes ) { return EMPTY_UTF8 ; } if ( inFirstSegment ( ) ) { MemorySegment segment = segments [ 0 ] ; int i = 0 ; int c = 0 ; while ( i < sizeInBytes && c < start ) { i += numBytesForFirstByte ( segment . get ( i + offset ) ) ; c += 1 ; } int j = i ; while (... |
public class UserHandlerImpl { /** * Remove user and related membership entities . */
private User removeUser ( Session session , String userName , boolean broadcast ) throws Exception { } } | Node userNode = utils . getUserNode ( session , userName ) ; User user = readUser ( userNode ) ; if ( broadcast ) { preDelete ( user ) ; } removeMemberships ( userNode , broadcast ) ; userNode . remove ( ) ; session . save ( ) ; removeFromCache ( userName ) ; removeAllRelatedFromCache ( userName ) ; if ( broadcast ) { ... |
public class SARLTypeComputer { /** * Compute the type of a break expression .
* @ param object the expression .
* @ param state the state of the type resolver . */
protected void _computeTypes ( SarlBreakExpression object , ITypeComputationState state ) { } } | final LightweightTypeReference primitiveVoid = getPrimitiveVoid ( state ) ; state . acceptActualType ( primitiveVoid ) ; |
public class CommandLineArgumentParser { /** * Read a list file and return a list of the collection values contained in it
* Any line that starts with { @ link CommandLineArgumentParser # ARGUMENT _ FILE _ COMMENT } is ignored .
* @ param collectionListFile a text file containing list values
* @ return false if a... | try ( BufferedReader reader = new BufferedReader ( new FileReader ( collectionListFile ) ) ) { return reader . lines ( ) . map ( String :: trim ) . filter ( line -> ! line . isEmpty ( ) ) . filter ( line -> ! line . startsWith ( ARGUMENT_FILE_COMMENT ) ) . collect ( Collectors . toList ( ) ) ; } catch ( final IOExcepti... |
public class SampleSetEQOracle { /** * Adds words to the sample set . The expected output is determined by means of the specified membership oracle .
* @ param oracle
* the membership oracle used to determine the expected output
* @ param words
* the words to add
* @ return { @ code this } , to enable chained... | if ( words . isEmpty ( ) ) { return this ; } List < DefaultQuery < I , D > > newQueries = new ArrayList < > ( words . size ( ) ) ; for ( Word < I > w : words ) { newQueries . add ( new DefaultQuery < > ( w ) ) ; } oracle . processQueries ( newQueries ) ; testQueries . addAll ( newQueries ) ; return this ; |
public class StreamUtils { /** * Returns the stream contents as an UTF - 8 encoded string
* @ param is input stream
* @ return string contents
* @ throws java . io . IOException in any . SocketTimeout in example */
public static String getStreamContents ( InputStream is ) throws IOException { } } | Preconditions . checkNotNull ( is , "Cannot get String from a null object" ) ; final char [ ] buffer = new char [ 0x10000 ] ; final StringBuilder out = new StringBuilder ( ) ; try ( Reader in = new InputStreamReader ( is , "UTF-8" ) ) { int read ; do { read = in . read ( buffer , 0 , buffer . length ) ; if ( read > 0 )... |
public class CompilerInput { /** * Generates the DependencyInfo by scanning and / or parsing the file .
* This is called lazily by getDependencyInfo , and does not take into
* account any extra requires / provides added by { @ link # addRequire }
* or { @ link # addProvide } . */
private DependencyInfo generateDe... | Preconditions . checkNotNull ( compiler , "Expected setCompiler to be called first: %s" , this ) ; Preconditions . checkNotNull ( compiler . getErrorManager ( ) , "Expected compiler to call an error manager: %s" , this ) ; // If the code is a JsAst , then it was originally JS code , and is compatible with the
// regex ... |
public class WebApplicationContext { private void resolveWebApp ( ) throws IOException { } } | if ( _webApp == null && _war != null && _war . length ( ) > 0 ) { // Set dir or WAR
_webApp = Resource . newResource ( _war ) ; // Accept aliases for WAR files
if ( _webApp . getAlias ( ) != null ) { log . info ( _webApp + " anti-aliased to " + _webApp . getAlias ( ) ) ; _webApp = Resource . newResource ( _webApp . get... |
public class MathUtil { /** * Replies the chord of the specified angle .
* < p > < code > crd ( a ) = 2 sin ( a / 2 ) < / code >
* < p > < img src = " . / doc - files / chord . png " alt = " [ Chord function ] " >
* @ param angle the angle .
* @ return the chord of the angle . */
@ Pure @ Inline ( value = "2.*M... | Math . class } ) public static double crd ( double angle ) { return 2. * Math . sin ( angle / 2. ) ; |
public class PcapPktHdr { /** * Copy this instance .
* @ return returns new { @ link PcapPktHdr } instance . */
public PcapPktHdr copy ( ) { } } | PcapPktHdr pktHdr = new PcapPktHdr ( ) ; pktHdr . caplen = this . caplen ; pktHdr . len = this . len ; pktHdr . tv_sec = this . tv_sec ; pktHdr . tv_usec = this . tv_usec ; return pktHdr ; |
public class BurstableConstructor { /** * Returns all fields of any visibility on type and all of type ' s superclasses .
* Aka { @ link Class # getFields ( ) } , but returns all fields , not just public ones . */
private static Collection < Field > getAllFields ( Class < ? > type ) { } } | final Collection < Field > allFields = new ArrayList < > ( ) ; while ( type != Object . class ) { Collections . addAll ( allFields , type . getDeclaredFields ( ) ) ; type = type . getSuperclass ( ) ; } return Collections . unmodifiableCollection ( allFields ) ; |
public class PipelineApi { /** * Get a list of pipelines in a project .
* < pre > < code > GitLab Endpoint : GET / projects / : id / pipelines < / code > < / pre >
* @ param projectIdOrPath the project in the form of an Integer ( ID ) , String ( path ) , or Project instance
* @ param scope the scope of pipelines ... | return ( getPipelines ( projectIdOrPath , scope , status , ref , yamlErrors , name , username , orderBy , sort , getDefaultPerPage ( ) ) . all ( ) ) ; |
public class BagObject { /** * Returns an array of the keys contained in the underlying container . it does not enumerate the
* container and all of its children .
* @ return The keys in the underlying map as an array of Strings . */
public String [ ] keys ( ) { } } | String [ ] keys = new String [ count ] ; for ( int i = 0 ; i < count ; ++ i ) { keys [ i ] = container [ i ] . key ; } return keys ; |
public class CPRuleAssetCategoryRelPersistenceImpl { /** * Returns the first cp rule asset category rel in the ordered set where assetCategoryId = & # 63 ; .
* @ param assetCategoryId the asset category ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ r... | List < CPRuleAssetCategoryRel > list = findByAssetCategoryId ( assetCategoryId , 0 , 1 , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; |
public class Combination { /** * 全组合
* @ return 全排列结果 */
public List < String [ ] > selectAll ( ) { } } | final List < String [ ] > result = new ArrayList < > ( ( int ) countAll ( this . datas . length ) ) ; for ( int i = 1 ; i <= this . datas . length ; i ++ ) { result . addAll ( select ( i ) ) ; } return result ; |
public class SignUpRequest { /** * An array of name - value pairs representing user attributes .
* For custom attributes , you must prepend the < code > custom : < / code > prefix to the attribute name .
* @ param userAttributes
* An array of name - value pairs representing user attributes . < / p >
* For custo... | if ( userAttributes == null ) { this . userAttributes = null ; return ; } this . userAttributes = new java . util . ArrayList < AttributeType > ( userAttributes ) ; |
public class CPOptionPersistenceImpl { /** * Returns the last cp option in the ordered set where groupId = & # 63 ; .
* @ param groupId the group ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return the last matching cp option , or < code > null < / ... | int count = countByGroupId ( groupId ) ; if ( count == 0 ) { return null ; } List < CPOption > list = findByGroupId ( groupId , count - 1 , count , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; |
public class Config { /** * Sets the map of scheduled executor configurations , mapped by config name .
* The config name may be a pattern with which the configuration will be
* obtained in the future .
* @ param scheduledExecutorConfigs the scheduled executor configuration
* map to set
* @ return this config... | this . scheduledExecutorConfigs . clear ( ) ; this . scheduledExecutorConfigs . putAll ( scheduledExecutorConfigs ) ; for ( Entry < String , ScheduledExecutorConfig > entry : scheduledExecutorConfigs . entrySet ( ) ) { entry . getValue ( ) . setName ( entry . getKey ( ) ) ; } return this ; |
public class DirectoryOperation { /** * Determine whether the directory operation contains an SftpFile
* @ param f
* @ return boolean */
public boolean containsFile ( SftpFile f ) { } } | return unchangedFiles . contains ( f ) || newFiles . contains ( f ) || updatedFiles . contains ( f ) || deletedFiles . contains ( f ) || recursedDirectories . contains ( f . getAbsolutePath ( ) ) || failedTransfers . containsKey ( f ) ; |
public class MigrateToExtensionSettings { /** * Gets the site links from a feed .
* @ return a map of feed item ID to SiteLinkFromFeed */
private static Map < Long , SiteLinkFromFeed > getSiteLinksFromFeed ( AdWordsServicesInterface adWordsServices , AdWordsSession session , Feed feed ) throws RemoteException { } } | // Retrieve the feed ' s attribute mapping .
Multimap < Long , Integer > feedMappings = getFeedMapping ( adWordsServices , session , feed , PLACEHOLDER_SITELINKS ) ; Map < Long , SiteLinkFromFeed > feedItems = Maps . newHashMap ( ) ; for ( FeedItem feedItem : getFeedItems ( adWordsServices , session , feed ) ) { SiteLi... |
public class VFS { /** * Initialize VFS protocol handlers package property . */
private static void init ( ) { } } | String pkgs = System . getProperty ( "java.protocol.handler.pkgs" ) ; if ( pkgs == null || pkgs . trim ( ) . length ( ) == 0 ) { pkgs = "org.jboss.net.protocol|org.jboss.vfs.protocol" ; System . setProperty ( "java.protocol.handler.pkgs" , pkgs ) ; } else if ( pkgs . contains ( "org.jboss.vfs.protocol" ) == false ) { i... |
public class SCMController { /** * Adding a change log file filter */
@ RequestMapping ( value = "changeLog/fileFilter/{projectId}/create" , method = RequestMethod . POST ) public Resource < SCMFileChangeFilter > createChangeLogFileFilter ( @ PathVariable ID projectId , @ RequestBody SCMFileChangeFilter filter ) { } } | securityService . checkProjectFunction ( projectId . get ( ) , ProjectConfig . class ) ; return securityService . asAdmin ( ( ) -> { // Loads the project
Project project = structureService . getProject ( projectId ) ; // Gets the store
SCMFileChangeFilters config = entityDataService . retrieve ( project , SCMFileChange... |
public class MaybeReachingVariableUse { /** * Sets the variable for the given name to the node value in the upward
* exposed lattice . Do nothing if the variable name is one of the escaped
* variable . */
private void addToUseIfLocal ( String name , Node node , ReachingUses use ) { } } | Var var = allVarsInFn . get ( name ) ; if ( var == null ) { return ; } if ( ! escaped . contains ( var ) ) { use . mayUseMap . put ( var , node ) ; } |
public class FNIImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public boolean eIsSet ( int featureID ) { } } | switch ( featureID ) { case AfplibPackage . FNI__RG : return rg != null && ! rg . isEmpty ( ) ; } return super . eIsSet ( featureID ) ; |
public class AsyncHttpClientFactoryEmbed { /** * Disable certificate verification .
* @ throws KeyManagementException
* the key management exception
* @ throws NoSuchAlgorithmException
* the no such algorithm exception */
private void disableCertificateVerification ( ) throws KeyManagementException , NoSuchAlgo... | // Create a trust manager that does not validate certificate chains
final TrustManager [ ] trustAllCerts = new TrustManager [ ] { new CustomTrustManager ( ) } ; // Install the all - trusting trust manager
final SSLContext sslContext = SSLContext . getInstance ( "SSL" ) ; sslContext . init ( null , trustAllCerts , new S... |
public class CmsBasicDialog { /** * Display the resource indos panel with panel message . < p >
* @ param resources to show info for
* @ param messageKey of the panel */
public void displayResourceInfo ( List < CmsResource > resources , String messageKey ) { } } | m_infoResources = Lists . newArrayList ( resources ) ; if ( m_infoComponent != null ) { m_mainPanel . removeComponent ( m_infoComponent ) ; m_infoComponent = null ; } if ( ( resources != null ) && ! resources . isEmpty ( ) ) { if ( resources . size ( ) == 1 ) { m_infoComponent = new CmsResourceInfo ( resources . get ( ... |
public class WebUtils { /** * 是否内网调用
* @ param request
* @ return */
public static boolean isInternalRequest ( HttpServletRequest request ) { } } | if ( Boolean . parseBoolean ( request . getHeader ( WebConstants . HEADER_INTERNAL_REQUEST ) ) ) { return true ; } boolean isInner = IpUtils . isInnerIp ( request . getServerName ( ) ) ; String forwardHost = request . getHeader ( WebConstants . HEADER_FORWARDED_HOST ) ; // 来源于网关
if ( StringUtils . isNotBlank ( forwardH... |
public class Event { /** * setter for themes _ protein - sets
* @ generated
* @ param v value to set into the feature */
public void setThemes_protein ( FSArray v ) { } } | if ( Event_Type . featOkTst && ( ( Event_Type ) jcasType ) . casFeat_themes_protein == null ) jcasType . jcas . throwFeatMissing ( "themes_protein" , "ch.epfl.bbp.uima.genia.Event" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Event_Type ) jcasType ) . casFeatCode_themes_protein , jcasType . ll_cas . ll_getFSRef ... |
public class CmsProjectDriver { /** * Creates a < code > CmsPublishJobInfoBean < / code > from a result set . < p >
* @ param res the result set
* @ return an initialized < code > CmsPublishJobInfoBean < / code >
* @ throws SQLException if something goes wrong */
protected CmsPublishJobInfoBean createPublishJobIn... | return new CmsPublishJobInfoBean ( new CmsUUID ( res . getString ( "HISTORY_ID" ) ) , new CmsUUID ( res . getString ( "PROJECT_ID" ) ) , res . getString ( "PROJECT_NAME" ) , new CmsUUID ( res . getString ( "USER_ID" ) ) , res . getString ( "PUBLISH_LOCALE" ) , res . getInt ( "PUBLISH_FLAGS" ) , res . getInt ( "RESOURCE... |
public class LocalForage { /** * Loads the offline library . You normally never have to do this manually */
public static void load ( ) { } } | if ( ! isLoaded ( ) ) { ScriptInjector . fromString ( LocalForageResources . INSTANCE . js ( ) . getText ( ) ) . setWindow ( ScriptInjector . TOP_WINDOW ) . inject ( ) ; } |
public class DateFormat { /** * Gets the date / time formatter with the default formatting style
* for the default locale .
* @ return a date / time formatter . */
public final static DateFormat getDateTimeInstance ( ) { } } | return get ( DEFAULT , DEFAULT , 3 , Locale . getDefault ( Locale . Category . FORMAT ) ) ; |
public class CollectionUtils { /** * Returns the index of the first occurrence in the list of the specified
* object , using object identity ( = = ) not equality as the criterion for object
* presence . If this list does not contain the element , return - 1.
* @ param l
* The { @ link List } to find the object ... | int i = 0 ; for ( Object o1 : l ) { if ( o == o1 ) return i ; else i ++ ; } return - 1 ; |
public class DateTimeExpression { /** * Create a ISO yearweek expression
* @ return year week */
public NumberExpression < Integer > yearWeek ( ) { } } | if ( yearWeek == null ) { yearWeek = Expressions . numberOperation ( Integer . class , Ops . DateTimeOps . YEAR_WEEK , mixin ) ; } return yearWeek ; |
public class Utils { /** * Reads characters until any ' end ' character is encountered .
* @ param out
* The StringBuilder to write to .
* @ param in
* The Input String .
* @ param start
* Starting position .
* @ param end
* End characters .
* @ return The new position or - 1 if no ' end ' char was fo... | int pos = start ; while ( pos < in . length ( ) ) { final char ch = in . charAt ( pos ) ; if ( ch == '\\' && pos + 1 < in . length ( ) ) { pos = escape ( out , in . charAt ( pos + 1 ) , pos ) ; } else { boolean endReached = false ; for ( int n = 0 ; n < end . length ; n ++ ) { if ( ch == end [ n ] ) { endReached = true... |
public class TwitterImpl { /** * / * Trends Resources */
@ Override public Trends getPlaceTrends ( int woeid ) throws TwitterException { } } | return factory . createTrends ( get ( conf . getRestBaseURL ( ) + "trends/place.json?id=" + woeid ) ) ; |
public class BootstrapCircleThumbnail { /** * This method is called when the Circle Image needs to be recreated due to changes in size etc .
* A Paint object uses a BitmapShader to draw a center - cropped , circular image onto the View
* Canvas . A Matrix on the BitmapShader scales the original Bitmap to match the ... | float viewWidth = getWidth ( ) ; float viewHeight = getHeight ( ) ; if ( ( int ) viewWidth <= 0 || ( int ) viewHeight <= 0 ) { return ; } if ( sourceBitmap != null ) { BitmapShader imageShader = new BitmapShader ( sourceBitmap , Shader . TileMode . CLAMP , Shader . TileMode . CLAMP ) ; imagePaint . setShader ( imageSha... |
public class DescribeDirectoriesResult { /** * The list of < a > DirectoryDescription < / a > objects that were retrieved .
* It is possible that this list contains less than the number of items specified in the < code > Limit < / code > member
* of the request . This occurs if there are less than the requested num... | if ( directoryDescriptions == null ) { this . directoryDescriptions = null ; return ; } this . directoryDescriptions = new com . amazonaws . internal . SdkInternalList < DirectoryDescription > ( directoryDescriptions ) ; |
public class CreateJobQueueRequest { /** * The set of compute environments mapped to a job queue and their order relative to each other . The job scheduler
* uses this parameter to determine which compute environment should execute a given job . Compute environments must
* be in the < code > VALID < / code > state ... | if ( computeEnvironmentOrder == null ) { this . computeEnvironmentOrder = null ; return ; } this . computeEnvironmentOrder = new java . util . ArrayList < ComputeEnvironmentOrder > ( computeEnvironmentOrder ) ; |
public class ReplaceTopicRuleRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ReplaceTopicRuleRequest replaceTopicRuleRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( replaceTopicRuleRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( replaceTopicRuleRequest . getRuleName ( ) , RULENAME_BINDING ) ; protocolMarshaller . marshall ( replaceTopicRuleRequest . getTopicRulePayload ( ) , TOPICRULEPAY... |
public class CreateUploadRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateUploadRequest createUploadRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createUploadRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createUploadRequest . getProjectArn ( ) , PROJECTARN_BINDING ) ; protocolMarshaller . marshall ( createUploadRequest . getName ( ) , NAME_BINDING ) ; protocolMarshal... |
public class OldBasicMidiConverter { /** * Returns the corresponding midi events for a tuplet . */
public MidiEvent [ ] getMidiEventsFor ( Tuplet tuplet , KeySignature key , long elapsedTime ) throws InvalidMidiDataException { } } | float totalTupletLength = tuplet . getTotalRelativeLength ( ) ; Vector tupletAsVector = tuplet . getNotesAsVector ( ) ; int notesNb = tupletAsVector . size ( ) ; MidiEvent [ ] events = new MidiEvent [ 3 * notesNb ] ; for ( int j = 0 ; j < tupletAsVector . size ( ) ; j ++ ) { Note note = null ; // to be fixed : this can... |
public class ExtendedClassPathClassLoader { /** * Retrieves resource as byte array from a directory or jar in the file system .
* @ param fileName
* @ param location
* @ return
* @ throws IOException */
private static byte [ ] getData ( String fileName , Object location ) throws IOException { } } | byte [ ] data ; if ( location instanceof String ) { data = FileSupport . getBinaryFromJar ( fileName , ( String ) location ) ; } else if ( location instanceof File ) { InputStream in = new FileInputStream ( ( File ) location ) ; data = StreamSupport . absorbInputStream ( in ) ; in . close ( ) ; } else { throw new NoCla... |
public class BlockHeartbeatPRequest { /** * < pre >
* * the map of added blocks on all tiers
* < / pre >
* < code > map & lt ; string , . alluxio . grpc . block . TierList & gt ; addedBlocksOnTiers = 4 ; < / code > */
public java . util . Map < java . lang . String , alluxio . grpc . TierList > getAddedBlocksOnTi... | return internalGetAddedBlocksOnTiers ( ) . getMap ( ) ; |
public class CPDefinitionVirtualSettingServiceUtil { /** * NOTE FOR DEVELOPERS :
* Never modify this class directly . Add custom service methods to { @ link com . liferay . commerce . product . type . virtual . service . impl . CPDefinitionVirtualSettingServiceImpl } and rerun ServiceBuilder to regenerate this class ... | return getService ( ) . addCPDefinitionVirtualSetting ( className , classPK , fileEntryId , url , activationStatus , duration , maxUsages , useSample , sampleFileEntryId , sampleUrl , termsOfUseRequired , termsOfUseContentMap , termsOfUseJournalArticleResourcePrimKey , override , serviceContext ) ; |
public class SecureUtil { /** * 创建Sign算法对象 < br >
* 私钥和公钥同时为空时生成一对新的私钥和公钥 < br >
* 私钥和公钥可以单独传入一个 , 如此则只能使用此钥匙来做签名或验证
* @ param privateKey 私钥
* @ param publicKey 公钥
* @ return { @ link Sign }
* @ since 3.3.0 */
public static Sign sign ( SignAlgorithm algorithm , byte [ ] privateKey , byte [ ] publicKey ) { }... | return new Sign ( algorithm , privateKey , publicKey ) ; |
public class SearchView { /** * Handles the key down event for dealing with action keys .
* @ param keyCode This is the keycode of the typed key , and is the same value as
* found in the KeyEvent parameter .
* @ param event The complete event record for the typed key
* @ return true if the event was handled her... | if ( mSearchable == null ) { return false ; } // if it ' s an action specified by the searchable activity , launch the
// entered query with the action key
// TODO SearchableInfo . ActionKeyInfo actionKey = mSearchable . findActionKey ( keyCode ) ;
// TODO if ( ( actionKey ! = null ) & & ( actionKey . getQueryActionMsg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.