signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class SampleRandomGroupsHttpHandler { /** * return currently - loaded Proctor instance , throwing IllegalStateException if not loaded */
private Proctor getProctorNotNull ( ) { } } | final Proctor proctor = proctorLoader . get ( ) ; if ( proctor == null ) { throw new IllegalStateException ( "Proctor specification and/or text matrix has not been loaded" ) ; } return proctor ; |
public class FhirContext { /** * Sets the configured performance options
* @ see PerformanceOptionsEnum for a list of available options */
public void setPerformanceOptions ( PerformanceOptionsEnum ... thePerformanceOptions ) { } } | Collection < PerformanceOptionsEnum > asList = null ; if ( thePerformanceOptions != null ) { asList = Arrays . asList ( thePerformanceOptions ) ; } setPerformanceOptions ( asList ) ; |
public class DrawerBuilder { /** * Set the DrawerBuilder width with a dimension resource
* @ param drawerWidthRes
* @ return */
public DrawerBuilder withDrawerWidthRes ( @ DimenRes int drawerWidthRes ) { } } | if ( mActivity == null ) { throw new RuntimeException ( "please pass an activity first to use this call" ) ; } this . mDrawerWidth = mActivity . getResources ( ) . getDimensionPixelSize ( drawerWidthRes ) ; return this ; |
public class BoardingPassBuilder { /** * Adds an auxiliary field for the current { @ link BoardingPass } object . This
* field is optional . There can be at most 5 auxiliary fields per boarding
* pass .
* @ param label
* the label for the additional field . It can ' t be empty .
* @ param value
* the value ... | Field field = new Field ( label , value ) ; this . boardingPass . addAuxiliaryField ( field ) ; return this ; |
public class Utils { /** * 開始位置を指定し 、
* @ param str
* @ param prefix
* @ param offset 比較する文字の開始位置 。 文字数よりも大きい場合は 、 falseを返す 。
* @ return */
public static boolean startsWithIgnoreCase ( final String str , final String prefix , final int offset ) { } } | if ( str == null || prefix == null ) { return ( str == null && prefix == null ) ; } if ( str . length ( ) < offset ) { return false ; } final String subStr = str . substring ( offset ) ; return startsWithIgnoreCase ( subStr , prefix ) ; |
public class Matrix4x3d { /** * Set the left 3x3 submatrix of this { @ link Matrix4x3d } to that of the given { @ link Matrix4x3dc }
* and don ' t change the other elements .
* @ param mat
* the { @ link Matrix4x3dc }
* @ return this */
public Matrix4x3d set3x3 ( Matrix4x3dc mat ) { } } | m00 = mat . m00 ( ) ; m01 = mat . m01 ( ) ; m02 = mat . m02 ( ) ; m10 = mat . m10 ( ) ; m11 = mat . m11 ( ) ; m12 = mat . m12 ( ) ; m20 = mat . m20 ( ) ; m21 = mat . m21 ( ) ; m22 = mat . m22 ( ) ; properties &= mat . properties ( ) ; return this ; |
public class KeyGroupPartitioner { /** * This method reports in the bookkeeping data that the element at the given index belongs to the given key - group . */
protected void reportKeyGroupOfElementAtIndex ( int index , int keyGroup ) { } } | final int keyGroupIndex = keyGroup - firstKeyGroup ; elementKeyGroups [ index ] = keyGroupIndex ; ++ counterHistogram [ keyGroupIndex ] ; |
public class AbstractTreeNode { /** * { @ inheritDoc } */
@ Override public void add ( final TreeNode node ) { } } | if ( node == this ) { throw new IllegalArgumentException ( "Can't add a node to itself" ) ; } if ( this . isAncestor ( node ) ) { throw new IllegalArgumentException ( "Can't add an ancestor as a child node" ) ; } if ( node . getParent ( ) != null ) { node . getParent ( ) . remove ( node ) ; } if ( children == null ) { ... |
public class AuthorizedList { /** * Adds a resource that the user should be allowed to access
* @ param theResource The resource name , e . g . " Patient / 123 " ( in this example the user would be allowed to access Patient / 123 but not Observations where Observation . subject = " Patient / 123 " m , etc .
* @ ret... | Validate . notNull ( theResource , "theResource must not be null" ) ; if ( myAllowedInstances == null ) { myAllowedInstances = new ArrayList < > ( ) ; } myAllowedInstances . add ( theResource ) ; return this ; |
public class JniFileStream { /** * Implement LockableStream as a no - op , but maintain
* compatibility with FileWriteStream and FileReadStream
* wrt returning false to indicate error case . */
public boolean lock ( boolean shared , boolean block ) { } } | if ( shared && ! _canRead ) { // Invalid request for a shared " read " lock on a write only stream .
return false ; } if ( ! shared && ! _canWrite ) { // Invalid request for an exclusive " write " lock on a read only stream .
return false ; } return true ; |
public class ScopedServletUtils { /** * If the request is a ScopedRequest , this sets an attribute whose name is scoped to that request ' s scope - ID ;
* otherwise , it is a straight passthrough to { @ link HttpSession # setAttribute } .
* @ exclude */
public static void setScopedSessionAttr ( String attrName , Ob... | request . getSession ( ) . setAttribute ( getScopedSessionAttrName ( attrName , request ) , val ) ; |
public class CsvProcessor { /** * Register a converter class for all instances of the class argument . The converter can also be specified with the
* { @ link CsvColumn # converterClass ( ) } annotation field . */
public < FT > void registerConverter ( Class < FT > clazz , Converter < FT , ? > converter ) { } } | converterMap . put ( clazz , converter ) ; |
public class CloudSyncServiceImpl { @ Override public ObjectStore createObjectStore ( ObjectStore objectStore ) throws NameConflictException { } } | try { return objectStoreDao . createObjectStore ( objectStore ) ; } catch ( DuplicateKeyException e ) { throw new NameConflictException ( "Object store name is already in use" , e ) ; } |
public class DrawerItem { /** * Sets a rounded image with a given image mode to the drawer item
* @ param image Image to set
* @ param imageMode Image mode to set */
public DrawerItem setRoundedImage ( Context context , Bitmap image , int imageMode ) { } } | return setImage ( new RoundedAvatarDrawable ( new BitmapDrawable ( context . getResources ( ) , image ) . getBitmap ( ) ) , imageMode ) ; |
public class ChronosServer { /** * The main entrance of ChronosServer to start the service .
* @ param args will ignore all the command - line arguments */
public static void main ( String [ ] args ) { } } | Properties properties = new Properties ( ) ; LOG . info ( "Load chronos.cfg configuration from class path" ) ; try { properties . load ( ChronosServer . class . getClassLoader ( ) . getResourceAsStream ( "chronos.cfg" ) ) ; properties . setProperty ( FailoverServer . BASE_ZNODE , "/chronos" + "/" + properties . getProp... |
public class SchemaServer { /** * Register the given schema class .
* @ throws water . exceptions . H2OFailException if there is a name collision , if the type parameters are bad , or if
* the version is bad */
private static void register ( Schema schema ) { } } | Class clz = schema . getClass ( ) ; synchronized ( clz ) { String clzname = clz . getSimpleName ( ) ; // Was there a race to get here ? If so , return .
Class < ? extends Schema > existing = schemas . get ( clzname ) ; if ( existing != null ) { if ( clz != existing ) throw H2O . fail ( "Two schema classes have the same... |
public class XPathBy { /** * Mimics effect of ' normalized ( ) ` xPath function on Java String .
* Replaces & nbsp ; by normal space , and collapses whitespace sequences to single space
* @ param elementText text in element .
* @ return normalized text . */
public static String getNormalizedText ( String elementT... | String result = null ; if ( elementText != null ) { result = WHITESPACE_REPLACE . matcher ( elementText ) . replaceAll ( " " ) ; } return result ; |
public class ZipUtil { /** * Compares meta - data of two ZIP entries .
* Two entries are considered the same if
* < ol >
* < li > both entries exist , < / li >
* < li > both entries are either directories or files , < / li >
* < li > both entries have the same size , < / li >
* < li > both entries have the ... | // Check if the same entry exists in the second archive
if ( e2 == null ) { log . debug ( "Entry '{}' removed." , path ) ; return false ; } // Check the directory flag
if ( e1 . isDirectory ( ) ) { if ( e2 . isDirectory ( ) ) { return true ; // Let ' s skip the directory as there is nothing to compare
} else { log . de... |
public class GeometryEngine { /** * Calculates a buffer polygon for each geometry at each of the
* corresponding specified distances . It is assumed that all geometries have
* the same spatial reference . There is an option to union the
* returned geometries .
* See OperatorBuffer .
* @ param geometries An ar... | // initially assume distances are in unit of spatial reference
double [ ] bufferDistances = distances ; OperatorBuffer op = ( OperatorBuffer ) factory . getOperator ( Operator . Type . Buffer ) ; if ( toUnionResults ) { SimpleGeometryCursor inputGeometriesCursor = new SimpleGeometryCursor ( geometries ) ; GeometryCurso... |
public class TiffDocument { /** * Gets the main images count .
* @ return the ifd count */
public int getMainImagesCount ( ) { } } | int count = 0 ; List < TiffObject > list = new ArrayList < > ( ) ; list . addAll ( getMetadataList ( "IFD" ) ) ; list . addAll ( getMetadataList ( "SubIFDs" ) ) ; for ( TiffObject to : list ) { if ( to instanceof IFD ) { IFD ifd = ( IFD ) to ; if ( ifd . isImage ( ) && ! ifd . isThumbnail ( ) ) count ++ ; } } return co... |
public class AsyncAperiodicWork { /** * Schedules this periodic work now in a new thread , if one isn ' t already running . */
@ Override public final void doAperiodicRun ( ) { } } | try { if ( thread != null && thread . isAlive ( ) ) { logger . log ( getSlowLoggingLevel ( ) , "{0} thread is still running. Execution aborted." , name ) ; return ; } thread = new Thread ( new Runnable ( ) { public void run ( ) { logger . log ( getNormalLoggingLevel ( ) , "Started {0}" , name ) ; long startTime = Syste... |
public class ServletUtil { /** * Creates a wrapper that implements either { @ code ServletResponse } or
* { @ code HttpServletResponse } , depending on the type of
* { @ code pImplementation . getResponse ( ) } .
* @ param pImplementation the servlet response to create a wrapper for
* @ return a { @ code Servle... | // TODO : Get all interfaces from implementation
if ( pImplementation . getResponse ( ) instanceof HttpServletResponse ) { return ( HttpServletResponse ) Proxy . newProxyInstance ( pImplementation . getClass ( ) . getClassLoader ( ) , new Class [ ] { HttpServletResponse . class , ServletResponse . class } , new HttpSer... |
public class MBlockPos { /** * Create a BlockPos from a serialized long value ( created by toLong ) */
public static MBlockPos fromLong ( long serialized ) { } } | int j = ( int ) ( serialized << 64 - X_SHIFT - NUM_X_BITS >> 64 - NUM_X_BITS ) ; int k = ( int ) ( serialized << 64 - Y_SHIFT - NUM_Y_BITS >> 64 - NUM_Y_BITS ) ; int l = ( int ) ( serialized << 64 - NUM_Z_BITS >> 64 - NUM_Z_BITS ) ; return new MBlockPos ( j , k , l ) ; |
public class SubItemUtil { /** * deletes all items in identifiersToDelete collection from the adapter respecting if there are sub items or not
* subitems are removed from their parents sublists , main items are directly removed
* @ param fastAdapter the adapter to remove the items from
* @ param identifiersToDele... | List < IItem > deleted = new ArrayList < > ( ) ; if ( identifiersToDelete == null || identifiersToDelete . size ( ) == 0 ) { return deleted ; } // we use a LinkedList , because this has performance advantages when modifying the listIterator during iteration !
// Modifying list is O ( 1)
LinkedList < Long > identifiers ... |
public class ReflectionUtils { /** * Invoke setter method with the given parameter
* @ param target target object
* @ param property property
* @ param parameter setter parameter */
public static void invokeSetter ( Object target , String property , Object parameter ) { } } | Method setter = getSetter ( target , property , parameter . getClass ( ) ) ; try { setter . invoke ( target , parameter ) ; } catch ( IllegalAccessException e ) { throw handleException ( setter . getName ( ) , e ) ; } catch ( InvocationTargetException e ) { throw handleException ( setter . getName ( ) , e ) ; } |
public class ListIdentityPoolUsageResult { /** * Usage information for the identity pools .
* @ param identityPoolUsages
* Usage information for the identity pools . */
public void setIdentityPoolUsages ( java . util . Collection < IdentityPoolUsage > identityPoolUsages ) { } } | if ( identityPoolUsages == null ) { this . identityPoolUsages = null ; return ; } this . identityPoolUsages = new com . amazonaws . internal . SdkInternalList < IdentityPoolUsage > ( identityPoolUsages ) ; |
public class Scheduler { /** * 更新Task执行的时间规则
* @ param id Task的ID
* @ param pattern { @ link CronPattern }
* @ return this
* @ since 4.0.10 */
public Scheduler updatePattern ( String id , CronPattern pattern ) { } } | this . taskTable . updatePattern ( id , pattern ) ; return this ; |
public class AbstractElementGenerator { /** * { @ inheritDoc } */
public Object findFirst ( Constraint constraint , Object defaultIfNoneFound ) { } } | ObjectFinder finder = new ObjectFinder ( this , constraint ) ; run ( finder ) ; return ( finder . foundObject ( ) ? finder . getFoundObject ( ) : defaultIfNoneFound ) ; |
public class InplaceParallelInference { /** * This method does forward pass and returns output provided by OutputAdapter
* @ param adapter
* @ param input
* @ param inputMasks
* @ param < T >
* @ return */
public < T > T output ( @ NonNull ModelAdapter < T > adapter , INDArray [ ] input , INDArray [ ] inputMa... | val holder = selector . getModelForThisThread ( ) ; Model model = null ; boolean acquired = false ; try { model = holder . acquireModel ( ) ; acquired = true ; return adapter . apply ( model , input , inputMasks , labelsMasks ) ; } catch ( InterruptedException e ) { throw new RuntimeException ( e ) ; } finally { if ( m... |
public class AbstractUDPClient { /** * Returns a string containing the connection details .
* @ return Connection details ( eg . " Host : 192.168.1.67:6000 " ) . */
public String toStateString ( ) { } } | StringBuffer buff = new StringBuffer ( ) ; buff . append ( "Host: " ) ; buff . append ( this . hostname ) ; buff . append ( ':' ) ; buff . append ( this . port ) ; buff . append ( "\n" ) ; return buff . toString ( ) ; |
public class WriterTableProcessor { /** * Reads from the Segment between the given offsets . This method assumes all the data is readily available in the cache ,
* otherwise it will block synchronously for Storage retrieval .
* @ param segment The Segment to read from .
* @ param startOffset The offset to start r... | long readOffset = startOffset ; long remainingLength = endOffset - startOffset ; ArrayList < InputStream > inputs = new ArrayList < > ( ) ; while ( remainingLength > 0 ) { int readLength = ( int ) Math . min ( remainingLength , Integer . MAX_VALUE ) ; try ( ReadResult readResult = segment . read ( readOffset , readLeng... |
public class RDBMEntityLockStore { /** * Retrieve IEntityLocks from the underlying store . Any or all of the parameters may be null .
* @ param entityType Class
* @ param entityKey String
* @ param lockType Integer - so we can accept a null value .
* @ param expiration Date
* @ param lockOwner String
* @ ex... | return select ( entityType , entityKey , lockType , expiration , lockOwner ) ; |
public class BeanMetaData { /** * d449434 */
public int getSupportingRemoteBusinessInterfaceIndex ( String interfaceName ) throws ClassNotFoundException , EJBConfigurationException { } } | int interfaceIndex = getRemoteBusinessInterfaceIndex ( interfaceName ) ; if ( interfaceIndex == - 1 ) { Class < ? > target = classLoader . loadClass ( interfaceName ) ; interfaceIndex = getAssignableRemoteBusinessInterfaceIndex ( target ) ; if ( interfaceIndex == - 1 ) { Tr . error ( tc , "ATTEMPT_TO_REFERENCE_MISSING_... |
public class QueryHelper { /** * 提取中的条件
* @ param clazz
* @ param prefix
* @ param exclusiveAttrNames */
public static List < Condition > extractConditions ( Class < ? > clazz , String prefix , String exclusiveAttrNames ) { } } | Object entity = null ; try { if ( clazz . isInterface ( ) ) { EntityType entityType = Model . getType ( clazz . getName ( ) ) ; clazz = entityType . getEntityClass ( ) ; } entity = clazz . newInstance ( ) ; } catch ( Exception e ) { throw new RuntimeException ( "[RequestUtil.extractConditions]: error in in initialize "... |
public class BccClient { /** * Binding the instance to specified securitygroup .
* @ param request The request containing all options for binding the instance to specified securitygroup . */
public void bindInstanceToSecurityGroup ( BindSecurityGroupRequest request ) { } } | checkNotNull ( request , "request should not be null." ) ; checkStringNotEmpty ( request . getInstanceId ( ) , "request instanceId should not be empty." ) ; checkStringNotEmpty ( request . getSecurityGroupId ( ) , "request securityGroupId should not be empty." ) ; InternalRequest internalRequest = this . createRequest ... |
public class CmsCoreService { /** * FInds a category in the given tree . < p >
* @ param tree the the tree to search in
* @ param path the path to search for
* @ return the category with the given path or < code > null < / code > if not found */
private static CmsCategoryTreeEntry findCategory ( List < CmsCategor... | if ( path == null ) { return null ; } // we assume that the category to find is descendant of tree
List < CmsCategoryTreeEntry > children = tree ; boolean found = true ; while ( found ) { if ( children == null ) { return null ; } // since the categories are sorted it is faster to go backwards
found = false ; for ( int ... |
public class DefaultFeatureForm { /** * Apply a boolean attribute value on the form , with the given name .
* @ param name attribute name
* @ param attribute attribute value
* @ since 1.11.1 */
public void setValue ( String name , BooleanAttribute attribute ) { } } | FormItem item = formWidget . getField ( name ) ; if ( item != null ) { item . setValue ( attribute . getValue ( ) ) ; } |
public class Watchdog { /** * / * ( non - Javadoc )
* @ see org . csc . phynixx . watchdog . IWatchog # unregisterCondition ( org . csc . phynixx . watchdog . IWatchedCondition ) */
public void unregisterCondition ( IWatchedCondition condition ) { } } | synchronized ( conditions ) { Set < IObjectReference < IWatchedCondition > > copiedRefs = new HashSet < IObjectReference < IWatchedCondition > > ( this . conditions ) ; for ( Iterator < IObjectReference < IWatchedCondition > > iterator = copiedRefs . iterator ( ) ; iterator . hasNext ( ) ; ) { IObjectReference < IWatch... |
public class ContainerRenderer { /** * This methods generates the HTML code of the current b : container .
* < code > encodeBegin < / code > generates the start of the component . After the ,
* the JSF framework calls < code > encodeChildren ( ) < / code > to generate the
* HTML code between the beginning and the... | if ( ! component . isRendered ( ) ) { return ; } Container container = ( Container ) component ; ResponseWriter rw = context . getResponseWriter ( ) ; String clientId = container . getClientId ( ) ; boolean fluid = container . isFluid ( ) ; String style = container . getStyle ( ) ; String sc = container . getStyleClass... |
public class ConnectionImpl { /** * ( non - Javadoc )
* @ see com . ibm . wsspi . sib . core . SICoreConnection # sendToExceptionDestination ( com . ibm . websphere . sib . SIDestinationAddress , com . ibm . wsspi . sib . core . SIBusMessage , int ,
* java . lang . Object [ ] , com . ibm . wsspi . sib . core . SITr... | if ( TraceComponent . isAnyTracingEnabled ( ) && CoreSPIConnection . tc . isEntryEnabled ( ) ) SibTr . entry ( CoreSPIConnection . tc , "sendToExceptionDestination" , new Object [ ] { this , address , alternateUser , message , Integer . valueOf ( reason ) , inserts , tran } ) ; if ( message == null ) { if ( TraceCompon... |
public class ApplicationTemplateDescriptor { /** * Saves an application template ' s descriptor .
* @ param f the file where the properties will be saved
* @ param descriptor an application descriptor ( not null )
* @ throws IOException if the file could not be written */
public static void save ( File f , Applic... | Properties properties = new Properties ( ) ; if ( descriptor . name != null ) properties . setProperty ( APPLICATION_NAME , descriptor . name ) ; if ( descriptor . version != null ) properties . setProperty ( APPLICATION_VERSION , descriptor . version ) ; if ( descriptor . dslId != null ) properties . setProperty ( APP... |
public class StringUtil { /** * Truncate the supplied string to be no more than the specified length . This method returns an empty string if the supplied
* object is null .
* @ param obj the object from which the string is to be obtained using { @ link Object # toString ( ) } .
* @ param maxLength the maximum le... | CheckArg . isNonNegative ( maxLength , "maxLength" ) ; if ( obj == null || maxLength == 0 ) { return "" ; } String str = obj . toString ( ) ; if ( str . length ( ) <= maxLength ) return str ; if ( suffix == null ) suffix = "..." ; int maxNumChars = maxLength - suffix . length ( ) ; if ( maxNumChars < 0 ) { // Then the ... |
public class ScriptVars { /** * Gets an unmodifiable map , variable key to value , containing the variables of the script with the given name .
* Iterations should be done in a synchronised block using the returned map .
* @ param scriptName the name of the script .
* @ return an unmodifiable map containing the s... | return Collections . unmodifiableMap ( scriptVars . getOrDefault ( scriptName , Collections . emptyMap ( ) ) ) ; |
public class CollectionUtils { /** * Wrap map .
* @ param < K > the type parameter
* @ param < V > the type parameter
* @ param key the key
* @ param value the value
* @ return the map */
public static < K , V > Map < K , V > wrap ( final String key , final Object value ) { } } | val map = new LinkedHashMap ( ) ; if ( value != null && StringUtils . isNotBlank ( key ) ) { map . put ( key , value ) ; } return map ; |
public class ModuleUiExtensions { /** * Update a ui extension .
* @ param extension the ui extension to be updated .
* @ return the updated ui extension .
* @ throws IllegalArgumentException if extension is null .
* @ throws IllegalArgumentException if extension ' s version is null .
* @ throws IllegalArgumen... | assertNotNull ( extension , "extension" ) ; final Integer version = getVersionOrThrow ( extension , "update" ) ; final String id = getResourceIdOrThrow ( extension , "extension" ) ; final String spaceId = getSpaceIdOrThrow ( extension , "extension" ) ; assertNotNull ( extension . getEnvironmentId ( ) , "environmentId" ... |
public class BeanToObjectConverter { /** * Find list field ( including private ) on a specific class . Searches list
* super - classes up to { @ link Object } .
* @ param clazz
* Class to inspect
* @ return list found fields . */
public static List < Field > findFields ( final Class < ? > clazz ) { } } | List < Field > foundFields = new ArrayList < > ( ) ; Class < ? > searchType = clazz ; while ( ! Object . class . equals ( searchType ) && ( searchType != null ) ) { Field [ ] fields = searchType . getDeclaredFields ( ) ; for ( Field field : fields ) { field . setAccessible ( true ) ; foundFields . add ( field ) ; } sea... |
public class SVGAndroidRenderer { /** * Render the whole document . */
void renderDocument ( SVG document , RenderOptions renderOptions ) { } } | if ( renderOptions == null ) throw new NullPointerException ( "renderOptions shouldn't be null" ) ; // Sanity check . Should never happen
this . document = document ; SVG . Svg rootObj = document . getRootElement ( ) ; if ( rootObj == null ) { warn ( "Nothing to render. Document is empty." ) ; return ; } SVG . Box view... |
public class SerializerIntrinsics { /** * ! Store st ( 0 ) as 32 bit or 64 bit floating point value to @ a dst . */
public final void fst ( Mem dst ) { } } | assert ( dst . size ( ) == 4 || dst . size ( ) == 8 ) ; emitX86 ( INST_FST , dst ) ; |
public class UInteger { /** * Create an < code > unsigned int < / code >
* @ throws NumberFormatException If < code > value < / code > does not contain a
* parsable < code > unsigned int < / code > . */
public static UInteger valueOf ( String value ) throws NumberFormatException { } } | return valueOfUnchecked ( rangeCheck ( Long . parseLong ( value ) ) ) ; |
public class SSLUtils { /** * Creates the SSL Context for internal SSL , if internal SSL is configured .
* For internal SSL , the client and server side configuration are identical , because
* of mutual authentication . */
@ Nullable private static SSLContext createInternalSSLContext ( Configuration config ) throws... | checkNotNull ( config , "config" ) ; if ( ! isInternalSSLEnabled ( config ) ) { return null ; } String keystoreFilePath = getAndCheckOption ( config , SecurityOptions . SSL_INTERNAL_KEYSTORE , SecurityOptions . SSL_KEYSTORE ) ; String keystorePassword = getAndCheckOption ( config , SecurityOptions . SSL_INTERNAL_KEYSTO... |
public class FastJsonProvider { /** * Method that JAX - RS container calls to serialize given value . */
public void writeTo ( Object t , Class < ? > type , Type genericType , Annotation [ ] annotations , MediaType mediaType , MultivaluedMap < String , Object > httpHeaders , OutputStream entityStream ) throws IOExcepti... | SerializeFilter filter = null ; if ( pretty ) { if ( fastJsonConfig . serializerFeatures == null ) fastJsonConfig . serializerFeatures = new SerializerFeature [ ] { SerializerFeature . PrettyFormat } ; else { List < SerializerFeature > serializerFeatures = Arrays . asList ( fastJsonConfig . serializerFeatures ) ; seria... |
public class ACModelParsing { public static < C extends SOABase > AbstractACModel loadACModel ( String acFile , Map < String , C > availableContexts , boolean validateModel ) throws Exception { } } | ACModelProperties testProperties = new ACModelProperties ( ) ; try { testProperties . load ( acFile ) ; } catch ( IOException e ) { throw new IOException ( "Cannot load properties file: " + acFile + "." ) ; } String contextName = null ; try { contextName = testProperties . getContextName ( ) ; } catch ( Exception e ) {... |
public class WorkUnitDao { /** * Retrieves the list of work units that can be performed at the given date . */
public List < WorkUnit > findNewWorkUnits ( Date now , String clusterName ) { } } | if ( sqlCache == null || ! ObjectUtils . equals ( cachedSqlClusterName , clusterName ) ) { sqlCache = getSql ( clusterName ) ; cachedSqlClusterName = clusterName ; } Object [ ] args = { now } ; return getJdbcTemplate ( ) . query ( sqlCache , args , WorkUnitRowMapper . INSTANCE ) ; |
public class MultiNeighbourhoodSearch { /** * Sets the list of neighbourhoods used to modify the current solution . Note that < code > neighs < / code >
* can not be < code > null < / code > nor empty and can not contain any < code > null < / code > elements . This method
* may only be called when the search is idl... | // synchronize with status updates
synchronized ( getStatusLock ( ) ) { // assert idle
assertIdle ( "Cannot set list of neighbourhoods." ) ; // check not null
if ( neighs == null ) { throw new NullPointerException ( "Can not set neighbourhoods: received null." ) ; } // check that neighs does not contain any null elemen... |
public class LogRef { /** * * Log a debug level message . * *
* @ param msg
* Log message *
* @ param e
* The exception that reflects the condition . */
public void debug ( String msg , Throwable e ) { } } | doLog ( msg , LOG_DEBUG , null , e ) ; |
public class SSLAlpnNegotiator { /** * If ALPN is active , try to remove the ThirdPartyAlpnNegotiator from the map of active negotiators
* @ param ThirdPartyAlpnNegotiator
* @ param SSLEngine
* @ param SSLConnectionLink */
protected void tryToRemoveAlpnNegotiator ( ThirdPartyAlpnNegotiator negotiator , SSLEngine ... | // the Java 9 and IBM JSSE ALPN implementations don ' t use a negotiator object
if ( negotiator == null && isNativeAlpnActive ( ) ) { getNativeAlpnChoice ( engine , link ) ; } else if ( negotiator == null && isIbmAlpnActive ( ) ) { getAndRemoveIbmAlpnChoice ( engine , link ) ; } else if ( negotiator != null && isJettyA... |
public class Minimizer { /** * Mark the pair to be distinct . Recursively marks depending pairs . */
private void setDistinct ( int leftSi , int rightSi ) { } } | IntArrayList tmp ; int pair ; int i , max ; tmp = distinct [ leftSi ] [ rightSi ] ; if ( tmp != YES ) { distinct [ leftSi ] [ rightSi ] = YES ; if ( tmp != UNKNOWN ) { max = tmp . size ( ) ; for ( i = 0 ; i < max ; i ++ ) { pair = tmp . get ( i ) ; setDistinct ( left ( pair ) , right ( pair ) ) ; } } } |
public class CPDefinitionOptionValueRelUtil { /** * Removes the cp definition option value rel where CPDefinitionOptionRelId = & # 63 ; and key = & # 63 ; from the database .
* @ param CPDefinitionOptionRelId the cp definition option rel ID
* @ param key the key
* @ return the cp definition option value rel that ... | return getPersistence ( ) . removeByC_K ( CPDefinitionOptionRelId , key ) ; |
public class UserResultSet { /** * { @ inheritDoc } */
@ Override public TRow getRow ( ) { } } | TRow row = null ; if ( table != null ) { int [ ] columnTypes = new int [ table . columnCount ( ) ] ; Object [ ] values = new Object [ table . columnCount ( ) ] ; try { ResultSetMetaData metaData = resultSet . getMetaData ( ) ; for ( TColumn column : table . getColumns ( ) ) { int index = column . getIndex ( ) ; Object ... |
public class J4pClient { /** * Execute multiple requests at once . All given request will result in a single HTTP request where it gets
* dispatched on the agent side . The results are given back in the same order as the arguments provided .
* @ param pRequests requests to execute
* @ param < R > response typex
... | return this . < R , T > execute ( Arrays . asList ( pRequests ) ) ; |
public class ClassDescriptorConstraints { /** * Checks the given class descriptor for correct factory - class and factory - method .
* @ param classDef The class descriptor
* @ param checkLevel The current check level ( this constraint is checked in basic ( partly ) and strict )
* @ exception ConstraintException ... | if ( CHECKLEVEL_NONE . equals ( checkLevel ) ) { return ; } String factoryClassName = classDef . getProperty ( PropertyHelper . OJB_PROPERTY_FACTORY_CLASS ) ; String factoryMethodName = classDef . getProperty ( PropertyHelper . OJB_PROPERTY_FACTORY_METHOD ) ; if ( ( factoryClassName == null ) && ( factoryMethodName == ... |
public class CpCommand { /** * Asynchronously copies a file or directory specified by srcPath from the local filesystem to
* dstPath in the Alluxio filesystem space , assuming dstPath does not exist .
* @ param srcPath the { @ link AlluxioURI } of the source file in the local filesystem
* @ param dstPath the { @ ... | File src = new File ( srcPath . getPath ( ) ) ; if ( ! src . isDirectory ( ) ) { pool . submit ( ( ) -> { try { copyFromLocalFile ( srcPath , dstPath ) ; pool . succeed ( srcPath , dstPath ) ; } catch ( Exception e ) { pool . fail ( srcPath , dstPath , e ) ; } return null ; } ) ; } else { try { mFileSystem . createDire... |
public class ViterbiBuilder { /** * Check whether a candidate for a glue node is acceptable .
* The candidate should be as short as possible , but long enough to overlap with the inserted user entry
* @ param targetLength
* @ param glueBase
* @ param candidate
* @ return whether candidate is acceptable */
pri... | return ( glueBase == null || candidate . getSurface ( ) . length ( ) < glueBase . getSurface ( ) . length ( ) ) && candidate . getSurface ( ) . length ( ) >= targetLength ; |
public class JDBCPersistenceManagerImpl { /** * Checks if all the runtime batch table exists . If not , it creates them .
* @ throws SQLException */
private void checkAllTables ( ) throws SQLException { } } | logger . entering ( CLASSNAME , "checkAllTables" ) ; createIfNotExists ( CHECKPOINTDATA_TABLE , CREATE_TAB_CHECKPOINTDATA ) ; executeStatement ( CREATE_CHECKPOINTDATA_INDEX ) ; createIfNotExists ( JOBINSTANCEDATA_TABLE , CREATE_TAB_JOBINSTANCEDATA ) ; createIfNotExists ( EXECUTIONINSTANCEDATA_TABLE , CREATE_TAB_EXECUTI... |
public class ClassLoader { /** * loader ' s delegation chain . */
@ SuppressWarnings ( "checkstyle:rightCurly" ) boolean isAncestor ( final ClassLoader cl ) { } } | ClassLoader acl = this ; do { acl = acl . parent ; if ( Objects . equals ( cl , acl ) ) { return true ; } } while ( acl != null ) ; return false ; |
public class KerasTokenizer { /** * Turns index sequences back into texts
* @ param sequences index sequences
* @ return text reconstructed from sequences */
public String [ ] sequencesToTexts ( Integer [ ] [ ] sequences ) { } } | Integer oovTokenIndex = wordIndex . get ( outOfVocabularyToken ) ; ArrayList < String > texts = new ArrayList < > ( ) ; for ( Integer [ ] sequence : sequences ) { ArrayList < String > wordVector = new ArrayList < > ( ) ; for ( Integer index : sequence ) { if ( indexWord . containsKey ( index ) ) { String word = indexWo... |
public class CassandraClientBase { /** * Find inverse join column values for join column .
* @ param < E >
* the element type
* @ param schemaName
* the schema name
* @ param tableName
* the table name
* @ param pKeyColumnName
* the key column name
* @ param columnName
* the column name
* @ param ... | // select columnName from tableName where pKeyColumnName =
// pKeyColumnValue
List results = new ArrayList ( ) ; CQLTranslator translator = new CQLTranslator ( ) ; String selectQuery = translator . SELECT_QUERY ; selectQuery = StringUtils . replace ( selectQuery , CQLTranslator . COLUMN_FAMILY , translator . ensureCase... |
public class BufferByteOutput { /** * Flushes the internal byte buffer of given byte output to specified channel and returns the number of bytes
* written .
* @ param output the output whose buffer is flushed .
* @ param channel the channel to which the buffer is flushed .
* @ return the number of bytes written... | final ByteBuffer buffer = output . getTarget ( ) ; if ( buffer == null ) { return 0 ; } int written = 0 ; for ( buffer . flip ( ) ; buffer . hasRemaining ( ) ; ) { written += channel . write ( buffer ) ; } buffer . clear ( ) ; // position - > zero ; limit - > capacity
return written ; |
public class ScriptPluginProviderLoader { /** * Validate script provider def */
private static void validateUIProviderDef ( final ProviderDef pluginDef ) throws PluginException { } } | if ( null == pluginDef . getName ( ) || "" . equals ( pluginDef . getName ( ) ) ) { throw new PluginException ( "UI plugin missing name" ) ; } if ( null == pluginDef . getService ( ) || "" . equals ( pluginDef . getService ( ) ) ) { throw new PluginException ( "UI plugin missing service" ) ; } if ( null == pluginDef . ... |
public class Stylesheet { /** * Set the " xsl : key " property .
* @ see < a href = " http : / / www . w3 . org / TR / xslt # key " > key in XSLT Specification < / a >
* @ param v KeyDeclaration element to add to the list of key declarations */
public void setKey ( KeyDeclaration v ) { } } | if ( null == m_keyDeclarations ) m_keyDeclarations = new Vector ( ) ; m_keyDeclarations . addElement ( v ) ; |
public class MessagingAuthorizationServiceImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . messaging . security . authorization . MessagingAuthorizationService # checkTopicAccess ( javax . security . auth . Subject , java . lang . String , java . lang . String ,
* java . lang . String ) */
@ Override public ... | String busName = null ; String messagingEngine = null ; String [ ] roles = null ; String resource = null ; if ( auditManager != null ) { if ( auditManager . getJMSBusName ( ) != null ) busName = auditManager . getJMSBusName ( ) ; if ( auditManager . getJMSMessagingEngine ( ) != null ) messagingEngine = auditManager . g... |
public class IdentityHashMap { /** * Returns the value to which the specified key is mapped ,
* or { @ code null } if this map contains no mapping for the key .
* < p > More formally , if this map contains a mapping from a key
* { @ code k } to a value { @ code v } such that { @ code ( key = = k ) } ,
* then th... | Object k = maskNull ( key ) ; Object [ ] tab = table ; int len = tab . length ; int i = hash ( k , len ) ; while ( true ) { Object item = tab [ i ] ; if ( item == k ) return ( V ) tab [ i + 1 ] ; if ( item == null ) return null ; i = nextKeyIndex ( i , len ) ; } |
public class ReplicatedHashMap { /** * / * - - - - - Callbacks - - - - - */
public V _put ( K key , V value ) { } } | V retval = map . put ( key , value ) ; for ( Notification notif : notifs ) notif . entrySet ( key , value ) ; return retval ; |
public class SunburstChart { /** * Defines the number of decimals that will be used to format the values in the tooltip
* @ param DECIMALS */
public void setDecimals ( final int DECIMALS ) { } } | if ( null == decimals ) { _decimals = clamp ( 0 , 5 , DECIMALS ) ; formatString = new StringBuilder ( "%." ) . append ( _decimals ) . append ( "f" ) . toString ( ) ; redraw ( ) ; } else { decimals . set ( DECIMALS ) ; } |
public class JCompositeRowsSelectorPanel { /** * This method is called from within the constructor to
* initialize the form .
* WARNING : Do NOT modify this code . The content of this method is
* always regenerated by the Form Editor . */
@ SuppressWarnings ( "unchecked" ) // < editor - fold defaultstate = " coll... | java . awt . GridBagConstraints gridBagConstraints ; jPanelLogo = new javax . swing . JPanel ( ) ; jLabelLogo = new javax . swing . JLabel ( ) ; jPanel1 = new javax . swing . JPanel ( ) ; jPanelMain = new javax . swing . JPanel ( ) ; jPanelRowsTable = new javax . swing . JPanel ( ) ; jLabelGraph1 = new javax . swing . ... |
public class druidGLexer { /** * $ ANTLR start " KAFKA " */
public final void mKAFKA ( ) throws RecognitionException { } } | try { int _type = KAFKA ; int _channel = DEFAULT_TOKEN_CHANNEL ; // druidG . g : 597:17 : ( ( ' KAFKA ' | ' kafka ' ) )
// druidG . g : 597:18 : ( ' KAFKA ' | ' kafka ' )
{ // druidG . g : 597:18 : ( ' KAFKA ' | ' kafka ' )
int alt13 = 2 ; int LA13_0 = input . LA ( 1 ) ; if ( ( LA13_0 == 'K' ) ) { alt13 = 1 ; } else if... |
public class RelationalOperationsMatrix { /** * Invokes the 9 relational predicates of area vs Point . */
private boolean areaPointPredicates_ ( int cluster , int id_a , int id_b ) { } } | boolean bRelationKnown = true ; if ( m_perform_predicates [ MatrixPredicate . InteriorInterior ] ) { interiorAreaInteriorPoint_ ( cluster , id_a ) ; bRelationKnown &= isPredicateKnown_ ( MatrixPredicate . InteriorInterior ) ; } if ( m_perform_predicates [ MatrixPredicate . InteriorExterior ] ) { interiorAreaExteriorPoi... |
public class EmbeddedGobblin { /** * This returns the set of jars required by a basic Gobblin ingestion job . In general , these need to be distributed
* to workers in a distributed environment . */
private void loadCoreGobblinJarsToDistributedJars ( ) { } } | // Gobblin - api
distributeJarByClassWithPriority ( State . class , 0 ) ; // Gobblin - core
distributeJarByClassWithPriority ( ConstructState . class , 0 ) ; // Gobblin - core - base
distributeJarByClassWithPriority ( InstrumentedExtractorBase . class , 0 ) ; // Gobblin - metrics - base
distributeJarByClassWithPriority... |
public class XPostfixOperationImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public NotificationChain basicSetOperand ( XExpression newOperand , NotificationChain msgs ) { } } | XExpression oldOperand = operand ; operand = newOperand ; if ( eNotificationRequired ( ) ) { ENotificationImpl notification = new ENotificationImpl ( this , Notification . SET , XbasePackage . XPOSTFIX_OPERATION__OPERAND , oldOperand , newOperand ) ; if ( msgs == null ) msgs = notification ; else msgs . add ( notificat... |
public class PrettyPrint { /** * Print every value on a separate line . Use the given number of spaces for indentation .
* @ param number
* the number of spaces to use
* @ return A PrettyPrint instance for wrapped mode with spaces indentation */
public static PrettyPrint indentWithSpaces ( int number ) { } } | if ( number < 0 ) { throw new IllegalArgumentException ( "number is negative" ) ; } char [ ] chars = new char [ number ] ; Arrays . fill ( chars , ' ' ) ; return new PrettyPrint ( chars ) ; |
public class CPInstancePersistenceImpl { /** * Returns the first cp instance in the ordered set where CPDefinitionId = & # 63 ; and displayDate & lt ; & # 63 ; and status = & # 63 ; .
* @ param CPDefinitionId the cp definition ID
* @ param displayDate the display date
* @ param status the status
* @ param order... | List < CPInstance > list = findByC_LtD_S ( CPDefinitionId , displayDate , status , 0 , 1 , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; |
public class ListBuildsForProjectResult { /** * A list of build IDs for the specified build project , with each build ID representing a single build .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setIds ( java . util . Collection ) } or { @ link # withIds ... | if ( this . ids == null ) { setIds ( new java . util . ArrayList < String > ( ids . length ) ) ; } for ( String ele : ids ) { this . ids . add ( ele ) ; } return this ; |
public class PropNbSCC { @ Override public void propagate ( int evtmask ) throws ContradictionException { } } | // trivial case
k . updateLowerBound ( 0 , this ) ; if ( g . getPotentialNodes ( ) . size ( ) == 0 ) { k . instantiateTo ( 0 , this ) ; return ; } if ( k . getUB ( ) == 0 ) { for ( int i : g . getPotentialNodes ( ) ) { g . removeNode ( i , this ) ; } return ; } // bound computation
int min = minCC ( ) ; int max = maxCC... |
public class TheTVDBApi { /** * Gets the languages .
* @ return the languages
* @ throws com . omertron . thetvdbapi . TvDbException */
public List < Language > getLanguages ( ) throws TvDbException { } } | StringBuilder urlBuilder = new StringBuilder ( ) ; urlBuilder . append ( BASE_URL ) . append ( apiKey ) . append ( "/languages" ) . append ( XML_EXTENSION ) ; LOG . trace ( URL , urlBuilder . toString ( ) ) ; return TvdbParser . getLanguages ( urlBuilder . toString ( ) ) ; |
public class GetRelationalDatabaseEventsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetRelationalDatabaseEventsRequest getRelationalDatabaseEventsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getRelationalDatabaseEventsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getRelationalDatabaseEventsRequest . getRelationalDatabaseName ( ) , RELATIONALDATABASENAME_BINDING ) ; protocolMarshaller . marshall ( getRelationalD... |
public class Deadline { /** * Constructs a Deadline that is a given duration after now . */
public static Deadline fromNow ( Duration duration ) { } } | return new Deadline ( Math . addExact ( System . nanoTime ( ) , duration . toNanos ( ) ) ) ; |
public class CollapsibleRootPanel { /** * Applies the maximum height and width to the dimension .
* @ param dim
* the dimension to be limited */
private void applyMax ( Dimension dim ) { } } | if ( getMaxHeight ( ) > 0 ) { dim . height = Math . min ( dim . height , getMaxHeight ( ) ) ; } if ( getMaxWidth ( ) > 0 ) { dim . width = Math . min ( dim . width , getMaxWidth ( ) ) ; } |
public class RecordingGroup { /** * A comma - separated list that specifies the types of AWS resources for which AWS Config records configuration
* changes ( for example , < code > AWS : : EC2 : : Instance < / code > or < code > AWS : : CloudTrail : : Trail < / code > ) .
* Before you can set this option to < code ... | if ( this . resourceTypes == null ) { setResourceTypes ( new com . amazonaws . internal . SdkInternalList < String > ( resourceTypes . length ) ) ; } for ( String ele : resourceTypes ) { this . resourceTypes . add ( ele ) ; } return this ; |
public class CommerceNotificationTemplatePersistenceImpl { /** * Returns the number of commerce notification templates where groupId = & # 63 ; and type = & # 63 ; and enabled = & # 63 ; .
* @ param groupId the group ID
* @ param type the type
* @ param enabled the enabled
* @ return the number of matching comm... | FinderPath finderPath = FINDER_PATH_COUNT_BY_G_T_E ; Object [ ] finderArgs = new Object [ ] { groupId , type , enabled } ; Long count = ( Long ) finderCache . getResult ( finderPath , finderArgs , this ) ; if ( count == null ) { StringBundler query = new StringBundler ( 4 ) ; query . append ( _SQL_COUNT_COMMERCENOTIFIC... |
public class CmsRelationType { /** * Returns all relation types . < p >
* @ return a list of { @ link CmsRelationType } objects */
public static List < CmsRelationType > getAll ( ) { } } | List < CmsRelationType > all = new ArrayList < CmsRelationType > ( Arrays . asList ( VALUE_ARRAY ) ) ; all . addAll ( OpenCms . getResourceManager ( ) . getRelationTypes ( ) ) ; return Collections . unmodifiableList ( all ) ; |
public class RecorderImpl { /** * Fires event .
* @ param evt the event to be fired */
private void fireEvent ( EventName eventName ) { } } | switch ( eventName . getEventIdentifier ( ) . intValue ( ) ) { case MgcpEvent . REPORT_ON_COMPLETION : // parse options
Options options = new Options ( eventName . getEventIdentifier ( ) . getParms ( ) ) ; switch ( options . getReturnCode ( ) ) { case 100 : if ( options . getPatternIndex ( ) >= 0 ) { recorderEvent = ne... |
public class Util { /** * Encode an X509 certificate chain .
* This logic was brought from tWAS ' SessionEntry . convertCertChainToBytes to maintain compatibility .
* @ param codec The codec to do the encoding of the Any .
* @ param certificateChain The X509 certificate chain to encode .
* @ return the codec en... | byte [ ] result = null ; try { if ( certificateChain != null ) { List < X509Certificate > certList = getCertChainAsListWithoutDuplicates ( certificateChain ) ; CertificateFactory cfx = CertificateFactory . getInstance ( "X.509" ) ; CertPath certPath = cfx . generateCertPath ( certList ) ; Any any = ORB . init ( ) . cre... |
public class VirtualNetworkGatewaysInner { /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer .
* @ param resourceGroupName The name of the resource group .
* @ param virtualNetworkGatewayName The name of the virtual network gateway .
* @ param peer Th... | return getAdvertisedRoutesWithServiceResponseAsync ( resourceGroupName , virtualNetworkGatewayName , peer ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class GVRConsoleFactory { /** * Facade method for operating the Shell allowing specification of auxiliary
* handlers ( i . e . handlers that are to be passed to all subshells ) .
* Run the obtained Shell with commandLoop ( ) .
* @ see org . gearvrf . debug . cli . Shell # Shell ( org . gearvrf . debug . cl... | ConsoleIO io = new ConsoleIO ( in , out , err ) ; if ( promptListener != null ) { io . setPromptListener ( promptListener ) ; } List < String > path = new ArrayList < String > ( 1 ) ; path . add ( prompt ) ; MultiMap < String , Object > modifAuxHandlers = new ArrayHashMultiMap < String , Object > ( ) ; modifAuxHandlers... |
public class Vector3d { /** * / * ( non - Javadoc )
* @ see org . joml . Vector3dc # hermite ( org . joml . Vector3dc , org . joml . Vector3dc , org . joml . Vector3dc , double , org . joml . Vector3d ) */
public Vector3d hermite ( Vector3dc t0 , Vector3dc v1 , Vector3dc t1 , double t , Vector3d dest ) { } } | double t2 = t * t ; double t3 = t2 * t ; dest . x = ( x + x - v1 . x ( ) - v1 . x ( ) + t1 . x ( ) + t0 . x ( ) ) * t3 + ( 3.0 * v1 . x ( ) - 3.0 * x - t0 . x ( ) - t0 . x ( ) - t1 . x ( ) ) * t2 + x * t + x ; dest . y = ( y + y - v1 . y ( ) - v1 . y ( ) + t1 . y ( ) + t0 . y ( ) ) * t3 + ( 3.0 * v1 . y ( ) - 3.0 * y -... |
public class Optionals { /** * Get an item from a map , wrapping it in an Optional
* @ param map the map on which to perform the lookup
* @ param key the key to look up
* @ param < K > the type of key
* @ param < V > the type of values in the map
* @ return Optional - wrapped V */
public static < K , V > Opti... | return Optional . ofNullable ( map . get ( key ) ) ; |
public class PutLifecycleConfigurationRequest { /** * An array of < code > LifecyclePolicy < / code > objects that define the file system ' s
* < code > LifecycleConfiguration < / code > object . A < code > LifecycleConfiguration < / code > object tells lifecycle
* management when to transition files from the Stand... | if ( lifecyclePolicies == null ) { lifecyclePolicies = new com . amazonaws . internal . SdkInternalList < LifecyclePolicy > ( ) ; } return lifecyclePolicies ; |
public class MapTileCollisionLoader { /** * Load the collision formula . All previous collisions will be cleared .
* @ param formulasConfig The configuration collision formulas file . */
private void loadCollisionFormulas ( Media formulasConfig ) { } } | Verbose . info ( INFO_LOAD_FORMULAS , formulasConfig . getFile ( ) . getPath ( ) ) ; this . formulasConfig = formulasConfig ; final CollisionFormulaConfig config = CollisionFormulaConfig . imports ( formulasConfig ) ; loadCollisionFormulas ( config ) ; |
public class PoolableConnection { /** * Method prepareStatement .
* @ param sql
* @ param autoGeneratedKeys
* @ return PreparedStatement
* @ throws SQLException
* @ see java . sql . Connection # prepareStatement ( String , int ) */
@ Override public PoolablePreparedStatement prepareStatement ( String sql , in... | return prepareStatement ( sql , autoGeneratedKeys , - 1 , - 1 , - 1 ) ; |
public class InternalCacheFactory { /** * This implementation clones the configuration passed in before using it .
* @ param configuration to use
* @ param globalComponentRegistry global component registry to attach the cache to
* @ param cacheName name of the cache
* @ return a cache
* @ throws CacheConfigur... | try { if ( configuration . compatibility ( ) . enabled ( ) ) { log . warnCompatibilityDeprecated ( cacheName ) ; } if ( configuration . simpleCache ( ) ) { return createSimpleCache ( configuration , globalComponentRegistry , cacheName ) ; } else { return createAndWire ( configuration , globalComponentRegistry , cacheNa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.