signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class PresentsDObjectMgr { /** * Called as a helper for < code > ObjectDestroyedEvent < / code > events . It removes the object from * the object table . * @ return true if the event should be dispatched , false if it should be aborted . */ public boolean objectDestroyed ( DEvent event , DObject target ) { }...
int oid = target . getOid ( ) ; if ( oid == DUMMY_OID ) { log . warning ( "Denying attempt to destroy dummy object!" , new Exception ( ) ) ; return false ; } // log . info ( " Removing destroyed object from table " , " oid " , oid ) ; // remove the object from the table _objects . remove ( oid ) ; // deactivate the obj...
public class JesqueUtils { /** * Builds a namespaced Redis key with the given arguments . * @ param namespace * the namespace to use * @ param parts * the key parts to be joined * @ return an assembled String key */ public static String createKey ( final String namespace , final String ... parts ) { } }
return createKey ( namespace , Arrays . asList ( parts ) ) ;
public class LogicTransformer { /** * During the logic transformation , we eventually clone CEs , * specially patterns and corresponding declarations . So now * we need to fix any references to cloned declarations . */ protected void fixClonedDeclarations ( GroupElement and , Map < String , Class < ? > > globals ) ...
Stack < RuleConditionElement > contextStack = new Stack < RuleConditionElement > ( ) ; DeclarationScopeResolver resolver = new DeclarationScopeResolver ( globals , contextStack ) ; contextStack . push ( and ) ; processElement ( resolver , contextStack , and ) ; contextStack . pop ( ) ;
public class JacksonObjectPersister { @ Override protected T deserializeData ( String json ) throws CacheLoadingException { } }
try { return mJsonMapper . readValue ( json , getHandledClass ( ) ) ; } catch ( Exception e ) { throw new CacheLoadingException ( e ) ; }
public class ExampleServer { /** * ( non - Javadoc ) * @ see * org . jdiameter . api . NetworkReqListener # processRequest ( org . jdiameter . api * . Request ) */ @ Override public Answer processRequest ( Request request ) { } }
dumpMessage ( request , false ) ; if ( request . getCommandCode ( ) != commandCode ) { log . error ( "Received bad answer: " + request . getCommandCode ( ) ) ; return null ; } AvpSet requestAvpSet = request . getAvps ( ) ; Avp exchangeTypeAvp = requestAvpSet . getAvp ( exchangeTypeCode , vendorID ) ; Avp exchangeDataAv...
public class Option { /** * 设置values值 * @ param values */ public Option polar ( Polar ... values ) { } }
if ( values == null || values . length == 0 ) { return this ; } this . polar ( ) . addAll ( Arrays . asList ( values ) ) ; return this ;
public class BatchUpdateScheduleRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( BatchUpdateScheduleRequest batchUpdateScheduleRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( batchUpdateScheduleRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( batchUpdateScheduleRequest . getChannelId ( ) , CHANNELID_BINDING ) ; protocolMarshaller . marshall ( batchUpdateScheduleRequest . getCreates ( ) , CREATES_BI...
public class EmptyMemoryRecord { /** * Get the table name . */ public String getTableNames ( boolean bAddQuotes ) { } }
return ( m_tableName == null ) ? Record . formatTableNames ( EMPTY_MEMORY_RECORD_FILE , bAddQuotes ) : super . getTableNames ( bAddQuotes ) ;
public class WordNetRelation { /** * Creates or gets a Metadata with the given name * @ param name The name associated with the metadata * @ param reciprocal the inverse relation * @ param weight the weight of the corresponding edge * @ return The Metadata associated with the name or a new Metadata */ public st...
Preconditions . checkArgument ( ! Strings . isNullOrEmpty ( name ) ) ; Preconditions . checkArgument ( weight >= 0 , "Weight must be >= 0" ) ; name = name . toUpperCase ( ) . trim ( ) . replaceAll ( "\\p{Z}+" , "_" ) ; if ( ! index . containsKey ( name ) ) { index . put ( name , new WordNetRelation ( name , reciprocal ...
public class JavacParser { /** * Return operation tag of binary operator represented by token , * No _ TAG if token is not a binary operator . */ static JCTree . Tag optag ( TokenKind token ) { } }
switch ( token ) { case BARBAR : return OR ; case AMPAMP : return AND ; case BAR : return BITOR ; case BAREQ : return BITOR_ASG ; case CARET : return BITXOR ; case CARETEQ : return BITXOR_ASG ; case AMP : return BITAND ; case AMPEQ : return BITAND_ASG ; case EQEQ : return JCTree . Tag . EQ ; case BANGEQ : return NE ; c...
public class ValidationCellProcessor { /** * { @ link SuperCsvValidationException . Builder } のインスタンスを作成する 。 * @ param context CsvContext CSVのコンテキスト 。 * @ return 予め検証用のメッセージは設定された状態で作成される 。 * ただし 、 { @ link # getValidationMessage ( ) } がnullまたは空の場合 、 { @ link # getDefaultValidationMessage ( ) } が設定される 。 */ p...
String message = getValidationMessage ( ) ; if ( Utils . isEmpty ( message ) ) { message = getDefaultValidationMessage ( ) ; } return new SuperCsvValidationException . Builder ( context , this ) . validationMessage ( message ) ;
public class PipeBlobBuilder { /** * Adds a generic array to this PipeBlob * @ throws IllegalArgumentException if value is not an array */ public PipeBlobBuilder add ( String name , Object value ) { } }
elements . add ( PipeDataElement . newInstance ( name , value ) ) ; return this ;
public class ESClient { /** * Adds the fields to builder * @ param fieldsToSelect * the fields to select * @ param clazz * the clazz * @ param metaModel * the meta model * @ param builder * the builder */ private void addFieldsToBuilder ( String [ ] fieldsToSelect , Class clazz , MetamodelImpl metaModel...
if ( fieldsToSelect != null && fieldsToSelect . length > 1 && ! ( fieldsToSelect [ 1 ] == null ) ) { logger . debug ( "Fields added in query are: " ) ; for ( int i = 1 ; i < fieldsToSelect . length ; i ++ ) { logger . debug ( i + " : " + fieldsToSelect [ i ] ) ; builder = builder . addField ( ( ( AbstractAttribute ) me...
public class YarnContainerManager { /** * RM Callback : RM requests application shutdown . */ @ Override public void onShutdownRequest ( ) { } }
this . reefEventHandlers . onRuntimeStatus ( RuntimeStatusEventImpl . newBuilder ( ) . setName ( RUNTIME_NAME ) . setState ( State . DONE ) . build ( ) ) ; this . driverStatusManager . onError ( new Exception ( "Shutdown requested by YARN." ) ) ;
public class UsagesInner { /** * Gets the current usage count and the limit for the resources of the location under the subscription . * @ param location The location of the Azure Storage resource . * @ param serviceCallback the async ServiceCallback to handle successful and failed responses . * @ throws IllegalA...
return ServiceFuture . fromResponse ( listByLocationWithServiceResponseAsync ( location ) , serviceCallback ) ;
public class MappingFilterParser { /** * C : \ \ Project \ \ Obdalib \ \ obdalib - parent \ \ obdalib - core \ \ src \ \ main \ \ java \ \ it \ \ unibz \ \ inf \ \ obda \ \ gui \ \ swing \ \ utils \ \ MappingFilter . g : 77:1 : keyword returns [ String [ ] value ] : t1 = input ( COMMA t2 = input ) * ; */ public final S...
String [ ] value = null ; String t1 = null ; String t2 = null ; List < String > inputList = new LinkedList < String > ( ) ; try { // C : \ \ Project \ \ Obdalib \ \ obdalib - parent \ \ obdalib - core \ \ src \ \ main \ \ java \ \ it \ \ unibz \ \ inf \ \ obda \ \ gui \ \ swing \ \ utils \ \ MappingFilter . g : 81:3 : ...
public class WTabSet { /** * Indicates whether the tab at the given index is visible . * @ param idx the index of the WTab to test . * @ return true if the tab at the given index is visible , false if it is invisible . */ public boolean isTabVisible ( final int idx ) { } }
WTab tab = getTab ( idx ) ; Container tabParent = tab . getParent ( ) ; if ( tabParent instanceof WTabGroup ) { return tab . isVisible ( ) && tabParent . isVisible ( ) ; } else { return tab . isVisible ( ) ; }
public class SystemProperties { /** * Returns { @ code true } if the system property * named by the argument exists and is equal to the string * { @ code " true " } , or a default value . If the system property does not exist , return * { @ code " true " } if a property by this name exists in the { @ link Servlet...
String v = getString ( name ) ; if ( v != null ) { return Boolean . parseBoolean ( v ) ; } return def ;
public class JavascriptResourceReferenceAppenderBehavior { /** * Gets the resource reference . * @ return the resource reference */ private ResourceReference getResourceReference ( ) { } }
final Map < String , Object > map = new HashMap < > ( ) ; map . put ( "url" , WicketUrlExtensions . getUrlAsString ( pageClass ) ) ; final ResourceReference resourceReference = new TextTemplateResourceReference ( pageClass , this . filename , "text/javascript" , Model . ofMap ( map ) ) ; return resourceReference ;
public class DualInputOperator { /** * Sets the first input to the union of the given operators . * @ param inputs The operator ( s ) that form the first inputs . * @ deprecated This method will be removed in future versions . Use the { @ link Union } operator instead . */ @ Deprecated public void setFirstInputs ( ...
this . input1 = Operator . createUnionCascade ( inputs ) ;
public class SAML2AuthnResponseValidator { /** * Validates the SAML protocol response : * - IssueInstant * - Issuer * - StatusCode * - Signature * @ param response the response * @ param context the context * @ param engine the engine */ protected final void validateSamlProtocolResponse ( final Response r...
validateSuccess ( response . getStatus ( ) ) ; validateSignatureIfItExists ( response . getSignature ( ) , context , engine ) ; validateIssueInstant ( response . getIssueInstant ( ) ) ; AuthnRequest request = null ; final SAMLMessageStore messageStorage = context . getSAMLMessageStore ( ) ; if ( messageStorage != null ...
public class ChannelFactory { /** * Note that the returned < code > RequestBalancingStrategy < / code > may not be thread - safe . */ public FailoverRequestBalancingStrategy getBalancer ( byte [ ] cacheName ) { } }
lock . readLock ( ) . lock ( ) ; try { return balancers . get ( new WrappedByteArray ( cacheName ) ) ; } finally { lock . readLock ( ) . unlock ( ) ; }
public class InstanceGroupClient { /** * Removes one or more instances from the specified instance group , but does not delete those * instances . * < p > If the group is part of a backend service that has enabled connection draining , it can take * up to 60 seconds after the connection draining duration before t...
RemoveInstancesInstanceGroupHttpRequest request = RemoveInstancesInstanceGroupHttpRequest . newBuilder ( ) . setInstanceGroup ( instanceGroup ) . setInstanceGroupsRemoveInstancesRequestResource ( instanceGroupsRemoveInstancesRequestResource ) . build ( ) ; return removeInstancesInstanceGroup ( request ) ;
public class Condition { /** * URL exactly equals to the value returned by { @ link org . glassfish . grizzly . http . server . Request # getRequestURL ( ) } */ public static Condition url ( final String url ) { } }
return new Condition ( input -> input . getUrl ( ) . equals ( url ) ) ;
public class Variable { /** * Evaluates the membership function of value ` x ` for each term ` i ` , * resulting in a fuzzy value in the form * ` \ tilde { x } = \ sum _ i { \ mu _ i ( x ) / i } ` * @ param x is the value to fuzzify * @ return the fuzzy value expressed as ` \ sum _ i { \ mu _ i ( x ) / i } ` */...
StringBuilder sb = new StringBuilder ( ) ; for ( Term term : getTerms ( ) ) { double fx = term . membership ( x ) ; if ( sb . length ( ) == 0 ) { sb . append ( Op . str ( fx ) ) ; } else if ( Double . isNaN ( fx ) || Op . isGE ( fx , 0.0 ) ) { sb . append ( " + " ) . append ( Op . str ( fx ) ) ; } else { sb . append ( ...
public class NameInCommentHeuristic { /** * Return true if there are no comments on the original actual parameter of a change which match * the name of the formal parameter . */ @ Override public boolean isAcceptableChange ( Changes changes , Tree node , MethodSymbol symbol , VisitorState state ) { } }
// Now check to see if there is a comment in the position of any actual parameter we want to // change which matches the formal parameter ImmutableList < Commented < ExpressionTree > > comments = findCommentsForArguments ( node , state ) ; return changes . changedPairs ( ) . stream ( ) . noneMatch ( p -> { MatchType ma...
public class MessagePattern { /** * Validates and parses an argument name or argument number string . * An argument name must be a " pattern identifier " , that is , it must contain * no Unicode Pattern _ Syntax or Pattern _ White _ Space characters . * If it only contains ASCII digits , then it must be a small i...
if ( ! PatternProps . isIdentifier ( name ) ) { return ARG_NAME_NOT_VALID ; } return parseArgNumber ( name , 0 , name . length ( ) ) ;
public class BigDecimal { /** * Returns a { @ code BigDecimal } whose value is the integer part * of the quotient { @ code ( this / divisor ) } rounded down . The * preferred scale of the result is { @ code ( this . scale ( ) - * divisor . scale ( ) ) } . * @ param divisor value by which this { @ code BigDecima...
// Calculate preferred scale int preferredScale = saturateLong ( ( long ) this . scale - divisor . scale ) ; if ( this . compareMagnitude ( divisor ) < 0 ) { // much faster when this < < divisor return zeroValueOf ( preferredScale ) ; } if ( this . signum ( ) == 0 && divisor . signum ( ) != 0 ) return this . setScale (...
public class DateSpinner { /** * only to be used when FLAG _ NUMBERS and FLAG _ WEEKDAY _ NAMES have been set */ private String formatSecondaryDate ( @ NonNull Calendar date ) { } }
if ( secondaryDateFormat == null ) return DateUtils . formatDateTime ( getContext ( ) , date . getTimeInMillis ( ) , DateUtils . FORMAT_SHOW_DATE | DateUtils . FORMAT_NUMERIC_DATE ) ; else return secondaryDateFormat . format ( date . getTime ( ) ) ;
public class EDBConverter { /** * Returns all property descriptors for a given class . */ private List < PropertyDescriptor > getPropertyDescriptorsForClass ( Class < ? > clasz ) { } }
try { BeanInfo beanInfo = Introspector . getBeanInfo ( clasz ) ; return Arrays . asList ( beanInfo . getPropertyDescriptors ( ) ) ; } catch ( IntrospectionException e ) { LOGGER . error ( "instantiation exception while trying to create instance of class {}" , clasz . getName ( ) ) ; } return Lists . newArrayList ( ) ;
public class GitlabAPI { /** * GET / projects / : id / repository / compare */ public GitlabCommitComparison compareCommits ( Serializable projectId , String commitHash1 , String commitHash2 ) throws IOException { } }
return compareCommits ( projectId , commitHash1 , commitHash2 , new Pagination ( ) ) ;
public class ClientFactory { /** * Calls { @ code clientBuilder . setApiKey ( ApiKeys . builder ( ) . } { @ link com . stormpath . sdk . api . ApiKeyBuilder # setSecretPropertyName ( String ) setSecretPropertyName ( apiKeySecretPropertyName ) } { @ code . build ( ) ) } . * @ param apiKeySecretPropertyName the name us...
this . clientBuilder . setApiKey ( ApiKeys . builder ( ) . setSecretPropertyName ( apiKeySecretPropertyName ) . build ( ) ) ;
public class DatePickerDialog { /** * Sets an array of dates which should be highlighted when the picker is drawn * @ param highlightedDays an Array of Calendar objects containing the dates to be highlighted */ @ SuppressWarnings ( "unused" ) public void setHighlightedDays ( Calendar [ ] highlightedDays ) { } }
for ( Calendar highlightedDay : highlightedDays ) { this . highlightedDays . add ( Utils . trimToMidnight ( ( Calendar ) highlightedDay . clone ( ) ) ) ; } if ( mDayPickerView != null ) mDayPickerView . onChange ( ) ;
public class AWSGlueClient { /** * Deletes multiple tables at once . * < note > * After completing this operation , you will no longer have access to the table versions and partitions that belong * to the deleted table . AWS Glue deletes these " orphaned " resources asynchronously in a timely manner , at the * ...
request = beforeClientExecution ( request ) ; return executeBatchDeleteTable ( request ) ;
public class PreDecorationFilter { /** * / * for testing */ String getForwardUri ( String requestURI ) { } }
// default fallback servlet is DispatcherServlet String fallbackPrefix = this . dispatcherServletPath ; String fallBackUri = requestURI ; if ( RequestUtils . isZuulServletRequest ( ) ) { // remove the Zuul servletPath from the requestUri log . debug ( "zuulServletPath=" + this . properties . getServletPath ( ) ) ; fall...
public class Expirer { /** * Start the expiry daemon . * @ param expiryInterval An interval in milliseconds which may be set via * a custom property and if zero or more will be used to override the * default expiry interval which was set when the Expirer was created . * @ throws SevereMessageStoreException */ p...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "start" , "interval=" + expiryInterval + " indexSize=" + expiryIndex . size ( ) ) ; messagingEngine = jsme ; if ( expiryInterval >= 0 ) // If an expiry interval was given , use it { interval = expiryInterval ; } else ...
public class Quaternionf { /** * / * ( non - Javadoc ) * @ see org . joml . Quaternionfc # getAsMatrix4f ( java . nio . ByteBuffer ) */ public ByteBuffer getAsMatrix4f ( ByteBuffer dest ) { } }
MemUtil . INSTANCE . putMatrix4f ( this , dest . position ( ) , dest ) ; return dest ;
public class MesosFramework { /** * Restart a topology */ public boolean restartJob ( int containerIndex ) { } }
synchronized ( this ) { if ( isTerminated ) { LOG . severe ( "Job has been killed" ) ; return false ; } // List of tasks to restart List < String > tasksToRestart = new ArrayList < > ( ) ; if ( containerIndex == - 1 ) { // Restart all tasks tasksToRestart . addAll ( tasksId . values ( ) ) ; } else { tasksToRestart . ad...
public class GraphInferenceGrpcClient { /** * This method allows to remove graph from the GraphServer instance * @ param graphId */ public void dropGraph ( long graphId ) { } }
val builder = new FlatBufferBuilder ( 128 ) ; val off = FlatDropRequest . createFlatDropRequest ( builder , graphId ) ; builder . finish ( off ) ; val req = FlatDropRequest . getRootAsFlatDropRequest ( builder . dataBuffer ( ) ) ; val v = blockingStub . forgetGraph ( req ) ; if ( v . status ( ) != 0 ) throw new ND4JIll...
public class JsonProxyFactoryBean { /** * { @ inheritDoc } */ @ Override public Object invoke ( MethodInvocation invocation ) throws Throwable { } }
Method method = invocation . getMethod ( ) ; if ( method . getDeclaringClass ( ) == Object . class && method . getName ( ) . equals ( "toString" ) ) { return proxyObject . getClass ( ) . getName ( ) + "@" + System . identityHashCode ( proxyObject ) ; } Type retType = ( invocation . getMethod ( ) . getGenericReturnType ...
public class Reflections { /** * get constructors with any parameter annotated with given annotation */ public Set < Constructor > getConstructorsWithAnyParamAnnotated ( Class < ? extends Annotation > annotation ) { } }
return getConstructorsFromDescriptors ( store . get ( index ( MethodParameterScanner . class ) , annotation . getName ( ) ) , loaders ( ) ) ;
public class UnsavedRevision { /** * Sets the userProperties of the Revision . * Set replaces all properties except for those with keys prefixed with ' _ ' . */ @ InterfaceAudience . Public public void setUserProperties ( Map < String , Object > userProperties ) { } }
Map < String , Object > newProps = new HashMap < String , Object > ( ) ; newProps . putAll ( userProperties ) ; for ( String key : properties . keySet ( ) ) { if ( key . startsWith ( "_" ) ) { newProps . put ( key , properties . get ( key ) ) ; // Preserve metadata properties } } properties = newProps ;
public class AFactoryAppBeans { /** * < p > Get MngSoftware in lazy mode . < / p > * @ return MngSoftware - MngSoftware * @ throws Exception - an exception */ public final MngSoftware lazyGetMngSoftware ( ) throws Exception { } }
String beanName = getMngSoftwareName ( ) ; MngSoftware mngSoftware = ( MngSoftware ) this . beansMap . get ( beanName ) ; if ( mngSoftware == null ) { mngSoftware = new MngSoftware ( ) ; mngSoftware . setLogger ( lazyGetLogger ( ) ) ; this . beansMap . put ( beanName , mngSoftware ) ; lazyGetLogger ( ) . info ( null , ...
public class SimpleDbQueryMethod { /** * Returns the query string declared in a { @ link Query } annotation or { @ literal null } if neither the annotation * found nor the attribute was specified . * @ return a Query String */ public final String getAnnotatedQuery ( ) { } }
String valueParameter = getValueParameters ( ) ; String whereParameters = getWhereParameters ( ) ; String [ ] selectParameters = getSelectParameters ( ) ; String result = QueryParserUtils . buildQueryFromQueryParameters ( valueParameter , selectParameters , whereParameters , simpleDbDomain . getDomain ( getDomainClass ...
public class RythmEngine { /** * Get cached value using key and a list of argument values * < p > Not an API for user application < / p > * @ param key * @ param args * @ return cached item */ public Serializable cached ( String key , Object ... args ) { } }
if ( conf ( ) . cacheDisabled ( ) ) return null ; ICacheService cacheService = _cacheService ; if ( args . length > 0 ) { StringBuilder sb = new StringBuilder ( key ) ; for ( Object arg : args ) { sb . append ( "-" ) . append ( arg ) ; } key = sb . toString ( ) ; } return cacheService . get ( key ) ;
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EEnum getObjectOffsetObjTpe ( ) { } }
if ( objectOffsetObjTpeEEnum == null ) { objectOffsetObjTpeEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 106 ) ; } return objectOffsetObjTpeEEnum ;
public class ApiOvhMe { /** * Get this object properties * REST : GET / me / deposit / { depositId } / paidBills / { billId } / details / { billDetailId } * @ param depositId [ required ] * @ param billId [ required ] * @ param billDetailId [ required ] */ public OvhBillDetail deposit_depositId_paidBills_billId...
String qPath = "/me/deposit/{depositId}/paidBills/{billId}/details/{billDetailId}" ; StringBuilder sb = path ( qPath , depositId , billId , billDetailId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhBillDetail . class ) ;
public class Dialogs { /** * Dialog with given title , provided text , and more details available after pressing ' Details ' button . */ public static DetailsDialog showDetailsDialog ( Stage stage , String text , String title , String details ) { } }
return showDetailsDialog ( stage , text , title , details , false ) ;
public class InternalSimpleExpressionsParser { /** * InternalSimpleExpressions . g : 468:1 : entryRuleNumberLiteral returns [ EObject current = null ] : iv _ ruleNumberLiteral = ruleNumberLiteral EOF ; */ public final EObject entryRuleNumberLiteral ( ) throws RecognitionException { } }
EObject current = null ; EObject iv_ruleNumberLiteral = null ; try { // InternalSimpleExpressions . g : 469:2 : ( iv _ ruleNumberLiteral = ruleNumberLiteral EOF ) // InternalSimpleExpressions . g : 470:2 : iv _ ruleNumberLiteral = ruleNumberLiteral EOF { newCompositeNode ( grammarAccess . getNumberLiteralRule ( ) ) ; p...
public class AopProxyWriter { /** * visitInterceptorTypes . * @ param interceptorTypes types */ public void visitInterceptorTypes ( Object ... interceptorTypes ) { } }
if ( interceptorTypes != null ) { this . interceptorTypes . addAll ( Arrays . asList ( interceptorTypes ) ) ; }
public class ElementMatchers { /** * Matches a { @ link ByteCodeElement } for being declared by a { @ link TypeDescription } that is matched by the given matcher . This matcher matches * a declared element ' s raw declaring type . * @ param matcher A matcher for the declaring type of the matched byte code element a...
return isDeclaredByGeneric ( erasure ( matcher ) ) ;
public class IRFactory { /** * only used for destructuring forms */ void decompileObjectLiteral ( ObjectLiteral node ) { } }
decompiler . addToken ( Token . LC ) ; List < ObjectProperty > props = node . getElements ( ) ; int size = props . size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { ObjectProperty prop = props . get ( i ) ; boolean destructuringShorthand = Boolean . TRUE . equals ( prop . getProp ( Node . DESTRUCTURING_SHORTHAND ) ) ; d...
public class WriteFileExtensions { /** * Writes the source file with the best performance to the destination file . * @ param srcfile * The source file . * @ param destFile * The destination file . * @ throws IOException * Signals that an I / O exception has occurred . */ public static void readSourceFileAn...
try ( FileInputStream fis = new FileInputStream ( srcfile ) ; FileOutputStream fos = new FileOutputStream ( destFile ) ; BufferedInputStream bis = new BufferedInputStream ( fis ) ; BufferedOutputStream bos = new BufferedOutputStream ( fos ) ; ) { final int availableLength = bis . available ( ) ; final byte [ ] totalByt...
public class XMLConverter { /** * serialize a Object to his xml Format represenation * @ param object Object to serialize * @ param done * @ return serialized Object * @ throws ConverterException */ private String _serialize ( Object object , Map < Object , String > done ) throws ConverterException { } }
type = "OBJECT" ; String rtn ; deep ++ ; // NULL if ( object == null ) { rtn = goIn ( ) + "" ; deep -- ; type = "NULL" ; return rtn ; } // String if ( object instanceof String ) { rtn = goIn ( ) + XMLUtil . escapeXMLString ( object . toString ( ) ) ; deep -- ; type = "STRING" ; return rtn ; } // Number if ( object inst...
public class TypicalFaicliApiFailureHook { @ Override public OptionalThing < ApiResponse > handleClientException ( ApiFailureResource resource , RuntimeException cause ) { } }
final FaicliUnifiedFailureType failureType = FaicliUnifiedFailureType . CLIENT_ERROR ; final FaicliUnifiedFailureResult result = createFailureResult ( failureType , resource , cause ) ; adjustClientExceptionErrors ( resource , cause , result ) ; return OptionalThing . of ( asJson ( result ) ) ; // HTTP status will be a...
public class CPOptionPersistenceImpl { /** * Removes all the cp options where uuid = & # 63 ; from the database . * @ param uuid the uuid */ @ Override public void removeByUuid ( String uuid ) { } }
for ( CPOption cpOption : findByUuid ( uuid , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ) { remove ( cpOption ) ; }
public class SpiderSession { /** * Delete the object with the given ID from the given table . This is a convenience * method that creates a { @ link DBObjectBatch } consisting of a single { @ link DBObject } * with the given ID and then calls { @ link # deleteBatch ( String , DBObjectBatch ) } . The * { @ link Ob...
Utils . require ( ! Utils . isEmpty ( tableName ) , "tableName" ) ; Utils . require ( ! Utils . isEmpty ( objID ) , "objID" ) ; TableDefinition tableDef = m_appDef . getTableDef ( tableName ) ; Utils . require ( tableDef != null , "Unknown table for application '%s': %s" , m_appDef . getAppName ( ) , tableName ) ; DBOb...
public class ShardedCounterSnapshotFactory { /** * Idempotent initialization , so that we don ' t reset an existing shard to zero - counterId may * have already been initialized and incremented by another process . */ private static void initialize ( Storage storage , String counterId ) { } }
LOG . debug ( "Initializing counter shards for resource {}" , counterId ) ; for ( int startIndex = 0 ; startIndex < NUM_SHARDS ; startIndex += TRANSACTION_GROUP_SIZE ) { initShardRange ( storage , counterId , startIndex , Math . min ( NUM_SHARDS , startIndex + TRANSACTION_GROUP_SIZE ) ) ; }
public class EntryStream { /** * Merge series of adjacent stream entries with equal keys combining the * corresponding values using the provided { @ code Collector } . * This is a < a href = " package - summary . html # StreamOps " > quasi - intermediate < / a > * partial reduction operation . * The key of the ...
Supplier < A > supplier = collector . supplier ( ) ; BiConsumer < A , ? super V > accumulator = collector . accumulator ( ) ; BinaryOperator < A > combiner = collector . combiner ( ) ; Function < A , R > finisher = collector . finisher ( ) ; return new StreamEx < > ( new CollapseSpliterator < Entry < K , V > , PairBox ...
public class SqlExecutor { /** * Sets parameters to the PreparedStatement . * @ param stmt the prepared statement * @ param params the parameters * @ throws SQLException if something goes wrong . */ @ SuppressWarnings ( "unchecked" ) protected void setParameters ( PreparedStatement stmt , Object [ ] params ) thro...
for ( int i = 0 ; i < params . length ; i ++ ) { if ( params [ i ] == null ) { stmt . setObject ( i + 1 , null ) ; } else { Class < ? > propertType = params [ i ] . getClass ( ) ; @ SuppressWarnings ( "rawtypes" ) ValueType valueType = MirageUtil . getValueType ( propertType , null , dialect , valueTypes ) ; if ( value...
public class StyleUtils { /** * Set the feature style into the polygon options * @ param polygonOptions polygon options * @ param featureStyle feature style * @ param density display density : { @ link android . util . DisplayMetrics # density } * @ return true if style was set into the polygon options */ publi...
boolean featureStyleSet = false ; if ( featureStyle != null ) { featureStyleSet = setStyle ( polygonOptions , featureStyle . getStyle ( ) , density ) ; } return featureStyleSet ;
public class QueryBuilder { /** * A literal term , as in { @ code WHERE k = 1 } . * < p > This is an alternative to { @ link # literal ( Object ) } for custom type mappings . The value will * be turned into a string with { @ link TypeCodec # format ( Object ) } , and inlined in the query . */ @ NonNull public stati...
return new DefaultLiteral < > ( value , codec ) ;
public class BatchResult { /** * Use { @ link # getResponses ( ) } */ @ Deprecated public E set ( int index , E element ) { } }
return responses . set ( index , element ) ;
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } */ @ XmlElementDecl ( namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/" , name = "folderId" , scope = CreateDocument . class ) public JAXBElement < String > createCreateDocumentFo...
return new JAXBElement < String > ( _CreateDocumentFolderId_QNAME , String . class , CreateDocument . class , value ) ;
public class CudaMemoryManager { /** * This method provides basic memcpy functionality with respect to target environment * @ param dstBuffer * @ param srcBuffer */ @ Override public void memcpy ( DataBuffer dstBuffer , DataBuffer srcBuffer ) { } }
CudaContext context = ( CudaContext ) AtomicAllocator . getInstance ( ) . getDeviceContext ( ) . getContext ( ) ; if ( dstBuffer instanceof CompressedDataBuffer && ! ( srcBuffer instanceof CompressedDataBuffer ) ) { // destination is compressed , source isn ' t AllocationPoint srcPoint = AtomicAllocator . getInstance (...
public class AWSSecretsManagerClient { /** * Creates a new secret . A secret in Secrets Manager consists of both the protected secret data and the important * information needed to manage the secret . * Secrets Manager stores the encrypted secret data in one of a collection of " versions " associated with the secre...
request = beforeClientExecution ( request ) ; return executeCreateSecret ( request ) ;
public class DataLoader { /** * Requests to load the list of data provided by the specified keys asynchronously , and returns a composite future * of the resulting values . * If batching is enabled ( the default ) , you ' ll have to call { @ link DataLoader # dispatch ( ) } at a later stage to * start batch execu...
return loadMany ( keys , Collections . emptyList ( ) ) ;
public class CmsMultiDialog { /** * Checks if an exception occurred during a multi resource operation , and throws a new exception if necessary . < p > * @ param messages the message bundle to use for the exception message generation * @ param key the key for the exception to throw with one parameter * @ throws C...
if ( m_multiOperationException . hasExceptions ( ) ) { m_multiOperationException . setMessage ( new CmsMessageContainer ( messages , key , new Object [ ] { m_multiOperationException } ) ) ; throw m_multiOperationException ; }
public class Graph { /** * Joins the vertex DataSet of this graph with an input Tuple2 DataSet and applies * a user - defined transformation on the values of the matched records . * The vertex ID and the first field of the Tuple2 DataSet are used as the join keys . * @ param inputDataSet the Tuple2 DataSet to joi...
DataSet < Vertex < K , VV > > resultedVertices = this . getVertices ( ) . coGroup ( inputDataSet ) . where ( 0 ) . equalTo ( 0 ) . with ( new ApplyCoGroupToVertexValues < > ( vertexJoinFunction ) ) . name ( "Join with vertices" ) ; return new Graph < > ( resultedVertices , this . edges , this . context ) ;
public class ArchetypeUtils { /** * Is the file a valid file to copy ( excludes files starting with a dot , build output * or java / groovy / kotlin / scala source code */ public boolean isValidFileToCopy ( File projectDir , File src , Set < String > ignoreFileSet ) throws IOException { } }
if ( isValidSourceFileOrDir ( src ) ) { if ( src . equals ( projectDir ) ) { return true ; } String relative = relativePath ( projectDir , src ) ; return ! sourceCodeDirPaths . contains ( relative ) && ! ignoreFileSet . contains ( relative ) ; } return false ;
public class ListManagementImagesImpl { /** * Add an image to the list with list Id equal to list Id passed . * @ param listId List Id of the image list . * @ param contentType The content type . * @ param imageUrl The image url . * @ param addImageUrlInputOptionalParameter the object representing the optional ...
return ServiceFuture . fromResponse ( addImageUrlInputWithServiceResponseAsync ( listId , contentType , imageUrl , addImageUrlInputOptionalParameter ) , serviceCallback ) ;
public class FluoSparkHelper { /** * Bulk import RowColumn / Value data into Fluo table ( obtained from Fluo configuration ) . This * method will repartition RDD using the current split points of the Fluo table , creating one * partition per tablet in the table . This is done so that one RFile is created per tablet...
data = partitionForAccumulo ( data , fluoConfig . getAccumuloTable ( ) , opts ) ; JavaPairRDD < Key , Value > kvData = data . flatMapToPair ( tuple -> { List < Tuple2 < Key , Value > > output = new LinkedList < > ( ) ; RowColumn rc = tuple . _1 ( ) ; FluoKeyValueGenerator fkvg = new FluoKeyValueGenerator ( ) ; fkvg . s...
public class ApiOvhEmailmxplan { /** * Get diclaimer attributes to substitute with Active Directory properties * REST : GET / email / mxplan / { service } / domain / { domainName } / disclaimerAttribute * @ param service [ required ] The internal name of your mxplan organization * @ param domainName [ required ] ...
String qPath = "/email/mxplan/{service}/domain/{domainName}/disclaimerAttribute" ; StringBuilder sb = path ( qPath , service , domainName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t3 ) ;
public class ReflectionUtils { /** * Return all Fields from a class ( including inherited ) , mapped by * String field name to java . lang . reflect . Field . * @ param c Class whose fields are being fetched . * @ return Map of all fields on the Class , keyed by String field * name to java . lang . reflect . Fi...
Map < String , Field > fieldMap = new HashMap < > ( ) ; Collection < Field > fields = getDeepDeclaredFields ( c ) ; for ( Field field : fields ) { String fieldName = field . getName ( ) ; if ( fieldMap . containsKey ( fieldName ) ) { // Can happen when parent and child class both have private field with same name field...
public class TemplateFilter { /** * Checks whether to include the template with the given name in the * database or not . * @ param tpl * the template name * @ return true , if the template should be included in the db */ public boolean acceptTemplate ( String tpl ) { } }
if ( isInWhiteList ( tpl ) && ! isInBlackList ( tpl ) ) { if ( containsAllowedPrefix ( tpl ) && ! containsRestrictedPrefix ( tpl ) ) { return true ; } else { return false ; } } else { return false ; }
public class Task { /** * The Duration Variance field contains the difference between the * baseline duration of a task and the total duration ( current estimate ) * of a task . * @ return Duration */ public Duration getDurationVariance ( ) { } }
Duration variance = ( Duration ) getCachedValue ( TaskField . DURATION_VARIANCE ) ; if ( variance == null ) { Duration duration = getDuration ( ) ; Duration baselineDuration = getBaselineDuration ( ) ; if ( duration != null && baselineDuration != null ) { variance = Duration . getInstance ( duration . getDuration ( ) -...
public class TimestampUtils { /** * Returns the SQL Time object matching the given bytes with { @ link Oid # TIME } or * { @ link Oid # TIMETZ } . * @ param tz The timezone used when received data is { @ link Oid # TIME } , ignored if data already * contains { @ link Oid # TIMETZ } . * @ param bytes The binary ...
if ( ( bytes . length != 8 && bytes . length != 12 ) ) { throw new PSQLException ( GT . tr ( "Unsupported binary encoding of {0}." , "time" ) , PSQLState . BAD_DATETIME_FORMAT ) ; } long millis ; int timeOffset ; if ( usesDouble ) { double time = ByteConverter . float8 ( bytes , 0 ) ; millis = ( long ) ( time * 1000 ) ...
public class ResourceadapterImpl { /** * Returns all < code > config - property < / code > elements * @ return list of < code > config - property < / code > */ public List < ConfigProperty < Resourceadapter < T > > > getAllConfigProperty ( ) { } }
List < ConfigProperty < Resourceadapter < T > > > list = new ArrayList < ConfigProperty < Resourceadapter < T > > > ( ) ; List < Node > nodeList = childNode . get ( "config-property" ) ; for ( Node node : nodeList ) { ConfigProperty < Resourceadapter < T > > type = new ConfigPropertyImpl < Resourceadapter < T > > ( thi...
public class XmlParser { /** * Parse a provided XML String and return the generated DOM Document . * @ param xml A String containing XML . * @ return A Document generated from the parsed XML . * @ throws NexmoResponseParseException If there is a problem initializing the XML parser or parsing the XML . */ public D...
// TODO : Maybe an Error subclass for XML initialization errors , as these are serious and unexpected . Document doc ; this . documentBuilderLock . lock ( ) ; try { if ( this . documentBuilder == null ) { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory . newInstance ( ) ; this . documentBuilder =...
public class CreateTaskSetRequest { /** * The details of the service discovery registries to assign to this task set . For more information , see < a * href = " http : / / docs . aws . amazon . com / AmazonECS / latest / developerguide / service - discovery . html " > Service Discovery < / a > . * @ param serviceRe...
if ( serviceRegistries == null ) { this . serviceRegistries = null ; return ; } this . serviceRegistries = new com . amazonaws . internal . SdkInternalList < ServiceRegistry > ( serviceRegistries ) ;
public class SleeSipProviderImpl { /** * ( non - Javadoc ) * @ see * net . java . slee . resource . sip . SleeSipProvider # isLocalHostname ( java . lang . * String ) */ public boolean isLocalHostname ( String host ) { } }
checkState ( ) ; try { InetAddress [ ] addresses = InetAddress . getAllByName ( host ) ; Set < InetAddress > stackAddresses = new HashSet < InetAddress > ( ) ; for ( ListeningPoint lp : this . provider . getListeningPoints ( ) ) { InetAddress tmp = InetAddress . getByName ( lp . getIPAddress ( ) ) ; if ( tmp != null ) ...
public class ResourceType { /** * Returns the value of the property for this resource type . * @ return the Boolean value of the property . If the property hasn ' t been set , False is returned . * @ since 3.0 */ public boolean getBooleanProperty ( String key ) { } }
requireNonNull ( key ) ; String value = properties . get ( key ) ; return value != null && Boolean . parseBoolean ( value ) ;
public class BidiFormatter { /** * Formats a string of given directionality for use in plain - text output of the context * directionality , so an opposite - directionality string is neither garbled nor garbles its * surroundings . As opposed to { @ link # spanWrap } , this makes use of Unicode bidi formatting * ...
BidiWrappingText wrappingText = unicodeWrappingText ( dir , str , isHtml ) ; return wrappingText . beforeText ( ) + str + wrappingText . afterText ( ) ;
public class PcapRecordHeader { /** * Create a default record header , which you must alter later on to match * whatever it is you are writing into the pcap stream . * @ param timestamp * the timestamp in milliseconds since epoch . This is the * timestamp of when the packet " arrived " * @ return */ public st...
final byte [ ] body = new byte [ SIZE ] ; // time stamp seconds // body [ 0 ] = ( byte ) 0x00; // body [ 1 ] = ( byte ) 0x00; // body [ 2 ] = ( byte ) 0x00; // body [ 3 ] = ( byte ) 0x00; // Time stamp microseconds // body [ 4 ] = ( byte ) 0x00; // body [ 5 ] = ( byte ) 0x00; // body [ 6 ] = ( byte ) 0x00; // body [ 7 ...
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EEnum getIfcEvaporativeCoolerTypeEnum ( ) { } }
if ( ifcEvaporativeCoolerTypeEnumEEnum == null ) { ifcEvaporativeCoolerTypeEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 983 ) ; } return ifcEvaporativeCoolerTypeEnumEEnum ;
public class CmsCacheViewApp { /** * Creates in info button for image cache statistics . < p > * @ return CmsInfoButton */ protected static CmsInfoButton getImageStatisticButton ( ) { } }
long size = 0L ; if ( new File ( CmsImageLoader . getImageRepositoryPath ( ) ) . exists ( ) ) { size = FileUtils . sizeOfDirectory ( new File ( CmsImageLoader . getImageRepositoryPath ( ) ) ) ; } Map < String , String > infoMap = new LinkedHashMap < String , String > ( ) ; infoMap . put ( CmsVaadinUtils . getMessageTex...
public class SplitNumberVectorFilter { /** * The input type we use . * @ return type information */ private TypeInformation getInputTypeRestriction ( ) { } }
// Find maximum dimension requested int m = dims [ 0 ] ; for ( int i = 1 ; i < dims . length ; i ++ ) { m = Math . max ( dims [ i ] , m ) ; } return VectorFieldTypeInformation . typeRequest ( NumberVector . class , m , Integer . MAX_VALUE ) ;
public class JobContext { /** * Acquires a job master client from the job master client pool . The resource is * { @ code Closeable } . * @ return the acquired job master client resource */ public CloseableResource < JobMasterClient > acquireMasterClientResource ( ) { } }
return new CloseableResource < JobMasterClient > ( mJobMasterClientPool . acquire ( ) ) { @ Override public void close ( ) { mJobMasterClientPool . release ( get ( ) ) ; } } ;
public class TextBox { /** * Returns the text in this { @ code TextBox } , for multi - line mode all lines will be concatenated together with \ n as * separator . * @ return The text inside this { @ code TextBox } */ public synchronized String getText ( ) { } }
StringBuilder bob = new StringBuilder ( lines . get ( 0 ) ) ; for ( int i = 1 ; i < lines . size ( ) ; i ++ ) { bob . append ( "\n" ) . append ( lines . get ( i ) ) ; } return bob . toString ( ) ;
public class FilterImpl { /** * Ignore scan . * @ param intf * the intf * @ return true , if successful */ private boolean ignoreScan ( String intf ) { } }
for ( String ignored : ignoredPackages ) { if ( intf . startsWith ( ignored + "." ) ) { return true ; } } return false ;
public class ColumnList { /** * add a new column * @ param st * @ param column * @ param stepDepth * @ param alias */ public void add ( SchemaTable st , String column , int stepDepth , String alias ) { } }
add ( st . getSchema ( ) , st . getTable ( ) , column , stepDepth , alias ) ;
public class JsonConfig { /** * Sets the current array mode for conversion . < br > * If the value is not MODE _ LIST , MODE _ OBJECT _ ARRAY nor MODE _ SET , then MODE _ LIST will be used . < br > * [ JSON - & gt ; Java ] * @ param arrayMode array mode for conversion */ public void setArrayMode ( int arrayMode )...
if ( arrayMode == MODE_OBJECT_ARRAY ) { this . arrayMode = arrayMode ; } else if ( arrayMode == MODE_SET ) { this . arrayMode = arrayMode ; this . collectionType = Set . class ; } else { this . arrayMode = MODE_LIST ; this . enclosedType = DEFAULT_COLLECTION_TYPE ; }
public class TreeMap { /** * ( non - Javadoc ) * @ see SimplifiedSerialization . writeObject ( java . io . DataInputStream ) */ public final void writeObject ( java . io . DataOutputStream dataOutputStream ) throws ObjectManagerException { } }
if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "writeObject" , new Object [ ] { dataOutputStream } ) ; try { dataOutputStream . writeByte ( SimpleSerialVersion ) ; super . writeObject ( dataOutputStream ) ; if ( comparator == null ) { dataOutputStream . writeByte ...
public class CodeVisitor { /** * Sets a short value . */ public void setInt ( int offset , int value ) { } }
byte [ ] code = getCode ( ) ; code [ offset + 0 ] = ( byte ) ( value >> 24 ) ; code [ offset + 1 ] = ( byte ) ( value >> 16 ) ; code [ offset + 2 ] = ( byte ) ( value >> 8 ) ; code [ offset + 3 ] = ( byte ) ( value ) ;
public class IonizationPotentialTool { /** * Method which is predict the Ionization Potential from given atom . * @ param container The IAtomContainer where is contained the IAtom * @ param bond The IBond to prediction the IP * @ return The value in eV */ public static double predictIP ( IAtomContainer container ...
double value = 0 ; if ( bond . getOrder ( ) . equals ( IBond . Order . SINGLE ) ) return value ; // if some of the atoms belongs to some of the heteroatom family than // it can not ionized for ( int i = 0 ; i < 2 ; i ++ ) { IAtom atom = bond . getAtom ( i ) ; if ( familyHalogen ( atom ) ) return value ; else if ( famil...
public class AWSBudgetsClient { /** * Describes the history for < code > DAILY < / code > , < code > MONTHLY < / code > , and < code > QUARTERLY < / code > budgets . Budget * history isn ' t available for < code > ANNUAL < / code > budgets . * @ param describeBudgetPerformanceHistoryRequest * @ return Result of t...
request = beforeClientExecution ( request ) ; return executeDescribeBudgetPerformanceHistory ( request ) ;
public class AtomContainer { /** * { @ inheritDoc } */ @ Override public ISingleElectron getSingleElectron ( int idx ) { } }
if ( idx < 0 || idx >= singleElectronCount ) throw new IndexOutOfBoundsException ( "Single Electrong index out of bounds: 0 <= " + idx + " < " + singleElectronCount ) ; return singleElectrons [ idx ] ;
public class SQLite { /** * Get an aliased group _ concat ( column ) with the separator . * @ since 2.6.0 */ public static String groupConcat ( String column , String separator , String alias ) { } }
return "group_concat(" + column + ", '" + separator + "') AS " + alias ;
public class DescribeEC2InstanceLimitsResult { /** * Object that contains the maximum number of instances for the specified instance type . * @ param eC2InstanceLimits * Object that contains the maximum number of instances for the specified instance type . */ public void setEC2InstanceLimits ( java . util . Collect...
if ( eC2InstanceLimits == null ) { this . eC2InstanceLimits = null ; return ; } this . eC2InstanceLimits = new java . util . ArrayList < EC2InstanceLimit > ( eC2InstanceLimits ) ;
public class Es6RewriteRestAndSpread { /** * Processes array literals containing spreads . * < p > Example : * < pre > < code > * [ 1 , 2 , . . . x , 4 , 5 ] = > [ 1 , 2 ] . concat ( $ jscomp . arrayFromIterable ( x ) , [ 4 , 5 ] ) * < / code > < / pre > */ private void visitArrayLitContainingSpread ( Node spre...
checkArgument ( spreadParent . isArrayLit ( ) ) ; List < Node > groups = extractSpreadGroups ( spreadParent ) ; final Node baseArrayLit ; if ( groups . get ( 0 ) . isArrayLit ( ) ) { // g0 . concat ( g1 , g2 , . . . , gn ) baseArrayLit = groups . remove ( 0 ) ; } else { // [ ] . concat ( g0 , g1 , g2 , . . . , gn ) bas...