signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class SqlParserImpl { /** * BEGIN文解析 */
protected void parseBegin ( ) { } } | BeginNode beginNode = new BeginNode ( Math . max ( this . position - 2 , 0 ) ) ; this . position = this . tokenizer . getPosition ( ) ; peek ( ) . addChild ( beginNode ) ; push ( beginNode ) ; parseEnd ( ) ; |
public class Logger { /** * Log a message at the given level .
* @ param level the level
* @ param message the message */
public void log ( Level level , Object message ) { } } | doLog ( level , FQCN , message , null , null ) ; |
public class Broker { /** * the broker info saved in zookeeper
* format : < b > creatorId : host : port < / b >
* @ return broker info saved in zookeeper */
public String getZKString ( ) { } } | return String . format ( "%s:%s:%s:%s" , creatorId . replace ( ':' , '#' ) , host . replace ( ':' , '#' ) , port , autocreated ) ; |
public class Main { /** * Gets the Media Server Home directory .
* @ param args the command line arguments
* @ return the path to the home directory . */
protected static String getHomeDir ( String [ ] args ) { } } | if ( System . getenv ( HOME_DIR ) == null ) { if ( args . length > index ) { return args [ index ++ ] ; } else { return "." ; } } else { return System . getenv ( HOME_DIR ) ; } |
public class RemotingClient { /** * Send authentication data with each remoting request .
* @ param userid
* User identifier
* @ param password
* Password */
public void setCredentials ( String userid , String password ) { } } | Map < String , String > data = new HashMap < String , String > ( ) ; data . put ( "userid" , userid ) ; data . put ( "password" , password ) ; RemotingHeader header = new RemotingHeader ( RemotingHeader . CREDENTIALS , true , data ) ; headers . put ( RemotingHeader . CREDENTIALS , header ) ; |
public class ExecutionJobVertex { public void connectToPredecessors ( Map < IntermediateDataSetID , IntermediateResult > intermediateDataSets ) throws JobException { } } | List < JobEdge > inputs = jobVertex . getInputs ( ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( String . format ( "Connecting ExecutionJobVertex %s (%s) to %d predecessors." , jobVertex . getID ( ) , jobVertex . getName ( ) , inputs . size ( ) ) ) ; } for ( int num = 0 ; num < inputs . size ( ) ; num ++ ) { JobEd... |
public class HashExtensions { /** * Gets the hash value of the given queue and the given algorithm .
* @ see < a href = " https : / / en . wikipedia . org / wiki / Merkle _ tree " > wikipedia Merkle tree < / a >
* @ param hashQueue
* the hash queue
* @ param algorithm
* the algorithm
* @ return the merkle r... | while ( hashQueue . size ( ) > 1 ) { byte [ ] hashValue = ArrayUtils . addAll ( hashQueue . poll ( ) , hashQueue . poll ( ) ) ; switch ( algorithm ) { case SHA1 : hashQueue . add ( DigestUtils . sha1 ( hashValue ) ) ; case SHA256 : hashQueue . add ( DigestUtils . sha256 ( hashValue ) ) ; case SHA384 : hashQueue . add (... |
public class MapDataStores { /** * Creates a write through data store .
* @ param mapStoreContext context for map store operations
* @ param < K > type of key to store
* @ param < V > type of value to store
* @ return new write through store manager */
public static < K , V > MapDataStore < K , V > createWriteT... | final MapStoreWrapper store = mapStoreContext . getMapStoreWrapper ( ) ; final MapServiceContext mapServiceContext = mapStoreContext . getMapServiceContext ( ) ; final NodeEngine nodeEngine = mapServiceContext . getNodeEngine ( ) ; final InternalSerializationService serializationService = ( ( InternalSerializationServi... |
public class PathUtils { /** * Removes the Scheme and Authority from a Path .
* @ see Path
* @ see URI */
public static Path getPathWithoutSchemeAndAuthority ( Path path ) { } } | return new Path ( null , null , path . toUri ( ) . getPath ( ) ) ; |
public class HistoryServer { void start ( ) throws IOException , InterruptedException { } } | synchronized ( startupShutdownLock ) { LOG . info ( "Starting history server." ) ; Files . createDirectories ( webDir . toPath ( ) ) ; LOG . info ( "Using directory {} as local cache." , webDir ) ; Router router = new Router ( ) ; router . addGet ( "/:*" , new HistoryServerStaticFileServerHandler ( webDir ) ) ; if ( ! ... |
public class UniformUtils { /** * Returns the first value of a list , or null if the list is empty .
* @ param < T > List type
* @ param list Input list
* @ return First value or null */
public static < T > T firstValue ( List < T > list ) { } } | if ( list != null && ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; |
public class WmsClient { /** * Create a new WMS layer . This layer does not support a GetFeatureInfo call ! If you need that , you ' ll have to use
* the server extension of this plug - in .
* @ param title The layer title .
* @ param crs The CRS for this layer .
* @ param tileConfig The tile configuration obje... | if ( layerInfo == null || layerInfo . isQueryable ( ) ) { return new FeatureInfoSupportedWmsLayer ( title , crs , layerConfig , tileConfig , layerInfo ) ; } else { return new WmsLayerImpl ( title , crs , layerConfig , tileConfig , layerInfo ) ; } |
public class FilterCriteriaReader14 { /** * { @ inheritDoc } */
@ Override protected byte [ ] getChildBlock ( byte [ ] block ) { } } | int offset = MPPUtility . getShort ( block , 32 ) ; return m_criteriaBlockMap . get ( Integer . valueOf ( offset ) ) ; |
public class ReflectionUtils { /** * Invoke the specified JDBC API { @ link Method } against the supplied target
* object with the supplied arguments .
* @ param method the method to invoke
* @ param target the target object to invoke the method on
* @ param args the invocation arguments ( may be { @ code null ... | try { return method . invoke ( target , args ) ; } catch ( IllegalAccessException ex ) { handleReflectionException ( ex ) ; } catch ( InvocationTargetException ex ) { if ( ex . getTargetException ( ) instanceof SQLException ) { throw ( SQLException ) ex . getTargetException ( ) ; } handleInvocationTargetException ( ex ... |
public class AnalyzeTab { /** * < / editor - fold > / / GEN - END : initComponents */
private void jButtonResultsActionPerformed ( java . awt . event . ActionEvent evt ) { } } | // GEN - FIRST : event _ jButtonResultsActionPerformed
BaseDirectoryChooser resultsFile = new BaseDirectoryChooser ( ) ; // resultsFile . setFileSelectionMode ( JFileChooser . DIRECTORIES _ ONLY ) ;
int selection = resultsFile . showOpenDialog ( this ) ; if ( selection == JFileChooser . APPROVE_OPTION ) { path = result... |
public class OptionsCheckForUpdatesPanel { /** * This method initializes this */
private void initialize ( ) { } } | this . setLayout ( new CardLayout ( ) ) ; this . setName ( Constant . messages . getString ( "cfu.options.title" ) ) ; this . add ( getPanelMisc ( ) , getPanelMisc ( ) . getName ( ) ) ; |
public class RegistrationManagerImpl { /** * { @ inheritDoc } */
@ Override public void setUserPassword ( String userName , String password ) throws ServiceException { } } | if ( ! isStarted ) { ServiceDirectoryError error = new ServiceDirectoryError ( ErrorCode . SERVICE_DIRECTORY_MANAGER_FACTORY_CLOSED ) ; throw new ServiceException ( error ) ; } getRegistrationService ( ) . setUserPassword ( userName , password ) ; |
public class ConstructorBuilder { /** * Build the constructor documentation .
* @ param node the XML element that specifies which components to document
* @ param memberDetailsTree the content tree to which the documentation will be added */
public void buildConstructorDoc ( XMLNode node , Content memberDetailsTree... | if ( writer == null ) { return ; } int size = constructors . size ( ) ; if ( size > 0 ) { Content constructorDetailsTree = writer . getConstructorDetailsTreeHeader ( classDoc , memberDetailsTree ) ; for ( currentConstructorIndex = 0 ; currentConstructorIndex < size ; currentConstructorIndex ++ ) { Content constructorDo... |
public class TextUICommandLine { /** * Handle - xargs command line option by reading jar file names from standard
* input and adding them to the project .
* @ throws IOException */
public void handleXArgs ( ) throws IOException { } } | if ( getXargs ( ) ) { try ( BufferedReader in = UTF8 . bufferedReader ( System . in ) ) { while ( true ) { String s = in . readLine ( ) ; if ( s == null ) { break ; } project . addFile ( s ) ; } } } |
public class CompactionCombineFileInputFormat { /** * Set the number of locations in the split to SPLIT _ MAX _ NUM _ LOCATIONS if it is larger than
* SPLIT _ MAX _ NUM _ LOCATIONS ( MAPREDUCE - 5186 ) . */
private static List < InputSplit > cleanSplits ( List < InputSplit > splits ) throws IOException { } } | if ( VersionInfo . getVersion ( ) . compareTo ( "2.3.0" ) >= 0 ) { // This issue was fixed in 2.3.0 , if newer version , no need to clean up splits
return splits ; } List < InputSplit > cleanedSplits = Lists . newArrayList ( ) ; for ( int i = 0 ; i < splits . size ( ) ; i ++ ) { CombineFileSplit oldSplit = ( CombineFil... |
public class RelationalDatabaseHardwareMarshaller { /** * Marshall the given parameter object . */
public void marshall ( RelationalDatabaseHardware relationalDatabaseHardware , ProtocolMarshaller protocolMarshaller ) { } } | if ( relationalDatabaseHardware == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( relationalDatabaseHardware . getCpuCount ( ) , CPUCOUNT_BINDING ) ; protocolMarshaller . marshall ( relationalDatabaseHardware . getDiskSizeInGb ( ) , DISKSIZ... |
public class Tuple9 { /** * Skip 4 degrees from this tuple . */
public final Tuple5 < T5 , T6 , T7 , T8 , T9 > skip4 ( ) { } } | return new Tuple5 < > ( v5 , v6 , v7 , v8 , v9 ) ; |
public class HandlerRequestUtils { /** * Returns { @ code requestValue } if it is not null , otherwise returns the query parameter value
* if it is not null , otherwise returns the default value . */
public static < T > T fromRequestBodyOrQueryParameter ( T requestValue , SupplierWithException < T , RestHandlerExcept... | if ( requestValue != null ) { return requestValue ; } else { T queryParameterValue = queryParameterExtractor . get ( ) ; if ( queryParameterValue != null ) { log . warn ( "Configuring the job submission via query parameters is deprecated." + " Please migrate to submitting a JSON request instead." ) ; return queryParame... |
public class CmsXmlSitemapActionElement { /** * Creates an XML sitemap generator instance given a class name and the root path for the sitemap . < p >
* @ param className the class name of the sitemap generator ( may be null for the default
* @ param folderRootPath the root path of the start folder for the sitemap ... | if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( className ) ) { className = ( String ) ( OpenCms . getRuntimeProperty ( PARAM_DEFAULT_SITEMAP_GENERATOR ) ) ; } if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( className ) ) { className = CmsXmlSitemapGenerator . class . getName ( ) ; } try { Class < ? extends CmsXmlSitemap... |
public class ParseUtils { /** * Returns CompiledPage produced by the SWEBLE parser using the
* SimpleWikiConfiguration .
* @ return the parsed page
* @ throws LinkTargetException
* @ throws EngineException if the wiki page could not be compiled by the parser
* @ throws JAXBException
* @ throws FileNotFoundE... | WikiConfig config = DefaultConfigEnWp . generate ( ) ; PageTitle pageTitle = PageTitle . make ( config , title ) ; PageId pageId = new PageId ( pageTitle , revision ) ; // Compile the retrieved page
WtEngineImpl engine = new WtEngineImpl ( config ) ; // Compile the retrieved page
return engine . postprocess ( pageId , ... |
public class BeanTypeImpl { /** * Returns all < code > field < / code > elements
* @ return list of < code > field < / code > */
public List < FieldType < BeanType < T > > > getAllField ( ) { } } | List < FieldType < BeanType < T > > > list = new ArrayList < FieldType < BeanType < T > > > ( ) ; List < Node > nodeList = childNode . get ( "field" ) ; for ( Node node : nodeList ) { FieldType < BeanType < T > > type = new FieldTypeImpl < BeanType < T > > ( this , "field" , childNode , node ) ; list . add ( type ) ; }... |
public class JsonArray { /** * Returns the value at { @ code index } if it exists and is a { @ code
* JsonArray } .
* @ throws JsonException if the value doesn ' t exist or is not a { @ code
* JsonArray } . */
public JsonArray getJsonArray ( int index ) throws JsonException { } } | JsonElement el = get ( index ) ; if ( ! el . isJsonArray ( ) ) { throw Util . typeMismatch ( index , el , "JsonArray" ) ; } return el . asJsonArray ( ) ; |
public class OcelotProcessor { /** * Get optional output directory
* @ param options
* @ return */
String getJsFramework ( Map < String , String > options ) { } } | if ( null != options ) { if ( options . containsKey ( ProcessorConstants . FRAMEWORK ) ) { return options . get ( ProcessorConstants . FRAMEWORK ) ; } } return null ; |
public class CastorDao { /** * sync / / / / / */
protected < L , S extends Persistable < L > > S _sync ( final Class < S > type , final S object ) { } } | if ( _LOG_ . isTraceEnabled ( ) ) { _LOG_ . trace ( "type: " + type . getName ( ) ) ; _LOG_ . trace ( "object: " + object ) ; } if ( object == null ) { return null ; } CastorDao < L , S > dao = getForwardingDao ( type ) ; S p_object = dao . _sync ( object ) ; return p_object ; |
public class CPDefinitionUtil { /** * Returns all the cp definitions where displayDate & lt ; & # 63 ; and status = & # 63 ; .
* @ param displayDate the display date
* @ param status the status
* @ return the matching cp definitions */
public static List < CPDefinition > findByLtD_S ( Date displayDate , int statu... | return getPersistence ( ) . findByLtD_S ( displayDate , status ) ; |
public class ApiResponseConversionUtils { /** * Converts the given HTTP message into an { @ code ApiResponseSet } .
* @ param historyId the ID of the message
* @ param historyType the type of the message
* @ param msg the HTTP message to be converted
* @ return the { @ code ApiResponseSet } with the ID , type a... | Map < String , String > map = new HashMap < > ( ) ; map . put ( "id" , String . valueOf ( historyId ) ) ; map . put ( "type" , String . valueOf ( historyType ) ) ; map . put ( "timestamp" , String . valueOf ( msg . getTimeSentMillis ( ) ) ) ; map . put ( "rtt" , String . valueOf ( msg . getTimeElapsedMillis ( ) ) ) ; m... |
public class InteractionCoordinator { /** * Procedures of same kind ( same ID ) can coexist if they can be further distinguished . < br / >
* A typical example stock procedures ( save , load , etc ) that are registered for different origins ( interaction units ) .
* @ param procedure */
@ Override public void addPr... | // TODO : verification of behaviour model
// known behaviour - > accept
// unknown behaviour - > issue warning
// provide context
procedure . setCoordinator ( this ) ; procedure . setStatementScope ( dialogState ) ; procedure . setRuntimeAPI ( this ) ; procedures . add ( procedure ) ; |
public class NameUtil { /** * Return the name of the MDB proxy class using the
* following template :
* The deployed name format is :
* < package name > . MDBProxy < bean name > _ < hashcode >
* Returns the name of the deployed class that implements the
* interface methods of the MDB bean . < p >
* See the ... | StringBuilder result = new StringBuilder ( ) ; // Use the package of the MDB implementation .
String packageName = packageName ( ivBeanClass ) ; if ( packageName != null ) { result . append ( packageName ) ; result . append ( '.' ) ; } result . append ( mdbProxyPrefix ) ; // MDBProxy
result . append ( ivBeanName ) ; //... |
public class InternalXbaseWithAnnotationsParser { /** * InternalXbaseWithAnnotations . g : 2901:1 : ruleXListLiteral returns [ EObject current = null ] : ( ( ) otherlv _ 1 = ' # ' otherlv _ 2 = ' [ ' ( ( ( lv _ elements _ 3_0 = ruleXExpression ) ) ( otherlv _ 4 = ' , ' ( ( lv _ elements _ 5_0 = ruleXExpression ) ) ) * ... | EObject current = null ; Token otherlv_1 = null ; Token otherlv_2 = null ; Token otherlv_4 = null ; Token otherlv_6 = null ; EObject lv_elements_3_0 = null ; EObject lv_elements_5_0 = null ; enterRule ( ) ; try { // InternalXbaseWithAnnotations . g : 2907:2 : ( ( ( ) otherlv _ 1 = ' # ' otherlv _ 2 = ' [ ' ( ( ( lv _ e... |
public class SshConnectionFactory { /** * Creates a { @ link SshConnection } .
* @ param host the host name
* @ param port the port
* @ param authentication the credentials
* @ return a new connection .
* @ throws IOException if so .
* @ see SshConnection
* @ see SshConnectionImpl */
public static SshConn... | return getConnection ( host , port , GerritDefaultValues . DEFAULT_GERRIT_PROXY , authentication ) ; |
public class Function { /** * Gets the rhsOperand value for this Function .
* @ return rhsOperand * Operand on the RHS of the equation . */
public com . google . api . ads . adwords . axis . v201809 . cm . FunctionArgumentOperand [ ] getRhsOperand ( ) { } } | return rhsOperand ; |
public class PriorityBlockingQueue { /** * Returns an array containing all of the elements in this queue ; the
* runtime type of the returned array is that of the specified array .
* The returned array elements are in no particular order .
* If the queue fits in the specified array , it is returned therein .
* ... | final ReentrantLock lock = this . lock ; lock . lock ( ) ; try { int n = size ; if ( a . length < n ) // Make a new array of a ' s runtime type , but my contents :
return ( T [ ] ) Arrays . copyOf ( queue , size , a . getClass ( ) ) ; System . arraycopy ( queue , 0 , a , 0 , n ) ; if ( a . length > n ) a [ n ] = null ;... |
public class ICalProperty { /** * Gets all values of a parameter with the given name .
* @ param name the parameter name ( case insensitive , e . g . " LANGUAGE " )
* @ return the parameter values ( this list is immutable ) */
public List < String > getParameters ( String name ) { } } | return Collections . unmodifiableList ( parameters . get ( name ) ) ; |
public class NumberSummaryStatistics { /** * Add all number summary statistics .
* @ param < N > the type parameter
* @ param numberStream the number stream
* @ return the number summary statistics */
public < N extends Number > NumberSummaryStatistics addAll ( Stream < N > numberStream ) { } } | return addAll ( numberStream . collect ( toList ( ) ) ) ; |
public class CeylonInstallJar { /** * Populates missing mojo parameters from the specified POM .
* @ param readModel The POM to extract missing artifact coordinates from ,
* must not be < code > null < / code > . */
private void processModel ( final Model readModel ) { } } | this . model = readModel ; Parent parent = readModel . getParent ( ) ; if ( this . groupId == null ) { this . groupId = readModel . getGroupId ( ) ; if ( this . groupId == null && parent != null ) { this . groupId = parent . getGroupId ( ) ; } } if ( this . artifactId == null ) { this . artifactId = readModel . getArti... |
public class bit { /** * Convert a binary representation of the given byte array to a string . The
* string has the following format :
* < pre >
* Byte : 3 2 1 0
* Array : " 11110011 | 10011101 | 0100000 | 00101010"
* Bit : 23 15 7 0
* < / pre >
* < i > Only the array string is printed . < / i >
* @ see... | final StringBuilder out = new StringBuilder ( ) ; if ( data . length > 0 ) { for ( int j = 7 ; j >= 0 ; -- j ) { out . append ( ( data [ data . length - 1 ] >>> j ) & 1 ) ; } } for ( int i = data . length - 2 ; i >= 0 ; -- i ) { out . append ( '|' ) ; for ( int j = 7 ; j >= 0 ; -- j ) { out . append ( ( data [ i ] >>> ... |
public class WTableRenderer { /** * Paints a single column heading .
* @ param col the column to paint .
* @ param sortable true if the column is sortable , false otherwise
* @ param renderContext the RenderContext to paint to . */
private void paintColumnHeading ( final WTableColumn col , final boolean sortable ... | XmlStringBuilder xml = renderContext . getWriter ( ) ; int width = col . getWidth ( ) ; Alignment align = col . getAlign ( ) ; xml . appendTagOpen ( "ui:th" ) ; xml . appendOptionalAttribute ( "width" , width > 0 , width ) ; xml . appendOptionalAttribute ( "sortable" , sortable , "true" ) ; if ( Alignment . RIGHT . equ... |
public class PersistenceBrokerImpl { /** * retrieve an Object by query
* I . e perform a SELECT . . . FROM . . . WHERE . . . in an RDBMS */
public Object getObjectByQuery ( Query query ) throws PersistenceBrokerException { } } | Object result = null ; if ( query instanceof QueryByIdentity ) { // example obj may be an entity or an Identity
Object obj = query . getExampleObject ( ) ; if ( obj instanceof Identity ) { Identity oid = ( Identity ) obj ; result = getObjectByIdentity ( oid ) ; } else { // TODO : This workaround doesn ' t allow ' null ... |
public class XmlUtils { /** * Return an XMLStreamWriter which indents the xml
* ( ideally XMLOutputFactory would support a property which would set this up for us to avoid a dependency
* on a com . sun . xml class , but it doesn ' t for the present time appear to do so ) */
public static XMLStreamWriter getIndentin... | XMLOutputFactory f = XMLOutputFactory . newInstance ( ) ; return new IndentingXMLStreamWriter ( f . createXMLStreamWriter ( writer ) ) ; |
public class CmsRemovedElementDeletionDialog { /** * Gets a list of the dialog buttons . < p >
* @ return the list of dialog buttons */
private List < CmsPushButton > getDialogButtons ( ) { } } | List < CmsPushButton > result = new ArrayList < CmsPushButton > ( ) ; result . add ( m_cancelButton ) ; result . add ( m_okButton ) ; return result ; |
public class NetworkWatchersInner { /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules .
* @ param resourceGroupName The name of the resource group .
* @ param networkWatcherName The name of the network watcher .
* @ param parameters Parameters that define the IP flo... | if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( networkWatcherName == null ) { throw new IllegalArgumentException ( "Parameter networkWatcherName is required and cannot be null." ) ; } if ( this . client . subscriptionId ( ... |
public class BshClassPath { /** * Begin Static stuff */
static String [ ] traverseDirForClasses ( File dir ) throws IOException { } } | List list = traverseDirForClassesAux ( dir , dir ) ; return ( String [ ] ) list . toArray ( new String [ 0 ] ) ; |
public class CollectionDef { /** * < code > optional . tensorflow . CollectionDef . AnyList any _ list = 5 ; < / code > */
public org . tensorflow . framework . CollectionDef . AnyList getAnyList ( ) { } } | if ( kindCase_ == 5 ) { return ( org . tensorflow . framework . CollectionDef . AnyList ) kind_ ; } return org . tensorflow . framework . CollectionDef . AnyList . getDefaultInstance ( ) ; |
public class Tabs { /** * Method to reload the content of an Ajax tab programmatically within the ajax
* request
* @ param index
* Index tab to select
* @ param ajaxRequestTarget */
public void load ( AjaxRequestTarget ajaxRequestTarget , int index ) { } } | ajaxRequestTarget . appendJavaScript ( this . load ( index ) . render ( ) . toString ( ) ) ; |
public class DynamoDBReflector { /** * Returns whether the method given is a getter method we should serialize /
* deserialize to the service . The method must begin with " get " or " is " ,
* have no arguments , belong to a class that declares its table , and not be
* marked ignored . */
private boolean isReleva... | return ( m . getName ( ) . startsWith ( "get" ) || m . getName ( ) . startsWith ( "is" ) ) && m . getParameterTypes ( ) . length == 0 && m . getDeclaringClass ( ) . getAnnotation ( DynamoDBTable . class ) != null && ! m . isAnnotationPresent ( DynamoDBIgnore . class ) ; |
public class SamlServiceProvider { /** * Creates a decorator which initiates a SAML authentication if a request is not authenticated . */
public Function < Service < HttpRequest , HttpResponse > , Service < HttpRequest , HttpResponse > > newSamlDecorator ( ) { } } | return delegate -> new SamlDecorator ( this , delegate ) ; |
public class QueuedSink { /** * so , setting up minimum threshold as 1 message per millisecond */
public long checkPause ( ) { } } | if ( pauseOnLongQueue && ( getNumOfPendingMessages ( ) > queue4Sink . remainingCapacity ( ) || getNumOfPendingMessages ( ) > MAX_PENDING_MESSAGES_TO_PAUSE ) ) { double throughputRate = Math . max ( throughput . meanRate ( ) , 1.0 ) ; return ( long ) ( getNumOfPendingMessages ( ) / throughputRate ) ; } else { return 0 ;... |
public class ProducerSessionProxy { /** * This helper method is used to send the final or only part of a message to our peer . It takes
* care of whether we should be exchanging the message and deals with the exceptions returned .
* @ param request The request buffer
* @ param jfapPriority The JFap priority to se... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "sendData" , new Object [ ] { request , jfapPriority , requireReply , tran , outboundSegmentType , outboundNoReplySegmentType , replySegmentType } ) ; if ( requireReply ) { // Pass on call to server
CommsByteBuffer re... |
public class PrimitiveTransformation { /** * < code > . google . privacy . dlp . v2 . RedactConfig redact _ config = 2 ; < / code > */
public com . google . privacy . dlp . v2 . RedactConfigOrBuilder getRedactConfigOrBuilder ( ) { } } | if ( transformationCase_ == 2 ) { return ( com . google . privacy . dlp . v2 . RedactConfig ) transformation_ ; } return com . google . privacy . dlp . v2 . RedactConfig . getDefaultInstance ( ) ; |
public class ModificationExpansionRule { /** * { @ inheritDoc } */
@ Override public List < Statement > expand ( Term term ) { } } | List < Statement > statements = new ArrayList < Statement > ( ) ; // first argument of a protein mod term is the protein parameter
BELObject proteinArgument = term . getFunctionArguments ( ) . get ( 0 ) ; Parameter pp = ( Parameter ) proteinArgument ; // second argument of a protein mod term is the modification
BELObje... |
public class NotificationEntry { /** * Set a action to be fired when the notification content gets clicked .
* @ param listener
* @ param extra */
public void setContentAction ( Action . OnActionListener listener , Bundle extra ) { } } | setContentAction ( listener , null , null , null , extra ) ; |
public class ConstantsSummaryWriterImpl { /** * Add the row for the constant summary table .
* @ param member the field to be documented .
* @ param trTree an htmltree object for the table row */
private void addConstantMember ( FieldDoc member , HtmlTree trTree ) { } } | trTree . addContent ( getTypeColumn ( member ) ) ; trTree . addContent ( getNameColumn ( member ) ) ; trTree . addContent ( getValue ( member ) ) ; |
public class CPFriendlyURLEntryUtil { /** * Returns the cp friendly url entry where groupId = & # 63 ; and classNameId = & # 63 ; and languageId = & # 63 ; and urlTitle = & # 63 ; or returns < code > null < / code > if it could not be found . Uses the finder cache .
* @ param groupId the group ID
* @ param classNam... | return getPersistence ( ) . fetchByG_C_L_U ( groupId , classNameId , languageId , urlTitle ) ; |
public class HttpURI { public void clear ( ) { } } | _uri = null ; _scheme = null ; _host = null ; _port = - 1 ; _path = null ; _param = null ; _query = null ; _fragment = null ; _decodedPath = null ; |
public class ReferenceDescriptorConstraints { /** * Ensures that the given reference descriptor has the class - ref property .
* @ param refDef The reference descriptor
* @ param checkLevel The current check level ( this constraint is checked in basic ( partly ) and strict )
* @ exception ConstraintException If a... | if ( CHECKLEVEL_NONE . equals ( checkLevel ) ) { return ; } if ( ! refDef . hasProperty ( PropertyHelper . OJB_PROPERTY_CLASS_REF ) ) { if ( refDef . hasProperty ( PropertyHelper . OJB_PROPERTY_DEFAULT_CLASS_REF ) ) { // we use the type of the reference variable
refDef . setProperty ( PropertyHelper . OJB_PROPERTY_CLAS... |
public class MutableRoaringBitmap { /** * Set the specified values to true , within given boundaries . This can be expected to be slightly
* faster than calling " add " repeatedly . The provided integers values don ' t
* have to be in sorted order , but it may be preferable to sort them from a performance point of ... | MutableRoaringArray mra = ( MutableRoaringArray ) highLowContainer ; MappeableContainer currentcont = null ; short currenthb = 0 ; int currentcontainerindex = 0 ; int j = 0 ; if ( j < n ) { int val = dat [ j + offset ] ; currenthb = BufferUtil . highbits ( val ) ; currentcontainerindex = highLowContainer . getIndex ( c... |
public class FieldUtils { /** * Gets an accessible { @ link Field } by name , breaking scope if requested . Only the specified class will be
* considered .
* @ param cls
* the { @ link Class } to reflect , must not be { @ code null }
* @ param fieldName
* the field name to obtain
* @ param forceAccess
* w... | Validate . isTrue ( cls != null , "The class must not be null" ) ; Validate . isTrue ( StringUtils . isNotBlank ( fieldName ) , "The field name must not be blank/empty" ) ; try { // only consider the specified class by using getDeclaredField ( )
final Field field = cls . getDeclaredField ( fieldName ) ; if ( ! MemberUt... |
public class TransactionException { /** * Thrown when a Type has incoming edges and therefore cannot be deleted */
public static TransactionException cannotBeDeleted ( SchemaConcept schemaConcept ) { } } | return create ( ErrorMessage . CANNOT_DELETE . getMessage ( schemaConcept . label ( ) ) ) ; |
public class IOUtils { /** * < p > getJarManifestValue . < / p >
* @ param clazz a { @ link java . lang . Class } object .
* @ param attrName a { @ link java . lang . String } object .
* @ return a { @ link java . lang . String } object . */
public static String getJarManifestValue ( Class clazz , String attrName... | URL url = getResource ( "/" + clazz . getName ( ) . replace ( '.' , '/' ) + ".class" ) ; if ( url != null ) try { URLConnection uc = url . openConnection ( ) ; if ( uc instanceof java . net . JarURLConnection ) { JarURLConnection juc = ( JarURLConnection ) uc ; Manifest m = juc . getManifest ( ) ; return m . getMainAtt... |
public class PoolablePreparedStatement { /** * Method setURL .
* @ param parameterIndex
* @ param x
* @ throws SQLException
* @ see java . sql . PreparedStatement # setURL ( int , URL ) */
@ Override public void setURL ( int parameterIndex , URL x ) throws SQLException { } } | internalStmt . setURL ( parameterIndex , x ) ; |
public class DescribeGameSessionQueuesResult { /** * Collection of objects that describes the requested game session queues .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setGameSessionQueues ( java . util . Collection ) } or { @ link # withGameSessionQueu... | if ( this . gameSessionQueues == null ) { setGameSessionQueues ( new java . util . ArrayList < GameSessionQueue > ( gameSessionQueues . length ) ) ; } for ( GameSessionQueue ele : gameSessionQueues ) { this . gameSessionQueues . add ( ele ) ; } return this ; |
public class Choice5 { /** * Specialize this choice ' s projection to a { @ link Tuple5 } .
* @ return a { @ link Tuple5} */
@ Override public Tuple5 < Maybe < A > , Maybe < B > , Maybe < C > , Maybe < D > , Maybe < E > > project ( ) { } } | return into5 ( HList :: tuple , CoProduct5 . super . project ( ) ) ; |
public class JmsMessageImpl { /** * Clear special case properties held in this
* message . Invoked at send time . */
void clearLocalProperties ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "clearLocalProperties" ) ; if ( locallyStoredPropertyValues != null ) locallyStoredPropertyValues . clear ( ) ; // d255144 Also clear the local version of the messageID
localJMSMessageID = null ; if ( TraceComponent .... |
public class AliasDestinationHandler { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . impl . interfaces . DestinationHandler # choosePtoPOutputHandler ( com . ibm . ws . sib . mfp . JsDestinationAddress ) */
@ Override public OutputHandler choosePtoPOutputHandler ( SIBUuid8 fixedMEUuid , SIBUuid8 ... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "choosePtoPOutputHandler" , new Object [ ] { fixedMEUuid , preferredMEUuid , localMessage , forcePut , scopedMEs } ) ; OutputHandler result = null ; boolean error = false ; // We ' re an alias so we should never be called wi... |
public class ElementMatchers { /** * Matches a field ' s generic type against the provided matcher .
* @ param fieldType The field type to match .
* @ param < T > The type of the matched object .
* @ return A matcher matching the provided field type . */
public static < T extends FieldDescription > ElementMatcher... | return genericFieldType ( TypeDefinition . Sort . describe ( fieldType ) ) ; |
public class TeletextSourceSettingsMarshaller { /** * Marshall the given parameter object . */
public void marshall ( TeletextSourceSettings teletextSourceSettings , ProtocolMarshaller protocolMarshaller ) { } } | if ( teletextSourceSettings == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( teletextSourceSettings . getPageNumber ( ) , PAGENUMBER_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: ... |
public class AbstractIntDoubleMap { /** * Returns the first key the given value is associated with .
* It is often a good idea to first check with { @ link # containsValue ( double ) } whether there exists an association from a key to this value .
* Search order is guaranteed to be < i > identical < / i > to the or... | final int [ ] foundKey = new int [ 1 ] ; boolean notFound = forEachPair ( new IntDoubleProcedure ( ) { public boolean apply ( int iterKey , double iterValue ) { boolean found = value == iterValue ; if ( found ) foundKey [ 0 ] = iterKey ; return ! found ; } } ) ; if ( notFound ) return Integer . MIN_VALUE ; return found... |
public class JMLambda { /** * Merge map .
* @ param < T > the type parameter
* @ param < R > the type parameter
* @ param stream the stream
* @ return the map */
public static < T , R > Map < R , T > merge ( Stream < Map < R , T > > stream ) { } } | return stream . collect ( HashMap :: new , Map :: putAll , Map :: putAll ) ; |
public class PathMatchingResourcePatternResolver { /** * Search all { @ link URLClassLoader } URLs for jar file references and add them to the
* given set of resources in the form of pointers to the root of the jar file content .
* @ param classLoader the ClassLoader to search ( including its ancestors )
* @ para... | if ( classLoader instanceof URLClassLoader ) { try { for ( URL url : ( ( URLClassLoader ) classLoader ) . getURLs ( ) ) { if ( ResourceUtils . isJarFileURL ( url ) ) { try { UrlResource jarResource = new UrlResource ( ResourceUtils . JAR_URL_PREFIX + url . toString ( ) + ResourceUtils . JAR_URL_SEPARATOR ) ; if ( jarRe... |
public class XXHash32 { /** * Computes the hash of the given { @ link ByteBuffer } . The
* { @ link ByteBuffer # position ( ) position } is moved in order to reflect bytes
* which have been read .
* @ param buf the input data
* @ param seed the seed to use
* @ return the hash value */
public final int hash ( ... | final int hash = hash ( buf , buf . position ( ) , buf . remaining ( ) , seed ) ; buf . position ( buf . limit ( ) ) ; return hash ; |
public class FileUtils { /** * Compare two strings , with case sensitivity determined by the operating system .
* @ param s1 the first String to compare .
* @ param s2 the second String to compare .
* @ return < code > true < / code > when :
* < ul >
* < li > the strings match exactly ( including case ) , or ... | if ( OS_CASE_SENSITIVE ) { return s1 . equals ( s2 ) ; } else { return s1 . equalsIgnoreCase ( s2 ) ; } |
public class ListManagementImageListsImpl { /** * Refreshes the index of the list with list Id equal to list Id passed .
* @ param listId List Id of the image list .
* @ param serviceCallback the async ServiceCallback to handle successful and failed responses .
* @ throws IllegalArgumentException thrown if parame... | return ServiceFuture . fromResponse ( refreshIndexMethodWithServiceResponseAsync ( listId ) , serviceCallback ) ; |
public class LocalsStateGenerators { /** * Generates instructions to load the local variables table .
* @ param markerType debug marker type
* @ param storageVars variables to load locals from
* @ param frame execution frame at the instruction for which the local variables table is to be restored
* @ return ins... | Validate . notNull ( markerType ) ; Validate . notNull ( storageVars ) ; Validate . notNull ( frame ) ; Variable intsVar = storageVars . getIntStorageVar ( ) ; Variable floatsVar = storageVars . getFloatStorageVar ( ) ; Variable longsVar = storageVars . getLongStorageVar ( ) ; Variable doublesVar = storageVars . getDou... |
public class DoubleArrayTrie { /** * 将自己序列化到
* @ param path
* @ return */
public boolean serializeTo ( String path ) { } } | ObjectOutputStream out = null ; try { out = new ObjectOutputStream ( IOUtil . newOutputStream ( path ) ) ; out . writeObject ( this ) ; } catch ( Exception e ) { // e . printStackTrace ( ) ;
return false ; } return true ; |
public class RecordingReader { /** * Add the requested query string arguments to the Request .
* @ param request Request to add query string arguments to */
private void addQueryParams ( final Request request ) { } } | if ( absoluteDateCreated != null ) { request . addQueryParam ( "DateCreated" , absoluteDateCreated . toString ( Request . QUERY_STRING_DATE_FORMAT ) ) ; } else if ( rangeDateCreated != null ) { request . addQueryDateRange ( "DateCreated" , rangeDateCreated ) ; } if ( getPageSize ( ) != null ) { request . addQueryParam ... |
public class SkillsApi { /** * Get character skills ( asynchronously ) List all trained skills for the
* given character - - - This route is cached for up to 120 seconds SSO Scope :
* esi - skills . read _ skills . v1
* @ param characterId
* An EVE character ID ( required )
* @ param datasource
* The server... | com . squareup . okhttp . Call call = getCharactersCharacterIdSkillsValidateBeforeCall ( characterId , datasource , ifNoneMatch , token , callback ) ; Type localVarReturnType = new TypeToken < CharacterSkillsResponse > ( ) { } . getType ( ) ; apiClient . executeAsync ( call , localVarReturnType , callback ) ; return ca... |
public class EquinoxClassLoaderHandler { /** * Add the bundle file .
* @ param bundlefile
* the bundle file
* @ param path
* the path
* @ param classLoader
* the classloader
* @ param classpathOrderOut
* the classpath order
* @ param scanSpec
* the scan spec
* @ param log
* the log */
private st... | // Don ' t get stuck in infinite loop
if ( bundlefile != null && path . add ( bundlefile ) ) { // type File
final Object basefile = ReflectionUtils . getFieldVal ( bundlefile , "basefile" , false ) ; if ( basefile != null ) { boolean foundClassPathElement = false ; for ( final String fieldName : FIELD_NAMES ) { final O... |
public class CacheConfigurationBuilder { /** * Adds or updates the { @ link DefaultSizeOfEngineConfiguration } with the specified object graph maximum size to the configured
* builder .
* { @ link SizeOfEngine } is what enables the heap tier to be sized in { @ link MemoryUnit } .
* @ param size the maximum graph ... | return mapServiceConfiguration ( DefaultSizeOfEngineConfiguration . class , existing -> ofNullable ( existing ) . map ( e -> new DefaultSizeOfEngineConfiguration ( e . getMaxObjectSize ( ) , e . getUnit ( ) , size ) ) . orElse ( new DefaultSizeOfEngineConfiguration ( DEFAULT_MAX_OBJECT_SIZE , DEFAULT_UNIT , size ) ) ) ... |
public class Main { /** * Validator standalone tool
* @ param args command line arguments */
public static void main ( String [ ] args ) { } } | boolean quiet = false ; String outputDir = "." ; // put report into current directory by default
int arg = 0 ; String [ ] classpath = null ; if ( args . length > 0 ) { while ( args . length > arg + 1 ) { if ( args [ arg ] . startsWith ( "-" ) ) { if ( args [ arg ] . endsWith ( "quiet" ) ) { quiet = true ; } else if ( a... |
public class CodingUtil { /** * AES解密 */
public static String decryptToAes ( String content , String pwd ) { } } | if ( StringUtil . isEmpty ( content ) || StringUtil . isEmpty ( pwd ) ) { return null ; } try { SecretKeySpec key = new SecretKeySpec ( getKey ( pwd ) . getEncoded ( ) , AES ) ; Cipher cipher = Cipher . getInstance ( AES ) ; cipher . init ( Cipher . DECRYPT_MODE , key ) ; byte [ ] result = cipher . doFinal ( hexToByte ... |
public class DescribeTapeArchivesResult { /** * An array of virtual tape objects in the virtual tape shelf ( VTS ) . The description includes of the Amazon Resource
* Name ( ARN ) of the virtual tapes . The information returned includes the Amazon Resource Names ( ARNs ) of the tapes ,
* size of the tapes , status ... | if ( this . tapeArchives == null ) { setTapeArchives ( new com . amazonaws . internal . SdkInternalList < TapeArchive > ( tapeArchives . length ) ) ; } for ( TapeArchive ele : tapeArchives ) { this . tapeArchives . add ( ele ) ; } return this ; |
public class HibernateClient { /** * ( non - Javadoc )
* @ see com . impetus . kundera . client . Client # find ( java . lang . Class ,
* java . lang . String ) */
@ Override public Object find ( Class clazz , Object key ) { } } | s = getStatelessSession ( ) ; Object result = null ; try { result = s . get ( clazz , ( Serializable ) key ) ; } catch ( ClassCastException ccex ) { log . error ( "Class can not be serializable, Caused by {}." , ccex ) ; throw new KunderaException ( ccex ) ; } catch ( Exception e ) { log . error ( "Error while finding,... |
public class StringUtils { /** * Removes any whitespace from a String , correctly handling surrogate characters
* @ param string String to process
* @ return String with any whitespace removed */
public static String removeWhitespace ( String string ) { } } | if ( string == null || string . length ( ) == 0 ) { return string ; } else { int codePoints = string . codePointCount ( 0 , string . length ( ) ) ; StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < codePoints ; i ++ ) { int offset = string . offsetByCodePoints ( 0 , i ) ; int nextCodePoint = string . cod... |
public class LottieAnimationView { /** * Sets a composition .
* You can set a default cache strategy if this view was inflated with xml by
* using { @ link R . attr # lottie _ cacheStrategy } . */
public void setComposition ( @ NonNull LottieComposition composition ) { } } | if ( L . DBG ) { Log . v ( TAG , "Set Composition \n" + composition ) ; } lottieDrawable . setCallback ( this ) ; this . composition = composition ; boolean isNewComposition = lottieDrawable . setComposition ( composition ) ; enableOrDisableHardwareLayer ( ) ; if ( getDrawable ( ) == lottieDrawable && ! isNewCompositio... |
public class RelaxNGDefaultsComponent { /** * This method is copied from com . icl . saxon . ProcInstParser and used in the
* PIFinder
* Interpret character references and built - in entity references */
private String unescape ( String value ) { } } | if ( value . indexOf ( '&' ) < 0 ) { return value ; } StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < value . length ( ) ; i ++ ) { char c = value . charAt ( i ) ; if ( c == '&' ) { if ( i + 2 < value . length ( ) && value . charAt ( i + 1 ) == '#' ) { if ( value . charAt ( i + 2 ) == 'x' ) { int x = i... |
public class MultiScopeRecoveryLog { /** * Removes a RecoverableUnitImpl object , keyed from its identity from this
* classes collection of such objects .
* @ param identity The identity of the RecoverableUnitImpl to be removed
* @ return RecoverableUnitImpl The RecoverableUnitImpl thats no longer associated
* ... | if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "removeRecoverableUnitMapEntries" , new Object [ ] { identity , this } ) ; final RecoverableUnitImpl recoverableUnit = ( RecoverableUnitImpl ) _recoverableUnits . remove ( identity ) ; if ( recoverableUnit != null ) { _recUnitIdTable . removeId ( identity ) ; } if ( tc .... |
public class Criteria { /** * Adds and equals ( = ) criteria for field comparison .
* The field name will be translated into the appropriate columnName by SqlStatement .
* < br >
* name < > boss . name
* @ param attribute The field name to be used
* @ param fieldName The field name to compare with */
public v... | // PAW
// SelectionCriteria c = FieldCriteria . buildNotEqualToCriteria ( attribute , fieldName , getAlias ( ) ) ;
SelectionCriteria c = FieldCriteria . buildNotEqualToCriteria ( attribute , fieldName , getUserAlias ( attribute ) ) ; addSelectionCriteria ( c ) ; |
public class CollectionInterpreter { /** * < p > missingRow . < / p >
* @ param row a { @ link com . greenpepper . Example } object . */
protected void missingRow ( Example row ) { } } | Example firstChild = row . firstChild ( ) ; firstChild . annotate ( Annotations . missing ( ) ) ; stats . wrong ( ) ; if ( firstChild . hasSibling ( ) ) { for ( Example cell : firstChild . nextSibling ( ) ) { cell . annotate ( Annotations . missing ( ) ) ; } } |
public class AbstractCacheMap { /** * ( non - Javadoc )
* @ see java . util . Map # get ( java . lang . Object ) */
@ Override public V get ( Object key ) { } } | if ( key == null ) { throw new NullPointerException ( ) ; } CachedValue < K , V > entry = map . get ( key ) ; if ( entry == null ) { return null ; } if ( isValueExpired ( entry ) ) { if ( map . remove ( key , entry ) ) { onValueRemove ( entry ) ; return null ; } return get ( key ) ; } return readValue ( entry ) ; |
public class ExtraParamMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ExtraParam extraParam , ProtocolMarshaller protocolMarshaller ) { } } | if ( extraParam == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( extraParam . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( extraParam . getValue ( ) , VALUE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientExcepti... |
public class InventoryFilterMarshaller { /** * Marshall the given parameter object . */
public void marshall ( InventoryFilter inventoryFilter , ProtocolMarshaller protocolMarshaller ) { } } | if ( inventoryFilter == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( inventoryFilter . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( inventoryFilter . getCondition ( ) , CONDITION_BINDING ) ; protocolMarshaller . marshall... |
public class AppServiceCertificateOrdersInner { /** * Resend certificate email .
* Resend certificate email .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param certificateOrderName Name of the certificate order .
* @ throws IllegalArgumentException thrown if parame... | resendEmailWithServiceResponseAsync ( resourceGroupName , certificateOrderName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class RTMPProtocolDecoder { /** * Sets incoming connection parameters and / or returns encoded parameters for use in a call .
* @ param in
* @ param notify
* @ param input
* @ return parameters array */
private Object [ ] handleParameters ( IoBuffer in , Notify notify , Input input ) { } } | Object [ ] params = new Object [ ] { } ; List < Object > paramList = new ArrayList < > ( ) ; final Object obj = Deserializer . deserialize ( input , Object . class ) ; if ( obj instanceof Map ) { // Before the actual parameters we sometimes ( connect ) get a map of parameters , this is usually null , but if set should ... |
public class DescribeGameSessionDetailsResult { /** * Collection of objects containing game session properties and the protection policy currently in force for each
* session matching the request .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setGameSess... | if ( this . gameSessionDetails == null ) { setGameSessionDetails ( new java . util . ArrayList < GameSessionDetail > ( gameSessionDetails . length ) ) ; } for ( GameSessionDetail ele : gameSessionDetails ) { this . gameSessionDetails . add ( ele ) ; } return this ; |
public class UriUtils { /** * TODO use UTF - 8 before escaping , this only works for ascii ( which is all we currently need ) */
private static void appendEncoded ( StringBuilder sb , String value ) { } } | for ( char ch : value . toCharArray ( ) ) { if ( isUnreserved ( ch ) ) sb . append ( ch ) ; else appendEscapedByte ( sb , ( byte ) ch ) ; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.