signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class KeyTransformationHandler { /** * Registers a { @ link org . infinispan . query . Transformer } for the supplied key class . * @ param keyClass the key class for which the supplied transformerClass should be used * @ param transformerClass the transformer class to use for the supplied key class */ publi...
transformerTypes . put ( keyClass , transformerClass ) ;
public class ClassHelper { /** * Get the name of the package the passed class resides in . * @ param sClassName * The name class to get the information from . May be < code > null < / code > * @ return The package name of the passed class . */ @ Nullable public static String getClassPackageName ( @ Nullable final...
if ( sClassName == null ) return null ; final int nIndex = sClassName . lastIndexOf ( '.' ) ; return nIndex == - 1 ? "" : sClassName . substring ( 0 , nIndex ) ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcLinearStiffnessMeasure ( ) { } }
if ( ifcLinearStiffnessMeasureEClass == null ) { ifcLinearStiffnessMeasureEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 826 ) ; } return ifcLinearStiffnessMeasureEClass ;
public class MarvinColorModelConverter { /** * Converts an image in BINARY mode to RGB mode * @ param img image * @ return new MarvinImage instance in RGB mode */ public static MarvinImage binaryToRgb ( MarvinImage img ) { } }
MarvinImage resultImage = new MarvinImage ( img . getWidth ( ) , img . getHeight ( ) , MarvinImage . COLOR_MODEL_RGB ) ; for ( int y = 0 ; y < img . getHeight ( ) ; y ++ ) { for ( int x = 0 ; x < img . getWidth ( ) ; x ++ ) { if ( img . getBinaryColor ( x , y ) ) { resultImage . setIntColor ( x , y , 0 , 0 , 0 ) ; } el...
public class SourceDetailMarshaller { /** * Marshall the given parameter object . */ public void marshall ( SourceDetail sourceDetail , ProtocolMarshaller protocolMarshaller ) { } }
if ( sourceDetail == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( sourceDetail . getEventSource ( ) , EVENTSOURCE_BINDING ) ; protocolMarshaller . marshall ( sourceDetail . getMessageType ( ) , MESSAGETYPE_BINDING ) ; protocolMarshaller ....
public class Interval { /** * Return the complement section of the interval . * @ param op * @ return The complemented interval ( s ) , or an empty list if the complement is empty . */ public List < Interval < T > > complement ( final Interval < T > op ) throws MIDDException { } }
final boolean disJoined = ( this . lowerBound . compareTo ( op . upperBound ) >= 0 ) || ( this . upperBound . compareTo ( op . lowerBound ) <= 0 ) ; if ( disJoined ) { Interval < T > newInterval = new Interval < > ( this . lowerBound , this . upperBound ) ; final boolean isLowerClosed ; if ( this . lowerBound . compare...
public class ConnectionDialog { /** * This method initializes jContentPane * @ return javax . swing . JPanel */ private JPanel getJContentPane ( ) { } }
if ( jContentPane == null ) { jContentPane = new JPanel ( ) ; jContentPane . setLayout ( new BorderLayout ( ) ) ; jContentPane . add ( getMainPanel ( ) , BorderLayout . CENTER ) ; jContentPane . add ( getButtonPanel ( ) , BorderLayout . SOUTH ) ; } return jContentPane ;
public class RESTClientFactory { /** * Creates a REST client used to perform Voldemort operations against the * Coordinator * @ param storeName Name of the store to perform the operations on * @ param resolver Custom resolver as specified by the application * @ return */ @ Override public < K , V > StoreClient ...
// wrap it in LazyStoreClient here so any direct calls to this method // returns a lazy client return new LazyStoreClient < K , V > ( new Callable < StoreClient < K , V > > ( ) { @ Override public StoreClient < K , V > call ( ) throws Exception { Store < K , V , Object > clientStore = getRawStore ( storeName , resolver...
public class UTF8Reader { /** * Reads into a character buffer using the correct encoding . * @ param cbuf character buffer receiving the data . * @ param off starting offset into the buffer . * @ param len number of characters to read . * @ return the number of characters read or - 1 on end of file . */ @ Overr...
int i = 0 ; InputStream is = _is ; if ( is == null ) return - 1 ; for ( i = 0 ; i < len ; i ++ ) { if ( i > 0 && is . available ( ) < 1 ) return i ; int ch = read ( ) ; if ( ch < 0 ) return i == 0 ? - 1 : i ; cbuf [ off + i ] = ( char ) ch ; } return i ;
public class UnshareDirectoryRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( UnshareDirectoryRequest unshareDirectoryRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( unshareDirectoryRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( unshareDirectoryRequest . getDirectoryId ( ) , DIRECTORYID_BINDING ) ; protocolMarshaller . marshall ( unshareDirectoryRequest . getUnshareTarget ( ) , UNSHARETA...
public class ForecastServiceLocator { /** * For the given interface , get the stub implementation . * If this service has no port for the given interface , * then ServiceException is thrown . */ public java . rmi . Remote getPort ( Class serviceEndpointInterface ) throws javax . xml . rpc . ServiceException { } }
try { if ( com . google . api . ads . admanager . axis . v201811 . ForecastServiceInterface . class . isAssignableFrom ( serviceEndpointInterface ) ) { com . google . api . ads . admanager . axis . v201811 . ForecastServiceSoapBindingStub _stub = new com . google . api . ads . admanager . axis . v201811 . ForecastServi...
public class AdBrokerBenchmark { /** * Prints some summary statistics about performance . * @ throws Exception if anything unexpected happens . */ public synchronized void printResults ( ) throws Exception { } }
ClientStats stats = m_fullStatsContext . fetch ( ) . getStats ( ) ; System . out . print ( HORIZONTAL_RULE ) ; System . out . println ( " Client Workload Statistics" ) ; System . out . println ( HORIZONTAL_RULE ) ; System . out . printf ( "Average throughput: %,9d txns/sec\n" , stats . getTxnThroughput ( ) )...
public class PGDImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setYpgBase ( Integer newYpgBase ) { } }
Integer oldYpgBase = ypgBase ; ypgBase = newYpgBase ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . PGD__YPG_BASE , oldYpgBase , ypgBase ) ) ;
public class SnapshotManagerImpl { /** * ( non - Javadoc ) * @ see org . duracloud . snapshot . service . SnapshotManager # addContentItem ( * org . duracloud . snapshot . db . model . Snapshot , java . lang . String , java . util . Map ) */ @ Override @ Transactional public void addContentItem ( Snapshot snapshot ...
String contentIdHash = createChecksumGenerator ( ) . generateChecksum ( contentId ) ; try { if ( this . snapshotContentItemRepo . findBySnapshotAndContentIdHash ( snapshot , contentIdHash ) != null ) { return ; } SnapshotContentItem item = new SnapshotContentItem ( ) ; item . setContentId ( contentId ) ; item . setSnap...
public class ReadWriteManager { /** * Writes the content of a KAFDocument object to standard output . */ static void print ( KAFDocument kaf ) { } }
try { Writer out = new BufferedWriter ( new OutputStreamWriter ( System . out , "UTF8" ) ) ; out . write ( kafToStr ( kaf ) ) ; out . flush ( ) ; } catch ( Exception e ) { System . out . println ( e ) ; }
public class ClasspathBuilder { /** * Get resources for specific scope . * @ param project * @ param scope * @ return */ private List < Resource > getResources ( final MavenProject project , final String scope ) { } }
if ( SCOPE_COMPILE . equals ( scope ) || SCOPE_RUNTIME . equals ( scope ) ) { return project . getResources ( ) ; } else if ( SCOPE_TEST . equals ( scope ) ) { List < Resource > resources = new ArrayList < Resource > ( ) ; resources . addAll ( project . getTestResources ( ) ) ; resources . addAll ( project . getResourc...
public class ConstantsSummaryBuilder { /** * Build the summary for each documented package . * @ param node the XML element that specifies which components to document * @ param contentTree the tree to which the summaries will be added * @ throws DocletException if there is a problem while building the documentat...
printedPackageHeaders . clear ( ) ; Content summariesTree = writer . getConstantSummaries ( ) ; for ( PackageElement aPackage : configuration . packages ) { if ( hasConstantField ( aPackage ) ) { currentPackage = aPackage ; // Build the documentation for the current package . buildChildren ( node , summariesTree ) ; fi...
public class EpollEventLoop { /** * Deregister the given epoll from this { @ link EventLoop } . */ void remove ( AbstractEpollChannel ch ) throws IOException { } }
assert inEventLoop ( ) ; if ( ch . isOpen ( ) ) { int fd = ch . socket . intValue ( ) ; if ( channels . remove ( fd ) != null ) { // Remove the epoll . This is only needed if it ' s still open as otherwise it will be automatically // removed once the file - descriptor is closed . Native . epollCtlDel ( epollFd . intVal...
public class LuceneBooleanQueryExternalizer { /** * BooleanQuery has a static ( but reconfigurable ) limit for the number of clauses . * If any node was able to bypass this limit , we ' ll need to assume that this limit * was somehow relaxed and some point in time , so we need to apply the same configuration * to...
if ( numberOfClauses > BooleanQuery . getMaxClauseCount ( ) ) { log . overridingBooleanQueryMaxClauseCount ( numberOfClauses ) ; BooleanQuery . setMaxClauseCount ( numberOfClauses ) ; }
public class SerializerFactory { /** * Reads the object as a map . */ public Deserializer getObjectDeserializer ( String type ) throws HessianProtocolException { } }
Deserializer deserializer = getDeserializer ( type ) ; if ( deserializer != null ) return deserializer ; else if ( _hashMapDeserializer != null ) return _hashMapDeserializer ; else { _hashMapDeserializer = new MapDeserializer ( HashMap . class ) ; return _hashMapDeserializer ; }
public class DateParser { /** * Process between syntax . Just leave the beginning date . * @ param input the source string * @ return the stripped result */ private String handleBetween ( final String input ) { } }
final String outString = input . replace ( "BETWEEN " , "" ) . replace ( "BET " , "" ) . replace ( "FROM " , "" ) ; return truncateAt ( truncateAt ( outString , " AND " ) , " TO " ) . trim ( ) ;
public class JdbcKAMLoaderImpl { /** * Saves an entry to the object table . * @ param tid { @ code int } , the object type id * @ param v { @ link String } , the non - null object value * @ return { @ code int } , the object primary key * @ throws SQLException - Thrown if a sql error occurred saving an entry to...
final String objectsIdColumn = ( dbConnection . isPostgresql ( ) ? OBJECTS_ID_COLUMN_POSTGRESQL : OBJECTS_ID_COLUMN ) ; PreparedStatement ps = getPreparedStatement ( OBJECTS_SQL , new String [ ] { objectsIdColumn } ) ; ResultSet rs = null ; if ( v == null ) { throw new InvalidArgument ( "object value cannot be null" ) ...
public class JwaServerWebSocket { /** * { @ link Session } is available . */ @ Override public < T > T unwrap ( Class < T > clazz ) { } }
return Session . class . isAssignableFrom ( clazz ) ? clazz . cast ( session ) : null ;
public class ZooKeeperUtils { /** * Creates a { @ link ZooKeeperLeaderRetrievalService } instance . * @ param client The { @ link CuratorFramework } ZooKeeper client to use * @ param configuration { @ link Configuration } object containing the configuration values * @ param pathSuffix The path suffix which we wan...
String leaderPath = configuration . getString ( HighAvailabilityOptions . HA_ZOOKEEPER_LEADER_PATH ) + pathSuffix ; return new ZooKeeperLeaderRetrievalService ( client , leaderPath ) ;
public class TransactionScope { /** * Called by TransactionImpl . */ void detach ( ) { } }
mLock . lock ( ) ; try { if ( mDetached || mTxnMgr . removeLocalScope ( this ) ) { mDetached = true ; } else { throw new IllegalStateException ( "Transaction is attached to a different thread" ) ; } } finally { mLock . unlock ( ) ; }
public class Strs { /** * Search target string to find the first index of any string in the given string array , starting at the specified index * @ param target * @ param fromIndex * @ param indexWith * @ return */ public static int indexAny ( String target , Integer fromIndex , String ... indexWith ) { } }
return indexAny ( target , fromIndex , Arrays . asList ( indexWith ) ) ;
public class Matrix4f { /** * / * ( non - Javadoc ) * @ see org . joml . Matrix4fc # rotateY ( float , org . joml . Matrix4f ) */ public Matrix4f rotateY ( float ang , Matrix4f dest ) { } }
if ( ( properties & PROPERTY_IDENTITY ) != 0 ) return dest . rotationY ( ang ) ; float cos , sin ; sin = ( float ) Math . sin ( ang ) ; cos = ( float ) Math . cosFromSin ( sin , ang ) ; float rm00 = cos ; float rm02 = - sin ; float rm20 = sin ; float rm22 = cos ; // add temporaries for dependent values float nm00 = m00...
public class BSDSyslogSenderImpl { /** * Serialize , format , and prepare the message payload body * for sending by this transport . This includes adding * the syslog message header . * @ param msg Message to prepare * @ return Buffer to send */ protected byte [ ] getTransportPayload ( AuditEventMessage msg ) {...
if ( msg == null ) { return null ; } byte [ ] msgBytes = msg . getSerializedMessage ( false ) ; if ( EventUtils . isEmptyOrNull ( msgBytes ) ) { return null ; } // Format message with transport - specific headers StringBuilder sb = new StringBuilder ( ) ; sb . append ( "<" ) ; sb . append ( TRANSPORT_DEFAULT_PRIORITY )...
public class InvokerTask { /** * Executes the task on a thread from the common Liberty thread pool . */ @ Override public void run ( ) { } }
final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "run[" + taskId + ']' , persistentExecutor ) ; Config config = persistentExecutor . configRef . get ( ) ; if ( persistentExecutor . deactivated || ! config . enableTaskExecution ) { if ( tra...
public class X509Credential { /** * Returns the identity certificate of this credential . The identity certificate is the first certificate * in the chain that is not an impersonation proxy certificate . * @ return < code > X509Certificate < / code > the identity cert . Null , if unable to get the identity certific...
try { return BouncyCastleUtil . getIdentityCertificate ( this . certChain ) ; } catch ( CertificateException e ) { logger . debug ( "Error getting certificate identity." , e ) ; return null ; }
public class RemoteQPConsumerKey { /** * message received from the DME corresponding to a get request issued by this consumer . * Note that this method will never be called on messages received due to gets issued by the * RemoteQPConsumerKeyGroup * @ param key */ protected final void messageReceived ( AIStreamKey...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "messageReceived" , key ) ; long timeout = refillTime ; boolean reissueGet = false ; synchronized ( this ) { countOfUnlockedMessages ++ ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibT...
public class StringUtils { /** * Fast line splitting with a separator , typically a tab or space character . * @ param line * the line to be splitted * @ param delimiter * the delimiter * @ param splitted * the array containing the splitted tokens for each line */ public static void splitLine ( final String...
int idxComma , idxToken = 0 , fromIndex = 0 ; while ( ( idxComma = line . indexOf ( delimiter , fromIndex ) ) != - 1 ) { splitted [ idxToken ++ ] = line . substring ( fromIndex , idxComma ) ; fromIndex = idxComma + 1 ; } splitted [ idxToken ] = line . substring ( fromIndex ) ;
public class GranteeManager { /** * Revokes the rights represented by the rights argument on * the database object identified by the dbobject argument * from the User object identified by the name * argument . < p > * @ see # grant */ public void revoke ( OrderedHashSet granteeList , SchemaObject dbObject , Rig...
if ( ! grantor . isFullyAccessibleByRole ( dbObject ) ) { throw Error . error ( ErrorCode . X_42501 , dbObject . getName ( ) . name ) ; } if ( grantor . isAdmin ( ) ) { grantor = dbObject . getOwner ( ) ; } for ( int i = 0 ; i < granteeList . size ( ) ; i ++ ) { String name = ( String ) granteeList . get ( i ) ; Grante...
public class CmsModuleImportExportRepository { /** * Computes a module hash , which should change when a module changes and stay the same when the module doesn ' t change . < p > * We only use the modification time of the module resources and their descendants and the modification time of the metadata * for computi...
LOG . info ( "Getting module hash for " + module . getName ( ) ) ; // This method may be called very frequently during a short time , but it is unlikely // that a module changes multiple times in a few seconds , so we use a timed cache here String cachedValue = m_newModuleHashCache . get ( module ) ; if ( cachedValue !...
public class CountersManager { /** * Allocate a new counter with a given label and type . * @ param label to describe the counter . * @ param typeId for the type of counter . * @ return the id allocated for the counter . */ public int allocate ( final String label , final int typeId ) { } }
final int counterId = nextCounterId ( ) ; checkCountersCapacity ( counterId ) ; final int recordOffset = metaDataOffset ( counterId ) ; checkMetaDataCapacity ( recordOffset ) ; try { metaDataBuffer . putInt ( recordOffset + TYPE_ID_OFFSET , typeId ) ; metaDataBuffer . putLong ( recordOffset + FREE_FOR_REUSE_DEADLINE_OF...
public class SunriseSunsetCalculator { /** * Computes the sunset for an arbitrary declination . * @ param latitude * @ param longitude * Coordinates for the location to compute the sunrise / sunset for . * @ param timeZone * timezone to compute the sunrise / sunset times in . * @ param date * < code > Cal...
SolarEventCalculator solarEventCalculator = new SolarEventCalculator ( new Location ( latitude , longitude ) , timeZone ) ; return solarEventCalculator . computeSunsetCalendar ( new Zenith ( 90 - degrees ) , date ) ;
public class DomainsInner { /** * Creates an ownership identifier for a domain or updates identifier details for an existing identifer . * Creates an ownership identifier for a domain or updates identifier details for an existing identifer . * @ param resourceGroupName Name of the resource group to which the resour...
return ServiceFuture . fromResponse ( updateOwnershipIdentifierWithServiceResponseAsync ( resourceGroupName , domainName , name , domainOwnershipIdentifier ) , serviceCallback ) ;
public class A_CmsUploadDialog { /** * Execute to set the content wrapper height . < p > */ protected void setContentWrapperHeight ( ) { } }
// set the max height of the content panel int fixedContent = 0 ; if ( m_dialogInfo . isVisible ( ) ) { fixedContent += m_dialogInfo . getOffsetHeight ( ) ; } if ( m_selectionSummary . isVisible ( ) ) { fixedContent += m_selectionSummary . getOffsetHeight ( ) ; } m_scrollPanel . getElement ( ) . getStyle ( ) . setPrope...
public class Forward { /** * Make sure required action outputs are present , and are of the right type ( only make the latter check when not * in production mode */ private void checkActionOutputs ( PageFlowActionForward fc ) { } }
PageFlowActionForward . ActionOutput [ ] actionOutputs = fc . getActionOutputs ( ) ; boolean doExpensiveChecks = _actionOutputs != null && ! AdapterManager . getServletContainerAdapter ( _servletContext ) . isInProductionMode ( ) ; for ( int i = 0 ; i < actionOutputs . length ; ++ i ) { PageFlowActionForward . ActionOu...
public class TSDB { /** * Blocks while pre - fetching meta data from the data and uid tables * so that performance improves , particularly with a large number of * regions and region servers . * @ since 2.2 */ public void preFetchHBaseMeta ( ) { } }
LOG . info ( "Pre-fetching meta data for all tables" ) ; final long start = System . currentTimeMillis ( ) ; final ArrayList < Deferred < Object > > deferreds = new ArrayList < Deferred < Object > > ( ) ; deferreds . add ( client . prefetchMeta ( table ) ) ; deferreds . add ( client . prefetchMeta ( uidtable ) ) ; // T...
public class CmsXmlMessages { /** * Returns the localized resource String from the configuration file , if not found or set from the resource bundle . < p > * @ see org . opencms . i18n . CmsMessages # key ( java . lang . String ) */ @ Override public String key ( String keyName ) { } }
if ( hasConfigValue ( keyName ) ) { return getConfigValue ( keyName ) ; } return m_messages . key ( keyName ) ;
public class A_CmsDiffViewDialog { /** * Returns the html code for the buttons ' show only differences ' and ' show everything ' . < p > * @ return the html code for the buttons ' show only differences ' and ' show everything ' */ String getDiffOnlyButtonsHtml ( ) { } }
StringBuffer result = new StringBuffer ( ) ; if ( ! getOriginalSource ( ) . equals ( getCopySource ( ) ) ) { String onClick1 = "javascript:document.forms['diff-form'].mode.value = '" ; String onClick2 = "javascript:document.forms['diff-form'].mode.value = '" ; onClick1 += CmsDiffViewMode . ALL ; onClick2 += CmsDiffView...
public class RequestMapper { /** * Register the RequestHandler to accept requests on the given port , for the * specified host and path . * @ param port the integer port on which the RequestHandler gets requests . * @ param host the String Host which the RequestHandler matches , or null , if * the RequestHandle...
Integer portInt = Integer . valueOf ( port ) ; PortMapper portMapper = portMap . get ( portInt ) ; if ( portMapper == null ) { portMapper = new PortMapper ( portInt ) ; portMap . put ( portInt , portMapper ) ; } portMapper . addRequestHandler ( host , path , requestHandler ) ; LOGGER . info ( "Registered " + port + "/"...
public class NonBlockingIdentityHashMap { /** * Atomically do a < code > put ( key , newValue ) < / code > if - and - only - if the key is * mapped a value which is < code > equals < / code > to < code > oldValue < / code > . * @ throws NullPointerException if the specified key or value is null */ public boolean re...
return putIfMatch ( key , newValue , oldValue ) == oldValue ;
public class ESFilterBuilder { /** * Populate like query . * @ param likeExpression * the like expression * @ param metadata * the metadata * @ return the filter builder */ private QueryBuilder populateLikeQuery ( LikeExpression likeExpression , EntityMetadata metadata ) { } }
Expression patternValue = likeExpression . getPatternValue ( ) ; String field = likeExpression . getStringExpression ( ) . toString ( ) ; String likePattern = ( patternValue instanceof InputParameter ) ? kunderaQuery . getParametersMap ( ) . get ( ( patternValue ) . toParsedText ( ) ) . toString ( ) : patternValue . to...
public class GetStringComparator { /** * Get a chunk of the string that is consistently not digits . Length of * string is passed in for improved efficiency ( calculate once ) . * @ param string the string being chunked * @ param slength the length of the string * @ param marker the starting point for processin...
final StringBuilder chunk = new StringBuilder ( ) ; for ( int index = marker ; index < slength ; index ++ ) { final char c = string . charAt ( index ) ; if ( isDigit ( c ) ) { break ; } chunk . append ( c ) ; } return chunk . toString ( ) ;
public class PaginatedList { /** * Returns whether the collection contains the given element . Results are * loaded and checked incrementally until a match is found or the end of the * result set is reached . * Not supported in ITERATION _ ONLY mode . */ @ Override public boolean contains ( Object arg0 ) { } }
checkUnsupportedOperationForIterationOnlyMode ( "contains(Object arg0)" ) ; if ( allResults . contains ( arg0 ) ) return true ; while ( nextResultsAvailable ( ) ) { boolean found = nextResults . contains ( arg0 ) ; moveNextResults ( false ) ; if ( found ) return true ; } return false ;
public class Properties { /** * Append the value to the list to which the specified property key is mapped . If * this properties contains no mapping for the property key , the value append to * a new list witch is associate the the specified property key . * @ param < T > * the type of elements in the list *...
List < T > list = get ( property ) ; list . add ( value ) ; if ( ! contains ( property ) ) { set ( property , list ) ; }
public class CorporationApi { /** * Get corporation member roles history Return how roles have changed for a * coporation & # 39 ; s members , up to a month - - - This route is cached for up * to 3600 seconds - - - Requires one of the following EVE corporation * role ( s ) : Director SSO Scope : * esi - corpora...
ApiResponse < List < CorporationRolesHistoryResponse > > resp = getCorporationsCorporationIdRolesHistoryWithHttpInfo ( corporationId , datasource , ifNoneMatch , page , token ) ; return resp . getData ( ) ;
public class Sentry { /** * Returns the last statically stored { @ link SentryClient } instance . If no instance * is already stored , the { @ link # init ( ) } method will be called one time in an attempt to * create a { @ link SentryClient } . * @ return statically stored { @ link SentryClient } instance , or n...
if ( storedClient != null ) { return storedClient ; } synchronized ( Sentry . class ) { if ( storedClient == null && ! autoInitAttempted . get ( ) ) { // attempt initialization by using configuration found in the environment autoInitAttempted . set ( true ) ; init ( ) ; } } return storedClient ;
public class CmsListColumnDefinition { /** * returns the html for a cell . < p > * @ param item the item to render the cell for * @ param isPrintable if the list is to be printed * @ return html code */ public String htmlCell ( CmsListItem item , boolean isPrintable ) { } }
StringBuffer html = new StringBuffer ( 512 ) ; Iterator < I_CmsListDirectAction > itActions = m_directActions . iterator ( ) ; while ( itActions . hasNext ( ) ) { I_CmsListDirectAction action = itActions . next ( ) ; action . setItem ( item ) ; boolean enabled = action . isEnabled ( ) ; if ( isPrintable ) { action . se...
public class AccessSet { /** * This is the getter method for instance variable { @ link # dataModelTypes } . * @ return the value of the instance variable { @ link # dataModelTypes } . * @ see # dataModelTypes * @ throws CacheReloadException on error */ public Set < Type > getDataModelTypes ( ) throws CacheReload...
final Set < Type > ret = new HashSet < > ( ) ; for ( final Long id : this . dataModelTypes ) { ret . add ( Type . get ( id ) ) ; } return Collections . unmodifiableSet ( ret ) ;
public class EditableTemplate { /** * Checks if the given page is part of the editable template definition itself . * @ param page Page * @ return true if page is part of template definition . */ private static boolean isPageInTemplateDefinition ( Page page ) { } }
Resource resource = page . adaptTo ( Resource . class ) ; if ( resource != null ) { Resource parent = resource . getParent ( ) ; if ( parent != null ) { return StringUtils . equals ( NT_TEMPLATE , parent . getValueMap ( ) . get ( JCR_PRIMARYTYPE , String . class ) ) ; } } return false ;
public class FastNonThreadsafeRandom { /** * Returns a pseudorandom , uniformly distributed { @ code int } value between 0 * ( inclusive ) and the specified value ( exclusive ) , drawn from this random * number generator ' s sequence . The general contract of { @ code nextInt } is * that one { @ code int } value ...
if ( n <= 0 ) { throw new IllegalArgumentException ( BADBOUND ) ; } seed = ( seed * multiplier + addend ) & mask ; long ret = ( seed >>> 16 ) * n ; // Rejection sampling int leftover = ( int ) ( ret & 0x7FFFFFFFL ) ; if ( leftover < n ) { // With Java 8 , we could use Integer . remainderUnsigned final long threshold = ...
public class SoyProtoValue { /** * Gets a value for the field for the underlying proto object . Not intended for general use . * @ param name The proto field name . * @ return The value of the given field for the underlying proto object , or NullData if either the * field does not exist or the value is not set in...
FieldWithInterpreter field = clazz ( ) . fields . get ( name ) ; if ( field == null ) { throw new IllegalArgumentException ( "Proto " + proto . getClass ( ) . getName ( ) + " does not have a field of name " + name ) ; } if ( field . shouldCheckFieldPresenceToEmulateJspbNullability ( ) && ! proto . hasField ( field . ge...
public class ProducerSequenceFactory { /** * Returns a sequence that can be used for a request for a decoded image . * @ param imageRequest the request that will be submitted * @ return the sequence that should be used to process the request */ public Producer < CloseableReference < CloseableImage > > getDecodedIma...
if ( FrescoSystrace . isTracing ( ) ) { FrescoSystrace . beginSection ( "ProducerSequenceFactory#getDecodedImageProducerSequence" ) ; } Producer < CloseableReference < CloseableImage > > pipelineSequence = getBasicDecodedImageSequence ( imageRequest ) ; if ( imageRequest . getPostprocessor ( ) != null ) { pipelineSeque...
public class EntropyInjector { @ Nullable private static EntropyInjectingFileSystem getEntropyFs ( FileSystem fs ) { } }
if ( fs instanceof EntropyInjectingFileSystem ) { return ( EntropyInjectingFileSystem ) fs ; } else if ( fs instanceof SafetyNetWrapperFileSystem ) { FileSystem delegate = ( ( SafetyNetWrapperFileSystem ) fs ) . getWrappedDelegate ( ) ; if ( delegate instanceof EntropyInjectingFileSystem ) { return ( EntropyInjectingFi...
public class QrCodeEncoder { /** * Returns the length of the message length variable in bits . Dependent on version */ private static int getLengthBits ( int version , int bitsA , int bitsB , int bitsC ) { } }
int lengthBits ; if ( version < 10 ) lengthBits = bitsA ; else if ( version < 27 ) lengthBits = bitsB ; else lengthBits = bitsC ; return lengthBits ;
public class JodaBeanJsonWriter { /** * write map */ private void writeMap ( SerIterator itemIterator ) throws IOException { } }
// if key type is known and convertible use short key format , else use full bean format if ( settings . getConverter ( ) . isConvertible ( itemIterator . keyType ( ) ) ) { writeMapSimple ( itemIterator ) ; } else { writeMapComplex ( itemIterator ) ; }
public class ChunkCollision { /** * Gets the ray trace result . < br > * Called via ASM from { @ link World # rayTraceBlocks ( Vec3d , Vec3d , boolean , boolean , boolean ) } before each return . * @ param world the world * @ param result the mop * @ return the ray trace result */ public RayTraceResult getRayTr...
if ( infos == null ) return result ; RayTraceResult tmp = new RaytraceChunk ( world , infos . getLeft ( ) , infos . getRight ( ) ) . trace ( ) ; result = Raytrace . getClosestHit ( Type . BLOCK , infos . getLeft ( ) , result , tmp ) ; return returnLastUncollidableBlock || result == null || result . typeOfHit == Type . ...
public class ViewHolder { /** * I added a generic return type to reduce the casting noise in client code */ @ SuppressWarnings ( "unchecked" ) public static < T extends View > T get ( View view , int id ) { } }
SparseArray < View > viewHolder = ( SparseArray < View > ) view . getTag ( ) ; if ( viewHolder == null ) { viewHolder = new SparseArray < View > ( ) ; view . setTag ( viewHolder ) ; } View childView = viewHolder . get ( id ) ; if ( childView == null ) { childView = view . findViewById ( id ) ; viewHolder . put ( id , c...
public class MailSenderInfo { /** * 获得邮件会话属性 */ public Properties getProperties ( ) { } }
Properties p = new Properties ( ) ; p . put ( "mail.smtp.host" , this . mailServerHost ) ; p . put ( "mail.smtp.port" , this . mailServerPort ) ; p . put ( "mail.smtp.auth" , validate ? "true" : "false" ) ; return p ;
public class JpaClusterLockDao { /** * Retrieves a ClusterMutex in a new TX */ protected ClusterMutex getClusterMutexInternal ( final String mutexName ) { } }
final TransactionOperations transactionOperations = this . getTransactionOperations ( ) ; return transactionOperations . execute ( new TransactionCallback < ClusterMutex > ( ) { @ Override public ClusterMutex doInTransaction ( TransactionStatus status ) { final CacheKey key = CacheKey . build ( CLUSTER_MUTEX_SOURCE , m...
public class AmazonDynamoDBAsyncClient { /** * Retrieves a set of Attributes for an item that matches the primary * key . * The < code > GetItem < / code > operation provides an eventually - consistent * read by default . If eventually - consistent reads are not acceptable for * your application , use < code > ...
return executorService . submit ( new Callable < GetItemResult > ( ) { public GetItemResult call ( ) throws Exception { return getItem ( getItemRequest ) ; } } ) ;
public class StatementDML { /** * Highest level multiple row delete method . Corresponds to an SQL * DELETE . */ int delete ( Session session , Table table , RowSetNavigator oldRows ) { } }
if ( table . fkMainConstraints . length == 0 ) { deleteRows ( session , table , oldRows ) ; oldRows . beforeFirst ( ) ; if ( table . hasTrigger ( Trigger . DELETE_AFTER ) ) { table . fireAfterTriggers ( session , Trigger . DELETE_AFTER , oldRows ) ; } return oldRows . getSize ( ) ; } HashSet path = session . sessionCon...
public class AbstractPendingLinkingCandidate { /** * Returns false if the argument expression is a lambda and the expected type * of the argument is not a function type or { @ link Object } . * Returns true in all other cases . * This serves as a shortcut to rule out decision path ' s where a method is overloaded...
if ( idx < arguments . getArgumentCount ( ) ) { XExpression argument = arguments . getArgument ( idx ) ; if ( argument instanceof XClosure ) { XClosure closure = ( XClosure ) argument ; LightweightTypeReference declaredType = arguments . getDeclaredTypeForLambda ( idx ) ; if ( declaredType != null && ! declaredType . i...
public class DirectConnectGatewayAssociation { /** * The Amazon VPC prefixes to advertise to the Direct Connect gateway . * @ param allowedPrefixesToDirectConnectGateway * The Amazon VPC prefixes to advertise to the Direct Connect gateway . */ public void setAllowedPrefixesToDirectConnectGateway ( java . util . Col...
if ( allowedPrefixesToDirectConnectGateway == null ) { this . allowedPrefixesToDirectConnectGateway = null ; return ; } this . allowedPrefixesToDirectConnectGateway = new com . amazonaws . internal . SdkInternalList < RouteFilterPrefix > ( allowedPrefixesToDirectConnectGateway ) ;
public class WorkflowClient { /** * Pause a workflow by workflow id * @ param workflowId the workflow id of the workflow to be paused */ public void pauseWorkflow ( String workflowId ) { } }
Preconditions . checkArgument ( StringUtils . isNotBlank ( workflowId ) , "workflow id cannot be blank" ) ; stub . pauseWorkflow ( WorkflowServicePb . PauseWorkflowRequest . newBuilder ( ) . setWorkflowId ( workflowId ) . build ( ) ) ;
public class CRC13239 { /** * < p > Method for calculating a CRC13239 checksum over a byte buffer . < / p > * @ param buf byte buffer to be checksummed . * @ param len how much of the buffer should be checksummed * @ return CRC13239 checksum */ static public short getCRC ( byte [ ] buf , int len ) { } }
short i ; short crc = 0x7fff ; boolean isNeg = true ; for ( int j = 0 ; j < len ; j ++ ) { crc ^= buf [ j ] & 0xff ; for ( i = 0 ; i < 8 ; i ++ ) { if ( ( crc & 1 ) == 0 ) { crc >>= 1 ; if ( isNeg ) { isNeg = false ; crc |= 0x4000 ; } } else { crc >>= 1 ; if ( isNeg ) { crc ^= 0x4408 ; } else { crc ^= 0x0408 ; isNeg = ...
public class CaseServicesClientImpl { /** * internal methods */ protected List < CaseFileDataItem > internalGetCaseInstanceDataItems ( String caseId , List < String > names , List < String > types , Integer page , Integer pageSize ) { } }
CaseFileDataItemList list = null ; if ( config . isRest ( ) ) { Map < String , Object > valuesMap = new HashMap < String , Object > ( ) ; valuesMap . put ( CASE_ID , caseId ) ; String queryString = getPagingQueryString ( "" , page , pageSize ) ; if ( names != null && ! names . isEmpty ( ) ) { queryString = getAdditiona...
public class HdfsStatsService { /** * Scans the hbase table and populates the hdfs stats * @ param cluster * @ param scan * @ param maxCount * @ return * @ throws IOException */ private List < HdfsStats > createFromScanResults ( String cluster , String path , Scan scan , int maxCount , boolean checkPath , lon...
Map < HdfsStatsKey , HdfsStats > hdfsStats = new HashMap < HdfsStatsKey , HdfsStats > ( ) ; ResultScanner scanner = null ; Stopwatch timer = new Stopwatch ( ) . start ( ) ; int rowCount = 0 ; long colCount = 0 ; long resultSize = 0 ; Table hdfsUsageTable = null ; try { hdfsUsageTable = hbaseConnection . getTable ( Tabl...
public class BiconjugateGradient { /** * Solves A * x = b by iterative biconjugate gradient method . * @ param b the right hand side of linear equations . * @ param x on input , x should be set to an initial guess of the solution * ( or all zeros ) . On output , x is reset to the improved solution . * @ return ...
return solve ( A , diagonalPreconditioner ( A ) , b , x ) ;
public class ParametricStatement { /** * Executes an UPDATE or DELETE statement . * @ return the number of rows affected */ public int executeUpdate ( Connection conn , DataObject object ) throws SQLException { } }
PreparedStatement statement = conn . prepareStatement ( _sql ) ; try { load ( statement , object ) ; return statement . executeUpdate ( ) ; } finally { statement . close ( ) ; }
public class OperationImpl { /** * Add the extra headers to the write { @ link ByteBuffer } . * @ param bb the buffer where to append . * @ param extraHeaders the headers to append . */ private void addExtraHeaders ( final ByteBuffer bb , final Object ... extraHeaders ) { } }
for ( Object o : extraHeaders ) { if ( o instanceof Integer ) { bb . putInt ( ( Integer ) o ) ; } else if ( o instanceof byte [ ] ) { bb . put ( ( byte [ ] ) o ) ; } else if ( o instanceof Long ) { bb . putLong ( ( Long ) o ) ; } else if ( o instanceof Short ) { bb . putShort ( ( Short ) o ) ; } else { assert false : "...
public class Utils { /** * Gets a keystore manager for a given hostname * Creates one / key if it does not already exist * @ param hostname * @ return * @ throws Exception */ public static KeyStoreManager getKeyStoreManager ( String hostname ) throws Exception { } }
File root = getKeyStoreRoot ( hostname ) ; // create entry KeyStoreManager keyStoreManager = new KeyStoreManager ( root ) ; // under the hood this will generate the cert if it doesn ' t exist keyStoreManager . getCertificateByHostname ( hostname ) ; // use this since getCertificateByHostname always returns null , but h...
public class IndexForHeaderIndexFile { /** * Checks , if this index is consistent . All inserted keys have to be inserted incrementally . * @ return boolean */ public boolean isConsistent ( ) { } }
for ( int i = 1 ; i < filledUpTo ; i ++ ) { int comp1 = KeyUtils . compareKey ( maxKeyPerChunk [ i ] , maxKeyPerChunk [ i - 1 ] ) ; if ( comp1 <= 0 ) { return false ; } } return true ;
public class WebSocketDecoder { /** * Try parsing the message as a websocket handshake request . If it is such a request , then send the corresponding handshake response ( as in Section 4.2.2 RFC 6455 ) . */ @ SuppressWarnings ( "unchecked" ) private boolean doHandShake ( IoSession session , IoBuffer in ) { } }
if ( log . isDebugEnabled ( ) ) { log . debug ( "Handshake: {}" , in ) ; } // incoming data byte [ ] data = null ; // check for existing HS data if ( session . containsAttribute ( Constants . WS_HANDSHAKE ) ) { byte [ ] tmp = ( byte [ ] ) session . getAttribute ( Constants . WS_HANDSHAKE ) ; // size to hold existing an...
public class MessageDrivenBeanTypeImpl { /** * If not already created , a new < code > around - invoke < / code > element will be created and returned . * Otherwise , the first existing < code > around - invoke < / code > element will be returned . * @ return the instance defined for the element < code > around - i...
List < Node > nodeList = childNode . get ( "around-invoke" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new AroundInvokeTypeImpl < MessageDrivenBeanType < T > > ( this , "around-invoke" , childNode , nodeList . get ( 0 ) ) ; } return createAroundInvoke ( ) ;
public class DynamoDBMapperFieldModel { /** * Creates a condition which filters on the specified value . * @ param value The value . * @ return The condition . * @ see com . amazonaws . services . dynamodbv2 . model . ComparisonOperator # NE * @ see com . amazonaws . services . dynamodbv2 . model . Condition */...
return new Condition ( ) . withComparisonOperator ( NE ) . withAttributeValueList ( convert ( value ) ) ;
public class autoscaleaction { /** * Use this API to fetch all the autoscaleaction resources that are configured on netscaler . */ public static autoscaleaction [ ] get ( nitro_service service ) throws Exception { } }
autoscaleaction obj = new autoscaleaction ( ) ; autoscaleaction [ ] response = ( autoscaleaction [ ] ) obj . get_resources ( service ) ; return response ;
public class PropertiesConfigHelper { /** * Returns as a set , the comma separated values of a property * @ param bundleName * the bundle name * @ param key * the key of the property * @ return a set of the comma separated values of a property */ public Map < String , List < String > > getCustomBundleProperty...
Map < String , List < String > > propertiesMap = new HashMap < > ( ) ; StringTokenizer tk = new StringTokenizer ( getCustomBundleProperty ( bundleName , key , "" ) , ";" ) ; while ( tk . hasMoreTokens ( ) ) { String [ ] mapEntry = tk . nextToken ( ) . trim ( ) . split ( ":" ) ; String mapKey = mapEntry [ 0 ] ; String v...
public class AmazonQuickSightClient { /** * Returns an Amazon QuickSight group ' s description and Amazon Resource Name ( ARN ) . * The permissions resource is * < code > arn : aws : quicksight : us - east - 1 : < i > & lt ; relevant - aws - account - id & gt ; < / i > : group / default / < i > & lt ; group - name ...
request = beforeClientExecution ( request ) ; return executeDescribeGroup ( request ) ;
public class BasicChronology { /** * Get the milliseconds for the start of a month . * @ param year The year to use . * @ param month The month to use * @ return millis from 1970-01-01T00:00:00Z */ long getYearMonthMillis ( int year , int month ) { } }
long millis = getYearMillis ( year ) ; millis += getTotalMillisByYearMonth ( year , month ) ; return millis ;
public class GridBagLayoutFormBuilder { /** * Appends a label and field to the end of the current line . * The label will be to the left of the field , and be right - justified . * < br / > * The field will " grow " horizontally as space allows . * @ param propertyName the name of the property to create the con...
return appendLabeledField ( propertyName , field , labelOrientation , 1 ) ;
public class ServiceContainerHelper { /** * Generics friendly version of { @ link ServiceRegistry # getService ( ServiceName ) } * @ param registry service registry * @ param name service name * @ return the service controller with the specified name , or null if the service does not exist */ public static < T > ...
return ( ServiceController < T > ) registry . getService ( name ) ;
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public ResourceObjectIncludeObjType createResourceObjectIncludeObjTypeFromString ( EDataType eDataType , String initialValue ) { } }
ResourceObjectIncludeObjType result = ResourceObjectIncludeObjType . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ;
public class Kinds { /** * A KindName representing a given symbol kind */ public static KindName kindName ( int kind ) { } }
switch ( kind ) { case PCK : return KindName . PACKAGE ; case TYP : return KindName . CLASS ; case VAR : return KindName . VAR ; case VAL : return KindName . VAL ; case MTH : return KindName . METHOD ; default : throw new AssertionError ( "Unexpected kind: " + kind ) ; }
public class ExampleUtils { /** * Returns a BigQuery client builder using the specified { @ link BigQueryOptions } . */ private static Bigquery . Builder newBigQueryClient ( BigQueryOptions options ) { } }
return new Bigquery . Builder ( Transport . getTransport ( ) , Transport . getJsonFactory ( ) , chainHttpRequestInitializer ( options . getGcpCredential ( ) , // Do not log 404 . It clutters the output and is possibly even required by the caller . new RetryHttpRequestInitializer ( ImmutableList . of ( 404 ) ) ) ) . set...
public class MastersSlavesProtocol { /** * loop until found the failed connection . * @ param listener current failover * @ param globalInfo server global variables information * @ param addresses list of HostAddress to loop * @ param searchFilter search parameter * @ throws SQLException if not found */ publi...
MastersSlavesProtocol protocol ; ArrayDeque < HostAddress > loopAddresses = new ArrayDeque < > ( addresses ) ; if ( loopAddresses . isEmpty ( ) ) { resetHostList ( listener , loopAddresses ) ; } int maxConnectionTry = listener . getRetriesAllDown ( ) ; SQLException lastQueryException = null ; boolean firstLoop = true ;...
public class StructureDiagramGenerator { /** * Generate a new bracket across the provided bond . * @ param bond bond * @ param bonds bond map to Sgroups * @ param counter count how many brackets this group has already * @ param vert vertical align bonds * @ return the new bracket */ private SgroupBracket newC...
final IAtom beg = bond . getBegin ( ) ; final IAtom end = bond . getEnd ( ) ; final Point2d begXy = beg . getPoint2d ( ) ; final Point2d endXy = end . getPoint2d ( ) ; final Vector2d lenOffset = new Vector2d ( endXy . x - begXy . x , endXy . y - begXy . y ) ; final Vector2d bndCrossVec = new Vector2d ( - lenOffset . y ...
public class DBCluster { /** * Provides the list of instances that make up the DB cluster . * @ return Provides the list of instances that make up the DB cluster . */ public java . util . List < DBClusterMember > getDBClusterMembers ( ) { } }
if ( dBClusterMembers == null ) { dBClusterMembers = new com . amazonaws . internal . SdkInternalList < DBClusterMember > ( ) ; } return dBClusterMembers ;
public class Reflection { /** * Loads a class by name . * < p > This methods tries first with the current thread ' s context class loader ( the intent is that * if the driver is in a low - level loader of an application server - - e . g . bootstrap or system - - * it can still find classes in the application ' s ...
try { // If input classLoader is null , use current thread ' s ClassLoader , if that is null , use // default ( calling class ' ) ClassLoader . ClassLoader cl = classLoader != null ? classLoader : Thread . currentThread ( ) . getContextClassLoader ( ) ; if ( cl != null ) { return Class . forName ( className , true , cl...
public class SubscribeForm { /** * Gets the { @ link PresenceState } for which an entity wants to receive * notifications . * @ return the list of states */ public List < PresenceState > getShowValues ( ) { } }
ArrayList < PresenceState > result = new ArrayList < > ( 5 ) ; for ( String state : getFieldValues ( SubscribeOptionFields . show_values ) ) { result . add ( PresenceState . valueOf ( state ) ) ; } return result ;
public class CallbackMethod { /** * メソッド名の昇順 */ @ Override public int compareTo ( final CallbackMethod o ) { } }
final String name1 = method . getDeclaringClass ( ) . getName ( ) + "#" + method . getName ( ) ; final String name2 = o . method . getDeclaringClass ( ) . getName ( ) + "#" + o . method . getName ( ) ; return name1 . compareTo ( name2 ) ;
public class ByteArithmeticExtensions { /** * The unary { @ code minus } operator . This is the equivalent to * the Java ' s { @ code - } function . This function is not null - safe . * @ param number a number . * @ return { @ code - number } */ @ Pure @ Inline ( value = "(-($1.byteValue()))" , constantExpression...
return - number . byteValue ( ) ;
public class FLACEncoder { /** * Get number of samples that are available to encode . This includes samples * which are in a partial block ( and so would only be written if " end " was * set true in encodeSamples ( int count , boolean end ) ; * @ return number of samples availble to encode . */ public int samples...
int available = 0 ; // sum all in blockQueue int channels = streamConfig . getChannelCount ( ) ; for ( BlockEncodeRequest ber : preparedRequests ) { int [ ] block = ber . samples ; available += block . length / channels ; } if ( unfilledRequest != null ) available += unfilledRequest . count ; return available ;
public class Promise { /** * Converts an Object to a ( completed or uncompleted ) CompletableFuture . * @ param object * input Object * @ return object converted to CompletableFuture */ protected static final CompletableFuture < Tree > toCompletableFuture ( Object object ) { } }
if ( object == null ) { return CompletableFuture . completedFuture ( null ) ; } if ( object instanceof CompletableFuture ) { return ( ( CompletableFuture < ? > ) object ) . thenCompose ( Promise :: toCompletableFuture ) ; } if ( object instanceof Promise ) { return ( ( Promise ) object ) . future ; } if ( object instan...
public class CalendarDays { /** * / * [ deutsch ] * < p > Berechnet die Tagesdifferenz zwischen den angegebenen Datumsobjekten . < / p > * @ param start first calendar date ( inclusive ) * @ param end second calendar date ( exclusive ) * @ return count of calendar days between start and end * @ since 3.8/4.5 ...
long t1 = start . getDaysSinceEpochUTC ( ) ; long t2 = end . getDaysSinceEpochUTC ( ) ; return CalendarDays . of ( Math . subtractExact ( t2 , t1 ) ) ;
public class AtomContainer { /** * { @ inheritDoc } */ @ Override public Order getMaximumBondOrder ( IAtom atom ) { } }
IBond . Order max = null ; for ( IBond bond : bonds ( ) ) { if ( ! bond . contains ( atom ) ) continue ; if ( max == null || bond . getOrder ( ) . numeric ( ) > max . numeric ( ) ) { max = bond . getOrder ( ) ; } } if ( max == null ) { if ( ! contains ( atom ) ) throw new NoSuchAtomException ( "Atom does not belong to ...
public class TaskSession { /** * Create the remote receive queue . * @ param strQueueName The queue name to service . * @ param strQueueType The queue type . * @ return The RemoteSendQueue . */ public RemoteReceiveQueue createRemoteReceiveQueue ( String strQueueName , String strQueueType ) throws RemoteException ...
MessageManager messageManager = this . getEnvironment ( ) . getMessageManager ( this . getApplication ( ) , true ) ; BaseMessageReceiver receiver = ( BaseMessageReceiver ) messageManager . getMessageQueue ( strQueueName , strQueueType ) . getMessageReceiver ( ) ; ReceiveQueueSession remoteQueue = new ReceiveQueueSessio...