signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class MessageProcessor { /** * Removes a connection from the list of connections
* @ param connection
* The connection to remove . */
protected void removeConnection ( ConnectionImpl connection ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeConnection" , connection ) ; synchronized ( _connections ) { _connections . remove ( connection ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "removeConnection" )... |
public class AbstractAttributeDefinitionBuilder { /** * Adds an access constraint to the set used with the attribute
* @ param accessConstraint the constraint
* @ return a builder that can be used to continue building the attribute definition */
@ SuppressWarnings ( "deprecation" ) public BUILDER addAccessConstrain... | if ( accessConstraints == null ) { accessConstraints = new AccessConstraintDefinition [ ] { accessConstraint } ; } else { accessConstraints = Arrays . copyOf ( accessConstraints , accessConstraints . length + 1 ) ; accessConstraints [ accessConstraints . length - 1 ] = accessConstraint ; } return ( BUILDER ) this ; |
public class Limits { /** * Return a predicate , which will truncate the evolution stream after the
* given number of generations . The returned predicate behaves like a call
* of the { @ link java . util . stream . Stream # limit ( long ) } and exists for
* < i > completeness < / i > reasons .
* @ since 3.1
... | if ( generation < 0 ) { throw new IllegalArgumentException ( format ( "The number of generations must greater than one, but was %d" , generation ) ) ; } return new Predicate < Object > ( ) { private final AtomicLong _current = new AtomicLong ( ) ; @ Override public boolean test ( final Object o ) { return _current . in... |
public class QueryTraversal { /** * Reduces the fields of a Document ( or parts of it ) to a single value . The fields are visited in post - order .
* @ param queryReducer the query reducer
* @ param initialValue the initial value to pass to the reducer
* @ param < T > the type of reduced value
* @ return the c... | // compiler hack to make acc final and mutable : - )
final Object [ ] acc = { initialValue } ; visitPostOrder ( new QueryVisitorStub ( ) { @ Override public void visitField ( QueryVisitorFieldEnvironment env ) { acc [ 0 ] = queryReducer . reduceField ( env , ( T ) acc [ 0 ] ) ; } } ) ; return ( T ) acc [ 0 ] ; |
public class SimpleMonthView { /** * Sets all the parameters for displaying this week . The only required
* parameter is the week number . Other parameters have a default value and
* will only update if a new value is included , except for focus month ,
* which will always default to no focus month if no value is... | if ( ! params . containsKey ( VIEW_PARAMS_MONTH ) && ! params . containsKey ( VIEW_PARAMS_YEAR ) ) { throw new InvalidParameterException ( "You must specify the month and year for this view" ) ; } setTag ( params ) ; // We keep the current value for any params not present
if ( params . containsKey ( VIEW_PARAMS_HEIGHT ... |
public class GitkitClient { /** * Gets out - of - band response . Used by oob endpoint for ResetPassword and ChangeEmail operation .
* The web site needs to send user an email containing the oobUrl in the response . The user needs
* to click the oobUrl to finish the operation .
* @ param req http request for the ... | String gitkitToken = lookupCookie ( req , cookieName ) ; return getOobResponse ( req , gitkitToken ) ; |
public class FactorySteerCoefficients { /** * Coefficients for even or odd parity polynomials .
* @ param order order of the polynomial .
* @ return Steering coeficient . */
public static SteerableCoefficients polynomial ( int order ) { } } | if ( order == 1 ) return new PolyOrder1 ( ) ; else if ( order == 2 ) return new PolyOrder2 ( ) ; else if ( order == 3 ) return new PolyOrder3 ( ) ; else if ( order == 4 ) return new PolyOrder4 ( ) ; else throw new IllegalArgumentException ( "Only supports orders 1 to 4" ) ; |
public class CmsImportVersion7 { /** * Sets the flags . < p >
* @ param flags the flags to set
* @ see # N _ FLAGS
* @ see # addResourceAttributesRules ( Digester , String ) */
public void setFlags ( String flags ) { } } | try { m_flags = Integer . parseInt ( flags ) ; } catch ( Throwable e ) { setThrowable ( e ) ; } |
public class ProcessorDependencyGraph { /** * Get all the names of inputs that are required to be in the Values object when this graph is executed . */
@ SuppressWarnings ( "unchecked" ) public Multimap < String , Processor > getAllRequiredAttributes ( ) { } } | Multimap < String , Processor > requiredInputs = HashMultimap . create ( ) ; for ( ProcessorGraphNode root : this . roots ) { final BiMap < String , String > inputMapper = root . getInputMapper ( ) ; for ( String attr : inputMapper . keySet ( ) ) { requiredInputs . put ( attr , root . getProcessor ( ) ) ; } final Objec... |
public class StringUtils { /** * Sort the array in reverse order . < / br > 反转字符串 。
* @ param string string to be handled . */
public static String reverse ( final String string ) { } } | return isEmpty ( string ) ? string : new StringBuilder ( string ) . reverse ( ) . toString ( ) ; |
public class FetchBeanInfosRenderer { /** * This methods generates the HTML code of the current b : fetchBeanInfos .
* @ param context
* the FacesContext .
* @ param component
* the current b : fetchBeanInfos .
* @ throws IOException
* thrown if something goes wrong when writing the HTML code . */
@ Overrid... | if ( ! component . isRendered ( ) ) { return ; } FetchBeanInfos fetchBeanInfos = ( FetchBeanInfos ) component ; ResponseWriter rw = context . getResponseWriter ( ) ; String clientId = fetchBeanInfos . getClientId ( ) ; boolean validationFailed = context . isValidationFailed ( ) ; Severity maximumSeverity = context . ge... |
public class AWSIoTAnalyticsClient { /** * Creates a data store , which is a repository for messages .
* @ param createDatastoreRequest
* @ return Result of the CreateDatastore operation returned by the service .
* @ throws InvalidRequestException
* The request was not valid .
* @ throws ResourceAlreadyExists... | request = beforeClientExecution ( request ) ; return executeCreateDatastore ( request ) ; |
public class AbstractConverter { /** * Convert the input object into an output object of the specified type .
* Typical implementations will provide a minimum of { @ code String - - > type } conversion .
* @ param < G > the type in which the provided value has o be converted
* @ param type Data type to which this... | return convertToType ( ( Type ) type , value ) ; |
public class CommerceDiscountUsageEntryPersistenceImpl { /** * Clears the cache for the commerce discount usage entry .
* The { @ link EntityCache } and { @ link FinderCache } are both cleared by this method . */
@ Override public void clearCache ( CommerceDiscountUsageEntry commerceDiscountUsageEntry ) { } } | entityCache . removeResult ( CommerceDiscountUsageEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountUsageEntryImpl . class , commerceDiscountUsageEntry . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION... |
public class AbstractShellInteraction { /** * Called by { @ link AbstractShellInteraction # promptRequiredMissingValues ( ShellImpl ) } */
protected void promptRequiredMissingValues ( ShellImpl shell , Iterable < InputComponent < ? , ? > > inputs ) throws InterruptedException { } } | ShellUIPromptImpl prompt = shell . createPrompt ( context ) ; for ( InputComponent < ? , ? > input : inputs ) { if ( input . isEnabled ( ) && ! input . isDeprecated ( ) ) { boolean requiredInputMissing = input . isRequired ( ) && ! ( input . hasDefaultValue ( ) || input . hasValue ( ) ) ; Object obj = prompt . promptVa... |
public class ReferenceUtil { /** * 获得引用
* @ param < T > 被引用对象类型
* @ param type 引用类型枚举
* @ param referent 被引用对象
* @ param queue 引用队列
* @ return { @ link Reference } */
public static < T > Reference < T > create ( ReferenceType type , T referent , ReferenceQueue < T > queue ) { } } | switch ( type ) { case SOFT : return new SoftReference < > ( referent ) ; case WEAK : return new WeakReference < > ( referent ) ; case PHANTOM : return new PhantomReference < T > ( referent , queue ) ; default : return null ; } |
public class CommerceWarehouseItemLocalServiceBaseImpl { /** * Returns a range of all the commerce warehouse items .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys , they are indexes in the ... | return commerceWarehouseItemPersistence . findAll ( start , end ) ; |
public class ClientTable { /** * Move the data source buffer to all the fields .
* In this implementation , move the local copy of the returned datasource to the fields .
* @ return an error code .
* @ exception DBException File exception . */
public int dataToFields ( Rec record ) throws DBException { } } | try { return ( ( BaseBuffer ) m_dataSource ) . bufferToFields ( ( FieldList ) record , DBConstants . DONT_DISPLAY , DBConstants . READ_MOVE ) ; } catch ( Exception ex ) { throw DatabaseException . toDatabaseException ( ex ) ; } |
public class AbstractJavaMetadata { /** * Process the parameterized type of a { @ link FieldDeclaration } .
* @ param fieldDeclaration - the field declaration .
* @ return ParameterizedTypeFieldMetadata . */
protected FieldMetadata processParameterizedType ( FieldDeclaration fieldDeclaration ) { } } | ParameterizedType parameterizedType = ( ParameterizedType ) fieldDeclaration . getType ( ) ; Type typeOfParameterizedType = parameterizedType . getType ( ) ; // type may be a simple type or a qualified type .
FieldMetadata referenceFieldMetadata = createParameterizedFieldMetadataFrom ( typeOfParameterizedType ) ; // mo... |
public class br_vm_template { /** * Use this API to fetch filtered set of br _ vm _ template resources .
* filter string should be in JSON format . eg : " vm _ state : DOWN , name : [ a - z ] + " */
public static br_vm_template [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } } | br_vm_template obj = new br_vm_template ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; br_vm_template [ ] response = ( br_vm_template [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class HttpBase { /** * 设置请求头 < br >
* 不覆盖原有请求头
* @ param headers 请求头
* @ return this */
public T header ( Map < String , List < String > > headers ) { } } | return header ( headers , false ) ; |
public class GenericUtils { /** * Helper function to concat two byte [ ] s into a new , larger one .
* @ param src
* @ param dst
* @ param srcPos
* @ param srcLength
* @ param dstPos
* @ param dstLength
* @ return byte [ ] ( null if any errors ) */
static public byte [ ] expandByteArray ( byte [ ] src , b... | byte [ ] rc = null ; int totalLen = 0 ; if ( null != src ) { totalLen += srcLength ; } if ( null != dst ) { totalLen += dstLength ; } if ( 0 < totalLen ) { rc = new byte [ totalLen ] ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Created byte[] of size " + totalLen ) ;... |
public class EqualityInference { /** * Rewrite single value InPredicates as equality if possible */
private static Expression normalizeInPredicateToEquality ( Expression expression ) { } } | if ( expression instanceof InPredicate ) { InPredicate inPredicate = ( InPredicate ) expression ; if ( inPredicate . getValueList ( ) instanceof InListExpression ) { InListExpression valueList = ( InListExpression ) inPredicate . getValueList ( ) ; if ( valueList . getValues ( ) . size ( ) == 1 ) { return new Compariso... |
public class TimeUtil { /** * 获取指定格式的SimpleDateFormat
* < p > Function : getDateFormat < / p >
* < p > Description : < / p >
* @ param timeType
* @ return
* @ author acexy @ thankjava . com
* @ date 2015年6月18日 上午10:00:31
* @ version 1.0 */
public static SimpleDateFormat getDateFormat ( TimeType timeType )... | if ( timeType == null ) { timeType = TimeType . DEFAULT ; } SimpleDateFormat sdf = simpleDateFormatMap . get ( timeType ) ; if ( sdf == null ) { sdf = new SimpleDateFormat ( timeType . getType ( ) ) ; simpleDateFormatMap . put ( timeType , sdf ) ; } return sdf ; |
public class NumberHelper { /** * This method retrieves a double value from a String instance .
* It returns zero by default if a null value or an empty string is supplied .
* @ param value string representation of a double
* @ return double value */
public static final double getDouble ( String value ) { } } | return ( value == null || value . length ( ) == 0 ? 0 : Double . parseDouble ( value ) ) ; |
public class GreenPepperXmlRpcServer { /** * { @ inheritDoc } */
public Vector < Object > getSpecificationRepositoriesOfAssociatedProject ( Vector < Object > repositoryParams ) { } } | try { Repository repository = loadRepository ( repositoryParams ) ; Collection < Repository > repositories = service . getSpecificationRepositoriesOfAssociatedProject ( repository . getUid ( ) ) ; log . debug ( "Retrieved Test Repositories Of Associated Project of " + repository . getUid ( ) + " number: " + repositorie... |
public class FetcherMgrImpl { /** * 根据 URL 从远程 获取Value值 */
public String getValueFromServer ( String url ) throws Exception { } } | // 远程地址
RemoteUrl remoteUrl = new RemoteUrl ( url , hostList ) ; ValueVo confItemVo = restfulMgr . getJsonData ( ValueVo . class , remoteUrl , retryTime , retrySleepSeconds ) ; LOGGER . debug ( "remote server return: " + confItemVo . toString ( ) ) ; if ( confItemVo . getStatus ( ) . equals ( Constants . NOTOK ) ) { th... |
public class RaftState { /** * Initializes the last applied group members with the members and logIndex .
* This method expects there ' s no uncommitted membership changes , committed members are the same as
* the last applied members .
* Leader state is updated for the members which don ' t exist in committed me... | assert committedGroupMembers == lastGroupMembers : "Cannot update group members to: " + members + " at log index: " + logIndex + " because last group members: " + lastGroupMembers + " is different than committed group members: " + committedGroupMembers ; assert lastGroupMembers . index ( ) < logIndex : "Cannot update g... |
public class SieveOfEratosthenes { /** * Implementation of Sieve of Eratosthenes
* http : / / en . wikipedia . org / wiki / Sieve _ of _ Eratosthenes */
public static PrimeNumberSieve getInstance ( ) { } } | return new PrimeNumberSieve ( ) { @ Override public PSArray < Integer > calcList ( int max ) { boolean [ ] prime = new boolean [ max + 1 ] ; Arrays . fill ( prime , true ) ; prime [ 0 ] = false ; prime [ 1 ] = false ; for ( int i = 2 ; i <= max ; i ++ ) if ( prime [ i ] ) for ( int j = i + i ; j <= max ; j += i ) prime... |
public class SimpleItemExporter { /** * { @ inheritDoc } */
@ Override protected boolean beforeExport ( ) { } } | if ( null == titles ) { String contextTitle = context . get ( "titles" , String . class ) ; if ( null != contextTitle ) { titles = Strings . split ( contextTitle , "," ) ; } } if ( null == titles || titles . length == 0 ) return false ; writer . writeTitle ( null , titles ) ; return true ; |
public class ModelsImpl { /** * Adds a pattern . any entity extractor to the application .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param extractorCreateObject A model object containing the name and explicit list for the new Pattern . Any entity extractor .
* @ throws Illega... | if ( this . client . endpoint ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.endpoint() is required and cannot be null." ) ; } if ( appId == null ) { throw new IllegalArgumentException ( "Parameter appId is required and cannot be null." ) ; } if ( versionId == null ) { throw new IllegalArgu... |
public class NetworkConfig { /** * Returns the current { @ link SSLConfig } . It is possible that null is returned if no SSLConfig has been set .
* @ return the SSLConfig
* @ see # setSSLConfig ( SSLConfig )
* @ throws SecurityException If a security manager exists and the calling method doesn ' t have correspond... | SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { sm . checkPermission ( new HazelcastRuntimePermission ( "com.hazelcast.config.NetworkConfig.getSSLConfig" ) ) ; } return sslConfig ; |
public class RandomUtils { /** * Generates a number random bytes specified by the user
* @ return byte array representation of random bytes */
public static byte [ ] randomBytes ( int n ) { } } | byte [ ] buffer = new byte [ n ] ; if ( RandomUtils . secureRandom == null ) { try { RandomUtils . secureRandom = SecureRandom . getInstance ( ALGORITHM ) ; } catch ( NoSuchAlgorithmException e ) { e . printStackTrace ( ) ; } } RandomUtils . secureRandom . nextBytes ( buffer ) ; return buffer ; |
public class GetPlanRequest { /** * The target tables .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setSinks ( java . util . Collection ) } or { @ link # withSinks ( java . util . Collection ) } if you want to override the
* existing values .
* @ para... | if ( this . sinks == null ) { setSinks ( new java . util . ArrayList < CatalogEntry > ( sinks . length ) ) ; } for ( CatalogEntry ele : sinks ) { this . sinks . add ( ele ) ; } return this ; |
public class MCDImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eUnset ( int featureID ) { } } | switch ( featureID ) { case AfplibPackage . MCD__RG : getRG ( ) . clear ( ) ; return ; } super . eUnset ( featureID ) ; |
public class ZipFileIndexCache { /** * Returns a list of all ZipFileIndex entries
* @ param openedOnly If true it returns a list of only opened ZipFileIndex entries , otherwise
* all ZipFileEntry ( s ) are included into the list .
* @ return A list of ZipFileIndex entries , or an empty list */
public synchronized... | List < ZipFileIndex > zipFileIndexes = new ArrayList < ZipFileIndex > ( ) ; zipFileIndexes . addAll ( map . values ( ) ) ; if ( openedOnly ) { for ( ZipFileIndex elem : zipFileIndexes ) { if ( ! elem . isOpen ( ) ) { zipFileIndexes . remove ( elem ) ; } } } return zipFileIndexes ; |
public class LifecyclePolicyPreviewResultMarshaller { /** * Marshall the given parameter object . */
public void marshall ( LifecyclePolicyPreviewResult lifecyclePolicyPreviewResult , ProtocolMarshaller protocolMarshaller ) { } } | if ( lifecyclePolicyPreviewResult == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( lifecyclePolicyPreviewResult . getImageTags ( ) , IMAGETAGS_BINDING ) ; protocolMarshaller . marshall ( lifecyclePolicyPreviewResult . getImageDigest ( ) , ... |
public class GetCostForecastResult { /** * The forecasts for your query , in order . For < code > DAILY < / code > forecasts , this is a list of days . For
* < code > MONTHLY < / code > forecasts , this is a list of months .
* @ param forecastResultsByTime
* The forecasts for your query , in order . For < code > ... | if ( forecastResultsByTime == null ) { this . forecastResultsByTime = null ; return ; } this . forecastResultsByTime = new java . util . ArrayList < ForecastResult > ( forecastResultsByTime ) ; |
public class GISCoordinates { /** * This function convert WSG84 GPS coordinate to France Lambert IV coordinate .
* @ param lambda in degrees .
* @ param phi in degrees .
* @ return the France Lambert IV coordinates . */
public static Point2d WSG84_L4 ( double lambda , double phi ) { } } | final Point2d ntfLambdaPhi = WSG84_NTFLamdaPhi ( lambda , phi ) ; return NTFLambdaPhi_NTFLambert ( ntfLambdaPhi . getX ( ) , ntfLambdaPhi . getY ( ) , LAMBERT_4_N , LAMBERT_4_C , LAMBERT_4_XS , LAMBERT_4_YS ) ; |
public class ReflectionUtils { /** * Get only the first Level of Nested Reference Attributes from a given class
* @ param clazz
* @ return List < Field > of referenced fields */
public static List < Field > getFirstLevelOfReferenceAttributes ( Class < ? > clazz ) { } } | List < Field > references = new ArrayList < Field > ( ) ; List < String > referencedFields = ReflectionUtils . getReferencedAttributeNames ( clazz ) ; for ( String eachReference : referencedFields ) { Field referenceField = ReflectionUtils . getField ( clazz , eachReference ) ; references . add ( referenceField ) ; } r... |
public class Values { /** * Get a value as a string .
* @ param key the key for looking up the value .
* @ param type the type of the object
* @ param < V > the type */
public < V > V getObject ( final String key , final Class < V > type ) { } } | final Object obj = this . values . get ( key ) ; return type . cast ( obj ) ; |
public class SoapWebServiceAdapter { /** * The SOAPAction HTTP request header value . */
protected String getSoapAction ( ) { } } | String soapAction = null ; try { soapAction = getAttributeValueSmart ( SOAP_ACTION ) ; } catch ( PropertyException ex ) { logger . severeException ( ex . getMessage ( ) , ex ) ; } if ( soapAction == null ) { // required by SOAP 1.1 ( http : / / www . w3 . org / TR / soap11 / # _ Toc478383528)
String soapVersion = getSo... |
public class SharedPreferenceUtils { /** * put the string value to shared preference
* @ param key
* the name of the preference to save
* @ param value
* the name of the preference to modify .
* @ see android . content . SharedPreferences # edit ( ) # putString ( String , String ) */
public void putString ( S... | sharedPreferences . edit ( ) . putString ( key , value ) . commit ( ) ; |
public class VertxJdbcResultSet { /** * Vert . x turns byte [ ] into a B64 encoded string . Reverse it .
* @ see io . apiman . gateway . engine . components . jdbc . IJdbcResultSet # getBytes ( int ) */
@ Override public byte [ ] getBytes ( int index ) { } } | String b64String = rows . get ( row ) . getString ( index ) ; return Base64 . getDecoder ( ) . decode ( b64String ) ; |
public class JobGraph { /** * Adds the path of a JAR file required to run the job on a task manager .
* @ param jar
* path of the JAR file required to run the job on a task manager */
public void addJar ( Path jar ) { } } | if ( jar == null ) { throw new IllegalArgumentException ( ) ; } if ( ! userJars . contains ( jar ) ) { userJars . add ( jar ) ; } |
public class JSTypeRegistry { /** * Creates a constructor function type .
* @ param name the function ' s name or { @ code null } to indicate that the function is anonymous .
* @ param source the node defining this function . Its type ( { @ link Node # getToken ( ) } ( ) } ) must be
* { @ link Token # FUNCTION } ... | checkArgument ( source == null || source . isFunction ( ) || source . isClass ( ) ) ; return FunctionType . builder ( this ) . forConstructor ( ) . withName ( name ) . withSourceNode ( source ) . withParamsNode ( parameters ) . withReturnType ( returnType ) . withTemplateKeys ( templateKeys ) . withIsAbstract ( isAbstr... |
public class KamDialect { /** * { @ inheritDoc } */
@ Override public KamEdge replaceEdge ( KamEdge kamEdge , KamEdge replacement ) { } } | return kam . replaceEdge ( kamEdge , replacement ) ; |
public class Compose { /** * Executes a compose of fst1 o fst2 , with fst2 being a precomputed / preprocessed fst ( for performance reasons )
* @ param fst1 outer fst
* @ param fst2 inner fst
* @ param useSorted if true , then performance will be faster ; NOTE fst1 must be sorted by OUTPUT labels
* @ param trim... | fst1 . throwIfInvalid ( ) ; if ( useSorted ) { if ( fst1 . getOutputSymbols ( ) != fst2 . getFstInputSymbolsAsFrozen ( ) && fst1 . getOutputSymbols ( ) != fst2 . getFst ( ) . getInputSymbols ( ) ) { throw new IllegalArgumentException ( "When using the precomputed and useSorted optimization, you must have " + "the outer... |
public class PolylineUtils { /** * Square distance from a point to a segment .
* @ param point { @ link Point } whose distance from segment needs to be determined
* @ param p1 , p2 points defining the segment
* @ return square of the distance between first input point and segment defined by
* other two input po... | double horizontal = p1 . longitude ( ) ; double vertical = p1 . latitude ( ) ; double diffHorizontal = p2 . longitude ( ) - horizontal ; double diffVertical = p2 . latitude ( ) - vertical ; if ( diffHorizontal != 0 || diffVertical != 0 ) { double total = ( ( point . longitude ( ) - horizontal ) * diffHorizontal + ( poi... |
public class PresizeCollections { /** * implements the visitor to look for creation of collections that are then populated with a known number of elements usually based on another collection ,
* but the new collection is not presized .
* @ param seen
* the opcode of the currently parsed instruction */
@ edu . umd... | PSCUserValue userValue = null ; boolean sawAlloc = false ; try { stack . precomputation ( this ) ; switch ( seen ) { case Const . INVOKESPECIAL : String clsName = getClassConstantOperand ( ) ; if ( PRESIZEABLE_COLLECTIONS . contains ( clsName ) ) { String methodName = getNameConstantOperand ( ) ; if ( Values . CONSTRUC... |
public class GhostMe { /** * Check if the IP is in a blacklist
* @ param ip IP to check
* @ return whether the ip is blacklisted or not */
public synchronized static boolean isBlacklisted ( String ip ) { } } | if ( blacklistCache == null || blacklistCache . isEmpty ( ) ) { blacklistCache = new HashSet < > ( ) ; for ( IBlackListProvider provider : BLACKLIST_PROVIDERS ) { try { blacklistCache . addAll ( provider . getIPs ( ) ) ; } catch ( IOException e ) { LOGGER . warn ( "Error fetching blacklist records" , e ) ; } } } return... |
public class BigtableVeneerSettingsFactory { /** * Creates { @ link CredentialsProvider } based on { @ link CredentialOptions } . */
private static CredentialsProvider buildCredentialProvider ( CredentialOptions credentialOptions ) throws IOException { } } | try { final Credentials credentials = CredentialFactory . getCredentials ( credentialOptions ) ; if ( credentials == null ) { LOG . info ( "Enabling the use of null credentials. This should not be used in production." ) ; return NoCredentialsProvider . create ( ) ; } return FixedCredentialsProvider . create ( credentia... |
public class SenBotReferenceService { /** * Find a { @ link GenericUser } by its reference name
* @ param userType
* @ return { @ link GenericUser } */
public GenericUser getUserForUserReference ( String userReference ) { } } | GenericUser user = getReference ( GenericUser . class , userReference ) ; if ( user == null ) { fail ( "No user of type '" + userReference + "' is found. Available user references are: " + getObjectReferenceMap ( GenericUser . class ) . keySet ( ) . toString ( ) ) ; } return user ; |
public class ArrayOfDoublesUpdatableSketch { /** * Updates this sketch with a byte [ ] key and double values .
* The values will be stored or added to the ones associated with the key
* @ param key The given byte [ ] key
* @ param values The given values */
public void update ( final byte [ ] key , final double [... | if ( key == null || key . length == 0 ) { return ; } insertOrIgnore ( MurmurHash3 . hash ( key , seed_ ) [ 0 ] >>> 1 , values ) ; |
public class UserHandlerImpl { /** * Persists new user . */
private void createUser ( Session session , UserImpl user , boolean broadcast ) throws Exception { } } | Node userStorageNode = utils . getUsersStorageNode ( session ) ; Node userNode = userStorageNode . addNode ( user . getUserName ( ) ) ; if ( user . getCreatedDate ( ) == null ) { Calendar calendar = Calendar . getInstance ( ) ; user . setCreatedDate ( calendar . getTime ( ) ) ; } user . setInternalId ( userNode . getUU... |
public class ConnectionDataGroup { /** * Remove the connection from the group
* @ param cd */
public void removeConnectionDataFromGroup ( ConnectionData cd ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "removeConnectionDataFromGroup" , new Object [ ] { cd } ) ; boolean removed = false ; synchronized ( connectionData ) { removed = connectionData . remove ( cd ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc ... |
public class EmptyFieldsCountAccumulator { @ SuppressWarnings ( "unchecked" ) private static DataSet < StringTriple > getDataSet ( ExecutionEnvironment env , ParameterTool params ) { } } | if ( params . has ( "input" ) ) { return env . readCsvFile ( params . get ( "input" ) ) . fieldDelimiter ( ";" ) . pojoType ( StringTriple . class ) ; } else { System . out . println ( "Executing EmptyFieldsCountAccumulator example with default input data set." ) ; System . out . println ( "Use --input to specify file ... |
public class AnnotationUtils { /** * Returns the annotation object for the specified annotation class of the
* method if it can be found , otherwise null . The annotation is searched in
* the method which and if a stereotype annotation is found , the annotations
* present on an annotation are also examined . If t... | T annotation = m . getAnnotation ( annotationClazz ) ; if ( annotation != null ) { return annotation ; } if ( stereotypeAnnotationClass != null ) { List < Class < ? > > annotations = new ArrayList < > ( ) ; for ( Annotation a : m . getAnnotations ( ) ) { annotations . add ( a . annotationType ( ) ) ; } return findAnnot... |
public class CommerceAvailabilityEstimatePersistenceImpl { /** * Creates a new commerce availability estimate with the primary key . Does not add the commerce availability estimate to the database .
* @ param commerceAvailabilityEstimateId the primary key for the new commerce availability estimate
* @ return the ne... | CommerceAvailabilityEstimate commerceAvailabilityEstimate = new CommerceAvailabilityEstimateImpl ( ) ; commerceAvailabilityEstimate . setNew ( true ) ; commerceAvailabilityEstimate . setPrimaryKey ( commerceAvailabilityEstimateId ) ; String uuid = PortalUUIDUtil . generate ( ) ; commerceAvailabilityEstimate . setUuid (... |
public class ApiOvhHostingprivateDatabase { /** * Dumps available for your private database service
* REST : GET / hosting / privateDatabase / { serviceName } / dump
* @ param databaseName [ required ] Filter the value of databaseName property ( like )
* @ param orphan [ required ] Filter the value of orphan prop... | String qPath = "/hosting/privateDatabase/{serviceName}/dump" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "databaseName" , databaseName ) ; query ( sb , "orphan" , orphan ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t3 ) ; |
public class Admin { /** * @ throws PageException */
private void doGetMapping ( ) throws PageException { } } | Mapping [ ] mappings = config . getMappings ( ) ; Struct sct = new StructImpl ( ) ; String virtual = getString ( "admin" , action , "virtual" ) ; for ( int i = 0 ; i < mappings . length ; i ++ ) { MappingImpl m = ( MappingImpl ) mappings [ i ] ; if ( ! m . getVirtual ( ) . equals ( virtual ) ) continue ; sct . set ( "a... |
public class Apptentive { /** * Retrieves the user ' s name . This name may be set via { @ link # setPersonName ( String ) } ,
* or by the user through Message Center .
* @ return The person ' s name if set , else null . */
public static String getPersonName ( ) { } } | try { if ( ApptentiveInternal . isApptentiveRegistered ( ) ) { ConversationProxy conversation = ApptentiveInternal . getInstance ( ) . getConversationProxy ( ) ; if ( conversation != null ) { return conversation . getPersonName ( ) ; } } } catch ( Exception e ) { ApptentiveLog . e ( CONVERSATION , "Exception while gett... |
public class LanguageTranslator { /** * List identifiable languages .
* Lists the languages that the service can identify . Returns the language code ( for example , ` en ` for English or ` es `
* for Spanish ) and name of each language .
* @ param listIdentifiableLanguagesOptions the { @ link ListIdentifiableLan... | String [ ] pathSegments = { "v3/identifiable_languages" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "language_translator" , "v3"... |
public class Main { /** * Main entry point .
* Process arguments as would a normal Java program . Also
* create a new Context and associate it with the current thread .
* Then set up the execution environment and begin to
* execute scripts . */
public static void main ( String args [ ] ) { } } | try { if ( Boolean . getBoolean ( "rhino.use_java_policy_security" ) ) { initJavaPolicySecuritySupport ( ) ; } } catch ( SecurityException ex ) { ex . printStackTrace ( System . err ) ; } int result = exec ( args ) ; if ( result != 0 ) { System . exit ( result ) ; } |
public class Output { /** * { @ inheritDoc } */
@ Override public void writeMap ( Collection < ? > array ) { } } | writeAMF3 ( ) ; buf . put ( AMF3 . TYPE_ARRAY ) ; if ( hasReference ( array ) ) { putInteger ( getReferenceId ( array ) << 1 ) ; return ; } storeReference ( array ) ; // TODO : we could optimize this by storing the first integer
// keys after the key - value pairs
amf3_mode += 1 ; putInteger ( 1 ) ; int idx = 0 ; for (... |
public class TextToSpeech { /** * Get a custom word .
* Gets the translation for a single word from the specified custom model . The output shows the translation as it is
* defined in the model . You must use credentials for the instance of the service that owns a model to list its words .
* * * Note : * * This m... | Validator . notNull ( getWordOptions , "getWordOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "words" } ; String [ ] pathParameters = { getWordOptions . customizationId ( ) , getWordOptions . word ( ) } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( ... |
public class TileWriter { /** * Write the tile table tile image set within the GeoPackage file to the
* provided directory
* @ param geoPackage
* open GeoPackage
* @ param tileTable
* tile table
* @ param directory
* output directory
* @ param imageFormat
* image format
* @ param width
* optional ... | // Get a tile data access object for the tile table
TileDao tileDao = geoPackage . getTileDao ( tileTable ) ; // If no format , use the default
if ( imageFormat == null ) { imageFormat = DEFAULT_IMAGE_FORMAT ; } // If no tiles type , use the default
if ( tileType == null ) { tileType = DEFAULT_TILE_TYPE ; } LOGGER . lo... |
public class ScanResult { /** * Load a class given a class name . If ignoreExceptions is false , and the class cannot be loaded ( due to
* classloading error , or due to an exception being thrown in the class initialization block ) , an
* IllegalArgumentException is thrown ; otherwise , the class will simply be ski... | if ( closed . get ( ) ) { throw new IllegalArgumentException ( "Cannot use a ScanResult after it has been closed" ) ; } if ( className == null || className . isEmpty ( ) ) { throw new NullPointerException ( "className cannot be null or empty" ) ; } if ( superclassOrInterfaceType == null ) { throw new NullPointerExcepti... |
public class ValidationBundle { /** * Gets the message .
* @ param class1 the class 1
* @ param string the string
* @ param objects the objects
* @ return the message */
public static String getMessage ( final Class class1 , final String string , final Object [ ] objects ) { } } | return JKMessage . get ( string , objects ) ; |
public class Closeables2 { /** * Create a composite { @ link Closeable } that will close all the wrapped
* { @ code closeables } references . The { @ link Closeable # close ( ) } method will
* perform a safe close of all wrapped Closeable objects . This is needed
* since successive calls of the { @ link # closeAl... | return new Closeable ( ) { public void close ( ) throws IOException { closeAll ( log , Iterables . transform ( closeables , new Function < T , Closeable > ( ) { public Closeable apply ( final @ Nullable T input ) { if ( input == null ) { return new Closeable ( ) { public void close ( ) throws IOException { } } ; } else... |
public class BaseKdDao { /** * { @ inheritDoc } */
@ Override public boolean keyExists ( String spaceId , String key ) throws IOException { } } | /* * Call get ( spaceId , key ) ! = null or delegate to kdStorage . keyExists ( spaceId , key ) ?
* Since DELETE and PUT operations can be async , delegating to kdStorage . keyExists ( spaceId ,
* key ) would be preferred to avoid out - of - date data . */
return kdStorage . keyExists ( spaceId , key ) ; |
public class MInteger { /** * generate a list containing values from integer represented by this object < br >
* to given integer ( exclusive ) < br >
* e . g . < code > $ ( 0 ) . until ( 20 ) < / code > means list ( 0,1,2 , . . . , 19)
* @ param end end integer ( exclusive )
* @ return a list */
public List < ... | List < Integer > list = new ArrayList < > ( ) ; for ( int i = this . n ; i < end ; ++ i ) { list . add ( i ) ; } return list ; |
public class IonContainerLite { /** * Does not validate the child or check locks . */
protected int add_child ( int idx , IonValueLite child ) { } } | _isNullValue ( false ) ; // if we add children we ' re not null anymore
child . setContext ( this . getContextForIndex ( child , idx ) ) ; if ( _children == null || _child_count >= _children . length ) { int old_len = ( _children == null ) ? 0 : _children . length ; int new_len = this . nextSize ( old_len , true ) ; as... |
public class FindInconsistentSync2 { /** * Determine whether or not the the given method is a getter method . I . e . ,
* if it just returns the value of an instance field .
* @ param classContext
* the ClassContext for the class containing the method
* @ param method
* the method */
public static boolean isG... | MethodGen methodGen = classContext . getMethodGen ( method ) ; if ( methodGen == null ) { return false ; } InstructionList il = methodGen . getInstructionList ( ) ; // System . out . println ( " Checking getter method : " + method . getName ( ) ) ;
if ( il . getLength ( ) > 60 ) { return false ; } int count = 0 ; Itera... |
public class AbstractComponent { /** * { @ inheritDoc } */
@ SuppressWarnings ( "unchecked" ) @ Override public void setup ( ) throws CoreException { } } | final boolean canProcessAnnotation = ComponentEnhancer . canProcessAnnotation ( ( Class < ? extends Component < ? > > ) this . getClass ( ) ) ; if ( canProcessAnnotation ) { // Search Singleton and Multiton annotation on field
ComponentEnhancer . injectComponent ( this ) ; // Attach custom method configured with custom... |
public class Factor { /** * Create a FactorCreator to execute create .
* @ param pathServiceSid Service Sid .
* @ param pathIdentity Unique identity of the Entity
* @ param binding A unique binding for this Factor
* @ param friendlyName The friendly name of this Factor
* @ param factorType The Type of this Fa... | return new FactorCreator ( pathServiceSid , pathIdentity , binding , friendlyName , factorType ) ; |
public class OntologyTermRepository { /** * Calculate the distance between nodePaths , e . g . 0[0 ] . 1[1 ] . 2[2 ] , 0[0 ] . 2[1 ] . 2[2 ] . The distance is
* the non - overlap part of the strings
* @ return distance */
public int calculateNodePathDistance ( String nodePath1 , String nodePath2 ) { } } | String [ ] nodePathFragment1 = nodePath1 . split ( "\\." ) ; String [ ] nodePathFragment2 = nodePath2 . split ( "\\." ) ; int overlapBlock = 0 ; while ( overlapBlock < nodePathFragment1 . length && overlapBlock < nodePathFragment2 . length && nodePathFragment1 [ overlapBlock ] . equals ( nodePathFragment2 [ overlapBloc... |
public class MemcachedClient { /** * Perform a synchronous CAS operation with the default transcoder .
* @ param key the key
* @ param casId the CAS identifier ( from a gets operation )
* @ param value the new value
* @ return a CASResponse
* @ throws OperationTimeoutException if the global operation timeout ... | return cas ( key , casId , value , transcoder ) ; |
public class JavaParser { /** * src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 422:1 : voidMethodDeclaratorRest : formalParameters ( ' throws ' qualifiedNameList ) ? ( methodBody | ' ; ' ) ; */
public final void voidMethodDeclaratorRest ( ) throws RecognitionException { } } | int voidMethodDeclaratorRest_StartIndex = input . index ( ) ; try { if ( state . backtracking > 0 && alreadyParsedRule ( input , 32 ) ) { return ; } // src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 423:5 : ( formalParameters ( ' throws ' qualifiedNameList ) ? ( methodBody | '... |
public class NodeUtil { /** * Adds the given features to a SCRIPT node ' s FeatureSet property . */
static void addFeatureToScript ( Node scriptNode , Feature feature ) { } } | checkState ( scriptNode . isScript ( ) , scriptNode ) ; FeatureSet currentFeatures = getFeatureSetOfScript ( scriptNode ) ; FeatureSet newFeatures = currentFeatures != null ? currentFeatures . with ( feature ) : FeatureSet . BARE_MINIMUM . with ( feature ) ; scriptNode . putProp ( Node . FEATURE_SET , newFeatures ) ; |
public class DefaultGroovyMethodsSupport { /** * Attempts to close the closeable returning rather than throwing
* any Exception that may occur .
* @ param closeable the thing to close
* @ param logWarning if true will log a warning if an exception occurs
* @ return throwable Exception from the close method , el... | Throwable thrown = null ; if ( closeable != null ) { try { closeable . close ( ) ; } catch ( Exception e ) { thrown = e ; if ( logWarning ) { LOG . warning ( "Caught exception during close(): " + e ) ; } } } return thrown ; |
public class CopyFileExtensions { /** * Copies all files that match to the FileFilter from the given source directory to the given
* destination directory with the option to set the lastModified time from the given destination
* file or directory .
* @ param source
* The source directory .
* @ param destinati... | return copyDirectoryWithFileFilter ( source , destination , fileFilter , null , lastModified ) ; |
public class StatefulRedisPubSubConnectionImpl { /** * Re - subscribe to all previously subscribed channels and patterns .
* @ return list of the futures of the { @ literal subscribe } and { @ literal psubscribe } commands . */
protected List < RedisFuture < Void > > resubscribe ( ) { } } | List < RedisFuture < Void > > result = new ArrayList < > ( ) ; if ( endpoint . hasChannelSubscriptions ( ) ) { result . add ( async ( ) . subscribe ( toArray ( endpoint . getChannels ( ) ) ) ) ; } if ( endpoint . hasPatternSubscriptions ( ) ) { result . add ( async ( ) . psubscribe ( toArray ( endpoint . getPatterns ( ... |
public class GetWorkerIdPRequest { /** * < pre >
* * the worker network address
* < / pre >
* < code > optional . alluxio . grpc . WorkerNetAddress workerNetAddress = 1 ; < / code > */
public alluxio . grpc . WorkerNetAddress getWorkerNetAddress ( ) { } } | return workerNetAddress_ == null ? alluxio . grpc . WorkerNetAddress . getDefaultInstance ( ) : workerNetAddress_ ; |
public class StandardMatchingStrategy { /** * To get a match with a standard HTTP method ,
* < pre >
* 1 . Determine if the method matches
* 2 . Perform a URL match
* < / pre > */
@ Override protected CollectionMatch getCollectionMatchForWebResourceCollection ( WebResourceCollection webResourceCollection , Stri... | CollectionMatch match = null ; if ( webResourceCollection . isMethodMatched ( method ) ) { match = webResourceCollection . performUrlMatch ( resourceName ) ; if ( match == null ) { match = CollectionMatch . RESPONSE_NO_MATCH ; } } else if ( webResourceCollection . deniedDueToDenyUncoveredHttpMethods ( method ) ) { if (... |
public class AbstractHibernateCriteriaBuilder { /** * Adds a projection that allows the criteria to retrieve a minimum property value
* @ param alias The alias to use */
public org . grails . datastore . mapping . query . api . ProjectionList min ( String propertyName , String alias ) { } } | final AggregateProjection aggregateProjection = Projections . min ( calculatePropertyName ( propertyName ) ) ; addProjectionToList ( aggregateProjection , alias ) ; return this ; |
public class MavenConverter { /** * converts repository policy */
private static org . apache . maven . model . RepositoryPolicy asMavenRepositoryPolicy ( org . apache . maven . settings . RepositoryPolicy policy ) { } } | org . apache . maven . model . RepositoryPolicy mavenPolicy = new org . apache . maven . model . RepositoryPolicy ( ) ; if ( policy != null ) { mavenPolicy . setChecksumPolicy ( policy . getChecksumPolicy ( ) ) ; mavenPolicy . setUpdatePolicy ( policy . getUpdatePolicy ( ) ) ; mavenPolicy . setEnabled ( policy . isEnab... |
public class MultiPartParser { /** * Parse the message headers and return true if the handler has signaled for a return */
protected boolean parseMimePartHeaders ( ByteBuffer buffer ) { } } | // Process headers
while ( _state == State . BODY_PART && hasNextByte ( buffer ) ) { // process each character
HttpTokens . Token t = next ( buffer ) ; if ( t == null ) break ; if ( t . getType ( ) != HttpTokens . Type . LF ) _totalHeaderLineLength ++ ; if ( _totalHeaderLineLength > MAX_HEADER_LINE_LENGTH ) throw new I... |
public class ResourceLoader { /** * Loads a resource as { @ link InputStream } .
* @ param baseDir
* If not { @ code null } , the directory relative to which resources are loaded .
* @ param resource
* The resource to be loaded . If { @ code baseDir } is not { @ code null } , it is loaded
* relative to { @ co... | return getInputStream ( new File ( baseDir ) , resource ) ; |
public class ChainImpl { /** * { @ inheritDoc } */
@ Override public Group [ ] getGroupsByPDB ( ResidueNumber start , ResidueNumber end ) throws StructureException { } } | return getGroupsByPDB ( start , end , false ) ; |
public class NodeImpl { /** * { @ inheritDoc } */
public void removeMixin ( String mixinName ) throws NoSuchNodeTypeException , ConstraintViolationException , RepositoryException { } } | checkValid ( ) ; InternalQName [ ] mixinTypes = nodeData ( ) . getMixinTypeNames ( ) ; InternalQName name = locationFactory . parseJCRName ( mixinName ) . getInternalName ( ) ; // find mixin
InternalQName removedName = null ; // Prepare mixin values
List < InternalQName > newMixin = new ArrayList < InternalQName > ( ) ... |
public class AnyImageDerivative { /** * Computes derivative images using previously computed lower level derivatives . Only
* computes / declares images as needed . */
public D getDerivative ( boolean ... isX ) { } } | if ( derivatives == null ) { declareTree ( isX . length ) ; } else if ( isX . length > stale . length ) { growTree ( isX . length ) ; } int index = 0 ; int prevIndex = 0 ; for ( int level = 0 ; level < isX . length ; level ++ ) { index |= isX [ level ] ? 0 : 1 << level ; if ( stale [ level ] [ index ] ) { stale [ level... |
public class ClientFactory { /** * Return the named client from map if already created . Otherwise creates the client using the configuration returned by { @ link # createNamedClient ( String , Class ) } .
* @ throws RuntimeException if an error occurs in creating the client . */
public static synchronized IClient ge... | if ( simpleClientMap . get ( name ) != null ) { return simpleClientMap . get ( name ) ; } try { return createNamedClient ( name , configClass ) ; } catch ( ClientException e ) { throw new RuntimeException ( "Unable to create client" , e ) ; } |
public class JobState { /** * Get the number of completed tasks .
* @ return number of completed tasks */
public int getCompletedTasks ( ) { } } | int completedTasks = 0 ; for ( TaskState taskState : this . taskStates . values ( ) ) { if ( taskState . isCompleted ( ) ) { completedTasks ++ ; } } return completedTasks ; |
public class SnorocketOWLReasoner { /** * Asks the reasoner to precompute certain types of inferences . Note that it
* is NOT necessary to call this method before asking any other queries -
* the reasoner will answer all queries correctly regardless of whether
* inferences are precomputed or not . For example , i... | for ( InferenceType inferenceType : inferenceTypes ) { if ( inferenceType . equals ( InferenceType . CLASS_HIERARCHY ) ) { classify ( ) ; } } |
public class Filter { /** * Builds an EqualsFilter */
public static Filter equalsFilter ( String column , Object operand ) { } } | return new Filter ( column , FilterOperator . EQUALS , operand ) ; |
public class AddCampaignGroupsAndPerformanceTargets { /** * Adds multiple campaigns to a campaign group . */
private static void addCampaignsToGroup ( AdWordsServicesInterface adWordsServices , AdWordsSession session , CampaignGroup campaignGroup , List < Long > campaignIds ) throws ApiException , RemoteException { } } | // Get the CampaignService .
CampaignServiceInterface campaignService = adWordsServices . get ( session , CampaignServiceInterface . class ) ; List < CampaignOperation > operations = new ArrayList < > ( ) ; for ( Long campaignId : campaignIds ) { Campaign campaign = new Campaign ( ) ; campaign . setId ( campaignId ) ; ... |
public class CommerceOrderPersistenceImpl { /** * Returns the commerce order where uuid = & # 63 ; and groupId = & # 63 ; or returns < code > null < / code > if it could not be found . Uses the finder cache .
* @ param uuid the uuid
* @ param groupId the group ID
* @ return the matching commerce order , or < code... | return fetchByUUID_G ( uuid , groupId , true ) ; |
public class GISTreeSetUtil { /** * Replies if the given geolocation is outside the building bounds of the given node . */
@ Pure private static boolean isOutsideNodeBuildingBounds ( AbstractGISTreeSetNode < ? , ? > node , Rectangle2afp < ? , ? , ? , ? , ? , ? > location ) { } } | final Rectangle2d b2 = getNormalizedNodeBuildingBounds ( node , location ) ; if ( b2 == null ) { return false ; } return Rectangle2afp . classifiesRectangleRectangle ( b2 . getMinX ( ) , b2 . getMinY ( ) , b2 . getMaxX ( ) , b2 . getMaxY ( ) , location . getMinX ( ) , location . getMinY ( ) , location . getMaxX ( ) , l... |
public class IsoInterval { /** * / * [ deutsch ]
* < p > Formatiert die kanonische Form dieses Intervalls in einem benutzerdefinierten Format . < / p >
* < p > Beispiel : < / p >
* < pre >
* DateInterval interval = DateInterval . since ( PlainDate . of ( 2015 , 1 , 1 ) ) ;
* ChronoFormatter & lt ; PlainDate &... | I interval = this . toCanonical ( ) ; AttributeQuery attrs = printer . getAttributes ( ) ; StringBuilder sb = new StringBuilder ( 32 ) ; int i = 0 ; int n = intervalPattern . length ( ) ; while ( i < n ) { char c = intervalPattern . charAt ( i ) ; if ( ( c == '{' ) && ( i + 2 < n ) && ( intervalPattern . charAt ( i + 2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.