signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class TaskStatus { static TaskStatus createTaskStatus ( DataInput in , TaskAttemptID taskId , float progress , int numSlots , State runState , String diagnosticInfo , String stateString , String taskTracker , Phase phase , Counters counters ) throws IOException { } } | boolean isMap = in . readBoolean ( ) ; return createTaskStatus ( isMap , taskId , progress , numSlots , runState , diagnosticInfo , stateString , taskTracker , phase , counters ) ; |
public class StripedLock { /** * Releases a lock the caller may be holding . This method is idempotent . */
public void releaseLock ( Object key ) { } } | ReentrantReadWriteLock lock = getLock ( key ) ; if ( lock . isWriteLockedByCurrentThread ( ) ) { lock . writeLock ( ) . unlock ( ) ; if ( trace ) log . tracef ( "WL released for '%s'" , key ) ; } else { lock . readLock ( ) . unlock ( ) ; if ( trace ) log . tracef ( "RL released for '%s'" , key ) ; } |
public class AbstractFieldValidator { /** * メッセージキーを指定して 、 エラー情報を追加します 。
* @ param cellField フィールド情報
* @ param messageKey メッセージキー
* @ param messageVariables メッセージ中の変数
* @ throws IllegalArgumentException { @ literal cellField = = null or messageKey = = null or messageVariables = = null }
* @ throws Illegal... | ArgUtils . notEmpty ( messageKey , "messageKey" ) ; ArgUtils . notNull ( cellField , "cellField" ) ; ArgUtils . notNull ( messageVariables , "messageVariables" ) ; cellField . rejectValue ( messageKey , messageVariables ) ; |
public class EntityType { /** * Returns attributes that must be searched in case of xref / mref search
* @ return lookup attributes */
public Iterable < Attribute > getLookupAttributes ( ) { } } | Iterable < Attribute > lookupAttributes = getOwnLookupAttributes ( ) ; EntityType extend = getExtends ( ) ; if ( extend != null ) { lookupAttributes = concat ( lookupAttributes , extend . getLookupAttributes ( ) ) ; } return lookupAttributes ; |
public class AwtImage { /** * Returns a new AWT BufferedImage from this image .
* @ param type the type of buffered image to create , if not specified then defaults to the current image type
* @ return a new , non - shared , BufferedImage with the same data as this Image . */
public BufferedImage toNewBufferedImage... | BufferedImage target = new BufferedImage ( width , height , type ) ; Graphics2D g2 = ( Graphics2D ) target . getGraphics ( ) ; g2 . drawImage ( awt , 0 , 0 , null ) ; g2 . dispose ( ) ; return target ; |
public class AlipaySignature { /** * 私钥解密
* @ param content 待解密内容
* @ param privateKey 私钥
* @ param charset 字符集 , 如UTF - 8 , GBK , GB2312
* @ return 明文内容
* @ throws AlipayApiException */
public static String rsaDecrypt ( String content , String privateKey , String charset ) throws AlipayApiException { } } | try { PrivateKey priKey = getPrivateKeyFromPKCS8 ( AlipayConstants . SIGN_TYPE_RSA , new ByteArrayInputStream ( privateKey . getBytes ( ) ) ) ; Cipher cipher = Cipher . getInstance ( AlipayConstants . SIGN_TYPE_RSA ) ; cipher . init ( Cipher . DECRYPT_MODE , priKey ) ; byte [ ] encryptedData = StringUtils . isEmpty ( c... |
public class PeepholeRemoveDeadCode { /** * Remove useless switches and cases . */
private Node tryOptimizeSwitch ( Node n ) { } } | checkState ( n . isSwitch ( ) , n ) ; Node defaultCase = tryOptimizeDefaultCase ( n ) ; // Generally , it is unsafe to remove other cases when the default case is not the last one .
if ( defaultCase == null || n . getLastChild ( ) . isDefaultCase ( ) ) { Node cond = n . getFirstChild ( ) ; Node prev = null ; Node next ... |
public class DefaultMonetaryAmountFormat { /** * Prints a item value to an { @ code Appendable } .
* Example implementations of { @ code Appendable } are { @ code StringBuilder } ,
* { @ code StringBuffer } or { @ code Writer } . Note that { @ code StringBuilder }
* and { @ code StringBuffer } never throw an { @ ... | List < FormatToken > tokens = amount . isNegative ( ) ? negativeTokens : positiveTokens ; for ( FormatToken token : tokens ) { token . print ( appendable , amount ) ; } |
public class OmdbUrlBuilder { /** * Append a parameter and value to the URL line
* @ param params The parameter list
* @ param key The parameter to add
* @ param sb The StringBuilder instance to use */
private static void appendParam ( final OmdbParameters params , final Param key , StringBuilder sb ) { } } | if ( params . has ( key ) ) { sb . append ( DELIMITER_SUBSEQUENT ) . append ( key . getValue ( ) ) . append ( params . get ( key ) ) ; } |
public class AgentPoolsInner { /** * Creates or updates an agent pool .
* Creates or updates an agent pool in the specified managed cluster .
* @ param resourceGroupName The name of the resource group .
* @ param managedClusterName The name of the managed cluster resource .
* @ param agentPoolName The name of t... | return createOrUpdateWithServiceResponseAsync ( resourceGroupName , managedClusterName , agentPoolName , parameters ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class BamUtils { /** * Adjusts the quality value for optimized 8 - level mapping quality scores .
* Quality range - > Mapped quality
* 1 - > 1
* 2-9 - > 6
* 10-19 - > 15
* 20-24 - > 22
* 25-29 - > 27
* 30-34 - > 33
* 35-39 - > 27
* > = 40 - > 40
* Read more : http : / / www . illumina . com /... | final int adjustedQuality ; if ( quality <= 1 ) { adjustedQuality = quality ; } else { int qualRange = quality / 5 ; switch ( qualRange ) { case 0 : case 1 : adjustedQuality = 6 ; break ; case 2 : case 3 : adjustedQuality = 15 ; break ; case 4 : adjustedQuality = 22 ; break ; case 5 : adjustedQuality = 27 ; break ; cas... |
public class ObjectInputStream { /** * Reads at most { @ code length } bytes from the source stream and stores them
* in byte array { @ code buffer } starting at offset { @ code count } . Blocks
* until { @ code count } bytes have been read , the end of the source stream is
* detected or an exception is thrown . ... | Arrays . checkOffsetAndCount ( buffer . length , byteOffset , byteCount ) ; if ( byteCount == 0 ) { return 0 ; } checkReadPrimitiveTypes ( ) ; return primitiveData . read ( buffer , byteOffset , byteCount ) ; |
public class NinePatch { /** * Parses the image to find the bounds of the rectangle defined by pixels on the outside . */
protected static Rectangle getRectangle ( BufferedImage img , boolean stretch ) { } } | Rectangle rect = new Rectangle ( 0 , 0 , img . getWidth ( ) - 2 , img . getHeight ( ) - 2 ) ; for ( int xx = 1 ; xx < rect . width + 1 ; xx ++ ) { if ( ImageUtil . hitTest ( img , xx , stretch ? 0 : img . getHeight ( ) - 1 ) ) { rect . x = xx - 1 ; rect . width -= rect . x ; break ; } } for ( int xx = img . getWidth ( ... |
public class Task { /** * Runs a continuation when a task completes successfully , forwarding along
* { @ link java . lang . Exception } s or cancellation . */
public < TContinuationResult > Task < TContinuationResult > onSuccess ( final Continuation < TResult , TContinuationResult > continuation ) { } } | return onSuccess ( continuation , IMMEDIATE_EXECUTOR , null ) ; |
public class DefaultGroovyMethods { /** * Support the range subscript operator for an Array
* @ param array an Array of Objects
* @ param range a Range
* @ return a range of a list from the range ' s from index up to but not
* including the range ' s to value
* @ since 1.0 */
public static < T > List < T > ge... | List < T > list = Arrays . asList ( array ) ; return getAt ( list , range ) ; |
public class PackageUseWriter { /** * Generate a class page .
* @ param configuration the current configuration of the doclet .
* @ param mapper the mapping of the class usage .
* @ param pkgElement the package being documented .
* @ throws DocFileIOException if there is a problem generating the package use pag... | DocPath filename = DocPaths . PACKAGE_USE ; PackageUseWriter pkgusegen = new PackageUseWriter ( configuration , mapper , filename , pkgElement ) ; pkgusegen . generatePackageUseFile ( ) ; |
public class FullMappingPropertiesBasedBundlesHandlerFactory { /** * Create a JoinableResourceBundle based on the properties file .
* @ param props
* the properties config helper
* @ param bundleName
* the bundle name
* @ param rsHandler
* the resource handler
* @ return the Resource Bundle */
private Joi... | // Id for the bundle
String bundleId = props . getCustomBundleProperty ( bundleName , PropertiesBundleConstant . BUNDLE_FACTORY_CUSTOM_ID ) ; String bundlePrefix = props . getCustomBundleProperty ( bundleName , PropertiesBundleConstant . BUNDLE_FACTORY_CUSTOM_BUNDLE_PREFIX ) ; boolean isComposite = props . getCustomBun... |
public class HttpUtils { /** * Get the error code whitelist from a config */
public static Set < String > getErrorCodeWhitelist ( Config config ) { } } | String list = config . getString ( HttpConstants . ERROR_CODE_WHITELIST ) . toLowerCase ( ) ; return new HashSet < > ( getStringList ( list ) ) ; |
public class ArrayUtils { /** * This method does a similar job to JSE 6.0 ' s Arrays . copyOf ( ) method and overloads the method for use with arrays of ints
* @ param intArray The array to copy
* @ return A copy of the input , of component type U */
public static int [ ] copyOf ( int [ ] intArray ) { } } | int [ ] copy = new int [ intArray . length ] ; System . arraycopy ( intArray , 0 , copy , 0 , intArray . length ) ; return copy ; |
public class VFSUtils { /** * In case the file system is not case sensitive we compare the canonical path with
* the absolute path of the file after normalized .
* @ param file
* @ return */
public static boolean exists ( File file ) { } } | try { boolean fileExists = file . exists ( ) ; if ( ! forceCaseSensitive || ! fileExists ) { return fileExists ; } String absPath = canonicalize ( file . getAbsolutePath ( ) ) ; String canPath = canonicalize ( file . getCanonicalPath ( ) ) ; return fileExists && absPath . equals ( canPath ) ; } catch ( IOException io )... |
public class DescribePendingAggregationRequestsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribePendingAggregationRequestsRequest describePendingAggregationRequestsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describePendingAggregationRequestsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describePendingAggregationRequestsRequest . getLimit ( ) , LIMIT_BINDING ) ; protocolMarshaller . marshall ( describePendingAggregationRequests... |
public class Histogram { /** * Prints this histogram in a human readable ASCII format .
* This is equivalent to calling { @ link # printAsciiBucket } on every
* bucket .
* @ param out The buffer to which to write the output . */
public void printAscii ( final StringBuilder out ) { } } | for ( int i = 0 ; i < buckets . length ; i ++ ) { printAsciiBucket ( out , i ) ; } |
public class CmsPatternPanelMonthlyView { /** * Handles interval changes . < p >
* @ param event the value change event */
@ UiHandler ( { } } | "m_atMonth" , "m_everyMonth" } ) void onIntervalValueChange ( ValueChangeEvent < String > event ) { if ( handleChange ( ) ) { m_controller . setInterval ( event . getValue ( ) ) ; } |
public class InfinitySemaphoreLatch { /** * waiting for an open state */
public final boolean awaitUninterruptibly ( ) { } } | try { return await ( 15 , TimeUnit . SECONDS ) ; } catch ( InterruptedException e ) { Thread . currentThread ( ) . interrupt ( ) ; return false ; } |
public class Bytes { /** * Writes a string as a fixed - size field , padded with zeros . */
public static void writeStringFixedSize ( final DataOutput out , String s , int size ) throws IOException { } } | byte [ ] b = toBytes ( s ) ; if ( b . length > size ) { throw new IOException ( "Trying to write " + b . length + " bytes (" + toStringBinary ( b ) + ") into a field of length " + size ) ; } out . writeBytes ( s ) ; for ( int i = 0 ; i < size - s . length ( ) ; ++ i ) { out . writeByte ( 0 ) ; } |
public class MapEntryLite { /** * Write to .
* @ param < K > the key type
* @ param < V > the value type
* @ param output the output
* @ param metadata the metadata
* @ param key the key
* @ param value the value
* @ throws IOException Signals that an I / O exception has occurred . */
static < K , V > voi... | CodedConstant . writeElement ( output , metadata . keyType , KEY_FIELD_NUMBER , key ) ; CodedConstant . writeElement ( output , metadata . valueType , VALUE_FIELD_NUMBER , value ) ; |
public class PDFView { /** * Called when the PDF is loaded */
public void loadComplete ( DecodeService decodeService ) { } } | this . decodeService = decodeService ; this . documentPageCount = decodeService . getPageCount ( ) ; // We assume all the pages are the same size
this . pageWidth = decodeService . getPageWidth ( 0 ) ; this . pageHeight = decodeService . getPageHeight ( 0 ) ; state = State . LOADED ; calculateOptimalWidthAndHeight ( ) ... |
public class GdxLists { /** * Null - safe lists clearing method .
* @ param lists will all be cleared . Any of these lists can be null . */
public static void clear ( final SortedIntList < ? > ... lists ) { } } | for ( final SortedIntList < ? > list : lists ) { if ( list != null ) { list . clear ( ) ; } } |
public class ContentsIdExtension { /** * Delete all contents ids
* @ return deleted contents ids count */
public int deleteIds ( ) { } } | int deleted = 0 ; try { if ( contentsIdDao . isTableExists ( ) ) { deleted = contentsIdDao . delete ( contentsIdDao . deleteBuilder ( ) . prepare ( ) ) ; } } catch ( SQLException e ) { throw new GeoPackageException ( "Failed to delete all contents ids. GeoPackage: " + geoPackage . getName ( ) , e ) ; } return deleted ; |
public class ActedOnBehalfOf { /** * Gets the value of the delegate property .
* @ return
* possible object is
* { @ link org . openprovenance . prov . sql . IDRef } */
@ ManyToOne ( targetEntity = org . openprovenance . prov . sql . QualifiedName . class , cascade = { } } | CascadeType . ALL } ) @ JoinColumn ( name = "DELEGATE" ) public org . openprovenance . prov . model . QualifiedName getDelegate ( ) { return delegate ; |
public class LambdaMetaHelper { /** * Gets single arg constructor as Function .
* @ param clazz class to get constructor for .
* @ param arg constructor argument type .
* @ param < T > clazz .
* @ param < A > argument class .
* @ return function . */
public < T , A > Function < A , T > getConstructor ( Class ... | return getConstructorAs ( Function . class , "apply" , clazz , arg ) ; |
public class IsotopeReader { /** * Triggers the XML parsing of the data file and returns the read Isotopes .
* It turns of XML validation before parsing .
* @ return a List of Isotope ' s . Returns an empty list is some reading error
* occurred . */
public List < IIsotope > readIsotopes ( ) { } } | List < IIsotope > isotopes = new ArrayList < IIsotope > ( ) ; try { parser . setFeature ( "http://xml.org/sax/features/validation" , false ) ; logger . info ( "Deactivated validation" ) ; } catch ( SAXException exception ) { logger . warn ( "Cannot deactivate validation: " , exception . getMessage ( ) ) ; logger . debu... |
public class HystrixInvocationHandler { /** * Process all methods in the target so that appropriate setters are created . */
static Map < Method , Setter > toSetters ( SetterFactory setterFactory , Target < ? > target , Set < Method > methods ) { } } | Map < Method , Setter > result = new LinkedHashMap < Method , Setter > ( ) ; for ( Method method : methods ) { method . setAccessible ( true ) ; result . put ( method , setterFactory . create ( target , method ) ) ; } return result ; |
public class DefaultEntityConverter { /** * Helper method to return and cache the entity metadata .
* @ param source the source class .
* @ return the metadata . */
private EntityMetadata metadata ( final Class < ? > source ) { } } | EntityMetadata metadata = metadataCache . get ( source ) ; if ( metadata == null ) { EntityMetadata generated = new ReflectionBasedEntityMetadata ( source ) ; metadataCache . put ( source , generated ) ; return generated ; } else { return metadata ; } |
public class Smb2WriteRequest { /** * { @ inheritDoc }
* @ see jcifs . internal . smb2 . ServerMessageBlock2 # writeBytesWireFormat ( byte [ ] , int ) */
@ Override protected int writeBytesWireFormat ( byte [ ] dst , int dstIndex ) { } } | int start = dstIndex ; SMBUtil . writeInt2 ( 49 , dst , dstIndex ) ; int dataOffsetOffset = dstIndex + 2 ; dstIndex += 4 ; SMBUtil . writeInt4 ( this . dataLength , dst , dstIndex ) ; dstIndex += 4 ; SMBUtil . writeInt8 ( this . offset , dst , dstIndex ) ; dstIndex += 8 ; System . arraycopy ( this . fileId , 0 , dst , ... |
public class DBUpdate { /** * Set the given field ( can be multiple levels deep ) to the given value atomically
* @ param field The field to set
* @ param value The value to set it to
* @ return this object */
public static Builder set ( String field , Object value ) { } } | return new Builder ( ) . set ( field , value ) ; |
public class VariantAggregatedExacStatsCalculator { /** * returns in alleles [ ] the heterozygous genotype specified in index in the sequence ( in this example for 3 ALT alleles ) :
* 0/1 , 0/2 , 0/3 , 1/2 , 1/3 , 2/3
* @ param index in this sequence , starting in 0
* @ param numAlternativeAlleles note that this ... | // index + + ;
// double value = ( - 3 + Math . sqrt ( 1 + 8 * index ) ) / 2 ; / / slower than the iterating version , right ?
// alleles [ 1 ] = new Double ( Math . ceil ( value ) ) . intValue ( ) ;
// alleles [ 0 ] = alleles [ 1 ] - ( ( alleles [ 1 ] + 1 ) * ( alleles [ 1 ] + 2 ) / 2 - index ) ;
int cursor = 0 ; for ... |
public class CoreDocumentSynchronizationConfig { /** * Sets that there are some pending writes that occurred at a time for an associated
* locally emitted change event . This variant updates the last version set .
* @ param atTime the time at which the write occurred .
* @ param atVersion the version for which th... | docLock . writeLock ( ) . lock ( ) ; try { this . lastUncommittedChangeEvent = changeEvent ; this . lastResolution = atTime ; this . lastKnownRemoteVersion = atVersion ; this . lastKnownHash = atHash ; } finally { docLock . writeLock ( ) . unlock ( ) ; } |
public class SAX2DTM2 { /** * The optimized version of DTMDefaultBase . getExpandedTypeID ( int ) .
* < p > This one is only used by DOMAdapter . getExpandedTypeID ( int ) , which
* is mostly called from the compiled translets . */
public final int getExpandedTypeID2 ( int nodeHandle ) { } } | int nodeID = makeNodeIdentity ( nodeHandle ) ; // return ( nodeID ! = NULL ) ? _ exptype2 ( nodeID ) : NULL ;
if ( nodeID != NULL ) { if ( nodeID < m_blocksize ) return m_exptype_map0 [ nodeID ] ; else return m_exptype_map [ nodeID >>> m_SHIFT ] [ nodeID & m_MASK ] ; } else return NULL ; |
public class ID3v2Tag { /** * Remove an existing id3v2 tag from the file passed to the constructor .
* @ return true if the removal was a success
* @ exception FileNotFoundException if an error occurs
* @ exception IOException if an error occurs */
public void removeTag ( RandomAccessFile raf ) throws FileNotFoun... | if ( exists ) { int bufSize = ( int ) ( raf . length ( ) - origSize ) ; byte [ ] buf = new byte [ bufSize ] ; raf . seek ( origSize ) ; if ( raf . read ( buf ) != buf . length ) { throw new IOException ( "Error encountered while removing " + "id3v2 tag." ) ; } raf . setLength ( bufSize ) ; raf . seek ( 0 ) ; raf . writ... |
public class FaultTolerantAlluxioMasterProcess { /** * Upgrades the master to primary mode .
* If the master loses primacy during the journal upgrade , this method will clean up the partial
* upgrade , leaving the master in secondary mode .
* @ return whether the master successfully upgraded to primary */
private... | // Don ' t upgrade if this master ' s primacy is unstable .
AtomicBoolean unstable = new AtomicBoolean ( false ) ; try ( Scoped scoped = mLeaderSelector . onStateChange ( state -> unstable . set ( true ) ) ) { if ( mLeaderSelector . getState ( ) != State . PRIMARY ) { unstable . set ( true ) ; } stopMasters ( ) ; LOG .... |
public class GridFilesystem { /** * Opens an OutputStream for writing to the file denoted by pathname .
* @ param pathname the file to write to
* @ param append if true , the bytes written to the OutputStream will be appended to the end of the file
* @ param chunkSize the size of the file ' s chunks . This parame... | GridFile file = ( GridFile ) getFile ( pathname , chunkSize ) ; checkIsNotDirectory ( file ) ; createIfNeeded ( file ) ; return new GridOutputStream ( file , append , data ) ; |
public class Agg { /** * Get a { @ link Collector } that calculates the < code > MIN ( ) < / code > function . */
public static < T extends Comparable < ? super T > > Collector < T , ? , Optional < T > > min ( ) { } } | return minBy ( t -> t , naturalOrder ( ) ) ; |
public class SunJsseListener { /** * @ return
* @ exception Exception */
protected SSLServerSocketFactory createFactory ( ) throws Exception { } } | _keystore = System . getProperty ( KEYSTORE_PROPERTY , _keystore ) ; log . info ( KEYSTORE_PROPERTY + "=" + _keystore ) ; if ( _password == null ) _password = Password . getPassword ( PASSWORD_PROPERTY , null , null ) ; log . info ( PASSWORD_PROPERTY + "=" + _password . toStarString ( ) ) ; if ( _keypassword == null ) ... |
public class AtomicIntegerTypeConverter { /** * { @ inheritDoc } */
@ Override public AtomicInteger convert ( final String value ) { } } | checkArgument ( value != null , "Value to convert must not be null" ) ; checkArgument ( ! value . isEmpty ( ) , "Value to convert must not be empty" ) ; return new AtomicInteger ( Integer . parseInt ( value ) ) ; |
public class HMap { /** * Retrieve the value at this key , throwing a { @ link NoSuchElementException } if this key is unmapped .
* @ param key the key
* @ param < V > the value type
* @ return the value at this key
* @ throws NoSuchElementException if the key is unmapped */
public < V > V demand ( TypeSafeKey ... | return get ( key ) . orElseThrow ( ( ) -> new NoSuchElementException ( "Demanded value for key " + key + ", but couldn't find one." ) ) ; |
public class CustomTypefaceFactory { /** * Low - level function for instantiating a view by name . This attempts to
* instantiate a view class of the given < var > name < / var > found in this
* LayoutInflater ' s ClassLoader .
* There are two things that can happen in an error case : either the
* exception des... | Constructor < ? extends View > constructor = CONSTRUCTOR_MAP . get ( name ) ; Class < ? extends View > clazz = null ; try { if ( constructor == null ) { // Class not found in the cache , see if it ' s real , and try to add it
clazz = mContext . getClassLoader ( ) . loadClass ( prefix != null ? ( prefix + name ) : name ... |
public class SupplierFactory { /** * Base template for a resource representation .
* Covers the resource attributes
* @ param index
* @ param plan
* @ return */
public JavaType create ( ClassIndex index , ClassPlan plan ) { } } | // base class
JavaInterfaceSource type = Roaster . parse ( JavaInterfaceSource . class , "public interface " + plan . getClassName ( ) + "Supplier<T extends " + plan . getClassName ( ) + "> {}" ) ; type . setPackage ( plan . getPackageName ( ) ) ; type . addAnnotation ( FunctionalInterface . class ) ; addGet ( type , p... |
public class GrafeasV1Beta1Client { /** * Lists occurrences referencing the specified note . Provider projects can use this method to get
* all occurrences across consumer projects referencing the specified note .
* < p > Sample code :
* < pre > < code >
* try ( GrafeasV1Beta1Client grafeasV1Beta1Client = Grafe... | ListNoteOccurrencesRequest request = ListNoteOccurrencesRequest . newBuilder ( ) . setName ( name == null ? null : name . toString ( ) ) . setFilter ( filter ) . build ( ) ; return listNoteOccurrences ( request ) ; |
public class ParsedUnionStmt { /** * This is a stripped down version of the ParsedSelectStmt . parseOrderColumn . Since the SET ops
* are not allowed to have aggregate expressions ( HAVING , GROUP BY ) ( except the individual SELECTS )
* all the logic handling the aggregates is omitted here
* @ param orderByNode ... | ParsedColInfo . ExpressionAdjuster adjuster = new ParsedColInfo . ExpressionAdjuster ( ) { @ Override public AbstractExpression adjust ( AbstractExpression expr ) { // Union itself can ' t have aggregate expression
return expr ; } } ; // Get the display columns from the first child
List < ParsedColInfo > displayColumns... |
public class RaytraceBlock { /** * Does the raytracing .
* @ return { @ link RayTraceResult } with < code > typeOfHit < / code > < b > BLOCK < / b > if a ray hits a block in the way , or < b > MISS < / b > if it
* reaches < code > dest < / code > without any hit */
public RayTraceResult trace ( ) { } } | if ( ! ( state . getBlock ( ) instanceof IBoundingBox ) ) return state . collisionRayTrace ( world , pos , ray . origin . toVec3d ( ) , dest . toVec3d ( ) ) ; IBoundingBox block = ( IBoundingBox ) state . getBlock ( ) ; AxisAlignedBB [ ] aabbs = block . getRayTraceBoundingBox ( world , pos , world . getBlockState ( pos... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcMonetaryUnit ( ) { } } | if ( ifcMonetaryUnitEClass == null ) { ifcMonetaryUnitEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 385 ) ; } return ifcMonetaryUnitEClass ; |
public class MBeanInfoData { /** * Extract either a sub tree or a leaf value . If a path is used , then adding MBeanInfos has added them
* as if no path were given ( i . e . in it original place in the tree ) but leaves out other information
* not included by the path . This method then moves up the part pointed to... | Object value = navigatePath ( ) ; if ( maxDepth == 0 ) { return value ; } if ( ! ( value instanceof JSONObject ) ) { return value ; } else { // Truncate all levels below
return truncateJSONObject ( ( JSONObject ) value , maxDepth ) ; } |
public class UserConfigurationsCollection { /** * Cleans up the inventory .
* @ return true if the inventory was touched , false otherwise . */
private boolean cleanupInventory ( ) { } } | boolean modified = false ; modified |= removeUnreadable ( ) ; modified |= recreateMismatching ( ) ; modified |= importConfigurations ( ) ; return modified ; |
public class CompositeTypeSerializerUtil { /** * Constructs an { @ link IntermediateCompatibilityResult } with the given array of nested serializers and their
* corresponding serializer snapshots .
* < p > This result is considered " intermediate " , because the actual final result is not yet built if it isn ' t
... | Preconditions . checkArgument ( newNestedSerializers . length == nestedSerializerSnapshots . length , "Different number of new serializers and existing serializer snapshots." ) ; TypeSerializer < ? > [ ] nestedSerializers = new TypeSerializer [ newNestedSerializers . length ] ; // check nested serializers for compatibi... |
public class CachedField { /** * Sets the property on the given object to the new value
* @ param object on which to set the property
* @ param newValue the new value of the property
* @ throws RuntimeException if the property could not be set */
public void setProperty ( final Object object , Object newValue ) {... | AccessPermissionChecker . checkAccessPermission ( field ) ; final Object goalValue = DefaultTypeTransformation . castToType ( newValue , field . getType ( ) ) ; if ( isFinal ( ) ) { throw new GroovyRuntimeException ( "Cannot set the property '" + name + "' because the backing field is final." ) ; } try { field . set ( ... |
public class MpTransactionTaskQueue { /** * Restart the current task at the head of the queue . This will be called
* instead of flush by the currently blocking MP transaction in the event a
* restart is necessary . */
@ Override synchronized void restart ( ) { } } | if ( ! m_currentReads . isEmpty ( ) ) { // re - submit all the tasks in the current read set to the pool .
// the pool will ensure that things submitted with the same
// txnID will go to the the MpRoSite which is currently running it
for ( TransactionTask task : m_currentReads . values ( ) ) { taskQueueOffer ( task ) ;... |
public class TypeTransformers { /** * creates a method handle able to transform the given Closure into a SAM type
* if the given parameter is a SAM type */
private static MethodHandle createSAMTransform ( Object arg , Class parameter ) { } } | Method method = CachedSAMClass . getSAMMethod ( parameter ) ; if ( method == null ) return null ; // TODO : have to think about how to optimize this !
if ( parameter . isInterface ( ) ) { if ( Traits . isTrait ( parameter ) ) { // the following code will basically do this :
// Map < String , Closure > impl = Collection... |
public class HttpUploadClient { /** * Standard post without multipart but already support on Factory ( memory management )
* @ return the list of HttpData object ( attribute and file ) to be reused on next post */
private static List < InterfaceHttpData > formpost ( Bootstrap bootstrap , String host , int port , URI ... | // XXX / formpost
// Start the connection attempt .
ChannelFuture future = bootstrap . connect ( SocketUtils . socketAddress ( host , port ) ) ; // Wait until the connection attempt succeeds or fails .
Channel channel = future . sync ( ) . channel ( ) ; // Prepare the HTTP request .
HttpRequest request = new DefaultHtt... |
public class HttpRequestMessageImpl { /** * @ see com . ibm . ws . genericbnf . internal . GenericMessageImpl # marshallLine ( ) */
@ Override public WsByteBuffer [ ] marshallLine ( ) { } } | WsByteBuffer [ ] firstLine = new WsByteBuffer [ 1 ] ; firstLine [ 0 ] = allocateBuffer ( getOutgoingBufferSize ( ) ) ; firstLine = putBytes ( this . myMethod . getByteArray ( ) , firstLine ) ; firstLine = putByte ( SPACE , firstLine ) ; firstLine = putBytes ( getMarshalledSecondToken ( ) , firstLine ) ; firstLine = put... |
public class CmsWidgetDialog { /** * Adds or removes an optional element . < p >
* Depends on the value stored in the < code > { @ link CmsDialog # getAction ( ) } < / code > method . < p > */
public void actionToggleElement ( ) { } } | // get the necessary parameters to add / remove the element
int index = 0 ; try { index = Integer . parseInt ( getParamElementIndex ( ) ) ; } catch ( Exception e ) { // ignore , should not happen
} String name = getParamElementName ( ) ; // get the base parameter definition
CmsWidgetDialogParameter base = getParameterD... |
public class ObjectEnvelopeOrdering { /** * Checks if the database operations associated with two object envelopes
* that might have been related via an 1:1 ( or n : 1 ) reference before
* the current transaction needs to be performed
* in a particular order and if so builds and returns a corresponding
* direct... | ModificationState state1 = vertex1 . getEnvelope ( ) . getModificationState ( ) ; ModificationState state2 = vertex2 . getEnvelope ( ) . getModificationState ( ) ; if ( state1 . needsUpdate ( ) || state1 . needsDelete ( ) ) { if ( state2 . needsDelete ( ) ) { // old version of ( 1 ) might point to ( 2)
return new Edge ... |
public class DocumentManagerImpl { /** * @ Override public < T extends R > T read ( DocumentDescriptor desc ,
* DocumentMetadataReadHandle metadataHandle , T contentHandle , ServerTransform
* transform , Transaction transaction , String temporalCollection ) throws
* ResourceNotFoundException , ForbiddenUserExcept... | if ( desc == null ) throw new IllegalArgumentException ( "Attempt to call read with null DocumentDescriptor" ) ; if ( logger . isInfoEnabled ( ) ) logger . info ( "Reading metadata and content for {}" , desc . getUri ( ) ) ; if ( metadataHandle != null ) { HandleImplementation metadataBase = HandleAccessor . checkHandl... |
public class CollectionNumbers { /** * Copies the content of the collection to an array .
* @ param coll the collection
* @ return the array */
public static float [ ] floatArrayCopyOf ( CollectionNumber coll ) { } } | float [ ] data = new float [ coll . size ( ) ] ; IteratorNumber iter = coll . iterator ( ) ; int index = 0 ; while ( iter . hasNext ( ) ) { data [ index ] = iter . nextFloat ( ) ; index ++ ; } return data ; |
public class FastMath { /** * Compute the minimum of two values
* @ param a first value
* @ param b second value
* @ return a if a is lesser or equal to b , b otherwise */
public static float min ( final float a , final float b ) { } } | if ( a > b ) { return b ; } if ( a < b ) { return a ; } /* if either arg is NaN , return NaN */
if ( a != b ) { return Float . NaN ; } /* min ( + 0.0 , - 0.0 ) = = - 0.0 */
/* 0x800000 = = Float . floatToRawIntBits ( - 0.0d ) */
int bits = Float . floatToRawIntBits ( a ) ; if ( bits == 0x80000000 ) { return a ; } retur... |
public class Getter { /** * Returns true if method is a getter of property .
* In strict mode it will not strip non - alphanumeric characters . */
private static boolean isApplicable ( Method method , Property property , boolean strict , boolean acceptPrefixless ) { } } | if ( ! method . getReturnType ( ) . isAssignableFrom ( property . getTypeRef ( ) ) ) { return false ; } String capitalized = capitalizeFirst ( property . getName ( ) ) ; if ( method . getName ( ) . endsWith ( GET_PREFIX + capitalized ) ) { return true ; } if ( method . getName ( ) . endsWith ( IS_PREFIX + capitalized )... |
public class TupleWritable { /** * Return an iterator over the elements in this tuple .
* Note that this doesn ' t flatten the tuple ; one may receive tuples
* from this iterator . */
public Iterator < Writable > iterator ( ) { } } | final TupleWritable t = this ; return new Iterator < Writable > ( ) { long i = written ; long last = 0L ; public boolean hasNext ( ) { return 0L != i ; } public Writable next ( ) { last = Long . lowestOneBit ( i ) ; if ( 0 == last ) throw new NoSuchElementException ( ) ; i ^= last ; // numberOfTrailingZeros rtn 64 if l... |
public class MRCompactor { /** * Run compaction job for a { @ link Dataset } .
* @ param dataset The input { @ link Dataset } to run compaction for .
* @ param proceed Whether the compaction job is permitted to publish data . If data completeness verification
* is enabled and the status of the inputFolder is UNVE... | LOG . info ( "Running compaction for dataset " + dataset ) ; try { MRCompactorJobRunner jobRunner = getMRCompactorJobRunner ( dataset ) ; this . jobRunnables . put ( dataset , jobRunner ) ; if ( proceed ) { jobRunner . proceed ( ) ; } this . jobExecutor . execute ( jobRunner ) ; } catch ( Throwable t ) { dataset . skip... |
public class Util { /** * Fixed time comparison of two strings .
* Fixed time comparison is necessary in order to prevent attacks analyzing differences in
* verification time for corrupted tokens .
* @ param lhs Left hand side operand
* @ param rhs Right hadn side operand
* @ return true if the strings are eq... | boolean equal = ( lhs . length ( ) == rhs . length ( ) ? true : false ) ; // If not equal , work on a single operand to have same length .
if ( ! equal ) { rhs = lhs ; } int len = lhs . length ( ) ; for ( int i = 0 ; i < len ; i ++ ) { if ( lhs . charAt ( i ) == rhs . charAt ( i ) ) { equal = equal && true ; } else { e... |
public class ReservedDBWords { /** * Check if is a reserved word of any database */
public static boolean isReservedWord ( String word ) { } } | return ! StrUtils . isEmpty ( word ) && RESERVED_WORDS . containsKey ( word . toUpperCase ( ) ) ; |
public class Outcome { /** * Performs outcome - to - RDF encoding by converting a stream of outcomes in a stream of RDF
* statements .
* @ param stream
* the stream of outcomes to encode .
* @ return the resulting stream of statements */
public static Stream < Statement > encode ( final Stream < ? extends Outco... | Preconditions . checkNotNull ( stream ) ; return Record . encode ( stream . transform ( new Function < Outcome , Record > ( ) { @ Override public Record apply ( final Outcome outcome ) { return outcome . toRecord ( ) ; } } , 0 ) , ImmutableSet . of ( KSR . INVOCATION ) ) ; |
public class StringProperties { /** * SET */
public String setProperty ( String key , final String value ) { } } | synchronized ( map ) { if ( rootPrefix != null ) key = rootPrefix + key ; return map . put ( key , value ) ; } |
public class SequenceManagerHelper { /** * Database sequence properties helper method .
* Return sequence < em > increment by value < / em > or < em > null < / em >
* if not set .
* @ param prop The { @ link java . util . Properties } instance to use .
* @ return The found expression or < em > null < / em > . *... | String result = prop . getProperty ( PROP_SEQ_INCREMENT_BY , null ) ; if ( result != null ) { return new Long ( Long . parseLong ( result ) ) ; } else { return null ; } |
public class BplusTree { /** * Put the value in the tree ( if key already exists , update value )
* @ param key
* @ param value
* @ return true if operation is ok , else false */
public synchronized boolean put ( final K key , final V value ) { } } | if ( readOnly ) { return false ; } if ( ! validState ) { throw new InvalidStateException ( ) ; } if ( key == null ) { return false ; } if ( value == null ) { return false ; } try { submitRedoPut ( key , value ) ; Node < K , V > splitedNode ; try { splitedNode = putIterative ( key , value ) ; // putRecursive ( key , val... |
public class XlsMapper { /** * システム情報を設定します 。
* @ param configuration システム情報 */
public void setConiguration ( Configuration configuration ) { } } | this . configuration = configuration ; getLoader ( ) . setConfiguration ( configuration ) ; getSaver ( ) . setConfiguration ( configuration ) ; |
public class PipelineApi { /** * Get a Stream of pipelines in a project .
* < pre > < code > GitLab Endpoint : GET / projects / : id / pipelines < / code > < / pre >
* @ param projectIdOrPath the project in the form of an Integer ( ID ) , String ( path ) , or Project instance
* @ param scope the scope of pipeline... | return ( getPipelines ( projectIdOrPath , scope , status , ref , yamlErrors , name , username , orderBy , sort , getDefaultPerPage ( ) ) . stream ( ) ) ; |
public class DocBuilder { /** * Check document header fields .
* @ param fields
* @ throws IOException */
public void configFields ( Configuration conf , String [ ] fields ) throws IllegalArgumentException , IOException { } } | for ( int i = 0 ; i < fields . length ; i ++ ) { fields [ i ] = fields [ i ] . trim ( ) ; if ( "" . equals ( fields [ i ] ) ) { LOG . warn ( "Column " + ( i + 1 ) + " has no header and will be skipped" ) ; } } |
public class RunbookDraftsInner { /** * Publish runbook draft .
* @ param resourceGroupName Name of an Azure Resource group .
* @ param automationAccountName The name of the automation account .
* @ param runbookName The parameters supplied to the publish runbook operation .
* @ throws IllegalArgumentException ... | beginPublishWithServiceResponseAsync ( resourceGroupName , automationAccountName , runbookName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class JBBPTextWriter { /** * Print objects which marked by Bin annotation or successors of JBBPAbstractField .
* < b > NB ! Keep in mind that values of fields will be processed for their attributes before printing
* and for instance a bit field with inversion will be shown as inverted one . < / b >
* @ par... | if ( this . mappedClassObserver == null ) { this . mappedClassObserver = new MappedObjectLogger ( ) ; } ensureNewLineMode ( ) ; for ( final Object obj : objs ) { if ( obj == null ) { write ( "<NULL>" ) ; } else { if ( obj instanceof JBBPAbstractField ) { printAbstractFieldObject ( null , ( JBBPAbstractField ) obj ) ; }... |
public class ExcelUtil { /** * Sax方式读取Excel07
* @ param in 输入流
* @ param sheetIndex Sheet索引 , - 1表示全部Sheet , 0表示第一个Sheet
* @ param rowHandler 行处理器
* @ return { @ link Excel07SaxReader }
* @ since 3.2.0 */
public static Excel07SaxReader read07BySax ( InputStream in , int sheetIndex , RowHandler rowHandler ) { ... | try { return new Excel07SaxReader ( rowHandler ) . read ( in , sheetIndex ) ; } catch ( NoClassDefFoundError e ) { throw new DependencyException ( ObjectUtil . defaultIfNull ( e . getCause ( ) , e ) , PoiChecker . NO_POI_ERROR_MSG ) ; } |
public class InsightClient { /** * Perform a Standard Insight Request with a number .
* @ param number A single phone number that you need insight about in national or international format .
* @ return A { @ link StandardInsightResponse } representing the response from the Nexmo Number Insight API .
* @ throws IO... | return getStandardNumberInsight ( StandardInsightRequest . withNumber ( number ) ) ; |
public class PlatformDependent { /** * This method < strong > MUST < / strong > only be called for { @ link ByteBuffer } s that were allocated via
* { @ link # allocateDirectNoCleaner ( int ) } . */
public static void freeDirectNoCleaner ( ByteBuffer buffer ) { } } | assert USE_DIRECT_BUFFER_NO_CLEANER ; int capacity = buffer . capacity ( ) ; PlatformDependent0 . freeMemory ( PlatformDependent0 . directBufferAddress ( buffer ) ) ; decrementMemoryCounter ( capacity ) ; |
public class ParseNumberSupport { /** * Tag logic */
@ Override public int doEndTag ( ) throws JspException { } } | String input = null ; // determine the input by . . .
if ( valueSpecified ) { // . . . reading ' value ' attribute
input = value ; } else { // . . . retrieving and trimming our body
if ( bodyContent != null && bodyContent . getString ( ) != null ) { input = bodyContent . getString ( ) . trim ( ) ; } } if ( ( input == n... |
public class Smb2QueryInfoRequest { /** * { @ inheritDoc }
* @ see jcifs . internal . CommonServerMessageBlockRequest # size ( ) */
@ Override public int size ( ) { } } | int size = Smb2Constants . SMB2_HEADER_LENGTH + 40 ; if ( this . inputBuffer != null ) { size += this . inputBuffer . size ( ) ; } return size8 ( size ) ; |
public class QueryBuilder { /** * Sets the statement FROM clause in the form of " table " .
* Only necessary for statements being sent to the
* { @ code PublisherQueryLanguageService } . The " FROM " keyword will be
* ignored .
* @ param table the statement from clause without " FROM "
* @ return a reference ... | Preconditions . checkNotNull ( table , "FROM clause cannot be null" ) ; table = removeKeyword ( table , FROM ) ; this . from = table ; return this ; |
public class BiopaxValidatorClient { /** * Converts a biopax - validator XML response to the java object .
* @ param xml input XML data - validation report - to import
* @ return validation report object
* @ throws JAXBException when there is an JAXB unmarshalling error */
public static ValidatorResponse unmarsha... | JAXBContext jaxbContext = JAXBContext . newInstance ( "org.biopax.validator.jaxb" ) ; Unmarshaller un = jaxbContext . createUnmarshaller ( ) ; Source src = new StreamSource ( new StringReader ( xml ) ) ; ValidatorResponse resp = un . unmarshal ( src , ValidatorResponse . class ) . getValue ( ) ; return resp ; |
public class CompletableFuture { /** * Android - changed : hidden */
public static < U > CompletionStage < U > failedStage ( Throwable ex ) { } } | if ( ex == null ) throw new NullPointerException ( ) ; return new MinimalStage < U > ( new AltResult ( ex ) ) ; |
public class LinearModel { /** * 压缩并保存
* @ param modelFile 路径
* @ param ratio 压缩比c ( 压缩掉的体积 , 压缩后体积变为1 - c )
* @ throws IOException */
public void save ( String modelFile , final double ratio ) throws IOException { } } | save ( modelFile , featureMap . entrySet ( ) , ratio ) ; |
public class ViewFrustum { /** * Compute the distance between a point and the given plane .
* @ param i The id of the plane
* @ param x The x coordinate of the point
* @ param y The y coordinate of the point
* @ param z The z coordinate of the point
* @ return The distance */
private float distance ( int i , ... | return frustum [ i ] [ 0 ] * x + frustum [ i ] [ 1 ] * y + frustum [ i ] [ 2 ] * z + frustum [ i ] [ 3 ] ; |
public class Request { /** * Delivers error message to the ErrorListener that the Request was
* initialized with .
* @ param error Error details */
public void deliverError ( JusError error ) { } } | synchronized ( errorListeners ) { for ( RequestListener . ErrorListener errorListener : errorListeners ) { errorListener . onError ( error ) ; } errorListeners . clear ( ) ; } synchronized ( responseListeners ) { responseListeners . clear ( ) ; } |
public class WindowsRegistry { /** * Conversion of strings to / from null - terminated byte arrays .
* @ param string String to convert to null - terminated byte array .
* @ return Null - terminated byte array . */
private static byte [ ] toByteArray ( String string ) { } } | byte [ ] bytes = new byte [ string . length ( ) + 1 ] ; for ( int i = 0 ; i < string . length ( ) ; i ++ ) { bytes [ i ] = ( byte ) string . charAt ( i ) ; } return bytes ; |
public class JCRStoreResource { /** * { @ inheritDoc } */
@ Override protected void getAdditionalInfo ( final ResultSet _rs ) throws SQLException { } } | final String identiferTmp = _rs . getString ( 6 ) ; if ( identiferTmp != null && ! identiferTmp . isEmpty ( ) ) { this . identifier = identiferTmp . trim ( ) ; } |
public class AtomPlacer3D { /** * Gets the unplacedRingHeavyAtom attribute of the AtomPlacer3D object .
* @ param molecule
* @ param atom Description of the Parameter
* @ return The unplacedRingHeavyAtom value */
public IAtom getUnplacedRingHeavyAtom ( IAtomContainer molecule , IAtom atom ) { } } | List < IBond > bonds = molecule . getConnectedBondsList ( atom ) ; IAtom connectedAtom = null ; for ( IBond bond : bonds ) { connectedAtom = bond . getOther ( atom ) ; if ( isUnplacedHeavyAtom ( connectedAtom ) && connectedAtom . getFlag ( CDKConstants . ISINRING ) ) { return connectedAtom ; } } return connectedAtom ; |
public class ExtensionMetadata { /** * Constructs request parameters expressing the extension metadata .
* Ordinarily , this method is called internally during extension
* processing , but you can call this method directly if convenient .
* @ returnthe metadata as parameters */
public RequestParameters asParamete... | RequestParameters params = new RequestParameters ( ) ; if ( title != null ) params . put ( "title" , title ) ; if ( description != null ) params . put ( "description" , description ) ; if ( provider != null ) params . put ( "provider" , provider ) ; if ( version != null ) params . put ( "version" , version ) ; return p... |
public class NearBSpline { /** * Sets the curve using control points given in double precision
* @ param points
* the control points for the curve */
public void setLine ( double ... points ) { } } | path = new GeneralPath ( ) ; path . moveTo ( ( float ) points [ 0 ] , ( float ) points [ 1 ] ) ; segments = new Shape [ points . length / 2 - 1 ] ; for ( int i = 2 ; i < points . length ; ) { switch ( points . length - i ) { case 2 : lastPart = new Line2D . Float ( ( float ) path . getCurrentPoint ( ) . getX ( ) , ( fl... |
public class VirtualNetworksInner { /** * Lists usage stats .
* @ param resourceGroupName The name of the resource group .
* @ param virtualNetworkName The name of the virtual network .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ throws CloudException thrown if the request i... | ServiceResponse < Page < VirtualNetworkUsageInner > > response = listUsageSinglePageAsync ( resourceGroupName , virtualNetworkName ) . toBlocking ( ) . single ( ) ; return new PagedList < VirtualNetworkUsageInner > ( response . body ( ) ) { @ Override public Page < VirtualNetworkUsageInner > nextPage ( String nextPageL... |
public class DTMAxisIterNodeList { /** * Returns the < code > index < / code > th item in the collection . If
* < code > index < / code > is greater than or equal to the number of nodes in
* the list , this returns < code > null < / code > .
* @ param index Index into the collection .
* @ return The node at the... | if ( m_iter != null ) { int node ; int count = m_cachedNodes . size ( ) ; if ( count > index ) { node = m_cachedNodes . elementAt ( index ) ; return m_dtm . getNode ( node ) ; } else if ( m_last == - 1 ) { while ( ( ( node = m_iter . next ( ) ) != DTMAxisIterator . END ) && count <= index ) { m_cachedNodes . addElement... |
public class Signer { /** * produce an encoded signature string */
public String getString ( String str , String tokenSecret , String consumerSecret ) throws InvalidKeyException , NoSuchAlgorithmException { } } | return getString ( str , OAuthParams . HMAC_SHA1 , tokenSecret , consumerSecret ) ; |
public class Bounds { /** * Create a new { @ code Bounds } object with the given extent .
* @ param minLatitudeDegree the minimum latitude
* @ param minLongitudeDegree the minimum longitude
* @ param maxLatitudeDegree the maximum latitude
* @ param maxLongitudeDegree the maximum longitude
* @ return a new { @... | return new Bounds ( Latitude . ofDegrees ( minLatitudeDegree ) , Longitude . ofDegrees ( minLongitudeDegree ) , Latitude . ofDegrees ( maxLatitudeDegree ) , Longitude . ofDegrees ( maxLongitudeDegree ) ) ; |
public class CmsLinkManager { /** * Returns a link < i > from < / i > the URI stored in the provided OpenCms user context
* < i > to < / i > the VFS resource indicated by the given < code > link < / code > in the current site ,
* for use on web pages . < p >
* The provided < code > link < / code > is assumed to b... | return substituteLink ( cms , link , null , false ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.