signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ElementHelper { /** * This is essentially an adjusted copy & paste from TinkerPop ' s ElementHelper class .
* The reason for copying it is so that we can determine the cardinality of a property key based on
* Titan ' s schema which is tied to this particular transaction and not the graph .
* @ param ... | if ( null == vertex ) throw Graph . Exceptions . argumentCanNotBeNull ( "vertex" ) ; for ( int i = 0 ; i < propertyKeyValues . length ; i = i + 2 ) { if ( ! propertyKeyValues [ i ] . equals ( T . id ) && ! propertyKeyValues [ i ] . equals ( T . label ) ) vertex . property ( ( String ) propertyKeyValues [ i ] , property... |
public class BeanPathProperties { /** * Each these path properties as fetch paths to the query .
* @ param each each process */
public void each ( Each < Props > each ) { } } | for ( Map . Entry < String , Props > entry : pathMap . entrySet ( ) ) { Props props = entry . getValue ( ) ; each . execute ( props ) ; } |
public class Utils { /** * Randomly chooses elements from the collection .
* @ param collection The collection .
* @ param n The number of elements to choose .
* @ param < T > The type of the elements .
* @ return A list with the chosen elements . */
public static < T > List < T > randomSample ( Collection < T ... | List < T > list = new ArrayList < T > ( collection ) ; List < T > sample = new ArrayList < T > ( n ) ; Random random = new Random ( ) ; while ( n > 0 && ! list . isEmpty ( ) ) { int index = random . nextInt ( list . size ( ) ) ; sample . add ( list . get ( index ) ) ; int indexLast = list . size ( ) - 1 ; T last = list... |
public class ExamplePnP { /** * Adds some really bad observations to the mix */
public void addOutliers ( List < Point2D3D > observations , int total ) { } } | int size = observations . size ( ) ; for ( int i = 0 ; i < total ; i ++ ) { // outliers will be created by adding lots of noise to real observations
Point2D3D p = observations . get ( rand . nextInt ( size ) ) ; Point2D3D o = new Point2D3D ( ) ; o . observation . set ( p . observation ) ; o . location . x = p . locatio... |
public class ExpandableRecyclerAdapter { /** * Notify any registered observers that the currently reflected { @ code itemCount }
* parents starting at { @ code parentPositionStart } have been newly inserted .
* The parents previously located at { @ code parentPositionStart } and beyond
* can now be found starting... | int initialFlatParentPosition ; if ( parentPositionStart < mParentList . size ( ) - itemCount ) { initialFlatParentPosition = getFlatParentPosition ( parentPositionStart ) ; } else { initialFlatParentPosition = mFlatItemList . size ( ) ; } int sizeChanged = 0 ; int flatParentPosition = initialFlatParentPosition ; int c... |
public class NewJFrame { /** * < / editor - fold > / / GEN - END : initComponents */
private void dateTimeFocusLost ( java . awt . event . FocusEvent evt ) { } } | // GEN - FIRST : event _ dateTimeFocusLost
String dateTime = jTextField4 . getText ( ) ; setDateTime ( dateTime ) ; |
public class Functions { /** * Runs encode base 64 function with arguments .
* @ return */
public static String encodeBase64 ( String content , Charset charset , TestContext context ) { } } | return new EncodeBase64Function ( ) . execute ( Arrays . asList ( content , charset . displayName ( ) ) , context ) ; |
public class AbstractCasWebflowEventResolver { /** * Resolve service from authentication request service .
* @ param context the context
* @ return the service */
protected Service resolveServiceFromAuthenticationRequest ( final RequestContext context ) { } } | val ctxService = WebUtils . getService ( context ) ; return resolveServiceFromAuthenticationRequest ( ctxService ) ; |
public class AbstractJpaStorage { /** * Get object of type T
* @ param organizationId org id
* @ param id identity
* @ param type class of type T
* @ return Instance of type T
* @ throws StorageException if a storage problem occurs while storing a bean */
public < T > T get ( String organizationId , String id... | T rval ; EntityManager entityManager = getActiveEntityManager ( ) ; try { OrganizationBean orgBean = entityManager . find ( OrganizationBean . class , organizationId ) ; Object key = new OrganizationBasedCompositeId ( orgBean , id ) ; rval = entityManager . find ( type , key ) ; } catch ( Throwable t ) { logger . error... |
public class FacetOptions { /** * Append { @ code facet . query }
* @ param query
* @ return */
public final FacetOptions addFacetQuery ( SolrDataQuery query ) { } } | Assert . notNull ( query , "Facet Query must not be null." ) ; this . facetQueries . add ( query ) ; return this ; |
public class MarvinImage { /** * Fills a rectangle in the image .
* @ param x rect � s start position in x - axis
* @ param y rect � s start positioj in y - axis
* @ param w rect � s width
* @ param h rect � s height
* @ param c rect � s color */
public void fillRect ( int x , int y , int w , int h , Color c ... | int color = c . getRGB ( ) ; for ( int i = x ; i < x + w ; i ++ ) { for ( int j = y ; j < y + h ; j ++ ) { setIntColor ( i , j , color ) ; } } |
public class ExecutionEngineJNI { /** * Delete the block with the given id from disk .
* @ param siteId The originating site id of the block to release
* @ param blockCounter The serial number of the block to release
* @ return True if the operation succeeded , and false otherwise */
public boolean releaseLargeTe... | LargeBlockTask task = LargeBlockTask . getReleaseTask ( new BlockId ( siteId , blockCounter ) ) ; return executeLargeBlockTaskSynchronously ( task ) ; |
public class LinearSearch { /** * Search for the maximum element in the array .
* @ param byteArray array that we are searching in .
* @ return the maximum element in the array . */
public static byte searchMax ( byte [ ] byteArray ) { } } | if ( byteArray . length == 0 ) { throw new IllegalArgumentException ( "The array you provided does not have any elements" ) ; } byte max = byteArray [ 0 ] ; for ( int i = 1 ; i < byteArray . length ; i ++ ) { if ( byteArray [ i ] > max ) { max = byteArray [ i ] ; } } return max ; |
public class ComputeRegionMeanColor { /** * Compute the average color for each region
* @ param image Input image
* @ param pixelToRegion Conversion between pixel to region index
* @ param regionMemberCount List which stores the number of members for each region
* @ param regionColor ( Output ) Storage for mean... | this . image = image ; // Initialize data structures
regionSums . resize ( regionColor . size ) ; for ( int i = 0 ; i < regionSums . size ; i ++ ) { float v [ ] = regionSums . get ( i ) ; for ( int j = 0 ; j < v . length ; j ++ ) { v [ j ] = 0 ; } } // Sum up the pixel values for each region
for ( int y = 0 ; y < image... |
public class ServiceRefType { /** * parse the name and address attributes defined in the element . */
@ Override public boolean handleAttribute ( DDParser parser , String nsURI , String localName , int index ) throws ParseException { } } | boolean result = false ; if ( nsURI != null ) { return result ; } if ( NAME_ATTRIBUTE_NAME . equals ( localName ) ) { name = parser . parseStringAttributeValue ( index ) ; result = true ; } else if ( COMPONENT_NAME_ATTRIBUTE_NAME . equals ( localName ) ) { componentName = parser . parseStringAttributeValue ( index ) ; ... |
public class FileHandlerUtil { /** * Converts all separators to the system separator .
* @ param path
* the path to be changed , null ignored
* @ return the updated path */
public static String separatorsToSystem ( String path ) { } } | if ( path == null ) { return null ; } if ( EnvUtil . isWindows ( ) ) { return separatorsToWindows ( path ) ; } else { return separatorsToUnix ( path ) ; } |
public class DatumWriterGenerator { /** * Generates method body for encoding simple schema type by calling corresponding write method in Encoder .
* @ param mg Method body generator
* @ param type Data type to encode
* @ param encodeMethod Name of the encode method to invoke on the given encoder .
* @ param val... | // encoder . writeXXX ( value ) ;
TypeToken < ? > encodeType = type ; mg . loadArg ( encoder ) ; mg . loadArg ( value ) ; if ( Primitives . isWrapperType ( encodeType . getRawType ( ) ) ) { encodeType = TypeToken . of ( Primitives . unwrap ( encodeType . getRawType ( ) ) ) ; mg . unbox ( Type . getType ( encodeType . g... |
public class CxxPlugin { /** * { @ inheritDoc } */
@ Override public void define ( Context context ) { } } | List < Object > l = new ArrayList < > ( ) ; // plugin elements
l . add ( CppLanguage . class ) ; l . add ( CxxDefaultProfile . class ) ; l . add ( CxxRuleRepository . class ) ; // reusable elements
l . addAll ( getSensorsImpl ( ) ) ; // properties elements
l . addAll ( generalProperties ( ) ) ; l . addAll ( codeAnalysi... |
public class DefaultBeanPropertyNameRenderer { /** * Renders a unqualified bean property string in the format :
* " parentProperty . myBeanProperty " like " ParentProperty . MyBeanProperty " .
* @ param qualifiedName
* @ return the formatted string */
public String renderQualifiedName ( String qualifiedName ) { }... | Assert . notNull ( qualifiedName , "No qualified name specified" ) ; StringBuffer sb = new StringBuffer ( qualifiedName . length ( ) + 5 ) ; char [ ] chars = qualifiedName . toCharArray ( ) ; sb . append ( Character . toUpperCase ( chars [ 0 ] ) ) ; boolean foundDot = false ; for ( int i = 1 ; i < chars . length ; i ++... |
public class PseudoClassSpecifierChecker { /** * { @ inheritDoc } */
@ Override public Collection < Node > check ( final Collection < Node > nodes ) { } } | Assert . notNull ( nodes , "nodes is null!" ) ; this . nodes = nodes ; this . result = new LinkedHashSet < Node > ( ) ; String value = specifier . getValue ( ) ; if ( "empty" . equals ( value ) ) addEmptyElements ( ) ; else if ( "first-child" . equals ( value ) ) addFirstChildElements ( ) ; else if ( "first-of-type" . ... |
public class GroupImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public NotificationChain eInverseRemove ( InternalEObject otherEnd , int featureID , NotificationChain msgs ) { } } | switch ( featureID ) { case XtextPackage . GROUP__GUARD_CONDITION : return basicSetGuardCondition ( null , msgs ) ; } return super . eInverseRemove ( otherEnd , featureID , msgs ) ; |
public class FatFile { /** * Sets the size ( in bytes ) of this file . Because
* { @ link # write ( long , java . nio . ByteBuffer ) writing } to the file will grow
* it automatically if needed , this method is mainly usefull for truncating
* a file .
* @ param length the new length of the file in bytes
* @ t... | checkWritable ( ) ; if ( getLength ( ) == length ) return ; updateTimeStamps ( true ) ; chain . setSize ( length ) ; this . entry . setStartCluster ( chain . getStartCluster ( ) ) ; this . entry . setLength ( length ) ; |
public class XeGithubLink { /** * Ctor .
* @ param req Request
* @ param app Github application ID
* @ param rel Related
* @ param flag Flag to add
* @ return Source
* @ throws IOException If fails
* @ checkstyle ParameterNumberCheck ( 4 lines ) */
private static XeSource make ( final Request req , final ... | return new XeLink ( rel , new Href ( "https://github.com/login/oauth/authorize" ) . with ( "client_id" , app ) . with ( "redirect_uri" , new RqHref . Base ( req ) . href ( ) . with ( flag , PsGithub . class . getSimpleName ( ) ) ) ) ; |
public class JMResources { /** * Read lines with classpath or file path list .
* @ param classpathOrFilePath the classpath or file path
* @ return the list */
public static List < String > readLinesWithClasspathOrFilePath ( String classpathOrFilePath ) { } } | return getStringListAsOptWithClasspath ( classpathOrFilePath ) . filter ( JMPredicate . getGreaterSize ( 0 ) ) . orElseGet ( ( ) -> JMFiles . readLines ( classpathOrFilePath ) ) ; |
public class DoPropfind { /** * Propfind helper method .
* @ param transaction
* @ param req The servlet request
* @ param generatedXML XML response to the Propfind request
* @ param path Path of the current resource
* @ param type Propfind type
* @ param propertiesVector If the propfind type is find proper... | StoredObject so = store . getStoredObject ( transaction , path ) ; if ( so == null ) return ; boolean isFolder = so . isFolder ( ) ; final String creationdate = creationDateFormat ( so . getCreationDate ( ) ) ; final String lastModified = lastModifiedDateFormat ( so . getLastModified ( ) ) ; String resourceLength = Str... |
public class CopyToModule { /** * Process start map to read copy - to map and write unique topic references . */
private void processMap ( ) throws DITAOTException { } } | final URI in = job . tempDirURI . resolve ( job . getFileInfo ( fi -> fi . isInput ) . iterator ( ) . next ( ) . uri ) ; final List < XMLFilter > pipe = getProcessingPipe ( in ) ; xmlUtils . transform ( in , pipe ) ; |
public class Sift { /** * Call Sift . collect ( ) after the Sift . open ( ) call in each Activity .
* Collect SDK events for Device Properties and Application State . */
public static void collect ( ) { } } | AsyncTask . execute ( new Runnable ( ) { @ Override public void run ( ) { devicePropertiesCollector . collect ( ) ; appStateCollector . collect ( ) ; } } ) ; |
public class CommerceTaxMethodUtil { /** * Returns the commerce tax methods before and after the current commerce tax method in the ordered set where groupId = & # 63 ; and active = & # 63 ; .
* @ param commerceTaxMethodId the primary key of the current commerce tax method
* @ param groupId the group ID
* @ param... | return getPersistence ( ) . findByG_A_PrevAndNext ( commerceTaxMethodId , groupId , active , orderByComparator ) ; |
public class GetDiskSnapshotsResult { /** * An array of objects containing information about all block storage disk snapshots .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setDiskSnapshots ( java . util . Collection ) } or { @ link # withDiskSnapshots ( j... | if ( this . diskSnapshots == null ) { setDiskSnapshots ( new java . util . ArrayList < DiskSnapshot > ( diskSnapshots . length ) ) ; } for ( DiskSnapshot ele : diskSnapshots ) { this . diskSnapshots . add ( ele ) ; } return this ; |
public class SparseIntHashArray { /** * { @ inheritDoc } */
public void set ( int index , Integer value ) { } } | if ( value == 0 ) indexToValue . remove ( index ) ; else indexToValue . put ( index , value ) ; |
public class GeoQuery { /** * Removes an event listener .
* @ throws IllegalArgumentException If the listener was removed already or never added
* @ param listener The listener to remove */
public synchronized void removeGeoQueryEventListener ( final GeoQueryDataEventListener listener ) { } } | if ( ! eventListeners . contains ( listener ) ) { throw new IllegalArgumentException ( "Trying to remove listener that was removed or not added!" ) ; } eventListeners . remove ( listener ) ; if ( ! this . hasListeners ( ) ) { reset ( ) ; } |
public class DiffusionFilter { /** * Set the dither matrix .
* @ param matrix the dither matrix
* @ see # getMatrix */
public void setMatrix ( int [ ] matrix ) { } } | this . matrix = matrix ; sum = 0 ; for ( int i = 0 ; i < matrix . length ; i ++ ) sum += matrix [ i ] ; |
public class WebAppDescriptorImpl { /** * If not already created , a new < code > mime - mapping < / code > element will be created and returned .
* Otherwise , the first existing < code > mime - mapping < / code > element will be returned .
* @ return the instance defined for the element < code > mime - mapping < ... | List < Node > nodeList = model . get ( "mime-mapping" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new MimeMappingTypeImpl < WebAppDescriptor > ( this , "mime-mapping" , model , nodeList . get ( 0 ) ) ; } return createMimeMapping ( ) ; |
public class SmoothieMap { /** * Returns { @ code true } if the two given key objects should be considered equal for this { @ code
* SmoothieMap } .
* < p > This method should obey general equivalence relation rules ( see { @ link
* Object # equals ( Object ) } documentation for details ) , and also should be con... | return queriedKey . equals ( keyInMap ) ; |
public class CorporationApi { /** * Get starbase ( POS ) detail Returns various settings and fuels of a
* starbase ( POS ) - - - This route is cached for up to 3600 seconds - - -
* Requires one of the following EVE corporation role ( s ) : Director SSO
* Scope : esi - corporations . read _ starbases . v1
* @ pa... | com . squareup . okhttp . Call call = getCorporationsCorporationIdStarbasesStarbaseIdValidateBeforeCall ( corporationId , starbaseId , systemId , datasource , ifNoneMatch , token , null ) ; Type localVarReturnType = new TypeToken < CorporationStarbaseResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call ... |
public class VectorTileObject { /** * Similar method to the " setInnerHTML " , but specified for setting SVG . Using the regular setInnerHTML , it is not
* possible to set a string of SVG on an object . This method can do that . On the other hand , this method is better
* not used for setting normal HTML as an elem... | if ( Dom . isFireFox ( ) ) { setFireFoxInnerHTML ( element , "<g xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">" + svg + "</g>" ) ; } else if ( Dom . isWebkit ( ) ) { setWebkitInnerHTML ( element , "<g xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">... |
public class CommerceWishListLocalServiceBaseImpl { /** * Returns all the commerce wish lists matching the UUID and company .
* @ param uuid the UUID of the commerce wish lists
* @ param companyId the primary key of the company
* @ return the matching commerce wish lists , or an empty list if no matches were foun... | return commerceWishListPersistence . findByUuid_C ( uuid , companyId ) ; |
public class EventUtils { /** * Binds an event listener to a specific method on a specific object .
* @ param < L > the event listener type
* @ param target the target object
* @ param methodName the name of the method to be called
* @ param eventSource the object which is generating events ( JButton , JList , ... | final L listener = listenerType . cast ( Proxy . newProxyInstance ( target . getClass ( ) . getClassLoader ( ) , new Class [ ] { listenerType } , new EventBindingInvocationHandler ( target , methodName , eventTypes ) ) ) ; addEventListener ( eventSource , listenerType , listener ) ; |
public class TypeParameter { /** * Parse a list of type parameters into { @ link TypeParameter } objects .
* @ param parser
* the parser
* @ param definingClassName
* the defining class name
* @ return the list of { @ link TypeParameter } objects .
* @ throws ParseException
* if parsing fails */
static Li... | if ( parser . peek ( ) != '<' ) { return Collections . emptyList ( ) ; } parser . expect ( '<' ) ; final List < TypeParameter > typeParams = new ArrayList < > ( 1 ) ; while ( parser . peek ( ) != '>' ) { if ( ! parser . hasMore ( ) ) { throw new ParseException ( parser , "Missing '>'" ) ; } if ( ! TypeUtils . getIdenti... |
public class FileChannelDataLogger { /** * the records a recovered from the format described in
* { @ link # write ( short , byte [ ] [ ] ) }
* @ param replay
* replayListener
* @ throws IOException */
public void replay ( IDataLoggerReplay replay ) throws IOException { } } | maybeRead ( ) ; this . randomAccess . rewind ( ) ; while ( this . randomAccess . available ( ) > ( Integer . SIZE / Byte . SIZE ) ) { int length = this . randomAccess . readInt ( ) ; short type = this . randomAccess . readShort ( ) ; XALogRecordType recordType = XALogRecordType . resolve ( type ) ; byte [ ] [ ] data = ... |
public class EvictDefinition { /** * { @ inheritDoc }
* This task will evict the given block . */
@ Override public SerializableVoid runTask ( EvictConfig config , SerializableVoid args , RunTaskContext context ) throws Exception { } } | AlluxioBlockStore blockStore = AlluxioBlockStore . create ( context . getFsContext ( ) ) ; long blockId = config . getBlockId ( ) ; String localHostName = NetworkAddressUtils . getConnectHost ( ServiceType . WORKER_RPC , ServerConfiguration . global ( ) ) ; List < BlockWorkerInfo > workerInfoList = blockStore . getAllW... |
public class YearQuarter { /** * Returns a copy of this year - quarter with the specified field set to a new value .
* This returns a { @ code YearQuarter } , based on this one , with the value
* for the specified field changed .
* This can be used to change any supported field , such as the year or quarter .
*... | if ( field == QUARTER_OF_YEAR ) { return withQuarter ( QUARTER_OF_YEAR . range ( ) . checkValidIntValue ( newValue , QUARTER_OF_YEAR ) ) ; } else if ( field instanceof ChronoField ) { ChronoField f = ( ChronoField ) field ; f . checkValidValue ( newValue ) ; switch ( f ) { case YEAR_OF_ERA : return withYear ( ( int ) (... |
public class BusItineraryHalt { /** * Replies the position of the bus halt on the road .
* The replied position may differ from the
* position of the associated bus stop because the
* position on the road is a projection of the stop ' s position
* on the road .
* @ return the 1.5D position or < code > null < ... | if ( this . bufferPosition1D == null ) { final RoadSegment segment = getRoadSegment ( ) ; if ( segment != null && ! Double . isNaN ( this . curvilineDistance ) ) { final RoadNetwork network = segment . getRoadNetwork ( ) ; assert network != null ; double lateral = segment . getRoadBorderDistance ( ) ; if ( lateral < 0.... |
public class XElement { /** * Save this XML into the supplied output stream .
* @ param stream the output stream
* @ param header write the header ?
* @ param flush flush after the save ?
* @ throws IOException on error */
public void save ( OutputStream stream , boolean header , boolean flush ) throws IOExcept... | OutputStreamWriter out = new OutputStreamWriter ( stream , "UTF-8" ) ; save ( out , header , flush ) ; |
public class TdeCertificatesInner { /** * Creates a TDE certificate for a given server .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param serverName The name of the server .
* @ param par... | return createWithServiceResponseAsync ( resourceGroupName , serverName , parameters ) . map ( new Func1 < ServiceResponse < Void > , Void > ( ) { @ Override public Void call ( ServiceResponse < Void > response ) { return response . body ( ) ; } } ) ; |
public class GenericTemplateElementBuilder { /** * Adds a login button on a generic template .
* @ param url
* the url
* @ return this builder . */
public GenericTemplateElementBuilder addLoginButton ( String url ) { } } | Button button = ButtonFactory . createLoginButton ( url ) ; this . element . addButton ( button ) ; return this ; |
public class ConfigMapper { /** * Applies the given configuration to the given type .
* @ param config the configuration to apply
* @ param clazz the class to which to apply the configuration */
@ SuppressWarnings ( "unchecked" ) protected < T > T map ( Config config , String path , String name , Class < T > clazz ... | T instance = newInstance ( config , name , clazz ) ; // Map config property names to bean properties .
Map < String , String > propertyNames = new HashMap < > ( ) ; for ( Map . Entry < String , ConfigValue > configProp : config . root ( ) . entrySet ( ) ) { String originalName = configProp . getKey ( ) ; String camelNa... |
public class StringUtils { /** * Check if a given key is valid to transmit .
* @ param key the key to check .
* @ param binary if binary protocol is used . */
public static void validateKey ( final String key , final boolean binary ) { } } | byte [ ] keyBytes = KeyUtil . getKeyBytes ( key ) ; int keyLength = keyBytes . length ; if ( keyLength > MAX_KEY_LENGTH ) { throw KEY_TOO_LONG_EXCEPTION ; } if ( keyLength == 0 ) { throw KEY_EMPTY_EXCEPTION ; } if ( ! binary ) { for ( byte b : keyBytes ) { if ( b == ' ' || b == '\n' || b == '\r' || b == 0 ) { throw new... |
public class DatabasesInner { /** * Returns a list of databases inside a recommented elastic pool .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param serverName The name of the server .
* ... | return listByRecommendedElasticPoolWithServiceResponseAsync ( resourceGroupName , serverName , recommendedElasticPoolName ) . map ( new Func1 < ServiceResponse < List < DatabaseInner > > , List < DatabaseInner > > ( ) { @ Override public List < DatabaseInner > call ( ServiceResponse < List < DatabaseInner > > response ... |
public class RslNode { /** * Removes a relation for the specified attribute .
* @ param attribute the attribute name for the
* relation to remove .
* @ return the relation that was removed . */
public NameOpValue removeParam ( String attribute ) { } } | if ( _relations == null || attribute == null ) return null ; return ( NameOpValue ) _relations . remove ( canonicalize ( attribute ) ) ; |
public class FailoverWatcher { /** * Deal with delete node event , just call the leader election .
* @ param path which znode is deleted */
protected void processNodeDeleted ( String path ) { } } | if ( path . equals ( masterZnode ) ) { LOG . info ( masterZnode + " deleted and try to become active master" ) ; handleMasterNodeChange ( ) ; } |
public class RespokeClient { /** * Initiate a call to a conference .
* @ param callListener A listener to receive notifications about the new call
* @ param context An application context with which to access system resources
* @ param conferenceID The ID of the conference to call
* @ return A reference to the ... | RespokeCall call = null ; if ( ( null != signalingChannel ) && ( signalingChannel . connected ) ) { call = new RespokeCall ( signalingChannel , conferenceID , "conference" ) ; call . setListener ( callListener ) ; call . startCall ( context , null , true ) ; } return call ; |
public class GroovyClassLoader { /** * ( Re ) Compiles the given source .
* This method starts the compilation of a given source , if
* the source has changed since the class was created . For
* this isSourceNewer is called .
* @ param source the source pointer for the compilation
* @ param className the name... | if ( source != null ) { // found a source , compile it if newer
if ( ( oldClass != null && isSourceNewer ( source , oldClass ) ) || ( oldClass == null ) ) { synchronized ( sourceCache ) { String name = source . toExternalForm ( ) ; sourceCache . remove ( name ) ; if ( isFile ( source ) ) { try { return parseClass ( new... |
public class LssClient { /** * Get your live security policy by live security policy name .
* @ param request The request object containing all parameters for getting live security policy .
* @ return Your live security policy . */
public GetSecurityPolicyResponse getSecurityPolicy ( GetSecurityPolicyRequest reques... | checkNotNull ( request , "The parameter request should NOT be null." ) ; checkStringNotEmpty ( request . getName ( ) , "The parameter name should NOT be null or empty string." ) ; InternalRequest internalRequest = createRequest ( HttpMethodName . GET , request , LIVE_SECURITY_POLICY , request . getName ( ) ) ; return i... |
public class ApptentiveInternal { /** * Create a new or return a existing thread - safe instance of the Apptentive SDK . If this
* or any other { @ link # getInstance ( ) } has already been called in the application ' s lifecycle , the
* App key will be ignored and the current instance will be returned .
* This w... | final String apptentiveKey = configuration . getApptentiveKey ( ) ; final String apptentiveSignature = configuration . getApptentiveSignature ( ) ; final String baseURL = configuration . getBaseURL ( ) ; final boolean shouldEncryptStorage = configuration . shouldEncryptStorage ( ) ; // set log message sanitizing
Appten... |
public class NamingCodecFactory { /** * Creates a codec only for lookup .
* @ param factory an identifier factory
* @ return a codec */
static Codec < NamingMessage > createLookupCodec ( final IdentifierFactory factory ) { } } | final Map < Class < ? extends NamingMessage > , Codec < ? extends NamingMessage > > clazzToCodecMap = new HashMap < > ( ) ; clazzToCodecMap . put ( NamingLookupRequest . class , new NamingLookupRequestCodec ( factory ) ) ; clazzToCodecMap . put ( NamingLookupResponse . class , new NamingLookupResponseCodec ( factory ) ... |
public class af_config_info { /** * < pre >
* Converts API response of bulk operation into object and returns the object array in case of get request .
* < / pre > */
protected base_resource [ ] get_nitro_bulk_response ( nitro_service service , String response ) throws Exception { } } | af_config_info_responses result = ( af_config_info_responses ) service . get_payload_formatter ( ) . string_to_resource ( af_config_info_responses . class , response ) ; if ( result . errorcode != 0 ) { if ( result . errorcode == SESSION_NOT_EXISTS ) service . clear_session ( ) ; throw new nitro_exception ( result . me... |
public class CmsBroadcastTimer { /** * Starts the timer . < p > */
public static void start ( ) { } } | if ( ! CmsCoreProvider . get ( ) . isKeepAlive ( ) ) { return ; } if ( INSTANCE == null ) { m_keepRunning = true ; CmsBroadcastTimer timer = new CmsBroadcastTimer ( ) ; timer . getBroadcast ( ) ; timer . run ( ) ; INSTANCE = timer ; } |
public class OtpConnection { /** * Send an RPC request to the remote Erlang node . This convenience function
* creates the following message and sends it to ' rex ' on the remote node :
* < pre >
* { self , { call , Mod , Fun , Args , user } }
* < / pre >
* Note that this method has unpredicatble results if t... | final OtpErlangObject [ ] rpc = new OtpErlangObject [ 2 ] ; final OtpErlangObject [ ] call = new OtpErlangObject [ 5 ] ; /* { self , { call , Mod , Fun , Args , user } } */
call [ 0 ] = new OtpErlangAtom ( "call" ) ; call [ 1 ] = new OtpErlangAtom ( mod ) ; call [ 2 ] = new OtpErlangAtom ( fun ) ; call [ 3 ] = args ; c... |
public class CPDefinitionVirtualSettingModelImpl { /** * Converts the soap model instance into a normal model instance .
* @ param soapModel the soap model instance to convert
* @ return the normal model instance */
public static CPDefinitionVirtualSetting toModel ( CPDefinitionVirtualSettingSoap soapModel ) { } } | if ( soapModel == null ) { return null ; } CPDefinitionVirtualSetting model = new CPDefinitionVirtualSettingImpl ( ) ; model . setUuid ( soapModel . getUuid ( ) ) ; model . setCPDefinitionVirtualSettingId ( soapModel . getCPDefinitionVirtualSettingId ( ) ) ; model . setGroupId ( soapModel . getGroupId ( ) ) ; model . s... |
public class AbstractSlideModel { /** * Build a scaling animation .
* @ param from scale ratio used as from value
* @ param to scale ratio used as to value
* @ param show if true a fade in transition will be performed , otherwise fade out
* @ return a scale animation */
private Animation buildScaleAnimation ( f... | return ParallelTransitionBuilder . create ( ) . children ( ScaleTransitionBuilder . create ( ) . node ( node ( ) ) . fromX ( from ) . toX ( to ) . fromY ( from ) . toY ( to ) . duration ( Duration . seconds ( 1 ) ) . build ( ) , FadeTransitionBuilder . create ( ) . node ( node ( ) ) . fromValue ( show ? 0.0 : 1.0 ) . t... |
public class SingletonBeanO { /** * ( non - Javadoc )
* @ see com . ibm . ejs . container . BeanO # discard ( ) */
@ Override public void discard ( ) { } } | final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "discard: " + getStateName ( state ) ) ; // d639281 - Singleton instances are never actually discarded unless a
// failure occurs during initialize ( ) .
if ( state == PRE_CREATE || state =... |
public class Statement { /** * VoltDB added method to get a non - catalog - dependent
* representation of this HSQLDB object .
* @ param session The current Session object may be needed to resolve
* some names .
* @ return XML , correctly indented , representing this object .
* @ throws HSQLParseException */
... | throw new org . hsqldb_voltpatches . HSQLInterface . HSQLParseException ( "this type of sql statement is not supported or is not allowed in this context" ) ; |
public class Surrogate { /** * Return a new token , unique for the current Surrogate - Capability header .
* Uses " esigate " and appends a number if necessary .
* @ param currentCapabilitiesHeader
* existing header which may contains tokens of other proxies ( including other esigate instances ) .
* @ return un... | String token = "esigate" ; if ( currentCapabilitiesHeader != null && currentCapabilitiesHeader . contains ( token + "=\"" ) ) { int id = 2 ; while ( currentCapabilitiesHeader . contains ( token + id + "=\"" ) ) { id ++ ; } token = token + id ; } return token ; |
public class BaseSerializer { /** * Serialize a list of SequenceComparators */
public String serializeSequenceComparatorList ( List < SequenceComparator > list ) { } } | ObjectMapper om = getObjectMapper ( ) ; try { return om . writeValueAsString ( new ListWrappers . SequenceComparatorList ( list ) ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } |
public class HttpUtils { /** * Method which creates string with parameters and its value in format URL
* @ param q map in which keys if name of parameters , value - value of parameters .
* @ param enc encoding of this string
* @ return string with parameters and its value in format URL */
public static String ren... | StringBuilder sb = new StringBuilder ( ) ; for ( Map . Entry < String , String > e : q . entrySet ( ) ) { String name = urlEncode ( e . getKey ( ) , enc ) ; sb . append ( name ) ; if ( e . getValue ( ) != null ) { sb . append ( '=' ) ; sb . append ( urlEncode ( e . getValue ( ) , enc ) ) ; } sb . append ( '&' ) ; } if ... |
public class AssignedAddOn { /** * Create a AssignedAddOnFetcher to execute fetch .
* @ param pathAccountSid The SID of the Account that created the resource to
* fetch
* @ param pathResourceSid The SID of the Phone Number that installed this Add - on
* @ param pathSid The unique string that identifies the reso... | return new AssignedAddOnFetcher ( pathAccountSid , pathResourceSid , pathSid ) ; |
public class techsupport { /** * < pre >
* Converts API response of bulk operation into object and returns the object array in case of get request .
* < / pre > */
protected base_resource [ ] get_nitro_bulk_response ( nitro_service service , String response ) throws Exception { } } | techsupport_responses result = ( techsupport_responses ) service . get_payload_formatter ( ) . string_to_resource ( techsupport_responses . class , response ) ; if ( result . errorcode != 0 ) { if ( result . errorcode == SESSION_NOT_EXISTS ) service . clear_session ( ) ; throw new nitro_exception ( result . message , r... |
public class CmsRepositoryFilter { /** * Initializes a configuration after all parameters have been added . < p >
* @ throws CmsConfigurationException if something goes wrong */
public void initConfiguration ( ) throws CmsConfigurationException { } } | if ( ( ! TYPE_INCLUDE . equals ( m_type ) ) && ( ! TYPE_EXCLUDE . equals ( m_type ) ) ) { throw new CmsConfigurationException ( Messages . get ( ) . container ( Messages . ERR_INVALID_FILTER_TYPE_1 , m_type ) ) ; } if ( CmsLog . INIT . isInfoEnabled ( ) ) { Iterator < Pattern > iter = m_filterRules . iterator ( ) ; whi... |
public class LRResult { /** * Returns documents from obtain request
* @ return documents from obtain request */
public List < JSONObject > getDocuments ( ) { } } | List < JSONObject > documents = new ArrayList < JSONObject > ( ) ; try { if ( data != null && data . has ( documentsParam ) ) { JSONArray jsonDocuments = data . getJSONArray ( documentsParam ) ; for ( int i = 0 ; i < jsonDocuments . length ( ) ; i ++ ) { JSONObject document = jsonDocuments . getJSONObject ( i ) ; docum... |
public class Csv { /** * Sets the null literal string that is interpreted as a null value ( disabled by default ) .
* @ param nullLiteral null literal ( e . g . " null " or " n / a " ) */
public Csv nullLiteral ( String nullLiteral ) { } } | Preconditions . checkNotNull ( nullLiteral ) ; internalProperties . putString ( FORMAT_NULL_LITERAL , nullLiteral ) ; return this ; |
public class FedoraTimeMapImpl { /** * Check if the JCR node has a fedora : TimeMap mixin
* @ param node the JCR node
* @ return true if the JCR node has the fedora : TimeMap mixin */
public static boolean hasMixin ( final Node node ) { } } | try { return node . isNodeType ( FEDORA_TIME_MAP ) ; } catch ( final RepositoryException e ) { throw new RepositoryRuntimeException ( e ) ; } |
public class ImagePolylineAnnotation { /** * < code > . google . cloud . datalabeling . v1beta1 . NormalizedPolyline normalized _ polyline = 3 ; < / code > */
public com . google . cloud . datalabeling . v1beta1 . NormalizedPolyline getNormalizedPolyline ( ) { } } | if ( polyCase_ == 3 ) { return ( com . google . cloud . datalabeling . v1beta1 . NormalizedPolyline ) poly_ ; } return com . google . cloud . datalabeling . v1beta1 . NormalizedPolyline . getDefaultInstance ( ) ; |
public class vpntrafficaction { /** * Use this API to add vpntrafficaction resources . */
public static base_responses add ( nitro_service client , vpntrafficaction resources [ ] ) throws Exception { } } | base_responses result = null ; if ( resources != null && resources . length > 0 ) { vpntrafficaction addresources [ ] = new vpntrafficaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new vpntrafficaction ( ) ; addresources [ i ] . name = resources [ i ] . name ; a... |
public class ApptentiveActivityLifecycleCallbacks { /** * Decrements the count of running Activities . If it is now 0 , start a task that will check again
* after a small delay . If that task still finds 0 running Activities , it will trigger an < code > appEnteredBackground ( ) < / code >
* @ param activity */
@ O... | if ( foregroundActivities . decrementAndGet ( ) < 0 ) { ApptentiveLog . e ( "Incorrect number of foreground Activities encountered. Resetting to 0." ) ; foregroundActivities . set ( 0 ) ; } if ( checkFgBgRoutine != null ) { delayedChecker . removeCallbacks ( checkFgBgRoutine ) ; } /* When one activity transits to anoth... |
public class PropertiesBasedStyleLibrary { /** * Get a value from the cache ( to avoid repeated parsing )
* @ param < T > Type
* @ param prefix Tree name
* @ param postfix Property name
* @ param cls Class restriction
* @ return Resulting value */
private < T > T getCached ( String prefix , String postfix , C... | return cls . cast ( cache . get ( prefix + '.' + postfix ) ) ; |
public class SystemConfiguration { /** * { @ inheritDoc } */
@ Override protected Map < String , String > defaults ( ) { } } | Map < String , String > ret = new HashMap < String , String > ( ) ; String value = getProperty ( "java.io.tmpdir" ) ; value = asPath ( value , DEFAULT_OUTPUT_DIRECTORY ) ; ret . put ( FRAMEWORK_WORKING_AREA_DESC , value ) ; value = getProperty ( "user.home" ) ; value = asPath ( value , DEFAULT_CACHE_DIRECTORY ) ; ret .... |
public class DirectMappingAxiomProducer { /** * Definition row graph : an RDF graph consisting of the following triples :
* - the row type triple .
* - a literal triple for each column in a table where the column value is non - NULL . */
public ImmutableList < TargetAtom > getCQ ( DatabaseRelationDefinition table )... | ImmutableList . Builder < TargetAtom > atoms = ImmutableList . builder ( ) ; // Class Atom
ImmutableTerm sub = generateSubject ( table , false ) ; atoms . add ( getAtom ( getTableIRI ( table . getID ( ) ) , sub ) ) ; // DataType Atoms
for ( Attribute att : table . getAttributes ( ) ) { // TODO : revisit this
RDFDatatyp... |
public class CmsAutoSetupProperties { /** * Adds and returns the property for the given key . < p >
* @ param key the key to add the property
* @ return the value of that property */
private String addProperty ( String key ) { } } | if ( System . getProperty ( key ) != null ) { m_configuration . put ( key , System . getProperty ( key ) ) ; } return m_configuration . get ( key ) ; |
public class BsFileConfigCB { public FileConfigCB acceptPK ( String id ) { } } | assertObjectNotNull ( "id" , id ) ; BsFileConfigCB cb = this ; cb . query ( ) . docMeta ( ) . setId_Equal ( id ) ; return ( FileConfigCB ) this ; |
public class BaseDestinationHandler { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . impl . interfaces . DestinationHandler # getPubSubOutputHandler ( com . ibm . ws . sib . utils . SIBUuid8) */
@ Override public PubSubOutputHandler getPubSubOutputHandler ( SIBUuid8 neighbourUUID ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getPubSubOutputHandler" , neighbourUUID ) ; PubSubOutputHandler handler = _pubSubRealization . getPubSubOutputHandler ( neighbourUUID ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . ex... |
public class BiConsumerCallbackManager { /** * Process a list with event
* @ param symbol
* @ param ticksArray */
public void handleEventsCollection ( final S symbol , final Collection < T > elements ) { } } | final List < BiConsumer < S , T > > callbackList = callbacks . get ( symbol ) ; if ( callbackList == null ) { return ; } if ( callbackList . isEmpty ( ) ) { return ; } // Notify callbacks synchronously , to preserve the order of events
for ( final T element : elements ) { callbackList . forEach ( ( c ) -> { c . accept ... |
public class RampImport { /** * Marshal from an array of source types to an array of dest types . */
public ModuleMarshal [ ] marshalArgs ( ParameterAmp [ ] sourceTypes ) { } } | if ( sourceTypes == null ) { return new ModuleMarshal [ 0 ] ; } ModuleMarshal [ ] marshal = new ModuleMarshal [ sourceTypes . length ] ; for ( int i = 0 ; i < marshal . length ; i ++ ) { marshal [ i ] = marshal ( sourceTypes [ i ] . rawClass ( ) ) ; } return marshal ; |
public class UrlUtils { /** * For the given { @ code url } , extract a mapping of query string parameter names to values .
* Adapted from an implementation by BalusC and dfrankow , available at
* http : / / stackoverflow . com / questions / 1667278 / parsing - query - strings - in - java .
* @ param url
* The U... | if ( url == null ) { return emptyMap ( ) ; } Map < String , List < String > > parameters = new HashMap < > ( ) ; String [ ] urlParts = url . split ( "\\?" ) ; if ( urlParts . length > 1 ) { String query = urlParts [ 1 ] ; for ( String param : query . split ( "&" ) ) { String [ ] pair = param . split ( "=" ) ; String ke... |
public class OperatingSystemConfigurationManagerMarshaller { /** * Marshall the given parameter object . */
public void marshall ( OperatingSystemConfigurationManager operatingSystemConfigurationManager , ProtocolMarshaller protocolMarshaller ) { } } | if ( operatingSystemConfigurationManager == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( operatingSystemConfigurationManager . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( operatingSystemConfigurationManager . getVersion... |
public class ICUNotifier { /** * Stop notifying this listener . The listener must
* not be null . Attemps to remove a listener that is
* not registered will be silently ignored . */
public void removeListener ( EventListener l ) { } } | if ( l == null ) { throw new NullPointerException ( ) ; } synchronized ( notifyLock ) { if ( listeners != null ) { // identity equality check
Iterator < EventListener > iter = listeners . iterator ( ) ; while ( iter . hasNext ( ) ) { if ( iter . next ( ) == l ) { iter . remove ( ) ; if ( listeners . size ( ) == 0 ) { l... |
public class JCRStatisticsManager { /** * Allows to reset all the statistics corresponding to the given category .
* @ param category */
@ Managed @ ManagedDescription ( "Reset all the statistics." ) public static void resetAll ( @ ManagedDescription ( "The name of the category of the statistics" ) @ ManagedName ( "c... | StatisticsContext context = getContext ( category ) ; if ( context != null ) { context . reset ( ) ; } |
public class SimulateCustomPolicyRequest { /** * A list of names of API operations to evaluate in the simulation . Each operation is evaluated against each
* resource . Each operation must include the service identifier , such as < code > iam : CreateUser < / code > . This operation
* does not support using wildcar... | if ( actionNames == null ) { this . actionNames = null ; return ; } this . actionNames = new com . amazonaws . internal . SdkInternalList < String > ( actionNames ) ; |
public class SeaGlassTableUI { /** * DOCUMENT ME !
* @ param rect DOCUMENT ME !
* @ param horizontal DOCUMENT ME !
* @ return DOCUMENT ME ! */
private Rectangle extendRect ( Rectangle rect , boolean horizontal ) { } } | if ( rect == null ) { return rect ; } if ( horizontal ) { rect . x = 0 ; rect . width = table . getWidth ( ) ; } else { rect . y = 0 ; if ( table . getRowCount ( ) != 0 ) { Rectangle lastRect = table . getCellRect ( table . getRowCount ( ) - 1 , 0 , true ) ; rect . height = lastRect . y + lastRect . height ; } else { r... |
public class AdminCommandStream { /** * Parses command - line input and prints help menu .
* @ throws Exception */
public static void executeHelp ( String [ ] args , PrintStream stream ) throws Exception { } } | String subCmd = ( args . length > 0 ) ? args [ 0 ] : "" ; if ( subCmd . equals ( "fetch-entries" ) ) { SubCommandStreamFetchEntries . printHelp ( stream ) ; } else if ( subCmd . equals ( "fetch-keys" ) ) { SubCommandStreamFetchKeys . printHelp ( stream ) ; } else if ( subCmd . equals ( "mirror" ) ) { SubCommandStreamMi... |
public class Vector3i { /** * / * ( non - Javadoc )
* @ see org . joml . Vector3ic # distance ( org . joml . Vector3ic ) */
public double distance ( Vector3ic v ) { } } | return distance ( v . x ( ) , v . y ( ) , v . z ( ) ) ; |
public class NFLockFreeLogger { /** * ( non - Javadoc )
* @ see org . apache . log4j . Category # removeAllAppenders ( ) */
@ Override public void removeAllAppenders ( ) { } } | if ( aai != null ) { Vector appenders = new Vector ( ) ; Enumeration iter = aai . getAllAppenders ( ) ; if ( iter == null ) { return ; } while ( iter . hasMoreElements ( ) ) { appenders . add ( iter . nextElement ( ) ) ; } aai . removeAllAppenders ( ) ; iter = appenders . elements ( ) ; while ( iter . hasMoreElements (... |
public class Sql { /** * A variant of { @ link # query ( String , java . util . List , groovy . lang . Closure ) }
* useful when providing the named parameters as a map .
* @ param sql the sql statement
* @ param map a map containing the named parameters
* @ param closure called for each row with a < code > Res... | query ( sql , singletonList ( map ) , closure ) ; |
public class SQLExpressions { /** * NTH _ VALUE returns the expr value of the nth row in the window defined by the analytic clause .
* The returned value has the data type of the expr .
* @ param expr measure expression
* @ param n one based row index
* @ return nth _ value ( expr , n ) */
public static < T > W... | return nthValue ( expr , ConstantImpl . create ( n ) ) ; |
public class PathMatchingResourcePatternResolver { /** * Determine the root directory for the given location .
* < p > Used for determining the starting point for file matching ,
* resolving the root directory location to a < code > java . io . File < / code >
* and passing it into < code > retrieveMatchingFiles ... | int prefixEnd = location . indexOf ( ":" ) + 1 ; int rootDirEnd = location . length ( ) ; while ( rootDirEnd > prefixEnd && getPathMatcher ( ) . isPattern ( location . substring ( prefixEnd , rootDirEnd ) ) ) { rootDirEnd = location . lastIndexOf ( '/' , rootDirEnd - 2 ) + 1 ; } if ( rootDirEnd == 0 ) { rootDirEnd = pr... |
public class QueryCriteriaUtil { /** * Helper method for creating a ranged ( between , open - ended ) { @ link Predicate }
* @ param builder The { @ link CriteriaBuilder } , helpful when creating { @ link Predicate } s to add to the { @ link CriteriaQuery }
* @ param entityField The { @ link Expression } representi... | if ( start != null && end != null ) { // TODO : asserts !
return builder . between ( field , ( Y ) start , ( Y ) end ) ; } else if ( start != null ) { return builder . greaterThanOrEqualTo ( field , ( Y ) start ) ; } else { return builder . lessThanOrEqualTo ( field , ( Y ) end ) ; } |
public class AmazonAutoScalingClient { /** * Creates or updates one or more scheduled scaling actions for an Auto Scaling group . If you leave a parameter
* unspecified when updating a scheduled scaling action , the corresponding value remains unchanged .
* @ param batchPutScheduledUpdateGroupActionRequest
* @ re... | request = beforeClientExecution ( request ) ; return executeBatchPutScheduledUpdateGroupAction ( request ) ; |
public class WorkArounds { /** * TODO : jx . l . m ? */
public Location getLocationForModule ( ModuleElement mdle ) { } } | ModuleSymbol msym = ( ModuleSymbol ) mdle ; return msym . sourceLocation != null ? msym . sourceLocation : msym . classLocation ; |
public class DefaultGroovyMethods { /** * Iterates over the collection of items and returns each item that matches
* the given filter - calling the < code > { @ link # isCase ( java . lang . Object , java . lang . Object ) } < / code >
* method used by switch statements . This method can be used with different
* ... | Collection < T > answer = createSimilarCollection ( self ) ; BooleanReturningMethodInvoker bmi = new BooleanReturningMethodInvoker ( "isCase" ) ; for ( T element : self ) { if ( bmi . invoke ( filter , element ) ) { answer . add ( element ) ; } } return answer ; |
public class AWSDirectoryServiceClient { /** * Obtains information about the directories that belong to this account .
* You can retrieve information about specific directories by passing the directory identifiers in the
* < code > DirectoryIds < / code > parameter . Otherwise , all directories that belong to the c... | request = beforeClientExecution ( request ) ; return executeDescribeDirectories ( request ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.