signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class TextHandler { /** * 构建 ' < text > < / text > ' 标签中sqlInfo中的SQL文本信息 , 如果有非文本节点则抛出异常 . * 即text节点中的内容不能包含其他标签 * @ param node xml标签节点 */ @ SuppressWarnings ( "unchecked" ) private void concatSqlText ( Node node , SqlInfo sqlInfo ) { } }
// 获取所有子节点 , 并分别将其使用StringBuilder拼接起来 List < Node > nodes = node . selectNodes ( ZealotConst . ATTR_CHILD ) ; for ( Node n : nodes ) { if ( ZealotConst . NODETYPE_TEXT . equals ( n . getNodeTypeName ( ) ) ) { // 如果子节点node 是文本节点 , 则直接获取其文本 sqlInfo . getJoin ( ) . append ( n . getText ( ) ) ; } else { throw new ContainXm...
public class CssFormatter { /** * Release an output and delete it . */ void freeOutput ( ) { } }
state . pool . free ( output ) ; output = outputs . size ( ) > 0 ? outputs . removeLast ( ) : null ;
public class CreateJobOutputMarshaller { /** * Marshall the given parameter object . */ public void marshall ( CreateJobOutput createJobOutput , ProtocolMarshaller protocolMarshaller ) { } }
if ( createJobOutput == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createJobOutput . getKey ( ) , KEY_BINDING ) ; protocolMarshaller . marshall ( createJobOutput . getThumbnailPattern ( ) , THUMBNAILPATTERN_BINDING ) ; protocolMarshalle...
public class ProfileNode { /** * Generates a string giving timing information for this single node , including * total milliseconds spent on the piece of ink , the time spent within itself * ( v . s . spent in children ) , as well as the number of samples ( instruction steps ) * recorded for both too . * @ retu...
StringBuilder sb = new StringBuilder ( ) ; sb . append ( "total " ) ; sb . append ( Profiler . formatMillisecs ( totalMillisecs ) ) ; sb . append ( ", self " ) ; sb . append ( Profiler . formatMillisecs ( selfMillisecs ) ) ; sb . append ( " (" ) ; sb . append ( selfSampleCount ) ; sb . append ( " self samples, " ) ; sb...
public class FarmHashFingerprint64 { /** * Compute an 8 - byte hash of a byte array of length greater than 64 bytes . */ private static long hashLength65Plus ( byte [ ] bytes , int offset , int length ) { } }
final int seed = 81 ; // For strings over 64 bytes we loop . Internal state consists of 56 bytes : v , w , x , y , and z . long x = seed ; // @ SuppressWarnings ( " ConstantOverflow " ) long y = seed * K1 + 113 ; long z = shiftMix ( y * K2 + 113 ) * K2 ; long [ ] v = new long [ 2 ] , w = new long [ 2 ] ; x = x * K2 + l...
public class ValueRange { /** * Checks that the specified value is valid and fits in an { @ code int } . * This validates that the value is within the valid range of values and that * all valid values are within the bounds of an { @ code int } . * The field is only used to improve the error message . * @ param ...
if ( isValidIntValue ( value ) == false ) { throw new DateTimeException ( genInvalidFieldMessage ( field , value ) ) ; } return ( int ) value ;
public class FileUtil { /** * 读取文件内容 * @ param file 文件 * @ param charset 字符集 * @ return 内容 * @ throws IORuntimeException IO异常 */ public static String readString ( File file , Charset charset ) throws IORuntimeException { } }
return FileReader . create ( file , charset ) . readString ( ) ;
public class ScriptProxy { /** * backward sikinti */ public Map addForwarding ( Map params ) throws Exception { } }
CreateForwardingRulePayload payload = new CreateForwardingRulePayload ( ) ; payload . setFromUser ( parseUserMetaBackwardsCompatible ( params . get ( OpsGenieClientConstants . API . FROM_USER ) ) ) ; payload . setToUser ( parseUserMetaBackwardsCompatible ( params . get ( OpsGenieClientConstants . API . TO_USER ) ) ) ; ...
public class SelectOption { /** * Process the end of this tag . * @ throws JspException if a JSP exception has occurred */ public int doEndTag ( ) throws JspException { } }
String scriptId = null ; ServletRequest req = pageContext . getRequest ( ) ; if ( ( hasErrors ( ) ) || _hasError ) { localRelease ( ) ; return EVAL_PAGE ; } // the parent was validated in the doStartTag call Tag parentTag = getParent ( ) ; while ( ! ( parentTag instanceof Select ) ) { parentTag = parentTag . getParent ...
public class Expect4j { /** * An internal helper function that converts the input buffer into a * printable < code > String < / code > . * @ return the input buffer as a printable < code > String < / code > */ protected String printBuffer ( ) { } }
String javaStr = new String ( input . getBuffer ( ) ) ; javaStr = javaStr . replaceAll ( "\\r" , "\\\\r" ) ; javaStr = javaStr . replaceAll ( "\\n" , "\\\\n" ) ; return javaStr ;
public class LiAvroDeserializerBase { /** * Configure this class . * @ param configs configs in key / value pairs * @ param isKey whether is for key or value */ public void configure ( Map < String , ? > configs , boolean isKey ) { } }
Preconditions . checkArgument ( isKey == false , "LiAvroDeserializer only works for value fields" ) ; _datumReader = new GenericDatumReader < > ( ) ; Properties props = new Properties ( ) ; for ( Map . Entry < String , ? > entry : configs . entrySet ( ) ) { String value = String . valueOf ( entry . getValue ( ) ) ; pro...
public class JDBCResultSet { /** * < ! - - start generic documentation - - > * Gives a hint as to the direction in which the rows in this * < code > ResultSet < / code > object will be processed . * The initial value is determined by the * < code > Statement < / code > object * that produced this < code > Res...
checkClosed ( ) ; switch ( direction ) { case FETCH_FORWARD : { break ; } case FETCH_REVERSE : { checkNotForwardOnly ( ) ; break ; } case FETCH_UNKNOWN : { checkNotForwardOnly ( ) ; break ; } default : { throw Util . notSupported ( ) ; } }
public class HiveRegistrationUnitComparator { /** * Compare an existing value and a new value , and set { @ link # result } accordingly . * This method returns false if newValue is absent ( i . e . , the existing value doesn ' t need to be updated ) . * This is because when adding a table / partition to Hive , Hive...
boolean different ; if ( ! newValue . isPresent ( ) ) { different = false ; } else { different = ! existingValue . isPresent ( ) || ! existingValue . get ( ) . equals ( newValue . get ( ) ) ; } this . result |= different ;
public class CssSkinGenerator { /** * Returns the skin root dir of the path given in parameter * @ param path * the resource path * @ param skinRootDirs * the set of skin root directories * @ return the skin root dir */ public String getSkinRootDir ( String path , Set < String > skinRootDirs ) { } }
String skinRootDir = null ; for ( String skinDir : skinRootDirs ) { if ( path . startsWith ( skinDir ) ) { skinRootDir = skinDir ; } } return skinRootDir ;
public class BoUtils { /** * De - serialize a BO from byte array . * @ param bytes * the byte array obtained from { @ link # toBytes ( BaseBo ) } * @ param clazz * @ param classLoader * @ return * @ since 0.6.0.3 */ @ SuppressWarnings ( "unchecked" ) public static < T extends BaseBo > T fromBytes ( byte [ ]...
if ( bytes == null || clazz == null ) { return null ; } try { Map < String , Object > data = SerializationUtils . fromByteArray ( bytes , Map . class ) ; String boClassName = DPathUtils . getValue ( data , FIELD_CLASSNAME , String . class ) ; T bo = createObject ( boClassName , classLoader , clazz ) ; if ( bo != null )...
public class ExcelSaxUtil { /** * 计算两个单元格之间的单元格数目 ( 同一行 ) * @ param preRef 前一个单元格位置 , 例如A1 * @ param ref 当前单元格位置 , 例如A8 * @ return 同一行中两个单元格之间的空单元格数 */ public static int countNullCell ( String preRef , String ref ) { } }
// excel2007最大行数是1048576 , 最大列数是16384 , 最后一列列名是XFD // 数字代表列 , 去掉列信息 String preXfd = StrUtil . nullToDefault ( preRef , "@" ) . replaceAll ( "\\d+" , "" ) ; String xfd = StrUtil . nullToDefault ( ref , "@" ) . replaceAll ( "\\d+" , "" ) ; // A表示65 , @ 表示64 , 如果A算作1 , 那 @ 代表0 // 填充最大位数3 preXfd = StrUtil . fillBefore ( pr...
public class ElementsExceptionsFactory { /** * Constructs and initializes a new { @ link UserException } with the given { @ link Throwable cause } * and { @ link String message } formatted with the given { @ link Object [ ] arguments } . * @ param cause { @ link Throwable } identified as the reason this { @ link Us...
return new UserException ( format ( message , args ) , cause ) ;
public class Server { /** * Creates an { @ link OAuth2Credentials } object that can be used by any of the servlets . * Throws an { @ throws IOException } when no client ID or secret found in secrets . properties */ static OAuth2Credentials createOAuth2Credentials ( SessionConfiguration config ) throws IOException { }...
return new OAuth2Credentials . Builder ( ) . setCredentialDataStoreFactory ( MemoryDataStoreFactory . getDefaultInstance ( ) ) . setRedirectUri ( config . getRedirectUri ( ) ) . setScopes ( config . getScopes ( ) ) . setClientSecrets ( config . getClientId ( ) , config . getClientSecret ( ) ) . build ( ) ;
public class Quaternion { /** * Replies the rotation axis represented by this quaternion . * @ return the rotation axis * @ see # setAxisAngle ( Vector3D , double ) * @ see # setAxisAngle ( double , double , double , double ) * @ see # getAngle ( ) */ @ SuppressWarnings ( "synthetic-access" ) @ Pure public fina...
double mag = this . x * this . x + this . y * this . y + this . z * this . z ; if ( mag > EPS ) { mag = Math . sqrt ( mag ) ; double invMag = 1f / mag ; return new AxisAngle ( this . x * invMag , this . y * invMag , this . z * invMag , ( 2. * Math . atan2 ( mag , this . w ) ) ) ; } return new AxisAngle ( 0 , 0 , 1 , 0 ...
public class Observable { /** * Subscribes to the current Observable and wraps the given Observer into a SafeObserver * ( if not already a SafeObserver ) that * deals with exceptions thrown by a misbehaving Observer ( that doesn ' t follow the * Reactive - Streams specification ) . * < dl > * < dt > < b > Sch...
ObjectHelper . requireNonNull ( observer , "s is null" ) ; if ( observer instanceof SafeObserver ) { subscribe ( observer ) ; } else { subscribe ( new SafeObserver < T > ( observer ) ) ; }
public class BinaryHeapPriorityQueue { /** * Changes a priority , either up or down , adding the key it if it wasn ' t there already . * @ param key an < code > Object < / code > value * @ return whether the priority actually changed . */ public boolean changePriority ( E key , double priority ) { } }
Entry < E > entry = getEntry ( key ) ; if ( entry == null ) { entry = makeEntry ( key ) ; } if ( compare ( priority , entry . priority ) == 0 ) { return false ; } entry . priority = priority ; heapify ( entry ) ; return true ;
public class JvmInnerTypeReferenceImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public boolean eIsSet ( int featureID ) { } }
switch ( featureID ) { case TypesPackage . JVM_INNER_TYPE_REFERENCE__OUTER : return outer != null ; } return super . eIsSet ( featureID ) ;
public class CompositesIndex { /** * Check SecondaryIndex . getIndexComparator if you want to know why this is static */ public static CellNameType getIndexComparator ( CFMetaData baseMetadata , ColumnDefinition cfDef ) { } }
if ( cfDef . type . isCollection ( ) && cfDef . type . isMultiCell ( ) ) { switch ( ( ( CollectionType ) cfDef . type ) . kind ) { case LIST : return CompositesIndexOnCollectionValue . buildIndexComparator ( baseMetadata , cfDef ) ; case SET : return CompositesIndexOnCollectionKey . buildIndexComparator ( baseMetadata ...
public class GenerateEntityFileNameTask { /** * / * ( non - Javadoc ) * @ see org . danann . cernunnos . Phrase # evaluate ( org . danann . cernunnos . TaskRequest , org . danann . cernunnos . TaskResponse ) */ @ Override public void perform ( TaskRequest req , TaskResponse res ) { } }
final Element rootElement = ( Element ) entityElement . evaluate ( req , res ) ; final IUserLayoutStore rdbmdls = ( IUserLayoutStore ) layoutStore . evaluate ( req , res ) ; SupportedFileTypes y = SupportedFileTypes . getApplicableFileType ( rootElement , rdbmdls ) ; String entityFileName = y . getSafeFileNameWithExten...
public class ClassParser { /** * Check that a constant pool index is valid . * @ param index * the index to check * @ throws InvalidClassFileFormatException * if the index is not valid */ private void checkConstantPoolIndex ( int index ) throws InvalidClassFileFormatException { } }
if ( index < 0 || index >= constantPool . length || constantPool [ index ] == null ) { throw new InvalidClassFileFormatException ( expectedClassDescriptor , codeBaseEntry ) ; }
public class BioCDocumentReader { /** * Reads one BioC document from the XML file . * @ return the BioC document * @ throws XMLStreamException if an unexpected processing error occurs */ public BioCDocument readDocument ( ) throws XMLStreamException { } }
if ( reader . document != null ) { BioCDocument thisDocument = reader . document ; reader . read ( ) ; return thisDocument ; } else { return null ; }
public class PeriodicSubscriptionQos { /** * Set the alertAfterInterval in milliseconds . < br > * If no notification was received within the last alert interval , a missed * publication notification will be raised . < br > * < br > * < b > Minimum , Maximum , and Default Values : < / b > * < ul > * < li > ...
if ( alertAfterIntervalMs > MAX_ALERT_AFTER_INTERVAL_MS ) { this . alertAfterIntervalMs = MAX_ALERT_AFTER_INTERVAL_MS ; logger . warn ( "alertAfterInterval_ms > MAX_ALERT_AFTER_INTERVAL_MS. Using MAX_ALERT_AFTER_INTERVAL_MS: {}" , MAX_ALERT_AFTER_INTERVAL_MS ) ; } else { this . alertAfterIntervalMs = alertAfterInterval...
public class Envelope2D { /** * Checks if this envelope intersects the other assuming neither one is empty . * @ param other The other envelope . * @ return True if this envelope intersects the other . Assumes this and * other envelopes are not empty . */ public boolean isIntersectingNE ( Envelope2D other ) { } }
return ( ( xmin <= other . xmin ) ? xmax >= other . xmin : other . xmax >= xmin ) && // check that x projections overlap ( ( ymin <= other . ymin ) ? ymax >= other . ymin : other . ymax >= ymin ) ; // check // that // projections // overlap
public class DatabaseSpec { /** * Checks if a MongoDB database contains a table . * @ param database * @ param tableName */ @ Then ( "^a Mongo dataBase '(.+?)' doesnt contains a table '(.+?)'$" ) public void aMongoDataBaseContainsaTable ( String database , String tableName ) { } }
commonspec . getMongoDBClient ( ) . connectToMongoDBDataBase ( database ) ; Set < String > collectionsNames = commonspec . getMongoDBClient ( ) . getMongoDBCollections ( ) ; assertThat ( collectionsNames ) . as ( "The Mongo dataBase contains the table" ) . doesNotContain ( tableName ) ;
public class BosClient { /** * Returns a pre - signed URL for accessing a Bos resource . * @ param bucketName The name of the bucket containing the desired object . * @ param key The key in the specified bucket under which the desired object is stored . * @ param expirationInSeconds The expiration after which the...
return this . generatePresignedUrl ( bucketName , key , expirationInSeconds , HttpMethodName . GET ) ;
public class ApiOvhEmaildomain { /** * Change filter activity * REST : POST / email / domain / delegatedAccount / { email } / filter / { name } / changeActivity * @ param activity [ required ] New activity * @ param email [ required ] Email * @ param name [ required ] Filter name */ public OvhTaskFilter delegat...
String qPath = "/email/domain/delegatedAccount/{email}/filter/{name}/changeActivity" ; StringBuilder sb = path ( qPath , email , name ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "activity" , activity ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return c...
public class Expression { /** * Create a { @ link Expression . PositionFactory } for an optional expression . A position created from such a factory * will silently swallow a { @ link PropertyNotFoundException } and return { @ code null } as its value . * @ param expr * @ return { @ link PositionFactory } */ publ...
final boolean optional = true ; return new PositionFactory < > ( Validate . notEmpty ( expr , "expr" ) , optional ) ;
public class PcpMmvWriter { /** * Writes out a PCP MMV table - of - contents block . * @ param dataFileBuffer * ByteBuffer positioned at the correct offset in the file for the block * @ param tocType * the type of TOC block to write * @ param entryCount * the number of blocks of type tocType to be found in ...
dataFileBuffer . putInt ( tocType . identifier ) ; dataFileBuffer . putInt ( entryCount ) ; dataFileBuffer . putLong ( firstEntryOffset ) ;
public class ServiceRequestHandler { /** * Default format is now JSON . */ protected Format getFormat ( Map < String , String > metaInfo ) { } }
Format format = Format . json ; metaInfo . put ( Listener . METAINFO_CONTENT_TYPE , Listener . CONTENT_TYPE_JSON ) ; String formatParam = ( String ) metaInfo . get ( "format" ) ; if ( formatParam != null ) { if ( formatParam . equals ( "xml" ) ) { format = Format . xml ; metaInfo . put ( Listener . METAINFO_CONTENT_TYP...
public class EitherT { /** * { @ inheritDoc } */ @ Override public < R2 > Lazy < EitherT < M , L , R2 > > lazyZip ( Lazy < ? extends Applicative < Function < ? super R , ? extends R2 > , MonadT < M , Either < L , ? > , ? > > > lazyAppFn ) { } }
return new Compose < > ( melr ) . lazyZip ( lazyAppFn . fmap ( maybeT -> new Compose < > ( maybeT . < EitherT < M , L , Function < ? super R , ? extends R2 > > > coerce ( ) . < Either < L , Function < ? super R , ? extends R2 > > , Monad < Either < L , Function < ? super R , ? extends R2 > > , M > > run ( ) ) ) ) . fma...
public class EmbeddableRegisteredResources { /** * Informs the caller if a single 1PC CAPABLE resource is enlisted in this unit of work . */ @ Override public boolean isOnlyAgent ( ) { } }
final boolean result = ( _resourceObjects . size ( ) == 1 && _resourceObjects . get ( 0 ) instanceof ResourceSupportsOnePhaseCommit && ( _asyncResourceObjects == null || _asyncResourceObjects . size ( ) == 0 ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "isOnlyAgent"...
public class HomeHandleImpl { /** * p113380 - rewrite entire method of product interoperability . */ private void readObject ( java . io . ObjectInputStream in ) throws IOException , ClassNotFoundException { } }
in . defaultReadObject ( ) ; byte [ ] tempEyeCatcher = new byte [ Constants . EYE_CATCHER_LENGTH ] ; // d164415 start int bytesRead = 0 ; for ( int offset = 0 ; offset < Constants . EYE_CATCHER_LENGTH ; offset += bytesRead ) { bytesRead = in . read ( tempEyeCatcher , offset , Constants . EYE_CATCHER_LENGTH - offset ) ;...
public class ResourceSkusInner { /** * Gets the list of Microsoft . CognitiveServices SKUs available for your Subscription . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the PagedList & lt ; ResourceSkuInner & gt ; object */ public Observable < Page < Res...
return listWithServiceResponseAsync ( ) . map ( new Func1 < ServiceResponse < Page < ResourceSkuInner > > , Page < ResourceSkuInner > > ( ) { @ Override public Page < ResourceSkuInner > call ( ServiceResponse < Page < ResourceSkuInner > > response ) { return response . body ( ) ; } } ) ;
public class KeyValue { /** * Creates a { @ link KeyValue } from a { @ code key } and { @ code value } . The resulting value contains the value . * @ param key the key . Must not be { @ literal null } . * @ param value the value . Must not be { @ literal null } . * @ param < K > * @ param < T > * @ param < V ...
LettuceAssert . notNull ( value , "Value must not be null" ) ; return new KeyValue < K , V > ( key , value ) ;
public class EntityInfo { /** * Return the list of member chain ids ( asym ids ) that are described by this EntityInfo , * only unique chain IDs are contained in the list . * Note that in the case of multimodel structures this will return just the unique * chain identifiers whilst { @ link # getChains ( ) } will ...
Set < String > uniqChainIds = new TreeSet < > ( ) ; for ( int i = 0 ; i < getChains ( ) . size ( ) ; i ++ ) { uniqChainIds . add ( getChains ( ) . get ( i ) . getId ( ) ) ; } return new ArrayList < > ( uniqChainIds ) ;
public class DNSSEC { /** * Convert an algorithm number to the corresponding JCA string . * @ param alg The algorithm number . * @ throws UnsupportedAlgorithmException The algorithm is unknown . */ public static String algString ( int alg ) throws UnsupportedAlgorithmException { } }
switch ( alg ) { case Algorithm . RSAMD5 : return "MD5withRSA" ; case Algorithm . DSA : case Algorithm . DSA_NSEC3_SHA1 : return "SHA1withDSA" ; case Algorithm . RSASHA1 : case Algorithm . RSA_NSEC3_SHA1 : return "SHA1withRSA" ; case Algorithm . RSASHA256 : return "SHA256withRSA" ; case Algorithm . RSASHA512 : return "...
public class Downloader { /** * Check the MD5 of the specified file * @ param targetMD5 Expected MD5 * @ param file File to check * @ return True if MD5 matches , false otherwise */ public static boolean checkMD5OfFile ( String targetMD5 , File file ) throws IOException { } }
InputStream in = FileUtils . openInputStream ( file ) ; String trueMd5 = DigestUtils . md5Hex ( in ) ; IOUtils . closeQuietly ( in ) ; return ( targetMD5 . equals ( trueMd5 ) ) ;
public class OPFItems { /** * Search the item with the given ID . * @ param id * the ID of the item to search , can be < code > null < / code > . * @ return An { @ link Optional } containing the item if found , or * { @ link Optional # absent ( ) } if not found . */ public Optional < OPFItem > getItemById ( Str...
return Optional . fromNullable ( itemsById . get ( id ) ) ;
public class IntBuildingInstallationType { /** * Gets the value of the genericApplicationPropertyOfIntBuildingInstallation property . * This accessor method returns a reference to the live list , * not a snapshot . Therefore any modification you make to the * returned list will be present inside the JAXB object ....
if ( _GenericApplicationPropertyOfIntBuildingInstallation == null ) { _GenericApplicationPropertyOfIntBuildingInstallation = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfIntBuildingInstallation ;
public class ReporterConfigMetadata { /** * Adds an new item to the reporter metadata . * @ param key * - A { @ link String } that represents the property name contained in JsonRuntimeReporter file . * @ param itemType * - A { @ link String } that represents the ( supported ) type of metadata . * @ param valu...
logger . entering ( new Object [ ] { key , itemType , value } ) ; if ( StringUtils . isNotBlank ( value ) && supportedMetaDataProperties . contains ( itemType ) ) { Map < String , String > subMap = reporterMetadata . get ( key ) ; if ( null == subMap ) { subMap = new HashMap < String , String > ( ) ; } subMap . put ( i...
public class TypeValidator { /** * For a concrete class , expect that all abstract methods that haven ' t been implemented by any of * the super classes on the inheritance chain are implemented . */ void expectAbstractMethodsImplemented ( Node n , FunctionType ctorType ) { } }
checkArgument ( ctorType . isConstructor ( ) ) ; Map < String , ObjectType > abstractMethodSuperTypeMap = new LinkedHashMap < > ( ) ; FunctionType currSuperCtor = ctorType . getSuperClassConstructor ( ) ; if ( currSuperCtor == null || ! currSuperCtor . isAbstract ( ) ) { return ; } while ( currSuperCtor != null && curr...
public class TimestampUtils { /** * # endif */ private static int skipWhitespace ( char [ ] s , int start ) { } }
int slen = s . length ; for ( int i = start ; i < slen ; i ++ ) { if ( ! Character . isSpace ( s [ i ] ) ) { return i ; } } return slen ;
public class AbstractBusPrimitive { /** * Fire the event that indicates this object has changed . * @ param propertyName is the name of the graphical property . * @ param oldValue is the old value of the property . * @ param newValue is the new value of the property . */ protected final void firePrimitiveChanged ...
final BusChangeEvent event = new BusChangeEvent ( // source of the event this , // type of the event BusChangeEventType . change ( getClass ( ) ) , // subobject this , // index in parent indexInParent ( ) , propertyName , oldValue , newValue ) ; firePrimitiveChanged ( event ) ;
public class RemoteServiceProxy { /** * Configures a RequestBuilder to send an RPC request . * @ param < T > return type for the AsyncCallback * @ param responseReader instance used to read the return value of the * invocation * @ param requestData payload that encodes the addressing and arguments of the * RP...
if ( getServiceEntryPoint ( ) == null ) { throw new NoServiceEntryPointSpecifiedException ( ) ; } RequestCallback responseHandler = doCreateRequestCallback ( responseReader , methodName , statsContext , callback ) ; ensureRpcRequestBuilder ( ) ; rpcRequestBuilder . create ( getServiceEntryPoint ( ) ) ; rpcRequestBuilde...
public class Tokenizer { /** * tokenize based on simple regular expression */ public static String [ ] tokenize ( String input , boolean lowercase ) { } }
String [ ] tokens = input . split ( "\\W" ) ; // lower case for ( int i = 0 ; i < tokens . length && lowercase ; i ++ ) { tokens [ i ] = tokens [ i ] . toLowerCase ( ) ; } return tokens ;
public class HttpMessage { /** * Gets the Http request context path . * @ return the context path */ public String getContextPath ( ) { } }
final Object contextPath = getHeader ( HttpMessageHeaders . HTTP_CONTEXT_PATH ) ; if ( contextPath != null ) { return contextPath . toString ( ) ; } return null ;
public class ScriptContext { /** * Processes a CSV file . * @ param csvFile * the file * @ param delimiter * the * @ param quoteChar * the quote character ( ' \ 0 ' for no quoting ) * @ param charset * the character set * @ param closure * the { @ link Closure } representing a Groovy block */ @ Cmd ...
File f = new File ( csvFile ) ; try { config . extractFromArchive ( f , true ) ; checkState ( f . exists ( ) , "CSV file not found: " + f ) ; Reader reader = Files . newReader ( f , charset == null ? defaultCharset : charset ) ; csvDataProcessor . processFile ( reader , delimiter , quoteChar , closure ) ; } catch ( IOE...
public class TypeExtractor { /** * Creates type information using a factory if for this type or super types . Returns null otherwise . */ @ SuppressWarnings ( "unchecked" ) private < IN1 , IN2 , OUT > TypeInformation < OUT > createTypeInfoFromFactory ( Type t , ArrayList < Type > typeHierarchy , TypeInformation < IN1 >...
final ArrayList < Type > factoryHierarchy = new ArrayList < > ( typeHierarchy ) ; final TypeInfoFactory < ? super OUT > factory = getClosestFactory ( factoryHierarchy , t ) ; if ( factory == null ) { return null ; } final Type factoryDefiningType = factoryHierarchy . get ( factoryHierarchy . size ( ) - 1 ) ; // infer p...
public class Relation { /** * Static factory method for relations requiring an argument , including * HAS _ ITH _ CHILD , ITH _ CHILD _ OF , UNBROKEN _ CATEGORY _ DOMINATES , * UNBROKEN _ CATEGORY _ DOMINATED _ BY . * @ param s The String representation of the relation * @ param arg The argument to the relation...
if ( arg == null ) { return getRelation ( s , basicCatFunction , headFinder ) ; } Relation r ; if ( s . equals ( "<" ) ) { r = new HasIthChild ( Integer . parseInt ( arg ) ) ; } else if ( s . equals ( ">" ) ) { r = new IthChildOf ( Integer . parseInt ( arg ) ) ; } else if ( s . equals ( "<+" ) ) { r = new UnbrokenCateg...
public class SparseDataset { /** * Returns an array containing the class labels of the elements in this * dataset in proper sequence ( from first to last element ) . Unknown labels * will be saved as Integer . MIN _ VALUE . If the dataset fits in the specified * array , it is returned therein . Otherwise , a new ...
if ( response == null ) { throw new IllegalArgumentException ( "The dataset has no response values." ) ; } if ( response . getType ( ) != Attribute . Type . NOMINAL ) { throw new IllegalArgumentException ( "The response variable is not nominal." ) ; } int m = data . size ( ) ; if ( a . length < m ) { a = new int [ m ] ...
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcBoundaryCurve ( ) { } }
if ( ifcBoundaryCurveEClass == null ) { ifcBoundaryCurveEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 48 ) ; } return ifcBoundaryCurveEClass ;
public class RabbitMqEventManager { /** * { @ inheritDoc } */ @ Override public void addEvent ( Event event ) { } }
if ( ! initializedProperly ) { throw new IllegalStateException ( getUninitializedMessage ( ) ) ; } String message = gson . toJson ( event ) ; try { RabbitMqUtils . sendMessage ( message , Arrays . asList ( APPSENSOR_ADD_EVENT_QUEUE ) , environment ) ; } catch ( IOException e ) { logger . error ( "Failed to send add eve...
public class PaddingOutputStream { /** * Pads and flushes without closing the underlying stream . */ public void finish ( ) throws IOException { } }
int lastBlockSize = ( int ) ( byteCount % blockSize ) ; if ( lastBlockSize != 0 ) { while ( lastBlockSize < blockSize ) { out . write ( padding ) ; byteCount ++ ; lastBlockSize ++ ; } } out . flush ( ) ;
public class GoToFilePanel { /** * GEN - LAST : event _ textFieldMaskKeyPressed */ private void listFoundFilesMouseClicked ( java . awt . event . MouseEvent evt ) { } }
// GEN - FIRST : event _ listFoundFilesMouseClicked if ( evt . getClickCount ( ) > 1 && ! evt . isPopupTrigger ( ) && this . listFoundFiles . getSelectedIndex ( ) >= 0 ) { UiUtils . closeCurrentDialogWithResult ( this , this . dialogOkObject ) ; }
public class CircularImageView { /** * Sets the border width . * @ param unit The desired dimension unit . * @ param size */ public final void setBorderWidth ( int unit , int size ) { } }
if ( size < 0 ) { throw new IllegalArgumentException ( "Border width cannot be less than zero." ) ; } int scaledSize = ( int ) TypedValue . applyDimension ( unit , size , getResources ( ) . getDisplayMetrics ( ) ) ; setBorderInternal ( scaledSize , mBorderColor , true ) ;
public class Mail { /** * set the value password When required by a proxy server , a valid password . * @ param proxypassword value to set * @ throws ApplicationException */ public void setProxypassword ( String proxypassword ) throws ApplicationException { } }
try { smtp . getProxyData ( ) . setPassword ( proxypassword ) ; } catch ( Exception e ) { throw new ApplicationException ( "attribute [proxypassword] of the tag [mail] is invalid" , e . getMessage ( ) ) ; }
public class ScreenRightLowerCornerPositioner { /** * { @ inheritDoc } */ public final void position ( final JFrame frame ) { } }
final Dimension screenSize = Toolkit . getDefaultToolkit ( ) . getScreenSize ( ) ; final Dimension frameSize = frame . getSize ( ) ; checkMaxSize ( screenSize , frameSize ) ; frame . setLocation ( ( screenSize . width - frameSize . width - getWidthOffset ( ) ) , ( screenSize . height - frameSize . height - getHeightOff...
public class Model { /** * Update set statement * @ param column table column name [ sql ] * @ param value column value * @ return AnimaQuery */ public AnimaQuery < ? extends Model > set ( String column , Object value ) { } }
return query . set ( column , value ) ;
public class BatchPutScheduledUpdateGroupActionResult { /** * The names of the scheduled actions that could not be created or updated , including an error message . * @ param failedScheduledUpdateGroupActions * The names of the scheduled actions that could not be created or updated , including an error message . */...
if ( failedScheduledUpdateGroupActions == null ) { this . failedScheduledUpdateGroupActions = null ; return ; } this . failedScheduledUpdateGroupActions = new com . amazonaws . internal . SdkInternalList < FailedScheduledUpdateGroupActionRequest > ( failedScheduledUpdateGroupActions ) ;
public class StreamConfiguration { /** * Set the maximum block size to use . If this value is out of a valid range , * it will be set to the closest valid value . User must ensure that this * value is set above or equal to the minimum block size . * @ param size maximum block size to use . * @ return actual siz...
maxBlockSize = ( size <= MAX_BLOCK_SIZE ) ? size : MAX_BLOCK_SIZE ; maxBlockSize = ( maxBlockSize >= MIN_BLOCK_SIZE ) ? maxBlockSize : MIN_BLOCK_SIZE ; return maxBlockSize ;
public class SpiderService { /** * Validate the table option " aging - check - frequency " */ private void validateTableOptionAgingCheckFrequency ( TableDefinition tableDef , String optValue ) { } }
new TaskFrequency ( optValue ) ; Utils . require ( tableDef . getOption ( CommonDefs . OPT_AGING_FIELD ) != null , "Option 'aging-check-frequency' requires option 'aging-field'" ) ;
public class StreamEx { /** * Returns a { @ link SortedMap } whose keys and values are the result of * applying the provided mapping functions to the input elements . * This is a < a href = " package - summary . html # StreamOps " > terminal < / a > * operation . * If the mapped keys contains duplicates ( accor...
SortedMap < K , V > map = isParallel ( ) ? new ConcurrentSkipListMap < > ( ) : new TreeMap < > ( ) ; return toMapThrowing ( keyMapper , valMapper , map ) ;
public class AWSAppSyncClient { /** * Creates a < code > Function < / code > object . * A function is a reusable entity . Multiple functions can be used to compose the resolver logic . * @ param createFunctionRequest * @ return Result of the CreateFunction operation returned by the service . * @ throws Concurre...
request = beforeClientExecution ( request ) ; return executeCreateFunction ( request ) ;
public class FastTrackData { /** * Log column data . * @ param column column data */ private void logColumn ( FastTrackColumn column ) { } }
if ( m_log != null ) { m_log . println ( "TABLE: " + m_currentTable . getType ( ) ) ; m_log . println ( column . toString ( ) ) ; m_log . flush ( ) ; }
public class CollectionJsonAffordanceModel { /** * Transform a list of general { @ link QueryParameter } s into a list of { @ link CollectionJsonData } objects . * @ return */ private List < CollectionJsonData > determineQueryProperties ( ) { } }
if ( ! getHttpMethod ( ) . equals ( HttpMethod . GET ) ) { return Collections . emptyList ( ) ; } return getQueryMethodParameters ( ) . stream ( ) . map ( queryProperty -> new CollectionJsonData ( ) . withName ( queryProperty . getName ( ) ) . withValue ( "" ) ) . collect ( Collectors . toList ( ) ) ;
public class Targeting { /** * Gets the dayPartTargeting value for this Targeting . * @ return dayPartTargeting * Specifies the days of the week and times that are targeted * by the * { @ link LineItem } . This attribute is optional . */ public com . google . api . ads . admanager . axis . v201805 . DayPartTarget...
return dayPartTargeting ;
public class XMLReaderFactory { /** * Attempt to create an XMLReader from system defaults . * In environments which can support it , the name of the XMLReader * class is determined by trying each these options in order , and * using the first one which succeeds : < / p > < ul > * < li > If the system property <...
String className = null ; ClassLoader loader = NewInstance . getClassLoader ( ) ; // 1 . try the JVM - instance - wide system property try { className = System . getProperty ( property ) ; } catch ( RuntimeException e ) { /* normally fails for applets */ } // 2 . if that fails , try META - INF / services / if ( classNa...
public class BigtableTableAdminGrpcClient { /** * Creates a { @ link Metadata } that contains pertinent headers . */ private Metadata createMetadata ( String resource ) { } }
Metadata metadata = new Metadata ( ) ; if ( resource != null ) { metadata . put ( GRPC_RESOURCE_PREFIX_KEY , resource ) ; } return metadata ;
public class BaseFFDCService { /** * Process an exception * @ param th * The exception to be processed * @ param sourceId * The source id of the reporting code * @ param probeId * The probe of the reporting code * @ param callerThis * The instance of the reporting code * @ param objectArray * An arr...
log ( sourceId , probeId , th , callerThis , objectArray ) ;
public class SingleFieldCondition { /** * { @ inheritDoc } */ @ Override protected MoreObjects . ToStringHelper toStringHelper ( Object o ) { } }
return super . toStringHelper ( o ) . add ( "field" , field ) ;
public class HostMessenger { /** * Foreign hosts that share the same host id belong to the same machine , one * poison pill is deadly enough */ public void sendPoisonPill ( Collection < Integer > hostIds , String err , int cause ) { } }
for ( int hostId : hostIds ) { Iterator < ForeignHost > it = m_foreignHosts . get ( hostId ) . iterator ( ) ; // No need to overdose the poison pill if ( it . hasNext ( ) ) { ForeignHost fh = it . next ( ) ; if ( fh . isUp ( ) ) { fh . sendPoisonPill ( err , cause ) ; } } }
public class AbstractSingleFileObjectStore { /** * When enabled , reserve requests to this ObjectStore will throw ObjectStoreFullException . * @ param isFull true subsequent reservations throw ObjectStoreFullException . if false subsequent reservations may * succeed . * @ throws ObjectManagerException */ public v...
final String methodName = "simulateFull" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { new Boolean ( isFull ) } ) ; if ( isFull ) { // Clear as much space as we can . objectManagerState . waitForCheckpoint ( true ) ; // Reserve all...
public class DescribeTerminationPolicyTypesResult { /** * The termination policies supported by Amazon EC2 Auto Scaling : < code > OldestInstance < / code > , * < code > OldestLaunchConfiguration < / code > , < code > NewestInstance < / code > , < code > ClosestToNextInstanceHour < / code > , * < code > Default < /...
if ( terminationPolicyTypes == null ) { terminationPolicyTypes = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return terminationPolicyTypes ;
public class Context { /** * Returns a context that differs only in the uri part . */ public Context derive ( UriPart uriPart ) { } }
return uriPart == this . uriPart ? this : toBuilder ( ) . withUriPart ( uriPart ) . build ( ) ;
public class PojoWrapper { /** * / * ( non - Javadoc ) * @ see groovy . lang . GroovyObject # invokeMethod ( java . lang . String , java . lang . Object ) */ public Object invokeMethod ( final String methodName , final Object arguments ) { } }
return this . delegate . invokeMethod ( this . wrapped , methodName , arguments ) ;
public class OperationRunnerImpl { /** * This method has a direct dependency on how objects are serialized . * If the stream format is changed , this extraction method must be changed as well . * It makes an assumption that the callId is the first long field in the serialized operation . */ private long extractOper...
ObjectDataInput input = ( ( SerializationServiceV1 ) node . getSerializationService ( ) ) . initDataSerializableInputAndSkipTheHeader ( data ) ; return input . readLong ( ) ;
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link GenericCityObjectType } { @ code > } * @ param value * Java instance representing xml element ' s value . * @ return * the new instance of { @ link JAXBElement } { @ code < } { @ link GenericCityObjectType } { ...
return new JAXBElement < GenericCityObjectType > ( _GenericCityObject_QNAME , GenericCityObjectType . class , null , value ) ;
public class BAMInputFormat { /** * Reset traversal parameters so that all reads are included . * @ param conf the Hadoop configuration to set properties on */ public static void unsetTraversalParameters ( Configuration conf ) { } }
conf . unset ( BOUNDED_TRAVERSAL_PROPERTY ) ; conf . unset ( INTERVALS_PROPERTY ) ; conf . unset ( TRAVERSE_UNPLACED_UNMAPPED_PROPERTY ) ;
public class CompositeFaceletHandler { /** * { @ inheritDoc } */ public void apply ( FaceletContext ctx , UIComponent parent ) throws IOException { } }
for ( int i = 0 ; i < len ; i ++ ) { this . children [ i ] . apply ( ctx , parent ) ; }
public class Record { /** * Get the starting ID for this table . * Override this for different behavior . * @ return The starting id */ public int getEndingID ( ) { } }
if ( this . getTable ( ) != null ) if ( this . getTable ( ) . getDatabase ( ) != null ) return this . getTable ( ) . getDatabase ( ) . getEndingID ( ) ; return super . getEndingID ( ) ; // Never ( default )
public class AssertDependencies { /** * Asserts that a set of dependency rules is kept . * @ param clasz * Class to use for loading the resource - Cannot be < code > null < / code > . * @ param dependenciesFilePathAndName * XML resource ( path / name ) with allowed or forbidden dependencies - Cannot be < code >...
Utils4J . checkNotNull ( "clasz" , clasz ) ; Utils4J . checkNotNull ( "dependenciesFilePathAndName" , dependenciesFilePathAndName ) ; Utils4J . checkNotNull ( "classesDir" , classesDir ) ; try { final DependencyAnalyzer analyzer = new DependencyAnalyzer ( clasz , dependenciesFilePathAndName ) ; assertIntern ( classesDi...
public class DocumentRootImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setBackgroundColor ( String newBackgroundColor ) { } }
String oldBackgroundColor = backgroundColor ; backgroundColor = newBackgroundColor ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , ColorPackage . DOCUMENT_ROOT__BACKGROUND_COLOR , oldBackgroundColor , backgroundColor ) ) ;
public class TransformationUtils { /** * Does the actual parsing . */ private static List < TransformationDescription > loadDescrtipionsFromXMLInputSource ( InputSource source , String fileName ) throws Exception { } }
XMLReader xr = XMLReaderFactory . createXMLReader ( ) ; TransformationDescriptionXMLReader reader = new TransformationDescriptionXMLReader ( fileName ) ; xr . setContentHandler ( reader ) ; xr . parse ( source ) ; return reader . getResult ( ) ;
public class ReuseOracle { /** * This methods returns the full output to the input query . * It is possible that the query is already known ( answer provided by { @ link ReuseTree # getOutput ( Word ) } , the query * is new and no system state could be found for reusage ( { @ link ReuseCapableOracle # processQuery ...
Word < O > knownOutput = tree . getOutput ( query ) ; if ( knownOutput != null ) { return knownOutput ; } // Search for system state final NodeResult < S , I , O > nodeResult = tree . fetchSystemState ( query ) ; final ReuseCapableOracle < S , I , O > oracle = getReuseCapableOracle ( ) ; final Word < O > output ; // No...
public class EnglishGrammaticalStructure { /** * This method gets rid of multiwords in conjunctions to avoid having them * creating disconnected constituents e . g . , * " bread - 1 as - 2 well - 3 as - 4 cheese - 5 " will be turned into conj _ and ( bread , * cheese ) and then dep ( well - 3 , as - 2 ) and dep (...
// find typed deps of form cc ( gov , x ) for ( TypedDependency td1 : list ) { if ( td1 . reln ( ) == COORDINATION ) { TreeGraphNode x = td1 . dep ( ) ; // find typed deps of form dep ( x , y ) and kill them for ( TypedDependency td2 : list ) { if ( td2 . gov ( ) . equals ( x ) && ( td2 . reln ( ) == DEPENDENT || td2 ....
public class MessagePacker { /** * Writes an Integer value . * This method writes an integer using the smallest format from the int format family . * @ param r the integer to be written * @ return this * @ throws IOException when underlying output throws IOException */ public MessagePacker packInt ( int r ) thr...
if ( r < - ( 1 << 5 ) ) { if ( r < - ( 1 << 15 ) ) { writeByteAndInt ( INT32 , r ) ; } else if ( r < - ( 1 << 7 ) ) { writeByteAndShort ( INT16 , ( short ) r ) ; } else { writeByteAndByte ( INT8 , ( byte ) r ) ; } } else if ( r < ( 1 << 7 ) ) { writeByte ( ( byte ) r ) ; } else { if ( r < ( 1 << 8 ) ) { writeByteAndByt...
public class StringValue { /** * Sets the value of the StringValue to a substring of the given value . * @ param chars The new string value ( as a character array ) . * @ param offset The position to start the substring . * @ param len The length of the substring . */ public void setValue ( char [ ] chars , int o...
checkNotNull ( chars ) ; if ( offset < 0 || len < 0 || offset > chars . length - len ) { throw new IndexOutOfBoundsException ( ) ; } ensureSize ( len ) ; System . arraycopy ( chars , offset , this . value , 0 , len ) ; this . len = len ; this . hashCode = 0 ;
public class MementoResource { /** * Retrieve all of the Memento - related link headers given a collection of datetimes . * @ param identifier the public identifier for the resource * @ param mementos a collection of memento values * @ return a stream of link headers */ public static Stream < Link > getMementoLin...
if ( mementos . isEmpty ( ) ) { return empty ( ) ; } return concat ( getTimeMap ( identifier , mementos . first ( ) , mementos . last ( ) ) , mementos . stream ( ) . map ( mementoToLink ( identifier ) ) ) ;
public class JSDocInfoBuilder { /** * Records a return type . * @ return { @ code true } if the return type was recorded and { @ code false } if * it is invalid or was already defined */ public boolean recordReturnType ( JSTypeExpression jsType ) { } }
if ( jsType != null && currentInfo . getReturnType ( ) == null && ! hasAnySingletonTypeTags ( ) ) { currentInfo . setReturnType ( jsType ) ; populated = true ; return true ; } else { return false ; }
public class EventBus { /** * Emit a string event with parameters and force all listener to be called synchronously . * @ param event * the target event * @ param args * the arguments passed in * @ see # emit ( String , Object . . . ) */ public EventBus emitSync ( String event , Object ... args ) { } }
return _emitWithOnceBus ( eventContextSync ( event , args ) ) ;
public class AccessibilityFeature { /** * get the result speech recognize and find match in strings file . * @ param speechResult */ public void findMatch ( ArrayList < String > speechResult ) { } }
loadCadidateString ( ) ; for ( String matchCandidate : speechResult ) { Locale localeDefault = mGvrContext . getActivity ( ) . getResources ( ) . getConfiguration ( ) . locale ; if ( volumeUp . equals ( matchCandidate ) ) { startVolumeUp ( ) ; break ; } else if ( volumeDown . toLowerCase ( localeDefault ) . equals ( ma...
public class MithraCompositeList { /** * a llst iterator is a problem for a composite list as going back in the order of the list is an issue , * as are the other methods like set ( ) and add ( ) ( and especially , remove ) . * Convert the internal lists to one list ( if not already just one list ) * and return t...
FastList < MithraFastList < E > > localLists = this . lists ; if ( localLists . size ( ) == 1 ) { return localLists . getFirst ( ) . listIterator ( index ) ; } if ( localLists . isEmpty ( ) ) { return Collections . EMPTY_LIST . listIterator ( index ) ; } this . convertMultipleListsToFastList ( ) ; return this . lists ....
public class EquivalencerServiceImpl { /** * { @ inheritDoc } */ @ Override public NamespaceValue findNamespaceEquivalence ( NamespaceValue sourceNamespaceValue , Namespace targetNamespace ) throws EquivalencerException { } }
String equivalenceValue ; SkinnyUUID uuid ; if ( sourceNamespaceValue . getEquivalence ( ) != null ) { uuid = convert ( sourceNamespaceValue . getEquivalence ( ) ) ; equivalenceValue = equivalencer . equivalence ( uuid , convert ( targetNamespace ) ) ; } else { final Namespace sourceNs = sourceNamespaceValue . getNames...
public class InjectorConfiguration { /** * Mark a class instance as shared . The type of the class will be marked as injectable and in all cases this * class instance will be passed when requested . This holds true even with multiple injectors as long as they * are created from the same configuration . * @ param ...
// noinspection unchecked return new InjectorConfiguration ( scopes , definedClasses , factories , factoryClasses , sharedClasses , sharedInstances . withPut ( instance . getClass ( ) , instance ) , aliases , collectedAliases , namedParameterValues ) ;
public class MetaConfig { /** * Allows consumers to set special handling for how { @ link Meta # equals ( Object , Object ) } determines whether * the 2nd argument is the same type as the first . * @ param policy a non - null policy * @ return the new config * @ see # withInstanceofEqualsTypeCheck ( ) */ public...
Ensure . that ( policy != null , "policy != null" ) ; return new MetaConfigBuilder ( this ) . setInstanceCheckPolicy ( policy ) . build ( ) ;