signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class RequestHttpBase { /** * Returns the server ' s port . */
public int getServerPort ( ) { } } | String host = null ; CharSequence rawHost ; if ( ( rawHost = getHost ( ) ) != null ) { int length = rawHost . length ( ) ; int i ; for ( i = length - 1 ; i >= 0 ; i -- ) { if ( rawHost . charAt ( i ) == ':' ) { int port = 0 ; for ( i ++ ; i < length ; i ++ ) { char ch = rawHost . charAt ( i ) ; if ( '0' <= ch && ch <= ... |
public class FileSystem { /** * Make the given filename relative to the given root path .
* @ param filenameToMakeRelative is the name to make relative .
* @ param rootPath is the root path from which the relative path will be set .
* @ return a relative filename .
* @ throws IOException when is is impossible t... | if ( filenameToMakeRelative == null || rootPath == null ) { throw new IllegalArgumentException ( ) ; } final String basename = largeBasename ( filenameToMakeRelative ) ; final URL dir = dirname ( filenameToMakeRelative ) ; final String [ ] parts1 = split ( dir ) ; final String [ ] parts2 = split ( rootPath ) ; final St... |
public class MBeanServerProxy { /** * { @ inheritDoc } */
public Object getAttribute ( ObjectName name , String attribute ) throws MBeanException , AttributeNotFoundException , InstanceNotFoundException , ReflectionException { } } | return delegate . getAttribute ( name , attribute ) ; |
public class AutoDetector { /** * 递归加载目录下面的所有资源
* 并监控目录变化
* @ param path 目录路径
* @ param resourceLoader 资源自定义加载逻辑
* @ param resourcePaths 资源的所有路径 , 用于资源监控
* @ return 目录所有资源内容 */
private static List < String > loadAndWatchDir ( Path path , ResourceLoader resourceLoader , String resourcePaths ) { } } | final List < String > result = new ArrayList < > ( ) ; try { Files . walkFileTree ( path , new SimpleFileVisitor < Path > ( ) { @ Override public FileVisitResult visitFile ( Path file , BasicFileAttributes attrs ) throws IOException { result . addAll ( load ( file . toAbsolutePath ( ) . toString ( ) ) ) ; return FileVi... |
public class Internal { /** * Returns the length , in bytes , of the qualifier : 2 or 4 bytes
* @ param qualifier The qualifier to parse
* @ param offset An offset within the byte array
* @ return The length of the qualifier in bytes
* @ throws IllegalArgumentException if the qualifier is null or the offset fal... | validateQualifier ( qualifier , offset ) ; if ( ( qualifier [ offset ] & Const . MS_BYTE_FLAG ) == Const . MS_BYTE_FLAG ) { if ( ( offset + 4 ) > qualifier . length ) { throw new IllegalArgumentException ( "Detected a millisecond flag but qualifier length is too short" ) ; } return 4 ; } else { if ( ( offset + 2 ) > qu... |
public class ApiOvhEmaildomain { /** * Create new ACL
* REST : POST / email / domain / { domain } / acl
* @ param accountId [ required ] Deleguates rights to
* @ param domain [ required ] Name of your domain name */
public OvhAcl domain_acl_POST ( String domain , String accountId ) throws IOException { } } | String qPath = "/email/domain/{domain}/acl" ; StringBuilder sb = path ( qPath , domain ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "accountId" , accountId ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhAcl . class ) ; |
public class ModelGenerator { /** * Creates JS code based on the provided { @ link ModelBean } in the specified
* { @ link OutputFormat } . Code can be generated in pretty or compressed format . The
* generated code is cached unless debug is true . A second call to this method with
* the same model name and forma... | OutputConfig outputConfig = new OutputConfig ( ) ; outputConfig . setOutputFormat ( format ) ; outputConfig . setDebug ( debug ) ; return generateJavascript ( model , outputConfig ) ; |
public class FileSaverView { /** * Update the file chooser ' s filter settings . */
protected void setFileFilter ( ) { } } | m_fileChooser . setAcceptAllFileFilterUsed ( false ) ; String [ ] extensions = m_model . getExtensions ( ) ; for ( int extensionIndex = 0 ; extensionIndex < extensions . length ; extensionIndex += 2 ) { m_fileChooser . setFileFilter ( new FileNameExtensionFilter ( extensions [ extensionIndex ] . toUpperCase ( ) + " Fil... |
public class Utils4J { /** * Encrypts some data based on a password .
* @ param algorithm
* PBE algorithm like " PBEWithMD5AndDES " or " PBEWithMD5AndTripleDES " - Cannot be < code > null < / code > .
* @ param data
* Data to encrypt - Cannot be < code > null < / code > .
* @ param password
* Password - Can... | checkNotNull ( "algorithm" , algorithm ) ; checkNotNull ( "data" , data ) ; checkNotNull ( "password" , password ) ; checkNotNull ( "salt" , salt ) ; try { final Cipher cipher = createCipher ( algorithm , Cipher . ENCRYPT_MODE , password , salt , count ) ; return cipher . doFinal ( data ) ; } catch ( final Exception ex... |
public class ProxyConnection { /** * Keep < b > Proxy < / b > Alive , then return or close < b > Client < / b > < p >
* Must Follow a " < code > server . onComplete . accept ( proxy ) < / code > "
* @ param closed < code > false < / code > to return Client to pool and < code > true < / code > to close Client */
voi... | attributeMap . clear ( ) ; request . reset ( ) ; handler . setBufferSize ( MAX_BUFFER_SIZE ) ; server . proxyTimeoutQueue . offer ( this ) ; // " proxy " may close or return " client " before reset
if ( logLevel >= LOG_VERBOSE && client != null ) { Log . v ( ( closed ? "Client Closed" : "Client Kept Alive" ) + " and Re... |
public class AcceptMimeTypeList { /** * Return the associated quality of the given MIME type using the fallback
* mechanism .
* @ param aMimeType
* The MIME type to query . May be < code > null < / code > .
* @ return 0 means not accepted , 1 means fully accepted . If the passed MIME
* type is < code > null <... | if ( aMimeType == null ) return QValue . MIN_QUALITY ; return getQValueOfMimeType ( aMimeType ) . getQuality ( ) ; |
public class MultiNote { /** * Returns the note with the biggest duration from the given array of notes .
* @ param notes An array of notes .
* @ return The note with the biggest duration from the given array of notes .
* @ see Note # getDuration ( ) */
public static Note getLongestNote ( Note [ ] notes ) { } } | float length = 0 ; float currentNoteLength = 0 ; Note maxNote = null ; for ( int i = 0 ; i < notes . length && maxNote == null ; i ++ ) { currentNoteLength = notes [ i ] . getDuration ( ) ; if ( currentNoteLength > length ) maxNote = notes [ i ] ; } return maxNote ; |
public class IcalSchema { public void applyParamsSchema ( String rule , Map < String , String > params , IcalObject out ) throws ParseException { } } | for ( Map . Entry < String , String > param : params . entrySet ( ) ) { String name = param . getKey ( ) ; applyParamSchema ( rule , name , param . getValue ( ) , out ) ; } |
public class CdiUtils { /** * Retrieves the bean for the given class from the bean manager available
* via JNDI qualified with the given annotation ( s ) .
* @ param < T > The type of the bean to look for
* @ param clazz The class of the bean to look for
* @ param annotationClasses The qualifiers the bean for t... | return getBean ( getBeanManager ( ) , clazz , annotations ) ; |
public class EnvelopeSchemaConverter { /** * Get payload field from GenericRecord and convert to byte array */
public byte [ ] getPayload ( GenericRecord inputRecord , String payloadFieldName ) { } } | ByteBuffer bb = ( ByteBuffer ) inputRecord . get ( payloadFieldName ) ; byte [ ] payloadBytes ; if ( bb . hasArray ( ) ) { payloadBytes = bb . array ( ) ; } else { payloadBytes = new byte [ bb . remaining ( ) ] ; bb . get ( payloadBytes ) ; } String hexString = new String ( payloadBytes , StandardCharsets . UTF_8 ) ; r... |
public class DefaultDatastoreReader { /** * Loads and returns the entities with the given < b > names ( a . k . a String IDs ) < / b > . The entities are
* assumed to be root entities ( no parent ) . The entity kind is determined from the supplied class .
* @ param entityClass
* the entity class
* @ param ident... | Key [ ] nativeKeys = stringListToNativeKeys ( entityClass , identifiers ) ; return fetch ( entityClass , nativeKeys ) ; |
public class RequestHelper { /** * Utility method that determines whether the request contains
* < code > multipart / form - data < / code > content .
* @ param sContentType
* The content type to be checked . May be < code > null < / code > .
* @ return < code > true < / code > if the passed , lowercased conten... | return sContentType != null && sContentType . toLowerCase ( Locale . US ) . startsWith ( MULTIPART_FORM_DATA ) ; |
public class ZonedDateTime { /** * Returns a copy of this date - time changing the zone offset to the
* later of the two valid offsets at a local time - line overlap .
* This method only has any effect when the local time - line overlaps , such as
* at an autumn daylight savings cutover . In this scenario , there... | ZoneOffsetTransition trans = getZone ( ) . getRules ( ) . getTransition ( toLocalDateTime ( ) ) ; if ( trans != null ) { ZoneOffset laterOffset = trans . getOffsetAfter ( ) ; if ( laterOffset . equals ( offset ) == false ) { return new ZonedDateTime ( dateTime , laterOffset , zone ) ; } } return this ; |
public class DerbyFileSystem { /** * { @ inheritDoc } */
@ Override public void close ( ) throws FileSystemException { } } | super . close ( ) ; if ( shutdownOnClose ) { try { ( ( DerbyConnectionHelper ) conHelper ) . shutDown ( driver ) ; } catch ( SQLException e ) { throw new FileSystemException ( "failed to shutdown Derby" , e ) ; } } |
public class Analyser { /** * Basic sanity - checking to ensure we can fulfil the & # 64 ; FreeBuilder contract for this type . */
private void verifyType ( TypeElement type , PackageElement pkg ) throws CannotGenerateCodeException { } } | if ( pkg . isUnnamed ( ) ) { messager . printMessage ( ERROR , "FreeBuilder does not support types in unnamed packages" , type ) ; throw new CannotGenerateCodeException ( ) ; } switch ( type . getNestingKind ( ) ) { case TOP_LEVEL : break ; case MEMBER : if ( ! type . getModifiers ( ) . contains ( Modifier . STATIC ) )... |
public class LoggerWrapper { /** * Returns or creates a logger that forwards messages to a { @ link ProgressManager } . If the
* logger does not yet have any progress manager assigned , the given one will be used .
* @ param name The logger ' s unique name . By default the calling class ' name is used .
* @ param... | LoggerWrapper ret = getLogger ( name ) ; if ( ret . getProgressManager ( ) == null || ret . getProgressManager ( ) == LoggerWrapper . defaultProgressManager ) { ret . setProgressManager ( pm ) ; } return ret ; |
public class Console { /** * Displays list of availables repositories .
* @ param names names of repositories . */
public void showRepositories ( Collection < RepositoryName > names ) { } } | repositoriesList . show ( names ) ; display ( repositoriesList ) ; this . hideRepository ( ) ; |
public class RepeatOnErrorUntilTrue { /** * Sleep amount of time in between iterations . */
private void doAutoSleep ( ) { } } | if ( autoSleep > 0 ) { log . info ( "Sleeping " + autoSleep + " milliseconds" ) ; try { Thread . sleep ( autoSleep ) ; } catch ( InterruptedException e ) { log . error ( "Error during doc generation" , e ) ; } log . info ( "Returning after " + autoSleep + " milliseconds" ) ; } |
public class FnDateTime { /** * It converts a { @ link Calendar } into a { @ link DateTime } in the given { @ link DateTimeZone }
* @ param dateTimeZone the the time zone ( { @ link DateTimeZone } ) to be used
* @ return the { @ link DateTime } created from the input and arguments */
public static final < T extends... | return new CalendarToDateTime < T > ( dateTimeZone ) ; |
public class ConcurrentLinkedHashMap { /** * Gets the entry ' s total number .
* @ return entry ' s number */
@ Override public int size ( ) { } } | try { lockAllSegments ( ) ; int size = 0 ; for ( LinkedHashMapSegment < K , V > seg : segments ) { size += seg . size ( ) ; } return size ; } finally { unlockAllSegments ( ) ; } |
public class AnnisBaseUI { /** * Handle common errors like database / service connection problems and display a unified
* error message .
* This will not log the exception , only display information to the user .
* @ param ex
* @ return True if error was handled , false otherwise . */
public static boolean hand... | if ( ex != null ) { Throwable rootCause = ex ; while ( rootCause . getCause ( ) != null ) { rootCause = rootCause . getCause ( ) ; } if ( rootCause instanceof UniformInterfaceException ) { UniformInterfaceException uniEx = ( UniformInterfaceException ) rootCause ; if ( uniEx . getResponse ( ) != null ) { if ( uniEx . g... |
public class AmazonRDSClient { /** * Describes all available options .
* @ param describeOptionGroupOptionsRequest
* @ return Result of the DescribeOptionGroupOptions operation returned by the service .
* @ sample AmazonRDS . DescribeOptionGroupOptions
* @ see < a href = " http : / / docs . aws . amazon . com /... | request = beforeClientExecution ( request ) ; return executeDescribeOptionGroupOptions ( request ) ; |
public class FastFullList { /** * Postcondition : this . list . get ( this . list . size ( ) - 1 ) ! = blankElement */
private void removeTrail ( ) { } } | int last = this . size - 1 ; while ( last >= 0 && this . arr [ last ] == this . blankElement ) { last -- ; } this . size = last + 1 ; |
public class Variables { /** * Type - safe wrapper around setVariable which sets only one framed vertex . */
public void setSingletonVariable ( String name , WindupVertexFrame frame ) { } } | setVariable ( name , Collections . singletonList ( frame ) ) ; |
public class JsonConvert { /** * - - - - - convertTo - - - - - */
@ Override public String convertTo ( final Object value ) { } } | if ( value == null ) return "null" ; return convertTo ( value . getClass ( ) , value ) ; |
public class TinValidator { /** * check the Tax Identification Number number , country version for Estonia .
* @ param ptin vat id to check
* @ return true if checksum is ok */
private boolean checkEeTin ( final String ptin ) { } } | final int checkSum = ptin . charAt ( 10 ) - '0' ; int calculatedCheckSum = ( ( ptin . charAt ( 0 ) - '0' ) * 1 + ( ptin . charAt ( 1 ) - '0' ) * 2 + ( ptin . charAt ( 2 ) - '0' ) * 3 + ( ptin . charAt ( 3 ) - '0' ) * 4 + ( ptin . charAt ( 4 ) - '0' ) * 5 + ( ptin . charAt ( 5 ) - '0' ) * 6 + ( ptin . charAt ( 6 ) - '0'... |
public class Convolution { /** * ND Convolution
* @ param input the input to op
* @ param kernel the kerrnel to op with
* @ param type the opType of convolution
* @ param axes the axes to do the convolution along
* @ return the convolution of the given input and kernel */
public static INDArray convn ( INDArr... | return Nd4j . getConvolution ( ) . convn ( input , kernel , type , axes ) ; |
public class HttpUtils { /** * Execute http response .
* @ param url the url
* @ param method the method
* @ param basicAuthUsername the basic auth username
* @ param basicAuthPassword the basic auth password
* @ param headers the headers
* @ return the http response */
public static HttpResponse execute ( ... | return execute ( url , method , basicAuthUsername , basicAuthPassword , new HashMap < > ( ) , headers ) ; |
public class WordVectorTrainer { /** * This is cheap and moderate in quality .
* @ param max - Upper range limit .
* @ return int between 0 - ( max - 1 ) . */
private int cheapRandInt ( int max ) { } } | _seed ^= ( _seed << 21 ) ; _seed ^= ( _seed >>> 35 ) ; _seed ^= ( _seed << 4 ) ; int r = ( int ) _seed % max ; return r > 0 ? r : - r ; |
public class PhotosApi { /** * Get permissions for a photo .
* < br >
* This method requires authentication with ' read ' permission .
* @ param photoId Required . The id of the photo to fetch permissions for .
* @ return object with permissions for the photo .
* @ throws JinxException if the photo id is null... | JinxUtils . validateParams ( photoId ) ; Map < String , String > params = new TreeMap < > ( ) ; params . put ( "method" , "flickr.photos.getPerms" ) ; params . put ( "photo_id" , photoId ) ; return jinx . flickrGet ( params , PhotoPerms . class ) ; |
public class ModelUtils { /** * Returns an { @ link AnnotationMirror } for the annotation of type { @ code annotationClassName } on
* { @ code element } , or { @ link Optional # empty ( ) } if no such annotation exists . */
public static Optional < AnnotationMirror > findAnnotationMirror ( Element element , String an... | for ( AnnotationMirror annotationMirror : element . getAnnotationMirrors ( ) ) { TypeElement annotationTypeElement = ( TypeElement ) ( annotationMirror . getAnnotationType ( ) . asElement ( ) ) ; if ( annotationTypeElement . getQualifiedName ( ) . contentEquals ( annotationClassName ) ) { return Optional . of ( annotat... |
public class PropertiesReader { /** * Reads a float property .
* @ param property The property name .
* @ return The property value .
* @ throws ConfigurationException if the property is not present */
public float getFloat ( String property ) { } } | return getProperty ( property , value -> { try { return Float . valueOf ( value ) ; } catch ( NumberFormatException e ) { throw new ConfigurationException ( "malformed property value: " + property + " must be a float" ) ; } } ) ; |
public class AbstractTemplateView { /** * Returns the width ratio .
* @ return the width ratio */
protected NumberBinding bindWidth ( ) { } } | return Bindings . divide ( model ( ) . localFacade ( ) . globalFacade ( ) . application ( ) . stage ( ) . widthProperty ( ) , 1024 ) ; |
public class ResourcePath { /** * Returns the complete resource path string .
* @ return resource path string */
public String getResourcePath ( ) { } } | final StringBuilder sb = new StringBuilder ( ) ; for ( final String r : resource ) sb . append ( r + '/' ) ; return sb . substring ( 0 , Math . max ( 0 , sb . length ( ) - 1 ) ) ; |
public class JNvgraph { /** * Update the vertex set # setnum with the data in * vertexData , sets have 0 - based index
* Conversions are not sopported so nvgraphTopologyType _ t should match the graph structure */
public static int nvgraphSetVertexData ( nvgraphHandle handle , nvgraphGraphDescr descrG , Pointer verte... | return checkResult ( nvgraphSetVertexDataNative ( handle , descrG , vertexData , setnum ) ) ; |
public class StructrPath { /** * - - - - - protected methods - - - - - */
protected String normalizeFileNameForJavaIdentifier ( final String src ) { } } | String dst = src ; dst = dst . replace ( '/' , '_' ) ; dst = dst . replace ( '.' , '_' ) ; dst = dst . replace ( '-' , '_' ) ; dst = dst . replace ( '+' , '_' ) ; dst = dst . replace ( '~' , '_' ) ; dst = dst . replace ( '#' , '_' ) ; dst = dst . replace ( '\'' , '_' ) ; dst = dst . replace ( '\"' , '_' ) ; dst = dst .... |
public class VimGenerator2 { /** * Replies the script for detecting the SARL files .
* @ return the content of the " ftdetect " script . */
protected CharSequence getFileTypeDetectionScript ( ) { } } | return concat ( "\" Vim filetype-detection file" , // $ NON - NLS - 1 $
"\" Language: " + getLanguageSimpleName ( ) , // $ NON - NLS - 1 $
"\" Version: " + getLanguageVersion ( ) , // $ NON - NLS - 1 $
"" , // $ NON - NLS - 1 $
"au BufRead,BufNewFile *." + getLanguage ( ) . getFileExtensions ( ) . get ( 0 ) // $ NON - ... |
public class Call { /** * Executes a method on the target object which returns Object . Parameters must match
* those of the method .
* @ param methodName the name of the method
* @ param optionalParameters the ( optional ) parameters of the method .
* @ return the result of the method execution */
public stati... | return new Call < Object , Object > ( Types . OBJECT , methodName , VarArgsUtil . asOptionalObjectArray ( Object . class , optionalParameters ) ) ; |
public class CPTaxCategoryPersistenceImpl { /** * Returns the last cp tax category in the ordered set where groupId = & # 63 ; .
* @ param groupId the group ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return the last matching cp tax category
* @ ... | CPTaxCategory cpTaxCategory = fetchByGroupId_Last ( groupId , orderByComparator ) ; if ( cpTaxCategory != null ) { return cpTaxCategory ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg . append ( "}" ) ; throw new ... |
public class Atom10Parser { /** * Parse entry from reader . */
public static Entry parseEntry ( final Reader rd , final String baseURI , final Locale locale ) throws JDOMException , IOException , IllegalArgumentException , FeedException { } } | // Parse entry into JDOM tree
final SAXBuilder builder = new SAXBuilder ( ) ; final Document entryDoc = builder . build ( rd ) ; final Element fetchedEntryElement = entryDoc . getRootElement ( ) ; fetchedEntryElement . detach ( ) ; // Put entry into a JDOM document with ' feed ' root so that Rome can
// handle it
final... |
public class MediaIntents { /** * Creates an intent that will launch the camera to take a picture that ' s saved to a temporary file so you can use
* it directly without going through the gallery .
* @ param tempFile the file that should be used to temporarily store the picture
* @ return the intent */
public sta... | Intent intent = new Intent ( MediaStore . ACTION_IMAGE_CAPTURE ) ; intent . putExtra ( MediaStore . EXTRA_OUTPUT , Uri . fromFile ( tempFile ) ) ; return intent ; |
public class Gauge { /** * Defines if the minor tickmarks should be drawn
* @ param VISIBLE */
public void setMinorTickMarksVisible ( final boolean VISIBLE ) { } } | if ( null == minorTickMarksVisible ) { _minorTickMarksVisible = VISIBLE ; fireUpdateEvent ( REDRAW_EVENT ) ; } else { minorTickMarksVisible . set ( VISIBLE ) ; } |
public class BELScriptParser { /** * BELScript . g : 63:1 : set _ statement _ group : ' SET ' STATEMENT _ GROUP _ KEYWORD ' = ' ( quoted _ value | OBJECT _ IDENT ) ; */
public final BELScriptParser . set_statement_group_return set_statement_group ( ) throws RecognitionException { } } | BELScriptParser . set_statement_group_return retval = new BELScriptParser . set_statement_group_return ( ) ; retval . start = input . LT ( 1 ) ; Object root_0 = null ; Token string_literal19 = null ; Token STATEMENT_GROUP_KEYWORD20 = null ; Token char_literal21 = null ; Token OBJECT_IDENT23 = null ; BELScriptParser . q... |
public class SOCPLogarithmicBarrier { /** * Create the barrier function for the Phase I .
* It is an instance of this class for the constraints :
* < br > | | Ai . x + bi | | < ci . x + di + t , i = 1 , . . . , m
* @ see " S . Boyd and L . Vandenberghe , Convex Optimization , 11.6.2" */
@ Override public BarrierF... | final int dimPh1 = dim + 1 ; List < SOCPConstraintParameters > socpConstraintParametersPh1List = new ArrayList < SOCPConstraintParameters > ( ) ; SOCPLogarithmicBarrier bfPh1 = new SOCPLogarithmicBarrier ( socpConstraintParametersPh1List , dimPh1 ) ; for ( int i = 0 ; i < socpConstraintParametersList . size ( ) ; i ++ ... |
public class Utils { /** * Formats a messages containing { 0 } , { 1 } . . . etc . Used for translation .
* @ param msg a message with placeholders
* @ param params objects used to populate the placeholders
* @ return a formatted message */
public static String formatMessage ( String msg , Object ... params ) { }... | try { // required by MessageFormat , single quotes break string interpolation !
msg = StringUtils . replace ( msg , "'" , "''" ) ; return StringUtils . isBlank ( msg ) ? "" : MessageFormat . format ( msg , params ) ; } catch ( IllegalArgumentException e ) { return msg ; } |
public class DBEngineVersion { /** * A list of features supported by the DB engine . Supported feature names include the following .
* < ul >
* < li >
* s3Import
* < / li >
* < / ul >
* @ return A list of features supported by the DB engine . Supported feature names include the following . < / p >
* < ul ... | if ( supportedFeatureNames == null ) { supportedFeatureNames = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return supportedFeatureNames ; |
public class StoreStats { /** * Method to service public recording APIs
* @ param op Operation being tracked
* @ param timeNS Duration of operation
* @ param numEmptyResponses Number of empty responses being sent back ,
* i . e . : requested keys for which there were no values ( GET and GET _ ALL only )
* @ p... | counters . get ( op ) . addRequest ( timeNS , numEmptyResponses , valueSize , keySize , getAllAggregateRequests ) ; if ( logger . isTraceEnabled ( ) && ! storeName . contains ( "aggregate" ) && ! storeName . contains ( "voldsys$" ) ) logger . trace ( "Store '" + storeName + "' logged a " + op . toString ( ) + " request... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcDistributionControlElement ( ) { } } | if ( ifcDistributionControlElementEClass == null ) { ifcDistributionControlElementEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 181 ) ; } return ifcDistributionControlElementEClass ; |
public class CSSMediaRuleImpl { /** * { @ inheritDoc } */
@ Override public String getCssText ( ) { } } | final StringBuilder sb = new StringBuilder ( "@media " ) ; sb . append ( getMediaList ( ) . getMediaText ( ) ) ; sb . append ( " {" ) ; for ( int i = 0 ; i < getCssRules ( ) . getLength ( ) ; i ++ ) { final AbstractCSSRuleImpl rule = getCssRules ( ) . getRules ( ) . get ( i ) ; sb . append ( rule . getCssText ( ) ) . a... |
public class cachepolicy_stats { /** * Use this API to fetch the statistics of all cachepolicy _ stats resources that are configured on netscaler . */
public static cachepolicy_stats [ ] get ( nitro_service service ) throws Exception { } } | cachepolicy_stats obj = new cachepolicy_stats ( ) ; cachepolicy_stats [ ] response = ( cachepolicy_stats [ ] ) obj . stat_resources ( service ) ; return response ; |
public class PeopleApi { /** * Returns information for the calling user related to photo uploads .
* < br >
* This method requires authentication with ' read ' permission .
* @ return upload status information for the calling user .
* @ throws JinxException if there are any errors .
* @ see < a href = " https... | Map < String , String > params = new TreeMap < > ( ) ; params . put ( "method" , "flickr.people.getUploadStatus" ) ; return jinx . flickrGet ( params , UploadStatus . class ) ; |
public class AcadColor { /** * Initialize an Autocad color table
* @ return AcadColor [ ] Object of this class that represents Acad color to Java color
* conversion */
public static AcadColor [ ] initTable ( ) { } } | colors = new AcadColor [ 256 ] ; new AcadColor ( 0 , 0 , 0 , 0 , 0 , 0 , 0 ) ; new AcadColor ( 1 , 1 , 0 , 0 , 255 , 0 , 0 ) ; new AcadColor ( 2 , 1 , 1 , 0 , 255 , 255 , 0 ) ; new AcadColor ( 3 , 0 , 1 , 0 , 0 , 255 , 0 ) ; new AcadColor ( 4 , 0 , 1 , 1 , 0 , 255 , 255 ) ; new AcadColor ( 5 , 0 , 0 , 1 , 0 , 0 , 255 )... |
public class DDLCompiler { /** * Drop the dr conflicts table if A / A is disabled */
private void dropDRConflictTablesIfNeeded ( StringBuilder sb ) { } } | if ( hasConflictTableInSchema ( m_schema , CatalogUtil . DR_CONFLICTS_PARTITIONED_EXPORT_TABLE ) ) { sb . append ( "DROP STREAM " + CatalogUtil . DR_CONFLICTS_PARTITIONED_EXPORT_TABLE + ";\n" ) ; } if ( hasConflictTableInSchema ( m_schema , CatalogUtil . DR_CONFLICTS_REPLICATED_EXPORT_TABLE ) ) { sb . append ( "DROP ST... |
public class VersionFactory { /** * Get a version range */
public IVersionRange getRange ( String vstring ) throws InvalidRangeException { } } | if ( vstring == null || vstring . isEmpty ( ) ) { if ( strict ) { throw new InvalidRangeException ( "Cannot have an empty version" ) ; } else { IVersion version = new NamedVersion ( "" ) ; return new VersionSet ( version ) ; } } try { InputStream stream = new ByteArrayInputStream ( vstring . getBytes ( StandardCharsets... |
public class StandardAnnotationMaps { /** * Gets all the DynamoDB annotations ; method annotations override field
* level annotations which override class / type level annotations . */
static final < T > FieldMap < T > of ( Method getter , String defaultName ) { } } | final Class < T > targetType = ( Class < T > ) getter . getReturnType ( ) ; final String fieldName = StandardBeanProperties . fieldNameOf ( getter ) ; Field declaredField = null ; try { declaredField = getter . getDeclaringClass ( ) . getDeclaredField ( fieldName ) ; } catch ( final SecurityException e ) { throw new Dy... |
public class ScanDynamicStoreAdapter { /** * 将一个配置回调item写到map里 */
private static void addOne2InverseMap ( DisconfKey disconfKey , Map < DisconfKey , List < IDisconfUpdate > > inverseMap , IDisconfUpdate iDisconfUpdate ) { } } | // 忽略的key 应该忽略掉
if ( DisClientConfig . getInstance ( ) . getIgnoreDisconfKeySet ( ) . contains ( disconfKey . getKey ( ) ) ) { return ; } List < IDisconfUpdate > serviceList ; if ( inverseMap . containsKey ( disconfKey ) ) { inverseMap . get ( disconfKey ) . add ( iDisconfUpdate ) ; } else { serviceList = new ArrayList... |
public class ItemAPI { /** * Returns all the values for an item , with the additional data provided by
* the get item operation .
* @ param itemId
* The id of the item
* @ return The values on the item */
public List < FieldValuesView > getItemValues ( int itemId ) { } } | return getResourceFactory ( ) . getApiResource ( "/item/" + itemId + "/value/" ) . get ( new GenericType < List < FieldValuesView > > ( ) { } ) ; |
public class StringUtil { /** * remove all white spaces followed by whitespaces
* @ param str string to translate
* @ return translated string */
public static String suppressWhiteSpace ( String str ) { } } | int len = str . length ( ) ; StringBuilder sb = new StringBuilder ( len ) ; // boolean wasWS = false ;
char c ; char buffer = 0 ; for ( int i = 0 ; i < len ; i ++ ) { c = str . charAt ( i ) ; if ( c == '\n' || c == '\r' ) buffer = '\n' ; else if ( isWhiteSpace ( c ) ) { if ( buffer == 0 ) buffer = c ; } else { if ( buf... |
public class ChainedIOException { /** * Prints this exception ' s stack trace to a print writer .
* If this exception has a root exception ; the stack trace of the
* root exception is printed to the print writer instead .
* @ param pw The non - null print writer to which to print . */
public void printStackTrace ... | if ( exception != null ) { String superString = getLocalMessage ( ) ; synchronized ( pw ) { pw . print ( superString ) ; pw . print ( ( superString . endsWith ( "." ) ? " Caused by " : ". Caused by " ) ) ; exception . printStackTrace ( pw ) ; } } else { super . printStackTrace ( pw ) ; } |
public class Base64 { /** * Decodes a byte [ ] containing characters in the Base - N alphabet .
* @ param pArray A byte array containing Base - N character data
* @ return a byte array containing binary data */
public Base64Context decode ( final byte [ ] pArray , Base64Context ctx ) throws FileParsingException { }... | return decode ( pArray , 0 , pArray . length , ctx ) ; |
public class Router { /** * Adds a new route to the router
* @ param route The route to add */
public static void addRoute ( MangooRoute route ) { } } | Objects . requireNonNull ( route , Required . ROUTE . toString ( ) ) ; Preconditions . checkArgument ( routes . size ( ) <= MAX_ROUTES , "Maximum of " + MAX_ROUTES + " routes reached" ) ; routes . add ( route ) ; if ( route instanceof RequestRoute ) { RequestRoute requestRoute = ( RequestRoute ) route ; if ( requestRou... |
public class ApptentiveInternal { /** * region Engagement Manifest Data */
private void storeManifestResponse ( Context context , String manifest ) { } } | try { File file = new File ( ApptentiveLog . getLogsDirectory ( context ) , Constants . FILE_APPTENTIVE_ENGAGEMENT_MANIFEST ) ; Util . writeText ( file , manifest ) ; } catch ( Exception e ) { ApptentiveLog . e ( CONVERSATION , e , "Exception while trying to save engagement manifest data" ) ; logException ( e ) ; } |
public class PathMappingResultBuilder { /** * Adds a decoded path parameter . */
public PathMappingResultBuilder decodedParam ( String name , String value ) { } } | params . put ( requireNonNull ( name , "name" ) , requireNonNull ( value , "value" ) ) ; return this ; |
public class TextArea { /** * Render the TextArea .
* @ throws JspException if a JSP exception has occurred */
public int doEndTag ( ) throws JspException { } } | ServletRequest req = pageContext . getRequest ( ) ; Object textObject = null ; // Get the value of the data source . The object will not be null .
Object val = evaluateDataSource ( ) ; textObject = ( val != null ) ? val : "" ; assert ( textObject != null ) ; // setup the rest of the state .
ByRef ref = new ByRef ( ) ; ... |
public class FilterFileSystem { /** * The src file is under FS , and the dst is on the local disk .
* Copy it from FS control to the local dst name .
* delSrc indicates if the src will be removed or not . */
public void copyToLocalFile ( boolean delSrc , Path src , Path dst ) throws IOException { } } | fs . copyToLocalFile ( delSrc , src , dst ) ; |
public class SecretShare { /** * Combine the shares generated by the split to recover the secret .
* @ param usetheseshares shares to use - only the first " K " of size ( ) will be used
* @ return the combine output instance [ which in turn contains the recovered secret ] */
public CombineOutput combine ( final Lis... | CombineOutput ret = null ; sanityCheckPublicInfos ( publicInfo , usetheseshares ) ; if ( true ) { println ( " SOLVING USING THESE SHARES, mod=" + publicInfo . getPrimeModulus ( ) ) ; for ( ShareInfo si : usetheseshares ) { println ( " " + si . share ) ; } println ( "end SOLVING USING THESE SHARES" ) ; } if ( publicIn... |
public class STUN { /** * Check if the server support STUN Service .
* @ param connection the connection
* @ return true if the server support STUN
* @ throws SmackException
* @ throws XMPPException
* @ throws InterruptedException */
public static boolean serviceAvailable ( XMPPConnection connection ) throws ... | if ( ! connection . isConnected ( ) ) { return false ; } LOGGER . fine ( "Service listing" ) ; ServiceDiscoveryManager disco = ServiceDiscoveryManager . getInstanceFor ( connection ) ; DiscoverItems items = disco . discoverItems ( connection . getXMPPServiceDomain ( ) ) ; for ( DiscoverItems . Item item : items . getIt... |
public class IntervalTree { /** * Removes an interval from the tree , if it was stored in it . This operation may cause the
* { @ link TreeNode # deleteNode ( TreeNode ) deletion of a node } , which in turn may cause
* rebalancing of the tree and the { @ link TreeNode # assimilateOverlappingIntervals ( TreeNode ) a... | if ( interval . isEmpty ( ) || root == null ) return false ; int sizeBeforeOperation = size ; root = TreeNode . removeInterval ( this , root , interval ) ; return size == sizeBeforeOperation ; |
public class GroupCertificateAuthorityPropertiesMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GroupCertificateAuthorityProperties groupCertificateAuthorityProperties , ProtocolMarshaller protocolMarshaller ) { } } | if ( groupCertificateAuthorityProperties == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( groupCertificateAuthorityProperties . getGroupCertificateAuthorityArn ( ) , GROUPCERTIFICATEAUTHORITYARN_BINDING ) ; protocolMarshaller . marshall ( ... |
public class PactDslRootValue { /** * Value that must be a boolean
* @ param example example boolean to use for generated bodies */
public static PactDslRootValue booleanType ( Boolean example ) { } } | PactDslRootValue value = new PactDslRootValue ( ) ; value . setValue ( example ) ; value . setMatcher ( TypeMatcher . INSTANCE ) ; return value ; |
public class StackMachine { /** * STATE _ CHECK _ VAL */
protected final boolean stateCheckVal ( int s , int snum ) { } } | if ( stateCheckBuff != null ) { int x = stateCheckPos ( s , snum ) ; return ( stateCheckBuff [ x / 8 ] & ( 1 << ( x % 8 ) ) ) != 0 ; } return false ; |
public class InputMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Input input , ProtocolMarshaller protocolMarshaller ) { } } | if ( input == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( input . getAudioSelectorGroups ( ) , AUDIOSELECTORGROUPS_BINDING ) ; protocolMarshaller . marshall ( input . getAudioSelectors ( ) , AUDIOSELECTORS_BINDING ) ; protocolMarshaller ... |
public class ForwardingClient { /** * Get the active X11 forwarding channels .
* @ return ActiveTunnel [ ]
* @ throws IOException */
public ActiveTunnel [ ] getX11ForwardingTunnels ( ) throws IOException { } } | if ( incomingtunnels . containsKey ( X11_KEY ) ) { Vector < ActiveTunnel > v = incomingtunnels . get ( X11_KEY ) ; ActiveTunnel [ ] t = new ActiveTunnel [ v . size ( ) ] ; v . copyInto ( t ) ; return t ; } return new ActiveTunnel [ ] { } ; |
public class GetCommentsForComparedCommitRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetCommentsForComparedCommitRequest getCommentsForComparedCommitRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getCommentsForComparedCommitRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getCommentsForComparedCommitRequest . getRepositoryName ( ) , REPOSITORYNAME_BINDING ) ; protocolMarshaller . marshall ( getCommentsForComparedCommit... |
public class CR { /** * Returns the set of concepts associated to the concept in a
* { @ link Context } by role r .
* @ param r
* The role
* @ return The set of concepts associated to the concept in the context . */
public IConceptSet lookupConcept ( int r ) { } } | if ( r >= data . length ) { return IConceptSet . EMPTY_SET ; } if ( null == data [ r ] ) { return IConceptSet . EMPTY_SET ; } else { return new ReadonlyConceptSet ( data [ r ] ) ; } |
public class CharOperation { /** * Answers the result of a char [ ] conversion to lowercase . Answers null if the given chars array is null . < br >
* NOTE : If no conversion was necessary , then answers back the argument one . < br >
* < br >
* For example :
* < ol >
* < li >
* < pre >
* chars = { ' a ' ... | if ( chars == null ) { return null ; } int length = chars . length ; char [ ] lowerChars = null ; for ( int i = 0 ; i < length ; i ++ ) { char c = chars [ i ] ; char lc = Character . toLowerCase ( c ) ; if ( c != lc || lowerChars != null ) { if ( lowerChars == null ) { System . arraycopy ( chars , 0 , lowerChars = new ... |
public class StringUtil { /** * 将数组中的元素连接成一个字符串 。
* < pre >
* StringUtil . join ( null , * ) = null
* StringUtil . join ( [ ] , * ) = & quot ; & quot ;
* StringUtil . join ( [ null ] , * ) = & quot ; & quot ;
* StringUtil . join ( [ & quot ; a & quot ; , & quot ; b & quot ; , & quot ; c & quot ; ] , ' ; ' ) =... | if ( array == null ) { return null ; } int arraySize = array . length ; int bufSize = ( arraySize == 0 ) ? 0 : ( ( ( ( array [ 0 ] == null ) ? 16 : array [ 0 ] . toString ( ) . length ( ) ) + 1 ) * arraySize ) ; StringBuilder buf = new StringBuilder ( bufSize ) ; for ( int i = 0 ; i < arraySize ; i ++ ) { if ( i > 0 ) ... |
public class BaseCommandTask { /** * Returns the value at i + 1 , guarding against ArrayOutOfBound exceptions .
* If the next element is not a value but an argument flag ( starts with - )
* return null .
* @ return String value as defined above , or { @ code null } if at end of args . */
protected String getValue... | String [ ] split = arg . split ( "=" ) ; if ( split . length <= 1 ) { return null ; } return split [ 1 ] ; |
public class DBColumnPropertySheet { /** * GEN - LAST : event _ tfJavaFieldNameFocusLost */
private void tfJavaFieldNameActionPerformed ( java . awt . event . ActionEvent evt ) // GEN - FIRST : event _ tfJavaFieldNameActionPerformed
{ } } | // GEN - HEADEREND : event _ tfJavaFieldNameActionPerformed
// Commit value to column object if ENTER is pressed
aColumn . setJavaFieldName ( tfJavaFieldName . getText ( ) ) ; |
public class ApiOvhSupport { /** * List support tickets identifiers for this service
* REST : GET / support / tickets
* @ param serviceName [ required ] Ticket message service name
* @ param subject [ required ] Search by ticket subject
* @ param maxCreationDate [ required ] Maximum creation date
* @ param st... | String qPath = "/support/tickets" ; StringBuilder sb = path ( qPath ) ; query ( sb , "archived" , archived ) ; query ( sb , "category" , category ) ; query ( sb , "maxCreationDate" , maxCreationDate ) ; query ( sb , "minCreationDate" , minCreationDate ) ; query ( sb , "product" , product ) ; query ( sb , "serviceName" ... |
public class ChannelUrl { /** * Get Resource Url for DeleteChannel
* @ param code User - defined code that uniqely identifies the channel group .
* @ return String Resource Url */
public static MozuUrl deleteChannelUrl ( String code ) { } } | UrlFormatter formatter = new UrlFormatter ( "/api/commerce/channels/{code}" ) ; formatter . formatUrl ( "code" , code ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; |
public class FinalFlags { /** * Return a String with a message indicating why the given path is final .
* @ param path
* Path to check
* @ return String reason why the path is final or null if the path isn ' t
* final */
public String getFinalReason ( Path path ) { } } | StringBuilder sb = new StringBuilder ( path + " cannot be modified; " ) ; StringBuilder finalPath = new StringBuilder ( "/" ) ; // Step through the nodes based on the given path . If any intermediate
// nodes are marked as final , we can just return true .
Node currentNode = root ; for ( Term t : path . getTerms ( ) ) ... |
public class ClientSharedObject { /** * { @ inheritDoc } */
@ Override public void removeAttributes ( ) { } } | // TODO : there must be a direct way to clear the SO on the client side
for ( String key : getAttributeNames ( ) ) { ownerMessage . addEvent ( Type . SERVER_DELETE_ATTRIBUTE , key , null ) ; } notifyModified ( ) ; |
public class UrlResourceMetadataResolver { /** * Fetch metadata http response .
* @ param metadataLocation the metadata location
* @ param criteriaSet the criteria set
* @ return the http response */
protected HttpResponse fetchMetadata ( final String metadataLocation , final CriteriaSet criteriaSet ) { } } | LOGGER . debug ( "Fetching metadata from [{}]" , metadataLocation ) ; return HttpUtils . executeGet ( metadataLocation , new LinkedHashMap < > ( ) ) ; |
public class ProductSortDefinitionUrl { /** * Get Resource Url for AddProductSortDefinition
* @ param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object . This parameter should only be used to retrieve data . Attempting to update data using... | UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/productsortdefinitions/?useProvidedId={useProvidedId}&responseFields={responseFields}" ) ; formatter . formatUrl ( "responseFields" , responseFields ) ; formatter . formatUrl ( "useProvidedId" , useProvidedId ) ; return new MozuUrl ( formatter . g... |
public class NetworkAddress { /** * parse a CIDR network block identifier , consisting of an ip4Address / prefixSize , where both ip4Address and netMask are
* presented in dotted quad notation . e . g . 192.0.2.0/24
* @ return
* @ see { http : / / en . wikipedia . org / wiki / Classless _ Inter - Domain _ Routing... | NetworkAddress address = null ; if ( networkAddress != null ) { String [ ] split = networkAddress . split ( "/" ) ; if ( split . length == 2 ) { byte [ ] network = parseDottedQuad ( split [ 0 ] ) ; byte bits = Byte . parseByte ( split [ 1 ] ) ; address = toNetworkAddress ( network , toNetworkMask ( bits ) ) ; } else { ... |
public class JSLockedMessageEnumeration { /** * / * ( non - Javadoc )
* @ see com . ibm . wsspi . sib . core . LockedMessageEnumeration # unlockCurrent ( ) */
public void unlockCurrent ( ) throws SISessionUnavailableException , SISessionDroppedException , SIResourceException , SIConnectionLostException , SIIncorrectC... | if ( TraceComponent . isAnyTracingEnabled ( ) && CoreSPILockedMessageEnumeration . tc . isEntryEnabled ( ) ) SibTr . entry ( CoreSPILockedMessageEnumeration . tc , "unlockCurrent" , new Object [ ] { new Integer ( hashCode ( ) ) , this } ) ; unlockCurrent ( false ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && Core... |
public class ParameterizedJobMixIn { /** * Standard implementation of { @ link ParameterizedJob # scheduleBuild2 } . */
public final @ CheckForNull QueueTaskFuture < RunT > scheduleBuild2 ( int quietPeriod , Action ... actions ) { } } | Queue . Item i = scheduleBuild2 ( quietPeriod , Arrays . asList ( actions ) ) ; return i != null ? ( QueueTaskFuture ) i . getFuture ( ) : null ; |
public class WriterFactoryImpl { /** * { @ inheritDoc } */
@ Override public MethodWriterImpl getMethodWriter ( ClassWriter classWriter ) { } } | return new MethodWriterImpl ( ( SubWriterHolderWriter ) classWriter , classWriter . getTypeElement ( ) ) ; |
public class JpaRepositoryConfig { /** * Prepares a builder to configure a jpa document for the given entity .
* @ param < E > entity type
* @ param entityClass to directly expose
* @ return builder */
public static < E > JpaRepositoryConfig . Builder < E > builder ( Class < E > entityClass ) { } } | JpaRepositoryConfig . Builder < E > builder = new JpaRepositoryConfig . Builder < > ( ) ; builder . entityClass = entityClass ; builder . resourceClass = entityClass ; return builder ; |
public class JMString { /** * Gets extension .
* @ param fileName the file name
* @ return the extension */
public static String getExtension ( String fileName ) { } } | int dotIndex = fileName . lastIndexOf ( DOT ) ; return dotIndex > 0 ? fileName . substring ( dotIndex ) : EMPTY ; |
public class MathUtil { /** * Compute the zone where the point is against the given rectangular prism
* according to the < a href = " http : / / en . wikipedia . org / wiki / Cohen % E2%80%93Sutherland _ algorithm " > Cohen - Sutherland algorithm < / a > .
* @ param px is the coordinates of the point .
* @ param ... | assert rxmin <= rxmax : AssertMessages . lowerEqualParameters ( 3 , rxmin , 6 , rxmax ) ; assert rymin <= rymax : AssertMessages . lowerEqualParameters ( 4 , rymin , 7 , rymax ) ; assert rzmin <= rzmax : AssertMessages . lowerEqualParameters ( 5 , rzmin , 8 , rzmax ) ; // initialised as being inside of clip window
int ... |
public class CurrentAddressStructuredTypeImpl { /** * { @ inheritDoc } */
@ Override public void setCvaddressArea ( String cvaddressArea ) { } } | this . cvaddressArea = this . prepareForAssignment ( this . cvaddressArea , this . createXSString ( CvaddressArea . class , cvaddressArea ) ) ; |
public class LruMemoryCache { /** * Remove the eldest entries until the total of remaining entries is at or below the requested size .
* @ param maxSize the maximum size of the cache before returning . May be - 1 to evict even 0 - sized elements . */
private void trimToSize ( int maxSize ) { } } | while ( true ) { String key ; Bitmap value ; synchronized ( this ) { if ( size < 0 || ( map . isEmpty ( ) && size != 0 ) ) { throw new IllegalStateException ( getClass ( ) . getName ( ) + ".sizeOf() is reporting inconsistent results!" ) ; } if ( size <= maxSize || map . isEmpty ( ) ) { break ; } Map . Entry < String , ... |
public class ValueList { /** * Appends the given values to this list as a list . */
public ValueList appendList ( Object ... vals ) { } } | super . append ( new ArrayList < Object > ( Arrays . asList ( vals ) ) ) ; return this ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.