signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class CmsJspVfsAccessBean { /** * Creates a new instance of the JSP VFS access utility bean . < p > * To prevent multiple creations of the bean during a request , the OpenCms request context * attributes are used to cache the created VFS access utility bean . < p > * @ param cms the current OpenCms user co...
CmsJspVfsAccessBean result ; Object attribute = cms . getRequestContext ( ) . getAttribute ( ATTRIBUTE_VFS_ACCESS_BEAN ) ; if ( attribute != null ) { result = ( CmsJspVfsAccessBean ) attribute ; } else { result = new CmsJspVfsAccessBean ( cms ) ; cms . getRequestContext ( ) . setAttribute ( ATTRIBUTE_VFS_ACCESS_BEAN , ...
public class CharsetUtil { /** * 转换为Charset对象 * @ param charsetName 字符集 , 为空则返回默认字符集 * @ return Charset * @ throws UnsupportedCharsetException 编码不支持 */ public static Charset charset ( String charsetName ) throws UnsupportedCharsetException { } }
return StrUtil . isBlank ( charsetName ) ? Charset . defaultCharset ( ) : Charset . forName ( charsetName ) ;
public class Serializer { /** * Escape XML reserved chars and write as element text content . Used by text and numbering operators to actually write the * element text content . At the moment this method is invoked templates engine was already wrote start tag , including * closing tag mark , e . g . < em > & lt ; d...
writer . write ( ( String ) Strings . escapeXML ( text ) ) ;
public class XML { /** * Writes the xml mapping file starting from xmlJmapper object . * @ return this instance of XML */ public XML write ( ) { } }
try { FilesManager . write ( xmlJmapper , xmlPath ) ; } catch ( IOException e ) { JmapperLog . error ( e ) ; } return this ;
public class JRemoteComboBox { /** * Free this object ' s resources . */ public void free ( ) { } }
if ( m_record != null ) if ( ( m_record . getOwner ( ) == null ) || ( m_record . getOwner ( ) == this ) ) m_record . free ( ) ; // This will release the remote session ( if there is one ) . m_record = null ;
public class DataFrameJoiner { /** * Joins the joiner to the table2 , using the given column for the second table and returns the resulting table * @ param table2 The table to join with * @ param col2Name The column to join on . If col2Name refers to a double column , the join is performed after * rounding to int...
return rightOuter ( table2 , false , col2Name ) ;
public class MtasSolrStatus { /** * Key . * @ return the string */ public final String key ( ) { } }
key = ( key == null ) ? UUID . randomUUID ( ) . toString ( ) : key ; return key ;
public class Updater { /** * Execute an async request using specified client . * @ param client client used to make request * @ return future that resolves to requested object */ public ListenableFuture < T > updateAsync ( final TwilioRestClient client ) { } }
return Twilio . getExecutorService ( ) . submit ( new Callable < T > ( ) { public T call ( ) { return update ( client ) ; } } ) ;
public class AbstractCommandLineRunner { /** * Create a writer with the legacy output charset . */ @ GwtIncompatible ( "Unnecessary" ) private Writer streamToLegacyOutputWriter ( OutputStream stream ) throws IOException { } }
if ( legacyOutputCharset == null ) { return new BufferedWriter ( new OutputStreamWriter ( stream , UTF_8 ) ) ; } else { return new BufferedWriter ( new OutputStreamWriter ( stream , legacyOutputCharset ) ) ; }
public class ListListModel { /** * Set the value of a list element at the specified index . * @ param index of element to set * @ param element New element value * @ return old element value */ public Object set ( int index , Object element ) { } }
Object oldObject = items . set ( index , element ) ; if ( hasChanged ( oldObject , element ) ) { fireContentsChanged ( index ) ; } return oldObject ;
public class ThreadPoolController { /** * Adjust the size of the thread pool . * @ param poolSize the current pool size * @ param poolAdjustment the change to make to the pool * @ return the new pool size */ int adjustPoolSize ( int poolSize , int poolAdjustment ) { } }
if ( threadPool == null ) return poolSize ; // arguably should return 0 , but " least change " is safer . . . This happens during shutdown . int newPoolSize = poolSize + poolAdjustment ; lastAction = LastAction . NONE ; if ( poolAdjustment != 0 ) { // don ' t shrink below coreThreads if ( poolAdjustment < 0 && newPoolS...
public class ContainerRegistryAuthSupplier { /** * Get an accessToken to use , possibly refreshing the token if it expires within the * minimumExpiryMillis . */ private AccessToken getAccessToken ( ) throws IOException { } }
// synchronize attempts to refresh the accessToken synchronized ( credentials ) { if ( needsRefresh ( credentials . getAccessToken ( ) ) ) { credentialRefresher . refresh ( credentials ) ; } } return credentials . getAccessToken ( ) ;
public class Conversation { /** * Made public for testing . There is no other reason to use this method directly . */ public void storeInteractionManifest ( String interactionManifest ) { } }
try { InteractionManifest payload = new InteractionManifest ( interactionManifest ) ; Interactions interactions = payload . getInteractions ( ) ; Targets targets = payload . getTargets ( ) ; if ( interactions != null && targets != null ) { setTargets ( targets . toString ( ) ) ; setInteractions ( interactions . toStrin...
public class StaticSelectEkstaziMojo { /** * INTERNAL */ protected List < String > computeNonAffectedClasses ( ) { } }
List < String > nonAffectedClasses = new ArrayList ( ) ; if ( ! getForceall ( ) ) { // Create excludes list ; we assume that all files are in // the parentdir . nonAffectedClasses = AffectedChecker . findNonAffectedClasses ( parentdir , getRootDirOption ( ) ) ; // Do not exclude recently failing tests if appropriate //...
public class OptionsBuilder { /** * load supported options from command output . then modify some options * manually . step 1 : launch raspistill command to load supported options step 2: * configurate zero long options * @ param name * raspistill raspivid . . . raspberrypi camera command line name */ public st...
synchronized ( SINGLETONS ) { if ( SINGLETONS . containsKey ( name ) ) { return SINGLETONS . get ( name ) ; } Options options = new Options ( ) ; List < String > lines = CommanderUtil . execute ( name ) ; for ( String line : lines ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( line ) ; } if ( ! line . starts...
public class Layout { /** * Returns true if the given layout matches this one . Layout ID , * generation , and creation info is not considered in the comparison . */ public boolean equalLayouts ( Layout layout ) throws FetchException { } }
if ( this == layout ) { return true ; } return getStorableTypeName ( ) . equals ( layout . getStorableTypeName ( ) ) && getAllProperties ( ) . equals ( layout . getAllProperties ( ) ) && Arrays . equals ( mStoredLayout . getExtraData ( ) , layout . mStoredLayout . getExtraData ( ) ) ;
public class ObjectFactory2 { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link MentionOf } { @ code > } } */ @ XmlElementDecl ( namespace = "http://www.w3.org/ns/prov#" , name = "mentionOf" ) public JAXBElement < MentionOf > createMentionOf ( MentionOf value ) { } }
return new JAXBElement < MentionOf > ( _MentionOf_QNAME , MentionOf . class , null , value ) ;
public class KerasModelBuilder { /** * Set model architecture from input stream of model YAML . * @ param modelYamlInputStream Input stream of model YAML * @ return Model builder * @ throws IOException I / O exception */ public KerasModelBuilder modelYamlInputStream ( InputStream modelYamlInputStream ) throws IOE...
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream ( ) ; IOUtils . copy ( modelYamlInputStream , byteArrayOutputStream ) ; this . modelJson = new String ( byteArrayOutputStream . toByteArray ( ) ) ; return this ;
public class NonBlockingCharArrayWriter { /** * Write a portion of a string to the buffer . * @ param sStr * String to be written from * @ param nOfs * Offset from which to start reading characters * @ param nLen * Number of characters to be written */ @ Override public void write ( @ Nonnull final String s...
if ( nLen > 0 ) { final int newcount = m_nCount + nLen ; if ( newcount > m_aBuf . length ) { m_aBuf = Arrays . copyOf ( m_aBuf , Math . max ( m_aBuf . length << 1 , newcount ) ) ; } sStr . getChars ( nOfs , nOfs + nLen , m_aBuf , m_nCount ) ; m_nCount = newcount ; }
public class Database { /** * Creates database controller and new database instance if wasn ' t created yet or parameter reset was set to true . * @ param app Application instance . * @ param resetDBHelperInstance True if underlying db helper should be recreated . This should be set to true only for tests . * @ p...
if ( dbHelper == null ) { dbHelper = DatabaseHelper . getInstance ( app . getApplicationContext ( ) ) ; } else if ( resetDBHelperInstance ) { // For testing purposes we need separate instance of DatabaseHelper for every test . dbHelper = new DatabaseHelper ( app . getApplicationContext ( ) ) ; } return new Database ( l...
public class StringConverter { /** * Serializes a Java object to a String representation . * @ param obj * the object to serialize * @ param converters * an optional collection of custom converter classes * @ return a String representation of the Java object */ public String serialize ( final Object obj , fin...
final DelegatingConverter delegatingConverter = new DelegatingConverter ( ) ; if ( converters != null ) { for ( final Converter < ? > converter : converters ) { delegatingConverter . addConverter ( converter ) ; } } delegatingConverter . addConverter ( new ConfigurationItemConverter ( ) ) ; delegatingConverter . addCon...
public class CachedConnectionManagerImpl { /** * { @ inheritDoc } */ public void registerConnection ( org . ironjacamar . core . api . connectionmanager . ConnectionManager cm , org . ironjacamar . core . api . connectionmanager . listener . ConnectionListener cl , Object connection ) { } }
if ( debug ) { synchronized ( connectionStackTraces ) { connectionStackTraces . put ( connection , new Throwable ( "STACKTRACE" ) ) ; } } Context context = currentContext ( ) ; log . tracef ( "registering connection from connection manager: %s, connection : %s, context: %s" , cm , connection , context ) ; if ( context ...
public class HttpUtils { /** * Uses the post method to send a url with arguments by http , this method can call RESTful Api . * @ param url the http url * @ param timeout milliseconds to wait for the server to respond before giving up * @ return the response body stream as UTF - 8 string if response status is OK ...
final StringBuilder contentBuffer = new StringBuilder ( ) ; post ( url , timeout , inputStream -> { try ( BufferedReader br = new BufferedReader ( new InputStreamReader ( inputStream , "UTF-8" ) ) ) { String line ; while ( ( line = br . readLine ( ) ) != null ) { contentBuffer . append ( line ) ; } } } ) ; return conte...
public class DefaultRetryPolicy { /** * Returns the delay ( in milliseconds ) before next retry attempt . A negative value indicates that no more retries * should be made . * @ param exception the exception from the failed request , represented as an BceClientException object . * @ param retriesAttempted the numb...
if ( ! this . shouldRetry ( exception , retriesAttempted ) ) { return - 1 ; } if ( retriesAttempted < 0 ) { return 0 ; } return ( 1 << ( retriesAttempted + 1 ) ) * SCALE_FACTOR ;
public class TimeSeries { /** * Creates a { @ link TimeSeries } . * @ param labelValues the { @ code LabelValue } s that uniquely identify this { @ code TimeSeries } . * @ param points the data { @ code Point } s of this { @ code TimeSeries } . * @ param startTimestamp the start { @ code Timestamp } of this { @ c...
Utils . checkListElementNotNull ( Utils . checkNotNull ( points , "points" ) , "point" ) ; return createInternal ( labelValues , Collections . unmodifiableList ( new ArrayList < Point > ( points ) ) , startTimestamp ) ;
public class FastaReaderHelper { /** * Read a fasta file containing amino acids with setup that would handle most * cases . User is responsible for closing InputStream because you opened it * @ param inStream * @ return * @ throws IOException */ public static LinkedHashMap < String , ProteinSequence > readFasta...
FastaReader < ProteinSequence , AminoAcidCompound > fastaReader = new FastaReader < ProteinSequence , AminoAcidCompound > ( inStream , new GenericFastaHeaderParser < ProteinSequence , AminoAcidCompound > ( ) , new ProteinSequenceCreator ( AminoAcidCompoundSet . getAminoAcidCompoundSet ( ) ) ) ; return fastaReader . pro...
public class ColumnBuilder { /** * For creating regular columns * @ return */ protected AbstractColumn buildSimpleColumn ( ) { } }
SimpleColumn column = new SimpleColumn ( ) ; populateCommonAttributes ( column ) ; columnProperty . getFieldProperties ( ) . putAll ( fieldProperties ) ; column . setColumnProperty ( columnProperty ) ; column . setExpressionToGroupBy ( customExpressionToGroupBy ) ; column . setFieldDescription ( fieldDescription ) ; re...
public class Agent { /** * Finds the right plug - in for an instance . * @ param instance a non - null instance * @ return the plug - in associated with the instance ' s installer name */ public PluginInterface findPlugin ( Instance instance ) { } }
// Find a plug - in PluginInterface result = null ; if ( this . simulatePlugins ) { this . logger . finer ( "Simulating plugins..." ) ; result = new PluginMock ( ) ; } else { String installerName = null ; if ( instance . getComponent ( ) != null ) installerName = ComponentHelpers . findComponentInstaller ( instance . g...
public class NFACompiler { /** * Verifies if the provided pattern can possibly generate empty match . Example of patterns that can possibly * generate empty matches are : A * , A ? , A * B ? etc . * @ param pattern pattern to check * @ return true if empty match could potentially match the pattern , false otherwi...
NFAFactoryCompiler < ? > compiler = new NFAFactoryCompiler < > ( checkNotNull ( pattern ) ) ; compiler . compileFactory ( ) ; State < ? > startState = compiler . getStates ( ) . stream ( ) . filter ( State :: isStart ) . findFirst ( ) . orElseThrow ( ( ) -> new IllegalStateException ( "Compiler produced no start state....
public class StructureDiagramGenerator { /** * Get the unplaced ring atom in this bond * @ param bond the bond to be search for the unplaced ring atom * @ return the unplaced ring atom in this bond */ private IAtom getRingAtom ( IBond bond ) { } }
if ( bond . getBegin ( ) . getFlag ( CDKConstants . ISINRING ) && ! bond . getBegin ( ) . getFlag ( CDKConstants . ISPLACED ) ) { return bond . getBegin ( ) ; } if ( bond . getEnd ( ) . getFlag ( CDKConstants . ISINRING ) && ! bond . getEnd ( ) . getFlag ( CDKConstants . ISPLACED ) ) { return bond . getEnd ( ) ; } retu...
public class KerasLayerUtils { /** * Check whether Keras weight regularization is of unknown type . Currently prints a warning * since main use case for model import is inference , not further training . Unlikely since * standard Keras weight regularizers are L1 and L2. * @ param regularizerConfig Map containing ...
if ( regularizerConfig != null ) { for ( String field : regularizerConfig . keySet ( ) ) { if ( ! field . equals ( conf . getREGULARIZATION_TYPE_L1 ( ) ) && ! field . equals ( conf . getREGULARIZATION_TYPE_L2 ( ) ) && ! field . equals ( conf . getLAYER_FIELD_NAME ( ) ) && ! field . equals ( conf . getLAYER_FIELD_CLASS_...
public class Parameters { /** * Gets a parameter whose value is a ( possibly empty ) list of positive integers . */ public List < Integer > getPositiveIntegerList ( final String param ) { } }
return getList ( param , new StringToInteger ( ) , new IsPositive < Integer > ( ) , "positive integer" ) ;
public class RetryTemplate { /** * Execute the callable with retries . * @ param callable to execute * @ param < T > the return type of the callable * @ return the result of the callable * @ throws Exception if the callable still throw an exception after all retries */ public < T > T execute ( final Callable < ...
int attempts = 0 ; int maxAttempts = retryPolicy . getMaxAttempts ( ) ; long delay = retryPolicy . getDelay ( ) ; TimeUnit timeUnit = retryPolicy . getTimeUnit ( ) ; while ( attempts < maxAttempts ) { try { attempts ++ ; beforeCall ( ) ; T result = callable . call ( ) ; afterCall ( result ) ; return result ; } catch ( ...
public class Repository { /** * Loads modules from classpath */ public void loadClasspath ( Resolver resolver ) throws IOException { } }
Enumeration < URL > e ; e = getClass ( ) . getClassLoader ( ) . getResources ( MODULE_DESCRIPTOR ) ; while ( e . hasMoreElements ( ) ) { loadModule ( resolver , e . nextElement ( ) ) ; }
public class Bag { /** * Removes the element at the specified position in this Bag . Order of elements is not preserved . * @ param index * @ return element that was removed from the Bag . */ public E remove ( int index ) { } }
E e = data [ index ] ; // make copy of element to remove so it can be returned data [ index ] = data [ -- size ] ; // overwrite item to remove with last element data [ size ] = null ; // null last element , so gc can do its work return e ;
public class CommerceNotificationAttachmentPersistenceImpl { /** * Returns the commerce notification attachment where uuid = & # 63 ; and groupId = & # 63 ; or returns < code > null < / code > if it could not be found , optionally using the finder cache . * @ param uuid the uuid * @ param groupId the group ID * @...
Object [ ] finderArgs = new Object [ ] { uuid , groupId } ; Object result = null ; if ( retrieveFromCache ) { result = finderCache . getResult ( FINDER_PATH_FETCH_BY_UUID_G , finderArgs , this ) ; } if ( result instanceof CommerceNotificationAttachment ) { CommerceNotificationAttachment commerceNotificationAttachment =...
public class TypedArrayCompat { /** * Retrieve the Drawable for the attribute at < var > index < / var > . * @ param index Index of attribute to retrieve . * @ return Drawable for the attribute , or null if not defined . */ public static Drawable getDrawable ( Resources . Theme theme , TypedArray a , TypedValue [ ]...
if ( values != null && theme != null ) { TypedValue v = values [ index ] ; if ( v . type == TypedValue . TYPE_ATTRIBUTE ) { TEMP_ARRAY [ 0 ] = v . data ; TypedArray tmp = theme . obtainStyledAttributes ( null , TEMP_ARRAY , 0 , 0 ) ; try { return tmp . getDrawable ( 0 ) ; } finally { tmp . recycle ( ) ; } } } if ( a !=...
public class CPInstancePersistenceImpl { /** * Returns the cp instance with the primary key or throws a { @ link com . liferay . portal . kernel . exception . NoSuchModelException } if it could not be found . * @ param primaryKey the primary key of the cp instance * @ return the cp instance * @ throws NoSuchCPIns...
CPInstance cpInstance = fetchByPrimaryKey ( primaryKey ) ; if ( cpInstance == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPInstanceException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return cpInstance ;
public class ReviewsImpl { /** * The reviews created would show up for Reviewers on your team . As Reviewers complete reviewing , results of the Review would be POSTED ( i . e . HTTP POST ) on the specified CallBackEndpoint . * & lt ; h3 & gt ; CallBack Schemas & lt ; / h3 & gt ; * & lt ; h4 & gt ; Review Completio...
return createReviewsWithServiceResponseAsync ( teamName , urlContentType , createReviewBody , createReviewsOptionalParameter ) . toBlocking ( ) . single ( ) . body ( ) ;
public class CPDefinitionVirtualSettingPersistenceImpl { /** * Returns the cp definition virtual setting where uuid = & # 63 ; and groupId = & # 63 ; or throws a { @ link NoSuchCPDefinitionVirtualSettingException } if it could not be found . * @ param uuid the uuid * @ param groupId the group ID * @ return the ma...
CPDefinitionVirtualSetting cpDefinitionVirtualSetting = fetchByUUID_G ( uuid , groupId ) ; if ( cpDefinitionVirtualSetting == null ) { StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "uuid=" ) ; msg . append ( uuid ) ; msg . append ( ", groupId=" ) ; msg . append...
public class SimulationJob { /** * A map that contains tag keys and tag values that are attached to the simulation job . * @ param tags * A map that contains tag keys and tag values that are attached to the simulation job . * @ return Returns a reference to this object so that method calls can be chained together...
setTags ( tags ) ; return this ;
public class FldExporter { /** * Writes the engine into the given writer * @ param engine is the engine to export * @ param writer is the output where the engine will be written to * @ param reader is the reader of a set of lines containing space - separated * input values * @ throws IOException if any error ...
if ( exportHeaders ) { writer . append ( header ( engine ) ) . append ( "\n" ) ; } String line ; int lineNumber = 0 ; BufferedReader bufferedReader = new BufferedReader ( reader ) ; try { while ( ( line = bufferedReader . readLine ( ) ) != null ) { ++ lineNumber ; List < Double > inputValues ; if ( lineNumber == 1 ) { ...
public class A_CmsListResourceCollector { /** * Wrapper method for caching the result of { @ link # getResources ( CmsObject , Map ) } . < p > * @ param cms the cms object * @ param params the parameter map * @ return the result of { @ link # getResources ( CmsObject , Map ) } * @ throws CmsException if somethi...
synchronized ( this ) { if ( m_resources == null ) { m_resources = getResources ( cms , params ) ; Iterator < CmsResource > it = m_resources . iterator ( ) ; while ( it . hasNext ( ) ) { CmsResource resource = it . next ( ) ; m_resCache . put ( resource . getStructureId ( ) . toString ( ) , resource ) ; } } } return m_...
public class ClientSharedObject { /** * { @ inheritDoc } */ public void disconnect ( ) { } }
if ( isConnected ( ) ) { SharedObjectMessage msg = new SharedObjectMessage ( name , 0 , isPersistent ( ) ) ; msg . addEvent ( new SharedObjectEvent ( Type . SERVER_DISCONNECT , null , null ) ) ; Channel c = ( ( RTMPConnection ) source ) . getChannel ( 3 ) ; c . write ( msg ) ; notifyDisconnect ( ) ; initialSyncReceived...
public class CloudResourceBundleControl { /** * Create an instance of < code > CloudResourceBundleControl < / code > with the specified * service account , cache expiration , bundle inclusion / exclusion name pattern , the custom * bundle name mapper and bundle lookup mode . * The cache expiration time is in mill...
if ( serviceAccount == null ) { throw new IllegalArgumentException ( "serviceAccount is null" ) ; } if ( cacheExpiration < 0 && cacheExpiration != Control . TTL_DONT_CACHE && cacheExpiration != Control . TTL_NO_EXPIRATION_CONTROL ) { throw new IllegalArgumentException ( "Illegal cacheExpiration: " + cacheExpiration ) ;...
public class ProtocolBufferClassHierarchy { /** * Deserialize a class hierarchy from a file . The file can be generated from either Java or C # * @ param file * @ return * @ throws IOException * @ deprecated in 0.12 . Use AvroClassHierarchySerializer instead */ public static ClassHierarchy deserialize ( final F...
try ( final InputStream stream = new FileInputStream ( file ) ) { final ClassHierarchyProto . Node root = ClassHierarchyProto . Node . parseFrom ( stream ) ; return new ProtocolBufferClassHierarchy ( root ) ; }
public class FontChooser { /** * Set the size of the selected font . * @ param size the size of the selected font * @ see # getSelectedFontSize */ public FontChooser setSelectedFontSize ( int size ) { } }
String sizeString = String . valueOf ( size ) ; for ( int i = 0 ; i < this . fontSizeStrings . length ; i ++ ) { if ( this . fontSizeStrings [ i ] . equals ( sizeString ) ) { getFontSizeList ( ) . setSelectedIndex ( i ) ; break ; } } getFontSizeTextField ( ) . setText ( sizeString ) ; updateSampleFont ( ) ; return this...
public class JavacState { /** * Recursively delete a directory and all its contents . */ private static void deleteContents ( File dir ) { } }
if ( dir != null && dir . exists ( ) ) { for ( File f : dir . listFiles ( ) ) { if ( f . isDirectory ( ) ) { deleteContents ( f ) ; } f . delete ( ) ; } }
public class SpliteratorBasedStream { /** * A potentially asynchronous flatMap operation where data from each publisher may arrive out of order * @ param mapper * @ return */ public < R > ReactiveSeq < R > mergeMap ( final Function < ? super T , ? extends Publisher < ? extends R > > mapper ) { } }
return mergeMap ( 256 , mapper ) ;
public class DBIDUtil { /** * Draw a single random sample . * @ param ids IDs to draw from * @ param random Random value * @ return Random ID */ public static DBIDVar randomSample ( DBIDs ids , RandomFactory random ) { } }
return randomSample ( ids , random . getSingleThreadedRandom ( ) ) ;
public class PhaseApplication { /** * Sends { @ code " = = = < header > = = = " } to { @ link Reportable # output ( String . . . ) * output } * @ param header Non - null header * @ param phase Non - null phase * @ param stage Non - null stage */ protected void beginStage ( final String header , final String sta...
boolean print = getPhaseConfiguration ( ) . isVerbose ( ) ; if ( print ) { StringBuilder bldr = new StringBuilder ( ) ; bldr . append ( INDENT ) ; bldr . append ( "Stage " ) ; bldr . append ( stage ) ; bldr . append ( " of " ) ; bldr . append ( numStages ) ; bldr . append ( ": " ) ; bldr . append ( header ) ; reportabl...
public class GoldenSearch { /** * Finds the local minimum of the function { @ code f } . * @ param eps the desired accuracy of the result * @ param maxIterations the maximum number of iterations to perform * @ param a the left bound on the minimum * @ param b the right bound on the minimum * @ param f the fun...
if ( a > b ) { double tmp = b ; b = a ; a = tmp ; } // Intitial values int iter = 0 ; double x1 = a + om_tau * ( b - a ) ; double f1 = f . f ( x1 ) ; double x2 = a + tau * ( b - a ) ; double f2 = f . f ( x2 ) ; while ( b - a > 2 * eps && iter < maxIterations ) { if ( f1 > f2 ) { a = x1 ; x1 = x2 ; f1 = f2 ; x2 = a + ta...
public class PortletAdministrationHelper { /** * updates the editPortlet form with the portletType of the first ( and only ) portletDefinition * passed in through the Map of portlet definitions . * @ param portletDefinitions * @ param form * @ return PortletPublishingDefinition of the first portlet definition i...
if ( portletDefinitions . size ( ) != 1 ) { return null ; } IPortletType portletType = portletDefinitions . keySet ( ) . iterator ( ) . next ( ) ; form . setTypeId ( portletType . getId ( ) ) ; PortletPublishingDefinition cpd = portletPublishingDefinitionDao . getChannelPublishingDefinition ( portletType . getId ( ) ) ...
public class TldTracker { /** * Selects the scale for the image pyramid based on image size and feature size * @ return scales for image pyramid */ public static int [ ] selectPyramidScale ( int imageWidth , int imageHeight , int minSize ) { } }
int w = Math . max ( imageWidth , imageHeight ) ; int maxScale = w / minSize ; int n = 1 ; int scale = 1 ; while ( scale * 2 < maxScale ) { n ++ ; scale *= 2 ; } int ret [ ] = new int [ n ] ; scale = 1 ; for ( int i = 0 ; i < n ; i ++ ) { ret [ i ] = scale ; scale *= 2 ; } return ret ;
public class CSTNode { /** * Returns the first matching meaning of the specified types . * Returns Types . UNKNOWN if there are no matches . */ public int getMeaningAs ( int [ ] types ) { } }
for ( int i = 0 ; i < types . length ; i ++ ) { if ( isA ( types [ i ] ) ) { return types [ i ] ; } } return Types . UNKNOWN ;
public class ReduceOps { /** * Constructs a { @ code TerminalOp } that implements a functional reduce on * reference values producing an optional reference result . * @ param < T > The type of the input elements , and the type of the result * @ param operator The reducing function * @ return A { @ code Terminal...
Objects . requireNonNull ( operator ) ; class ReducingSink implements AccumulatingSink < T , Optional < T > , ReducingSink > { private boolean empty ; private T state ; public void begin ( long size ) { empty = true ; state = null ; } @ Override public void accept ( T t ) { if ( empty ) { empty = false ; state = t ; } ...
public class CommerceTierPriceEntryPersistenceImpl { /** * Removes all the commerce tier price entries where groupId = & # 63 ; from the database . * @ param groupId the group ID */ @ Override public void removeByGroupId ( long groupId ) { } }
for ( CommerceTierPriceEntry commerceTierPriceEntry : findByGroupId ( groupId , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ) { remove ( commerceTierPriceEntry ) ; }
public class PartialVAFile { /** * Calculate selectivity coefficients . * @ param daFiles List of files to use * @ param query Query vector * @ param epsilon Epsilon radius */ protected static void calculateSelectivityCoeffs ( List < DoubleObjPair < DAFile > > daFiles , NumberVector query , double epsilon ) { } }
final int dimensions = query . getDimensionality ( ) ; double [ ] lowerVals = new double [ dimensions ] ; double [ ] upperVals = new double [ dimensions ] ; VectorApproximation queryApprox = calculatePartialApproximation ( null , query , daFiles ) ; for ( int i = 0 ; i < dimensions ; i ++ ) { final double val = query ....
public class DominatorTree { /** * debugging */ private void printObjs ( List < Long > changedIds , List < Long > oldDomIds , List < Long > newDomIds , List < Boolean > addedByDirtySet , List < Long > changedIdx ) { } }
if ( changedIds . size ( ) > 20 ) return ; TreeMap < Integer , String > m = new TreeMap ( ) ; for ( int i = 0 ; i < changedIds . size ( ) ; i ++ ) { Long iid = changedIds . get ( i ) ; Long oldDom = oldDomIds . get ( i ) ; Long newDom = newDomIds . get ( i ) ; Long index = changedIdx . get ( i ) ; Boolean addedByDirt =...
public class ResultCache { /** * Remove all cache entries between firstPara ( included ) and lastPara ( included ) * shift all numberOfParagraph by ' shift ' */ void removeAndShift ( int firstPara , int lastPara , int shift ) { } }
for ( int i = 0 ; i < entries . size ( ) ; i ++ ) { if ( entries . get ( i ) . numberOfParagraph >= firstPara && entries . get ( i ) . numberOfParagraph <= lastPara ) { entries . remove ( i ) ; i -- ; } } for ( CacheEntry anEntry : entries ) { if ( anEntry . numberOfParagraph > lastPara ) { anEntry . numberOfParagraph ...
public class Parser { /** * See if there is a word ( all letters ) * @ param textProvider * @ return true if matched */ public boolean alpha ( TextProvider textProvider ) { } }
clearLastToken ( textProvider ) ; clearLeadingSpaces ( textProvider ) ; mark ( textProvider ) ; if ( m_debug ) debug ( "testing" , textProvider ) ; StringBuilder sb = new StringBuilder ( ) ; while ( true ) { char c = getNextChar ( textProvider ) ; if ( ! Character . isLetter ( c ) ) break ; remark ( textProvider ) ; sb...
public class InheritanceHelper { /** * Replies if the type candidate is a subtype of the given super type . * @ param candidate the type to test . * @ param jvmSuperType the expected JVM super - type . * @ param sarlSuperType the expected SARL super - type . * @ return < code > true < / code > if the candidate ...
final LightweightTypeReference reference = Utils . toLightweightTypeReference ( candidate , this . services ) ; return isSubTypeOf ( reference , jvmSuperType , sarlSuperType ) ;
public class Do { /** * < div color = ' red ' style = " font - size : 24px ; color : red " > < b > < i > < u > JCYPHER < / u > < / i > < / b > < / div > * < div color = ' red ' style = " font - size : 18px ; color : red " > < i > detach all relations and then delete a node in the DO part of a FOREACH expression < / i...
ModifyTerminal mt = ModifyFactory . deleteElement ( node ) ; ASTNode clause = APIObjectAccess . getAstNode ( mt ) ; clause . setClauseType ( ClauseType . DETACH_DELETE ) ; return createConcat ( clause ) ;
public class OAuth2JwtAccessTokenConverter { /** * Fetch a new public key from the AuthorizationServer . * @ return true , if we could fetch it ; false , if we could not . */ private boolean tryCreateSignatureVerifier ( ) { } }
long t = System . currentTimeMillis ( ) ; if ( t - lastKeyFetchTimestamp < oAuth2Properties . getSignatureVerification ( ) . getPublicKeyRefreshRateLimit ( ) ) { return false ; } try { SignatureVerifier verifier = signatureVerifierClient . getSignatureVerifier ( ) ; if ( verifier != null ) { setVerifier ( verifier ) ; ...
public class RegisterMasterPRequest { /** * < code > optional . alluxio . grpc . meta . RegisterMasterPOptions options = 2 ; < / code > */ public alluxio . grpc . RegisterMasterPOptions getOptions ( ) { } }
return options_ == null ? alluxio . grpc . RegisterMasterPOptions . getDefaultInstance ( ) : options_ ;
public class CUarray_format { /** * Returns the String identifying the given CUarray _ format * @ param n The CUarray _ format * @ return The String identifying the given CUarray _ format */ public static String stringFor ( int n ) { } }
switch ( n ) { case CU_AD_FORMAT_UNSIGNED_INT8 : return "CU_AD_FORMAT_UNSIGNED_INT8" ; case CU_AD_FORMAT_UNSIGNED_INT16 : return "CU_AD_FORMAT_UNSIGNED_INT16" ; case CU_AD_FORMAT_UNSIGNED_INT32 : return "CU_AD_FORMAT_UNSIGNED_INT32" ; case CU_AD_FORMAT_SIGNED_INT8 : return "CU_AD_FORMAT_SIGNED_INT8" ; case CU_AD_FORMAT...
public class XMemcachedClient { /** * Delete key ' s data item from memcached . This method doesn ' t wait for reply * @ param key * @ param time * @ throws InterruptedException * @ throws MemcachedException */ public final void deleteWithNoReply ( final String key , final int time ) throws InterruptedException...
try { this . delete0 ( key , time , 0 , true , this . opTimeout ) ; } catch ( TimeoutException e ) { throw new MemcachedException ( e ) ; }
public class Client { /** * ( non - Javadoc ) * @ see org . restcomm . protocols . ss7 . map . api . service . supplementary . MAPServiceSupplementaryListener * # onUnstructuredSSResponseIndication ( org . mobicents . protocols . ss7 . map . api . service * . supplementary . UnstructuredSSResponseIndication ) */ ...
// This error condition . Client should never receive the // UnstructuredSSResponseIndication logger . error ( String . format ( "onUnstructuredSSResponseIndication for Dialog=%d and invokeId=%d" , unstrResInd . getMAPDialog ( ) . getLocalDialogId ( ) , unstrResInd . getInvokeId ( ) ) ) ;
public class EigenvalueDecomposition { /** * Nonsymmetric reduction from Hessenberg to real Schur form . */ private void hqr2 ( ) { } }
// FIXME : does this fail on NaN / inf values ? // This is derived from the Algol procedure hqr2, // by Martin and Wilkinson , Handbook for Auto . Comp . , // Vol . ii - Linear Algebra , and the corresponding // Fortran subroutine in EISPACK . // Initialize final int nn = this . n , low = 0 , high = nn - 1 ; // Store r...
public class Negotiation { /** * ' Accept ' based negotiation . * This method determines the result to send to the client based on the ' Accept ' header of the request . * The returned result is enhanced with the ' Vary ' header set to { @ literal Accept } . * This methods retrieves the accepted media type in the...
Context context = Context . CONTEXT . get ( ) ; if ( context == null ) { throw new IllegalStateException ( "Negotiation cannot be achieved outside of a request" ) ; } Collection < MediaType > accepted = context . request ( ) . mediaTypes ( ) ; // accepted cannot be empty , if the header is missing text / * is added . f...
public class ResourceLimiter { /** * Enable an experimental feature that will throttle requests made from { @ link BulkMutation } . The * logic is as follows : * < ul > * < li > To start : < ul > * < li > reduce parallelism to 25 % - - The parallelism is high to begin with . This reduction should * reduce the...
if ( isThrottling ) { // Throttling was already turned on . No need to do it again . return ; } LOG . info ( "Initializing BulkMutation throttling. " + "Once latency is higher than %d ms, parallelism will be reduced." , bulkMutationRpcTargetMs ) ; // target roughly 20 % within the the target so that there isn ' t too ...
public class ExceptionUtils { /** * Addes a message at the beginning of the stacktrace . */ public static void insertMessage ( Throwable onObject , String msg ) { } }
try { Field field = Throwable . class . getDeclaredField ( "detailMessage" ) ; // Method ( " initCause " , new Class [ ] { Throwable . class } ) ; field . setAccessible ( true ) ; if ( onObject . getMessage ( ) != null ) { field . set ( onObject , "\n[\n" + msg + "\n]\n[\nMessage: " + onObject . getMessage ( ) + "\n]" ...
public class WrapperId { /** * Returns a ByteArray containing the serialized BeanId that corresponds * to this WrapperId instance . < p > */ public ByteArray getBeanIdArray ( ) { } }
int beanIdLength = data . length - ivBeanIdIndex ; byte [ ] beanIdBytes = new byte [ beanIdLength ] ; System . arraycopy ( data , ivBeanIdIndex , beanIdBytes , 0 , beanIdLength ) ; return new ByteArray ( beanIdBytes ) ;
public class ChangeObjects { /** * method to delete a MonomerNotation at a specific position of the * PolymerNotation * @ param position * position of the to be deleted MonomerNotation * @ param polymer * PolymerNotation * @ throws NotationException * if the generated PolymerNotation has no elements after...
MonomerNotation monomerNotation = polymer . getPolymerElements ( ) . getListOfElements ( ) . get ( position ) ; if ( polymer . getPolymerElements ( ) . getListOfElements ( ) . size ( ) == 1 ) { throw new NotationException ( monomerNotation . toString ( ) + " can't be removed. Polymer has to have at least one Monomer No...
public class F0 { /** * Applies this partial function to the given argument when it is contained in the function domain . * Applies fallback function where this partial function is not defined , i . e . any * { @ link java . lang . RuntimeException } is captured * @ param fallback * if { @ link RuntimeException...
try { return apply ( ) ; } catch ( RuntimeException e ) { return fallback . apply ( ) ; }
public class BigQuerySnippets { /** * [ VARIABLE " my _ dataset _ name " ] */ public Dataset createDataset ( String datasetName ) { } }
// [ START bigquery _ create _ dataset ] Dataset dataset = null ; DatasetInfo datasetInfo = DatasetInfo . newBuilder ( datasetName ) . build ( ) ; try { // the dataset was created dataset = bigquery . create ( datasetInfo ) ; } catch ( BigQueryException e ) { // the dataset was not created } // [ END bigquery _ create ...
public class SubCommandMetaSet { /** * Parses command - line and sets metadata . * @ param args Command - line input * @ param printHelp Tells whether to print help only or execute command * actually * @ throws Exception */ @ SuppressWarnings ( "unchecked" ) public static void executeCommand ( String [ ] args )...
OptionParser parser = getParser ( ) ; // declare parameters List < String > meta = null ; String url = null ; List < Integer > nodeIds = null ; Boolean allNodes = true ; Boolean confirm = false ; // parse command - line input args = AdminToolUtils . copyArrayAddFirst ( args , "--" + OPT_HEAD_META_SET ) ; OptionSet opti...
public class AdminToolLog4j2Util { /** * returns the log messages from custom appenders output stream * @ param appenderName * @ param encoding * @ return * @ throws UnsupportedEncodingException * @ since 1.1.1 */ public String getStringOutput ( String appenderName , String encoding ) throws UnsupportedEncodi...
AdminToolLog4j2OutputStream baos = outputStreams . get ( appenderName ) ; String output = "" ; if ( null != baos ) { output = baos . getAndReset ( encoding ) ; } return output . trim ( ) . isEmpty ( ) ? null : output ;
public class ST_RemoveRepeatedPoints { /** * Removes duplicated coordinates within a LineString . * @ param linestring * @ param tolerance to delete the coordinates * @ return * @ throws java . sql . SQLException */ public static LineString removeDuplicateCoordinates ( LineString linestring , double tolerance )...
Coordinate [ ] coords = CoordinateUtils . removeRepeatedCoordinates ( linestring . getCoordinates ( ) , tolerance , false ) ; if ( coords . length < 2 ) { throw new SQLException ( "Not enough coordinates to build a new LineString.\n Please adjust the tolerance" ) ; } return FACTORY . createLineString ( coords ) ;
public class JmxClient { /** * Return the value of a JMX attribute as a String . */ public String getAttributeString ( String domain , String beanName , String attributeName ) throws Exception { } }
return getAttributeString ( ObjectNameUtil . makeObjectName ( domain , beanName ) , attributeName ) ;
public class HttpEncodingTools { /** * Encodes characters in the string except for those allowed in an absolute path . * @ deprecated Prefer to use { @ link HttpEncodingTools # encode ( String ) } instead for encoding specific * pieces of the URI . This method does not escape certain reserved characters , like ' / ...
try { return URIUtil . encodePath ( path , "UTF-8" ) ; } catch ( URIException ex ) { throw new EsHadoopIllegalArgumentException ( "Cannot encode path segment [" + path + "]" , ex ) ; }
public class JbcSrcRuntime { /** * Helper function to translate NullData - > null when resolving a SoyValueProvider . */ public static SoyValue resolveSoyValueProvider ( SoyValueProvider provider ) { } }
SoyValue value = provider . resolve ( ) ; return handleTofuNull ( value ) ;
public class KAMStoreImpl { /** * { @ inheritDoc } */ @ Override public List < AnnotationType > getAnnotationTypes ( KamInfo ki ) { } }
if ( ki == null ) throw new InvalidArgument ( DEFAULT_MSG ) ; if ( ! exists ( ki ) ) return null ; try { return kamStoreDao ( ki ) . getAnnotationTypes ( ) ; } catch ( SQLException e ) { final String fmt = "error getting annotation types for %s" ; final String msg = format ( fmt , ki . getName ( ) ) ; throw new KAMStor...
public class CommerceShipmentLocalServiceBaseImpl { /** * Returns the number of rows matching the dynamic query . * @ param dynamicQuery the dynamic query * @ param projection the projection to apply to the query * @ return the number of rows matching the dynamic query */ @ Override public long dynamicQueryCount ...
return commerceShipmentPersistence . countWithDynamicQuery ( dynamicQuery , projection ) ;
public class LogEntry { /** * Sets the event type of the log entry ( { @ link # eventType } ) . * @ param eventType Event type to set . * @ throws LockingException if the field EVENTTYPE is locked and the * given event type differs from { @ link # eventType } . * @ return < code > true < / code > if { @ link # ...
Validate . notNull ( eventType ) ; if ( isFieldLocked ( EntryField . EVENTTYPE ) ) { if ( ! this . eventType . equals ( eventType ) ) { throw new LockingException ( EntryField . EVENTTYPE ) ; } return false ; } else { this . eventType = eventType ; return true ; }
public class VirtualMachineScaleSetsInner { /** * Create or update a VM scale set . * @ param resourceGroupName The name of the resource group . * @ param vmScaleSetName The name of the VM scale set to create or update . * @ param parameters The scale set object . * @ param serviceCallback the async ServiceCall...
return ServiceFuture . fromResponse ( createOrUpdateWithServiceResponseAsync ( resourceGroupName , vmScaleSetName , parameters ) , serviceCallback ) ;
public class POJOCreator { /** * This function is called for each incoming byte record . * @ param decoder The decoder that encapsulates the byte [ ] data record * @ return Map of method and the input parameter objects * @ throws java . io . IOException if the { @ link co . cask . tigon . internal . io . Reflecti...
try { return outputGenerator . read ( decoder , schema ) ; } catch ( IOException e ) { LOG . error ( "Cannot instantiate object of type {}" , outputClass . getName ( ) , e ) ; throw e ; }
public class TimestampParseExprMacro { /** * Default formatter that parses according to the docs for this method : " If the pattern is not provided , this parses * time strings in either ISO8601 or SQL format . " */ private static DateTimes . UtcFormatter createDefaultParser ( final DateTimeZone timeZone ) { } }
final DateTimeFormatter offsetElement = new DateTimeFormatterBuilder ( ) . appendTimeZoneOffset ( "Z" , true , 2 , 4 ) . toFormatter ( ) ; DateTimeParser timeOrOffset = new DateTimeFormatterBuilder ( ) . append ( null , new DateTimeParser [ ] { new DateTimeFormatterBuilder ( ) . appendLiteral ( 'T' ) . toParser ( ) , n...
public class CollectionUtils { /** * Returns a stream containing the members of the given collection . */ public static < T , C extends Collection < T > > Stream < T > membersOf ( C collection ) { } }
return collection == null ? Stream . empty ( ) : collection . stream ( ) ;
public class GenericIndexedWriter { /** * Tries to get best value split ( number of elements in each value file ) which can be expressed as power of 2. * @ return Returns the size of value file splits as power of 2. * @ throws IOException */ private int bagSizePower ( ) throws IOException { } }
long avgObjectSize = ( valuesOut . size ( ) + numWritten - 1 ) / numWritten ; for ( int i = 31 ; i >= 0 ; -- i ) { if ( ( 1L << i ) * avgObjectSize <= fileSizeLimit ) { if ( actuallyFits ( i ) ) { return i ; } } } throw new ISE ( "no value split found with fileSizeLimit [%d], avgObjectSize [%d]" , fileSizeLimit , avgOb...
public class AssetsApi { /** * Get corporation asset names Return names for a set of item ids , which you * can get from corporation assets endpoint . Only valid for items that can * customize names , like containers or ships - - - Requires one of the * following EVE corporation role ( s ) : Director SSO Scope : ...
ApiResponse < List < CorporationAssetsNamesResponse > > resp = postCorporationsCorporationIdAssetsNamesWithHttpInfo ( corporationId , requestBody , datasource , token ) ; return resp . getData ( ) ;
public class TerminateJobRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( TerminateJobRequest terminateJobRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( terminateJobRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( terminateJobRequest . getJobId ( ) , JOBID_BINDING ) ; protocolMarshaller . marshall ( terminateJobRequest . getReason ( ) , REASON_BINDING ) ; } catch ( Exception e...
public class OutputMarshaller { /** * Marshall the given parameter object . */ public void marshall ( Output output , ProtocolMarshaller protocolMarshaller ) { } }
if ( output == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( output . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( output . getKinesisStreamsOutput ( ) , KINESISSTREAMSOUTPUT_BINDING ) ; protocolMarshaller . marshall ( ou...
public class CheckMissingAndExtraRequires { /** * If this returns true , check for @ extends and @ implements annotations on this node . Otherwise , * it ' s probably an alias for an existing class , so skip those annotations . * @ return Whether the given node declares a function . True for the following forms : ...
if ( n . isFunction ( ) || n . isClass ( ) ) { return true ; } if ( n . isAssign ( ) && ( n . getLastChild ( ) . isFunction ( ) || n . getLastChild ( ) . isClass ( ) ) ) { return true ; } if ( NodeUtil . isNameDeclaration ( n ) && n . getFirstChild ( ) . hasChildren ( ) && ( n . getFirstFirstChild ( ) . isFunction ( ) ...
public class DefaultInterval { /** * ( non - Javadoc ) * @ see org . virginia . pbhs . parameters . Interval # getMinimumStart ( ) */ @ Override public Long getMinimumStart ( ) { } }
calculator ( ) ; if ( simple ) { return v [ 0 ] ; } else { Weight minStart = cn . getMinimumStart ( ) ; return minStart . isInfinity ( ) ? null : minStart . value ( ) ; }
public class SessionCommandException { /** * Converts a Throwable to a SessionCommandException . If the Throwable is a * SessionCommandException , it will be passed through unmodified ; otherwise , it will be wrapped * in a new SessionCommandException . * @ param cause the Throwable to convert * @ return a Sess...
return ( cause instanceof SessionCommandException ) ? ( SessionCommandException ) cause : new SessionCommandException ( cause ) ;
public class NativeArray { /** * See Ecma 262v3 15.4.4.4 */ private static Scriptable js_concat ( Context cx , Scriptable scope , Scriptable thisObj , Object [ ] args ) { } }
// create an empty Array to return . scope = getTopLevelScope ( scope ) ; Scriptable result = cx . newArray ( scope , 0 ) ; if ( thisObj instanceof NativeArray && result instanceof NativeArray ) { NativeArray denseThis = ( NativeArray ) thisObj ; NativeArray denseResult = ( NativeArray ) result ; if ( denseThis . dense...
public class ExternalSpreadsheetCompiler { /** * Generates DRL from the input stream containing the spreadsheet . * @ param xlsStream * The stream to the spreadsheet . Uses the first worksheet found * for the decision tables , ignores others . * @ param type * The type of the file - InputType . CSV or InputTy...
ArrayList < DataListener > listeners = new ArrayList < DataListener > ( ) ; listeners . add ( listener ) ; compile ( xlsStream , type , listeners ) ; return listener . renderDRL ( ) ;
public class Objects { /** * Checks deep equality of two objects . * @ param a an object * @ param b an object * @ return { @ code true } if objects are deeply equals , { @ code false } otherwise * @ see Arrays # deepEquals ( Object [ ] , Object [ ] ) * @ see Objects # equals ( Object , Object ) * @ since 1...
return ( a == b ) || ( a != null && b != null ) && Arrays . deepEquals ( new Object [ ] { a } , new Object [ ] { b } ) ;
public class BccClient { /** * Releasing the specified volume owned by the user . * You can release the specified volume only * when the volume is Available / Expired / Error , * otherwise , it ' s will get < code > 409 < / code > errorCode . * @ param request The request containing all options for releasing th...
checkNotNull ( request , "request should not be null." ) ; checkStringNotEmpty ( request . getVolumeId ( ) , "request volumeId should not be empty." ) ; InternalRequest internalRequest = this . createRequest ( request , HttpMethodName . DELETE , VOLUME_PREFIX , request . getVolumeId ( ) ) ; invokeHttpClient ( internalR...