signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class HttpMethodBase { /** * Per RFC 2616 section 4.3 , some response can never contain a message * body . * @ param status - the HTTP status code * @ return < tt > true < / tt > if the message may contain a body , < tt > false < / tt > if it can not * contain a message body */ private static boolean can...
LOG . trace ( "enter HttpMethodBase.canResponseHaveBody(int)" ) ; boolean result = true ; if ( ( status >= 100 && status <= 199 ) || ( status == 204 ) || ( status == 304 ) ) { // NOT MODIFIED result = false ; } return result ;
public class Contig { /** * Construct a StreamVariantsRequest for the Contig . * @ param variantSetId * @ return the request object */ @ Deprecated public StreamVariantsRequest getStreamVariantsRequest ( String variantSetId ) { } }
return StreamVariantsRequest . newBuilder ( ) . setVariantSetId ( variantSetId ) . setReferenceName ( referenceName ) . setStart ( start ) . setEnd ( end ) . build ( ) ;
public class XLSFormatter { /** * Method creates mapping [ rangeName : List & lt ; CellRangeAddress & gt ; ] . * List contains all merge regions for this named range . * Attention : if merged regions writes wrong - look on methods isMergeRegionInsideNamedRange or isNamedRangeInsideMergeRegion * todo : how to reco...
int rangeNumber = templateWorkbook . getNumberOfNames ( ) ; for ( int i = 0 ; i < rangeNumber ; i ++ ) { HSSFName aNamedRange = templateWorkbook . getNameAt ( i ) ; String refersToFormula = aNamedRange . getRefersToFormula ( ) ; if ( ! AreaReference . isContiguous ( refersToFormula ) ) { continue ; } AreaReference aref...
public class AvroFilterConverter { /** * Retrieves the specified field from the inputRecord , and checks if it is equal to the expected value * { @ link # fieldValue } . If it is then it returns a { @ link org . apache . gobblin . converter . SingleRecordIterable } for the input record . * Otherwise it returns a { ...
Optional < Object > fieldValue = AvroUtils . getFieldValue ( inputRecord , this . fieldName ) ; if ( fieldValue . isPresent ( ) && fieldValue . get ( ) . toString ( ) . equals ( this . fieldValue ) ) { return new SingleRecordIterable < > ( inputRecord ) ; } return new EmptyIterable < > ( ) ;
public class SVGParser { /** * Parse an SVG ' Length ' value ( usually a coordinate ) . * Spec says : length : : = number ( " em " | " ex " | " px " | " in " | " cm " | " mm " | " pt " | " pc " | " % " ) ? */ static Length parseLength ( String val ) throws SVGParseException { } }
if ( val . length ( ) == 0 ) throw new SVGParseException ( "Invalid length value (empty string)" ) ; int end = val . length ( ) ; Unit unit = Unit . px ; char lastChar = val . charAt ( end - 1 ) ; if ( lastChar == '%' ) { end -= 1 ; unit = Unit . percent ; } else if ( end > 2 && Character . isLetter ( lastChar ) && Cha...
public class AcceptableUsagePolicyStatus { /** * Add property . * @ param name the name * @ param value the value * @ return the acceptable usage policy status */ public AcceptableUsagePolicyStatus addProperty ( final String name , final Object value ) { } }
this . properties . put ( name , value ) ; return this ;
public class ApiOvhCore { /** * Connect to the OVH API using a consumerKey * @ param consumerKey * the consumerKey * @ return an ApiOvhCore authenticate by consumerKey */ public static ApiOvhCore getInstance ( String consumerKey ) { } }
ApiOvhCore core = new ApiOvhCore ( ) ; core . _consumerKey = consumerKey ; return core ;
public class AbstractResource { /** * Returns the help for the endpoint . For the context root , it will return the endpoint help for all major endpoints . For a specific endpoint * it will return the method help for the endpoint . * @ return Help object describing the service in JSON format . */ @ GET @ Produces (...
Map < String , List < ? > > result = new LinkedHashMap < > ( ) ; List < EndpointHelpDto > endpoints = describeEndpoints ( getEndpoints ( ) ) ; if ( endpoints != null && ! endpoints . isEmpty ( ) ) { result . put ( "endpoints" , endpoints ) ; } List < MethodHelpDto > methods = describeMethods ( ) ; if ( methods != null ...
public class Dynamic { /** * Resolves a var handle constant for a field . * @ param fieldDescription The field to represent a var handle for . * @ return A dynamic constant that represents the created var handle constant . */ public static JavaConstant ofVarHandle ( FieldDescription . InDefinedShape fieldDescriptio...
return new Dynamic ( new ConstantDynamic ( fieldDescription . getInternalName ( ) , JavaType . VAR_HANDLE . getTypeStub ( ) . getDescriptor ( ) , new Handle ( Opcodes . H_INVOKESTATIC , CONSTANT_BOOTSTRAPS , fieldDescription . isStatic ( ) ? "staticFieldVarHandle" : "fieldVarHandle" , "(Ljava/lang/invoke/MethodHandles$...
public class ApiOvhHostingweb { /** * Set a variable to this hosting * REST : POST / hosting / web / { serviceName } / envVar * @ param value [ required ] Value of the variable * @ param key [ required ] Name of the new variable * @ param type [ required ] Type of variable set * @ param serviceName [ required...
String qPath = "/hosting/web/{serviceName}/envVar" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "key" , key ) ; addBody ( o , "type" , type ) ; addBody ( o , "value" , value ) ; String resp = exec ( qPath , "POST" , sb . toString...
public class PasswordMaker { /** * Generates a hash of the master password with settings from the account . * @ param masterPassword The password to use as a key for the various algorithms . * @ param account The account with the specific settings for the hash . * @ param inputText The text to use as the input in...
// HMAC algorithm requires a key that is > 0 length . if ( account . isHmac ( ) && masterPassword . length ( ) == 0 ) { return new SecureUTF8String ( ) ; } LeetLevel leetLevel = account . getLeetLevel ( ) ; // int count = 0; int length = account . getLength ( ) ; SecureUTF8String output = null ; SecureUTF8String data =...
public class SarlBehaviorUnitImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public NotificationChain basicSetName ( JvmParameterizedTypeReference newName , NotificationChain msgs ) { } }
JvmParameterizedTypeReference oldName = name ; name = newName ; if ( eNotificationRequired ( ) ) { ENotificationImpl notification = new ENotificationImpl ( this , Notification . SET , SarlPackage . SARL_BEHAVIOR_UNIT__NAME , oldName , newName ) ; if ( msgs == null ) msgs = notification ; else msgs . add ( notification ...
public class DocBuilderBase { /** * package private methods */ protected XContentBuilder newBuilder ( ) throws IndexException { } }
try { XContentBuilder builder = XContentFactory . jsonBuilder ( ) ; if ( debug ( ) ) { builder = builder . prettyPrint ( ) ; } return builder ; } catch ( final Throwable t ) { throw new IndexException ( t ) ; }
public class UserPreferences { /** * Read user preferences from given input stream . The InputStream is * guaranteed to be closed by this method . * @ param in * the InputStream * @ throws IOException */ public void read ( @ WillClose InputStream in ) throws IOException { } }
BufferedInputStream prefStream = null ; Properties props = new Properties ( ) ; try { prefStream = new BufferedInputStream ( in ) ; props . load ( prefStream ) ; } finally { try { if ( prefStream != null ) { prefStream . close ( ) ; } } catch ( IOException ioe ) { // Ignore } } if ( props . size ( ) == 0 ) { return ; }...
public class FoundationFileRollingAppender { /** * ( non - Javadoc ) * @ see org . apache . log4j . FileAppender # activateOptions ( ) */ public synchronized final void activateOptions ( ) { } }
this . deactivateOptions ( ) ; super . activateOptions ( ) ; if ( getFilterEmptyMessages ( ) ) { addFilter ( new EmptyMessageFilter ( ) ) ; } // rollables this . setFileRollable ( new CompositeRoller ( this , this . getProperties ( ) ) ) ; // scavenger LogFileScavenger fileScavenger = this . getLogFileScavenger ( ) ; i...
public class BaseDialogFragment { /** * Utility method for acquiring all listeners of some type for current instance of DialogFragment * @ param listenerInterface Interface of the desired listeners * @ return Unmodifiable list of listeners * @ since 2.1.0 */ @ SuppressWarnings ( "unchecked" ) protected < T > List...
final Fragment targetFragment = getTargetFragment ( ) ; List < T > listeners = new ArrayList < T > ( 2 ) ; if ( targetFragment != null && listenerInterface . isAssignableFrom ( targetFragment . getClass ( ) ) ) { listeners . add ( ( T ) targetFragment ) ; } if ( getActivity ( ) != null && listenerInterface . isAssignab...
public class LoggingHandlerInterceptor { /** * { @ inheritDoc } */ public boolean preHandle ( HttpServletRequest request , HttpServletResponse response , Object handler ) throws Exception { } }
handleRequest ( getRequestContent ( request ) ) ; return true ;
public class TransformerIdentityImpl { /** * Receive notification of an unparsed entity declaration . * < p > By default , do nothing . Application writers may override this * method in a subclass to keep track of the unparsed entities * declared in a document . < / p > * @ param name The entity name . * @ pa...
if ( null != m_resultDTDHandler ) m_resultDTDHandler . unparsedEntityDecl ( name , publicId , systemId , notationName ) ;
public class Vertex { /** * Return string representation of this vertex ' s * certificate information . * @ returns String representation of certificate info */ public String certToString ( ) { } }
StringBuilder sb = new StringBuilder ( ) ; X509CertImpl x509Cert = null ; try { x509Cert = X509CertImpl . toImpl ( cert ) ; } catch ( CertificateException ce ) { if ( debug != null ) { debug . println ( "Vertex.certToString() unexpected exception" ) ; ce . printStackTrace ( ) ; } return sb . toString ( ) ; } sb . appen...
public class AndroidPoiPersistenceManager { /** * { @ inheritDoc } */ @ Override public void insertPointsOfInterest ( Collection < PointOfInterest > pois ) { } }
try { for ( PointOfInterest poi : pois ) { // POI location this . db . execSQL ( DbConstants . INSERT_INDEX_STATEMENT , new String [ ] { String . valueOf ( poi . getId ( ) ) , String . valueOf ( poi . getLatitude ( ) ) , String . valueOf ( poi . getLatitude ( ) ) , String . valueOf ( poi . getLongitude ( ) ) , String ....
public class NotesApi { /** * Get the specified merge request ' s note . * @ param projectIdOrPath the project in the form of an Integer ( ID ) , String ( path ) , or Project instance * @ param mergeRequestIid the merge request IID to get the notes for * @ param noteId the ID of the Note to get * @ return a Not...
Response response = get ( Response . Status . OK , getDefaultPerPageParam ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "merge_requests" , mergeRequestIid , "notes" , noteId ) ; return ( response . readEntity ( Note . class ) ) ;
public class QueryChemObject { /** * { @ inheritDoc } */ @ Override public void setProperties ( Map < Object , Object > properties ) { } }
this . properties = null ; if ( properties != null ) addProperties ( properties ) ;
public class PopupMenuUtils { /** * Appends a separator to the end of the menu if it exists at least one non separator menu component immediately before and * if there isn ' t , already , a separator at the end of the menu . * @ param popupMenu the pop up menu that will be processed * @ return { @ code true } if ...
final int menuComponentCount = popupMenu . getComponentCount ( ) ; if ( menuComponentCount == 0 ) { return false ; } final Component lastMenuComponent = popupMenu . getComponent ( menuComponentCount - 1 ) ; if ( isPopupMenuSeparator ( lastMenuComponent ) ) { return false ; } popupMenu . addSeparator ( ) ; return true ;
public class XMLUtils { /** * Get first node on a Document doc , give a xpath Expression * @ param doc * @ param xPathExpression * @ return a Node or null if not found */ public static Node getFirstNode ( Document doc , String xPathExpression ) { } }
try { XPathFactory xPathfactory = XPathFactory . newInstance ( ) ; XPath xpath = xPathfactory . newXPath ( ) ; XPathExpression expr ; expr = xpath . compile ( xPathExpression ) ; NodeList nl = ( NodeList ) expr . evaluate ( doc , XPathConstants . NODESET ) ; return nl . item ( 0 ) ; } catch ( XPathExpressionException e...
public class appfwprofile_fieldformat_binding { /** * Use this API to fetch appfwprofile _ fieldformat _ binding resources of given name . */ public static appfwprofile_fieldformat_binding [ ] get ( nitro_service service , String name ) throws Exception { } }
appfwprofile_fieldformat_binding obj = new appfwprofile_fieldformat_binding ( ) ; obj . set_name ( name ) ; appfwprofile_fieldformat_binding response [ ] = ( appfwprofile_fieldformat_binding [ ] ) obj . get_resources ( service ) ; return response ;
public class ServiceDescriptionPanel { /** * Switch what is displayed ( if anything ) with information for the indicated * service definition . If null is given , clear what is currently displayed . */ public void setSDef ( String sDefPID ) throws IOException { } }
removeAll ( ) ; if ( sDefPID != null ) { JPanel lp = m_loadedPanels . get ( sDefPID ) ; if ( lp == null ) { lp = makePanel ( sDefPID ) ; m_loadedPanels . put ( sDefPID , lp ) ; } add ( lp , BorderLayout . CENTER ) ; } if ( m_containerToValidate != null ) { m_containerToValidate . revalidate ( ) ; m_containerToValidate ...
public class MockHttpServletResponse { /** * Throws exception if committed ! */ public void reset ( ) { } }
resetBuffer ( ) ; m_aCharacterEncoding = null ; m_nContentLength = 0 ; m_sContentType = null ; m_aLocale = null ; m_aCookies . clear ( ) ; m_aHeaders . clear ( ) ; m_nStatus = HttpServletResponse . SC_OK ; m_sErrorMessage = null ;
public class SoccomClient { /** * Send a request message . * @ param msg The message to be sent . * @ exception SoccomException Thrown when an IOException is encountered . */ public void putreq ( String msg ) throws SoccomException { } }
byte msgbytes [ ] = SoccomMessage . makeMessage ( msg , null ) ; logline ( "SEND: " + new String ( msgbytes ) ) ; copy_msgid ( _msgid , msgbytes ) ; try { // _ out . print ( msg ) ; _out . write ( msgbytes ) ; } catch ( IOException e ) { throw new SoccomException ( SoccomException . REQUEST ) ; }
public class XChartDemo { /** * Create the tree * @ param top */ private void createNodes ( DefaultMutableTreeNode top ) { } }
// categories DefaultMutableTreeNode category ; // leaves DefaultMutableTreeNode defaultMutableTreeNode ; // Area category = new DefaultMutableTreeNode ( "Area Charts" ) ; top . add ( category ) ; defaultMutableTreeNode = new DefaultMutableTreeNode ( new ChartInfo ( "AreaChart01 - 3-Series" , new AreaChart01 ( ) . getC...
public class SocketEventDispatcher { /** * Dispatch socket info event . * @ param event Event to dispatch . */ private void onSocketStarted ( SocketStartEvent event ) { } }
handler . post ( ( ) -> listener . onSocketStarted ( event ) ) ; log ( "Event published " + event . toString ( ) ) ;
public class Constraints { /** * Returns a constrained view of the specified set , using the specified * constraint . Any operations that add new elements to the set will call the * provided constraint . However , this method does not verify that existing * elements satisfy the constraint . * < p > The returned...
return new ConstrainedSet < E > ( set , constraint ) ;
public class FailedCreateAssociationMarshaller { /** * Marshall the given parameter object . */ public void marshall ( FailedCreateAssociation failedCreateAssociation , ProtocolMarshaller protocolMarshaller ) { } }
if ( failedCreateAssociation == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( failedCreateAssociation . getEntry ( ) , ENTRY_BINDING ) ; protocolMarshaller . marshall ( failedCreateAssociation . getMessage ( ) , MESSAGE_BINDING ) ; protoco...
public class ClientSocketStats { /** * Record the checkout queue length * @ param dest Destination of the socket to checkout . Will actually record * if null . Otherwise will call this on self and corresponding child * with this param null . * @ param queueLength The number of entries in the " synchronous " che...
if ( dest != null ) { getOrCreateNodeStats ( dest ) . recordCheckoutQueueLength ( null , queueLength ) ; recordCheckoutQueueLength ( null , queueLength ) ; } else { this . checkoutQueueLengthHistogram . insert ( queueLength ) ; checkMonitoringInterval ( ) ; }
public class EnvironmentVariablesConfigurationSource { /** * Convert the Environment Variable Name to the expected Properties Key formatting * @ param environmentVariableKey The Env Variable Name , possibly prefixed with the { @ link Environment } which * in this context serves as a way to namespace variables * @...
return environmentVariableKey . substring ( environmentContext . length ( ) ) . replace ( ENV_DELIMITER , PROPERTIES_DELIMITER ) ;
public class LogFileXMLReceiver { /** * Process the file */ public void activateOptions ( ) { } }
Runnable runnable = new Runnable ( ) { public void run ( ) { try { URL url = new URL ( fileURL ) ; host = url . getHost ( ) ; if ( host != null && host . equals ( "" ) ) { host = FILE_KEY ; } path = url . getPath ( ) ; } catch ( MalformedURLException e1 ) { // TODO Auto - generated catch block e1 . printStackTrace ( ) ...
public class VTensor { /** * Implements { @ link MVec # elemAdd ( MVec ) } . */ @ Override public void elemAdd ( MVec addend ) { } }
if ( addend instanceof VTensor ) { elemAdd ( ( VTensor ) addend ) ; } else { throw new IllegalArgumentException ( "Addend must be of type " + this . getClass ( ) ) ; }
public class MaterialTooltip { /** * Set the html as value inside the tooltip . */ public void setHtml ( String html ) { } }
this . html = html ; if ( widget != null ) { if ( widget . isAttached ( ) ) { tooltipElement . find ( "span" ) . html ( html != null ? html : "" ) ; } else { widget . addAttachHandler ( event -> tooltipElement . find ( "span" ) . html ( html != null ? html : "" ) ) ; } } else { GWT . log ( "Please initialize the Target...
public class PhotosInterface { /** * Get the permission information for the specified photo . * This method requires authentication with ' read ' permission . * @ param photoId * The photo id * @ return The Permissions object * @ throws FlickrException */ public Permissions getPerms ( String photoId ) throws ...
Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "method" , METHOD_GET_PERMS ) ; parameters . put ( "photo_id" , photoId ) ; Response response = transport . get ( transport . getPath ( ) , parameters , apiKey , sharedSecret ) ; if ( response . isError ( ) ) { throw new Flick...
public class BaseGridScreen { /** * Get the next grid record . * @ param bFirstTime If true , I want the first record . * @ return the next record ( or null if EOF ) . */ public Record getNextGridRecord ( boolean bFirstTime ) throws DBException { } }
Record record = this . getMainRecord ( ) ; BaseTable table = record . getTable ( ) ; if ( bFirstTime ) table . close ( ) ; boolean bHasNext = table . hasNext ( ) ; if ( ! bHasNext ) return null ; return ( Record ) table . next ( ) ;
public class ApiOvhCloud { /** * View account current total sessions usage ( bytes ) * REST : GET / cloud / { serviceName } / pca / { pcaServiceName } / usage * @ param serviceName [ required ] The internal name of your public cloud passport * @ param pcaServiceName [ required ] The internal name of your PCA offe...
String qPath = "/cloud/{serviceName}/pca/{pcaServiceName}/usage" ; StringBuilder sb = path ( qPath , serviceName , pcaServiceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , Long . class ) ;
public class SuboptimalExpressionOrder { /** * overrides the visitor to reset the opcode stack , and initialize vars * @ param obj * the code object of the currently parsed method */ @ Override public void visitCode ( Code obj ) { } }
stack . resetForMethodEntry ( this ) ; conditionalTarget = - 1 ; sawMethodWeight = 0 ; super . visitCode ( obj ) ;
public class DataStream { /** * Writes a DataStream to the standard output stream ( stdout ) . * < p > For each element of the DataStream the result of { @ link Object # toString ( ) } is written . * < p > NOTE : This will print to stdout on the machine where the code is executed , i . e . the Flink * worker . ...
PrintSinkFunction < T > printFunction = new PrintSinkFunction < > ( sinkIdentifier , false ) ; return addSink ( printFunction ) . name ( "Print to Std. Out" ) ;
public class NGServer { /** * Returns a snapshot of this NGServer ' s nail statistics . The result is a < code > java . util . Map * < / code > , keyed by class name , with < a href = " NailStats . html " > NailStats < / a > objects as values . * @ return a snapshot of this NGServer ' s nail statistics . */ public ...
Map < String , NailStats > result = new TreeMap ( ) ; synchronized ( allNailStats ) { for ( Map . Entry < String , NailStats > entry : allNailStats . entrySet ( ) ) { result . put ( entry . getKey ( ) , ( NailStats ) entry . getValue ( ) . clone ( ) ) ; } } return result ;
public class AbstractPrintQuery { /** * Method to get the instance for an < code > _ attributeName < / code > . * @ param _ attributeName name of the attribute * @ return list of instance * @ throws EFapsException on error */ public List < Instance > getInstances4Attribute ( final String _attributeName ) throws E...
final OneSelect oneselect = this . attr2OneSelect . get ( _attributeName ) ; return oneselect == null ? null : oneselect . getInstances ( ) ;
public class Subtypes2 { /** * Starting at the class or interface named by the given ClassDescriptor , * traverse the inheritance graph , exploring all paths from the class or * interface to java . lang . Object . * @ param start * ClassDescriptor naming the class where the traversal should * start * @ para...
LinkedList < SupertypeTraversalPath > workList = new LinkedList < > ( ) ; ClassVertex startVertex = resolveClassVertex ( start ) ; workList . addLast ( new SupertypeTraversalPath ( startVertex ) ) ; while ( ! workList . isEmpty ( ) ) { SupertypeTraversalPath cur = workList . removeFirst ( ) ; ClassVertex vertex = cur ....
public class CacheImpl { /** * Called when a tick occurs . A tick is a logical unit of time . It basically symbolizes the time span between * calls to this method ( i . e . 15 mins ) by a job scheduler like Quartz . * Checks if some of the { @ link CacheItem } s in the cache have expired or need to be refreshed . I...
ticks . incrementAndGet ( ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Tick!" ) ; } List < CacheItem > itemsToRefresh = new ArrayList < CacheItem > ( ) ; try { Collection < String > scopes = cacheStoreAdapter . getScopes ( ) ; if ( CollectionUtils . isNotEmpty ( scopes ) ) { for ( String scope : scopes ) ...
public class ProbeMethodAdapter { /** * Create an object array and store the target method arguments in it . * @ param desc the target method descriptor */ void replaceArgsWithArray ( String desc ) { } }
Type [ ] methodArgs = Type . getArgumentTypes ( desc ) ; createObjectArray ( methodArgs . length ) ; // [ target ] args . . . array for ( int i = methodArgs . length - 1 ; i >= 0 ; i -- ) { if ( methodArgs [ i ] . getSize ( ) == 2 ) { visitInsn ( DUP_X2 ) ; // [ target ] args . . . array arg _ arg array visitLdcInsn ( ...
public class ArchiveReader { /** * Output passed record using passed format specifier . * @ param format What format to use outputting . * @ throws IOException * @ return True if handled . */ public boolean outputRecord ( final String format ) throws IOException { } }
boolean result = true ; if ( format . equals ( CDX ) ) { System . out . println ( get ( ) . outputCdx ( getStrippedFileName ( ) ) ) ; } else if ( format . equals ( ArchiveFileConstants . DUMP ) ) { // No point digesting if dumping content . setDigest ( false ) ; get ( ) . dump ( ) ; } else { result = false ; } return r...
public class DdlParsers { /** * Parse the supplied DDL using multiple parsers , returning the result of each parser with its score in the order of highest * scoring to lowest scoring . * @ param ddl the DDL being parsed ( cannot be < code > null < / code > or empty ) * @ param firstParserId the identifier of the ...
CheckArg . isNotEmpty ( firstParserId , "firstParserId" ) ; CheckArg . isNotEmpty ( secondParserId , "secondParserId" ) ; if ( additionalParserIds != null ) { CheckArg . containsNoNulls ( additionalParserIds , "additionalParserIds" ) ; } final int numParsers = ( ( additionalParserIds == null ) ? 2 : ( additionalParserI...
public class Transformers { /** * For every onNext emission from the source stream , the { @ code valueToInsert } * Maybe is subscribed to . If the Maybe emits before the next upstream emission * then the result from the Maybe will be inserted into the stream . If the Maybe * does not emit before the next upstrea...
return new FlowableTransformer < T , T > ( ) { @ Override public Publisher < T > apply ( Flowable < T > source ) { return new FlowableInsertMaybe < T > ( source , valueToInsert ) ; } } ;
public class DbHelperBase { /** * Moved to DbHelper * @ deprecated */ @ Deprecated private String convertDatabaseName ( String name ) { } }
if ( propBase . getBooleanProperty ( "db.useUnderscoreNaming" ) ) { name = CamelCaseConverter . camelCaseToUnderscore ( name ) ; } name = truncateLongDatabaseName ( name ) ; name = name . toUpperCase ( ) ; return name ;
public class GCBEZRGImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public boolean eIsSet ( int featureID ) { } }
switch ( featureID ) { case AfplibPackage . GCBEZRG__XPOS : return XPOS_EDEFAULT == null ? xpos != null : ! XPOS_EDEFAULT . equals ( xpos ) ; case AfplibPackage . GCBEZRG__YPOS : return YPOS_EDEFAULT == null ? ypos != null : ! YPOS_EDEFAULT . equals ( ypos ) ; } return super . eIsSet ( featureID ) ;
public class Bean { /** * Call the onResult callback for { @ link com . punchthrough . bean . sdk . Bean # readLed ( com . punchthrough . bean . sdk . message . Callback ) } . * @ param buffer Raw message bytes from the Bean */ private void returnLed ( Buffer buffer ) { } }
Callback < LedColor > callback = getFirstCallback ( BeanMessageID . CC_LED_READ_ALL ) ; if ( callback != null ) { callback . onResult ( LedColor . fromPayload ( buffer ) ) ; }
public class JFontChooser { /** * Creates and returns a new dialog containing the specified * < code > ColorChooser < / code > pane along with " OK " , " Cancel " , and " Reset " * buttons . If the " OK " or " Cancel " buttons are pressed , the dialog is * automatically hidden ( but not disposed ) . If the " Rese...
return new FontChooserDialog ( c , title , modal , this , okListener , cancelListener ) ;
public class JobExecutionsInner { /** * Creates or updatess a job execution . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server . * @ param jobAgentName T...
return ServiceFuture . fromResponse ( createOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , jobAgentName , jobName , jobExecutionId ) , serviceCallback ) ;
public class RevisionEncoder { /** * Encodes a Delete operation . * @ param part * Reference to the Delete operation * @ throws EncodingException * if the encoding failed */ private void encodeDelete ( final DiffPart part ) throws EncodingException { } }
data . writeBit ( 0 ) ; data . writeBit ( 1 ) ; data . writeBit ( 1 ) ; data . writeValue ( codecData . getBlocksizeS ( ) , part . getStart ( ) ) ; data . writeValue ( codecData . getBlocksizeE ( ) , part . getLength ( ) ) ; data . writeFillBits ( ) ;
public class Response { /** * Converts the inputstream to a string in UTF - 8 . Subsequent the inputstream will be empty / closed . */ public byte [ ] getStreamAsBytearray ( ) throws IOException { } }
byte [ ] result = null ; try { result = IOUtils . toByteArray ( getStream ( ) ) ; } catch ( NullPointerException npex ) { throw new IOException ( "Timeout has been forced by CommonHttpClient" , npex ) ; } return result ;
public class CmsImportView { /** * Shows a popup containing the import view . < p > */ public static void showPopup ( ) { } }
final CmsPopup popup = new CmsPopup ( CmsAliasMessages . messageTitleImport ( ) ) ; popup . setModal ( true ) ; popup . setGlassEnabled ( true ) ; CmsImportView importView = new CmsImportView ( ) ; popup . setMainContent ( importView ) ; popup . setWidth ( 800 ) ; popup . addDialogClose ( null ) ; popup . centerHorizon...
public class TrifocalExtractGeometries { /** * Extract the fundamental matrices between views 1 + 2 and views 1 + 3 . The returned Fundamental * matrices will have the following properties : x < sub > i < / sub > < sup > T < / sup > * Fi * x < sub > 1 < / sub > = 0 , where i is view 2 or 3. * NOTE : The first camer...
// compute the camera matrices one column at a time for ( int i = 0 ; i < 3 ; i ++ ) { DMatrixRMaj T = tensor . getT ( i ) ; GeometryMath_F64 . mult ( T , e3 , temp0 ) ; GeometryMath_F64 . cross ( e2 , temp0 , column ) ; F21 . set ( 0 , i , column . x ) ; F21 . set ( 1 , i , column . y ) ; F21 . set ( 2 , i , column . ...
public class BasicSebConfiguration { /** * Adds { @ link System # getProperties ( ) } after specific key in actual * properties list . * @ param afterKey * The after properties key * @ return Same instance */ public BasicSebConfiguration addSystemPropertiesAfter ( String afterKey ) { } }
return ( BasicSebConfiguration ) addPropertiesAfter ( afterKey , SYSTEM_PROPERTIES_KEY , System . getProperties ( ) ) ;
public class JBBPDslBuilder { /** * Add named long array which size calculated through expression . * @ param name name of the field , can be null for anonymous * @ param sizeExpression expression to be used to calculate size , must not be null * @ return the builder instance , must not be null */ public JBBPDslB...
final Item item = new Item ( BinType . LONG_ARRAY , name , this . byteOrder ) ; item . sizeExpression = assertExpressionChars ( sizeExpression ) ; this . addItem ( item ) ; return this ;
public class DAOValidatorHelper { /** * Methode permettant d ' obtenir la liste de tous les champs d ' une classe * @ param typeClasses source * @ param ignoreRoot ignorer ou traiter le root * @ returnListe des classes */ public static List < Field > getAllFields ( Class < ? > type , boolean ignoreRoot ) { } }
// Liste des champs List < Field > fields = new ArrayList < Field > ( ) ; // Ajout des champs directs de la classe fields . addAll ( Arrays . asList ( type . getDeclaredFields ( ) ) ) ; // Superclasse Class < ? > superType = type . getSuperclass ( ) ; // Si la super classe est Object if ( superType != null && ! superTy...
public class VirtualHubsInner { /** * Creates a VirtualHub resource if it doesn ' t exist else updates the existing VirtualHub . * @ param resourceGroupName The resource group name of the VirtualHub . * @ param virtualHubName The name of the VirtualHub . * @ param virtualHubParameters Parameters supplied to creat...
return beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , virtualHubName , virtualHubParameters ) . toBlocking ( ) . single ( ) . body ( ) ;
public class ConnectionWriteCompletedCallback { /** * Returns the first WsByteBuffer set in ' writeCtx ' , ensuring that it is the sole byte buffer set in ' writeCtx ' , and * releasing any other byte buffers that had been registered there . * @ return the sole byte buffer set in ' writeCtx ' ; maybe null if there ...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getSoleWriteContextBuffer" ) ; WsByteBuffer writeBuffer = null ; final WsByteBuffer [ ] writeBuffers = writeCtx . getBuffers ( ) ; if ( writeBuffers != null ) { final int writeBuffersSize = writeBuffers . length ; if...
public class HttpBuilder { /** * Executes a HEAD request on the configured URI , with additional configuration provided by the configuration closure . The result will be cast to * the specified ` type ` . A response to a HEAD request contains no data ; however , the ` response . when ( ) ` methods may provide data ba...
return type . cast ( interceptors . get ( HttpVerb . HEAD ) . apply ( configureRequest ( type , HttpVerb . HEAD , closure ) , this :: doHead ) ) ;
public class HttpBase { /** * 设置一个header < br > * 如果覆盖模式 , 则替换之前的值 , 否则加入到值列表中 * @ param name Header名 * @ param value Header值 * @ param isOverride 是否覆盖已有值 * @ return T 本身 */ public T header ( String name , String value , boolean isOverride ) { } }
if ( null != name && null != value ) { final List < String > values = headers . get ( name . trim ( ) ) ; if ( isOverride || CollectionUtil . isEmpty ( values ) ) { final ArrayList < String > valueList = new ArrayList < String > ( ) ; valueList . add ( value ) ; headers . put ( name . trim ( ) , valueList ) ; } else { ...
public class DeletePRequest { /** * < code > optional . alluxio . grpc . file . DeletePOptions options = 2 ; < / code > */ public alluxio . grpc . DeletePOptionsOrBuilder getOptionsOrBuilder ( ) { } }
return options_ == null ? alluxio . grpc . DeletePOptions . getDefaultInstance ( ) : options_ ;
public class DfuBaseService { /** * Closes the GATT device and cleans up . * @ param gatt the GATT device to be closed . */ protected void close ( final BluetoothGatt gatt ) { } }
logi ( "Cleaning up..." ) ; sendLogBroadcast ( LOG_LEVEL_DEBUG , "gatt.close()" ) ; gatt . close ( ) ; mConnectionState = STATE_CLOSED ;
public class MP3Reader { /** * { @ inheritDoc } */ @ Override public ITag readTag ( ) { } }
log . debug ( "readTag" ) ; try { lock . acquire ( ) ; if ( ! firstTags . isEmpty ( ) ) { // return first tags before media data return firstTags . removeFirst ( ) ; } AudioFrame frame = frameList . get ( frameIndex ++ ) ; if ( frame == null ) { return null ; } int frameSize = frame . getLength ( ) ; log . trace ( "Fra...
public class GraphEntityMapper { /** * Populates Node properties from Entity object * @ param entity * @ param m * @ param node */ private void populateNodeProperties ( Object entity , EntityMetadata m , Node node ) { } }
MetamodelImpl metaModel = ( MetamodelImpl ) kunderaMetadata . getApplicationMetadata ( ) . getMetamodel ( m . getPersistenceUnit ( ) ) ; EntityType entityType = metaModel . entity ( m . getEntityClazz ( ) ) ; // Iterate over entity attributes Set < Attribute > attributes = entityType . getSingularAttributes ( ) ; for (...
public class ProductsBoxGenerator { /** * { @ inheritDoc } */ @ Override public IRenderingElement generate ( IReaction reaction , RendererModel model ) { } }
if ( ! model . getParameter ( ShowReactionBoxes . class ) . getValue ( ) ) return null ; if ( reaction . getProductCount ( ) == 0 ) return new ElementGroup ( ) ; double distance = model . getParameter ( BondLength . class ) . getValue ( ) / model . getParameter ( Scale . class ) . getValue ( ) / 2 ; Rectangle2D totalBo...
public class EditText { /** * Called by the framework in response to a text completion from * the current input method , provided by it calling * { @ link InputConnection # commitCompletion * InputConnection . commitCompletion ( ) } . The default implementation does * nothing ; text views that are supporting au...
if ( mAutoCompleteMode == AUTOCOMPLETE_MODE_NONE ) ( ( InternalEditText ) mInputView ) . superOnCommitCompletion ( text ) ; else if ( mAutoCompleteMode == AUTOCOMPLETE_MODE_SINGLE ) ( ( InternalAutoCompleteTextView ) mInputView ) . superOnCommitCompletion ( text ) ; else ( ( InternalMultiAutoCompleteTextView ) mInputVi...
public class ClientObject { /** * Requests that the specified entry be updated in the * < code > receivers < / code > set . The set will not change until the event is * actually propagated through the system . */ @ Generated ( value = { } }
"com.threerings.presents.tools.GenDObjectTask" } ) public void updateReceivers ( InvocationReceiver . Registration elem ) { requestEntryUpdate ( RECEIVERS , receivers , elem ) ;
public class OracleAnnotationFilter { /** * / * ( non - Javadoc ) * @ see org . archive . wayback . util . ObjectFilter # filterObject ( java . lang . Object ) */ public int filterObject ( CaptureSearchResult o ) { } }
if ( client != null ) { String url = o . getOriginalUrl ( ) ; Date capDate = o . getCaptureDate ( ) ; try { Rule r = client . getRule ( url , capDate , new Date ( ) , who ) ; if ( r != null ) { String publicComment = r . getPublicComment ( ) ; o . putCustom ( "ANOTATION" , publicComment ) ; } } catch ( RuleOracleUnavai...
public class ScorecardModel { public static ScorecardModel parse ( PMMLParser pmml ) { } }
HashMap < String , String > attrs = pmml . attrs ( ) ; pmml . expect ( '>' ) ; pmml . skipWS ( ) . expect ( '<' ) . pGeneric ( "MiningSchema" ) ; pmml . skipWS ( ) . expect ( '<' ) . pGeneric ( "Output" ) ; pmml . skipWS ( ) . expect ( '<' ) ; RuleTable [ ] rules = pCharacteristics ( pmml ) ; pmml . skipWS ( ) . expect...
public class ExecutorThreadPool { /** * Get the number of idle threads * @ return The number ; - 1 if not supported */ public int getIdleThreads ( ) { } }
if ( executor instanceof ThreadPoolExecutor ) { final ThreadPoolExecutor tpe = ( ThreadPoolExecutor ) executor ; return tpe . getPoolSize ( ) - tpe . getActiveCount ( ) ; } return - 1 ;
public class CPInstanceUtil { /** * Returns the first cp instance in the ordered set where CPDefinitionId = & # 63 ; . * @ param CPDefinitionId the cp definition ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the first matching cp instance , or...
return getPersistence ( ) . fetchByCPDefinitionId_First ( CPDefinitionId , orderByComparator ) ;
public class WordVectorSerializer { /** * This method saves specified SequenceVectors model to target file * @ param vectors SequenceVectors model * @ param factory SequenceElementFactory implementation for your objects * @ param file Target output file * @ param < T > */ public static < T extends SequenceEleme...
try ( FileOutputStream fos = new FileOutputStream ( file ) ) { writeSequenceVectors ( vectors , factory , fos ) ; }
public class ConcatVectorNamespace { /** * Recreates an in - memory concat vector object from a Proto serialization . * @ param m the concat vector proto * @ return an in - memory concat vector object */ public static ConcatVectorNamespace readFromProto ( ConcatVectorNamespaceProto . ConcatVectorNamespace m ) { } }
ConcatVectorNamespace namespace = new ConcatVectorNamespace ( ) ; for ( ConcatVectorNamespaceProto . ConcatVectorNamespace . FeatureToIndexComponent component : m . getFeatureToIndexList ( ) ) { namespace . featureToIndex . put ( component . getKey ( ) , component . getData ( ) ) ; } for ( ConcatVectorNamespaceProto . ...
public class TileCacheInformation { /** * Calculate the minx and miny coordinate of the tile that is the minx and miny tile . It is the starting * point of counting tiles to render . * < p > < / p > * This equates to the minX and minY of the GridCoverage as well . * @ param envelope the area that will be displa...
final ReferencedEnvelope tileCacheBounds = getTileCacheBounds ( ) ; final double tileCacheMinX = tileCacheBounds . getMinX ( ) ; double minGeoX = envelope . getMinX ( ) ; double minGeoY = envelope . getMinY ( ) ; double tileMinGeoX = ( tileCacheMinX + ( Math . floor ( ( minGeoX - tileCacheMinX ) / geoTileSize . x ) * g...
public class Encryption { /** * Load the default encryption module . * < p > By default this is the SunJCE module . */ public static void loadDefaultEncryptionModule ( ) { } }
// Be sure that the cryptographical algorithms are loaded final Provider [ ] providers = Security . getProviders ( ) ; boolean found = false ; for ( final Provider provider : providers ) { if ( provider instanceof SunJCE ) { found = true ; break ; } } if ( ! found ) { Security . addProvider ( new SunJCE ( ) ) ; }
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getIfcTextFontSelect ( ) { } }
if ( ifcTextFontSelectEClass == null ) { ifcTextFontSelectEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 976 ) ; } return ifcTextFontSelectEClass ;
public class XLogPDescriptor { /** * Gets the aromaticNitrogensCount attribute of the XLogPDescriptor object . * @ param ac Description of the Parameter * @ param atom Description of the Parameter * @ return The aromaticNitrogensCount value */ private int getAromaticNitrogensCount ( IAtomContainer ac , IAtom atom...
List < IAtom > neighbours = ac . getConnectedAtomsList ( atom ) ; int narocounter = 0 ; for ( IAtom neighbour : neighbours ) { if ( neighbour . getSymbol ( ) . equals ( "N" ) && ( Boolean ) neighbour . getProperty ( "IS_IN_AROMATIC_RING" ) ) { narocounter += 1 ; } } return narocounter ;
public class MathBindings { /** * Binding for { @ link java . lang . Math # incrementExact ( int ) } * @ param a the value to increment * @ return the result * @ throws ArithmeticException if the result overflows an int */ public static IntegerBinding incrementExact ( final ObservableIntegerValue a ) { } }
return createIntegerBinding ( ( ) -> Math . incrementExact ( a . get ( ) ) , a ) ;
public class Line { /** * Skips spaces . * @ return < code > false < / code > if end of line is reached */ public boolean skipSpaces ( ) { } }
while ( m_nPos < m_sValue . length ( ) && m_sValue . charAt ( m_nPos ) == ' ' ) m_nPos ++ ; return m_nPos < m_sValue . length ( ) ;
public class SingleKeywordTree { /** * Checks whether the character is related to the currently used node . If * the comparison fails the keyword tree will be reseted to its root node , * otherwise the related node will replace the current node . * @ param c * character * @ return TRUE if the current node con...
current = current . get ( c ) ; if ( current == null ) { reset ( ) ; } return current . isKeyword ( ) ;
public class Tokenizer { /** * Method to read a string from the JSON string , converting escapes accordingly . * @ return The parsed JSON string with all escapes properly converyed . * @ throws IOException Thrown on unterminated strings , invalid characters , bad escapes , and so on . Basically , invalid JSON . */ ...
StringBuffer sb = new StringBuffer ( ) ; int delim = lastChar ; int l = lineNo ; int c = colNo ; readChar ( ) ; while ( ( - 1 != lastChar ) && ( delim != lastChar ) ) { StringBuffer digitBuffer ; if ( lastChar != '\\' ) { sb . append ( ( char ) lastChar ) ; readChar ( ) ; continue ; } readChar ( ) ; switch ( lastChar )...
public class DefaultUriMatcher { /** * Replace any specified POSIX character classes with the Java equivalent . * @ param input * @ return a Java regex */ private String replacePosixClasses ( String input ) { } }
return input . replace ( ":alnum:" , "\\p{Alnum}" ) . replace ( ":alpha:" , "\\p{L}" ) . replace ( ":ascii:" , "\\p{ASCII}" ) . replace ( ":digit:" , "\\p{Digit}" ) . replace ( ":xdigit:" , "\\p{XDigit}" ) ;
public class AipImageSearch { /** * 相似图检索 — 更新接口 * * * 更新图库中图片的摘要和分类信息 ( 具体变量为brief 、 tags ) * * * @ param url - 图片完整URL , URL长度不超过1024字节 , URL对应的图片base64编码后大小不超过4M , 最短边至少15px , 最长边最大4096px , 支持jpg / png / bmp格式 , 当image字段存在时url字段失效 * @ param options - 可选参数对象 , key : value都为string类型 * options - options列表 : *...
AipRequest request = new AipRequest ( ) ; preOperation ( request ) ; request . addBody ( "url" , url ) ; if ( options != null ) { request . addBody ( options ) ; } request . setUri ( ImageSearchConsts . SIMILAR_UPDATE ) ; postOperation ( request ) ; return requestServer ( request ) ;
public class JSONConverter { /** * Encode a Throwable instance as JSON : * " throwable " : Base64, * " stackTrace " : String * @ param out The stream to write JSON to * @ param value The Throwable instance to encode . Can ' t be null . * @ throws IOException If an I / O error occurs * @ see # readThrowable ...
writeStartObject ( out ) ; writeSerializedField ( out , OM_THROWABLE , value ) ; StringWriter sw = new StringWriter ( ) ; value . printStackTrace ( new PrintWriter ( sw ) ) ; writeStringField ( out , OM_STACKTRACE , sw . toString ( ) ) ; writeEndObject ( out ) ;
public class XForLoopExpressionImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eSet ( int featureID , Object newValue ) { } }
switch ( featureID ) { case XbasePackage . XFOR_LOOP_EXPRESSION__FOR_EXPRESSION : setForExpression ( ( XExpression ) newValue ) ; return ; case XbasePackage . XFOR_LOOP_EXPRESSION__EACH_EXPRESSION : setEachExpression ( ( XExpression ) newValue ) ; return ; case XbasePackage . XFOR_LOOP_EXPRESSION__DECLARED_PARAM : setD...
public class MathUtils { /** * Parses a duration defined as a string , giving a duration in days , hours , minutes and seconds into a number of * milliseconds equal to that duration . * @ param duration The duration definition string . * @ return The duration in millliseconds . */ public static long parseDuration...
// Match the duration against the regular expression . Matcher matcher = DURATION_PATTERN . matcher ( duration ) ; // Check that the argument is of the right format accepted by this method . if ( ! matcher . matches ( ) ) { throw new IllegalArgumentException ( "The duration definition is not in the correct format." ) ;...
public class CacheableWorkspaceDataManager { /** * { @ inheritDoc } */ @ Override public List < NodeData > getChildNodesData ( NodeData nodeData ) throws RepositoryException { } }
return getChildNodesData ( nodeData , false ) ;
public class CompiledFEELSemanticMappings { /** * FEEL spec Table 45 * Delegates to { @ link InfixOpNode } except evaluationcontext */ public static Object div ( Object left , Object right ) { } }
return InfixOpNode . div ( left , right , null ) ;
public class GradleBuildMetricsCollector { /** * I have separated buildFinished from GradleCollector ' s BuildAdapter because we need it to be called * * after * all BuildListeners have completed their BuildFinished cycle . This is because InfoBrokerPlugin * only allows access to its reports after the BuildFinish c...
Throwable failure = buildResult . getFailure ( ) ; Result result = failure == null ? Result . success ( ) : Result . failure ( failure ) ; logger . info ( "Build finished with result " + result ) ; MetricsDispatcher dispatcher = dispatcherSupplier . get ( ) ; dispatcher . result ( result ) ; InfoBrokerPlugin infoBroker...
public class Client { /** * Get a batch of Roles . * @ param queryParameters Query parameters of the Resource * @ param batchSize Size of the Batch * @ param afterCursor Reference to continue collecting items of next page * @ return OneLoginResponse of Role ( Batch ) * @ throws OAuthSystemException - if there...
ExtractionContext context = extractResourceBatch ( queryParameters , batchSize , afterCursor , Constants . GET_ROLES_URL ) ; List < Role > roles = new ArrayList < Role > ( batchSize ) ; afterCursor = getRolesBatch ( roles , context . url , context . bearerRequest , context . oAuthResponse ) ; return new OneLoginRespons...
public class PackagesReportHeading { /** * Add all the screen listeners . */ public void addListeners ( ) { } }
super . addListeners ( ) ; this . getScreenRecord ( ) . getField ( PackagesReportScreenRecord . JNLP_FILE_ID ) . addListener ( new ReadSecondaryHandler ( this . getRecord ( JnlpFile . JNLP_FILE_FILE ) ) ) ;
public class CmsSiteManager { /** * Returns the fav icon path for the given site . < p > * @ param siteRoot the site root * @ return the icon path */ public Resource getFavIcon ( String siteRoot ) { } }
CmsResource iconResource = null ; try { iconResource = getRootCmsObject ( ) . readResource ( siteRoot + "/" + CmsSiteManager . FAVICON ) ; } catch ( CmsException e ) { // no favicon there } if ( iconResource != null ) { return new ExternalResource ( OpenCms . getLinkManager ( ) . getPermalink ( getRootCmsObject ( ) , i...
public class BinaryOWLMetadata { /** * Gets the string value of an attribute . * @ param name The name of the attribute . Not null . * @ param defaultValue The default value for the attribute . May be null . This value will be returned if this * metadata object does not contain a string value for the specified at...
return getValue ( stringAttributes , name , defaultValue ) ;
public class MetricRegistry { /** * This will be removed in 0.22. * @ deprecated since 0.20 , use { @ link # addLongGauge ( String , MetricOptions ) } . * @ since 0.17 */ @ Deprecated public LongGauge addLongGauge ( String name , String description , String unit , List < LabelKey > labelKeys ) { } }
return addLongGauge ( name , MetricOptions . builder ( ) . setDescription ( description ) . setUnit ( unit ) . setLabelKeys ( labelKeys ) . build ( ) ) ;