signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class MultiLineStringSerializer { /** * Method that can be called to ask implementation to serialize values of type this serializer handles .
* @ param value Value to serialize ; can not be null .
* @ param jgen Generator used to output resulting Json content
* @ param provider Provider that can be used to... | jgen . writeFieldName ( "type" ) ; jgen . writeString ( "MultiLineString" ) ; jgen . writeArrayFieldStart ( "coordinates" ) ; // set beanproperty to null since we are not serializing a real property
JsonSerializer < Object > ser = provider . findValueSerializer ( Double . class , null ) ; for ( int i = 0 ; i < value . ... |
public class RouteFiltersInner { /** * Gets the specified route filter .
* @ param resourceGroupName The name of the resource group .
* @ param routeFilterName The name of the route filter .
* @ param expand Expands referenced express route bgp peering resources .
* @ param serviceCallback the async ServiceCall... | return ServiceFuture . fromResponse ( getByResourceGroupWithServiceResponseAsync ( resourceGroupName , routeFilterName , expand ) , serviceCallback ) ; |
public class MapOperatorBase { @ Override protected List < OUT > executeOnCollections ( List < IN > inputData , RuntimeContext ctx , ExecutionConfig executionConfig ) throws Exception { } } | MapFunction < IN , OUT > function = this . userFunction . getUserCodeObject ( ) ; FunctionUtils . setFunctionRuntimeContext ( function , ctx ) ; FunctionUtils . openFunction ( function , this . parameters ) ; ArrayList < OUT > result = new ArrayList < OUT > ( inputData . size ( ) ) ; TypeSerializer < IN > inSerializer ... |
public class XbaseInterpreter { /** * don ' t call this directly . Always call evaluate ( ) internalEvaluate ( ) */
protected Object doEvaluate ( XExpression expression , IEvaluationContext context , CancelIndicator indicator ) { } } | if ( expression instanceof XAssignment ) { return _doEvaluate ( ( XAssignment ) expression , context , indicator ) ; } else if ( expression instanceof XDoWhileExpression ) { return _doEvaluate ( ( XDoWhileExpression ) expression , context , indicator ) ; } else if ( expression instanceof XMemberFeatureCall ) { return _... |
public class TiffDocument { /** * Gets the Subifd count .
* @ return the Subifd count */
public int getSubIfdCount ( ) { } } | int c = 0 ; if ( metadata != null && metadata . contains ( "SubIFDs" ) ) c = getMetadataList ( "SubIFDs" ) . size ( ) ; return c ; |
public class MultipleTableFieldConverter { /** * Should I pass the alternate field ( or the main field ) ?
* @ return index ( - 1 ) = next converter , 0 - n = List of converters */
public int getIndexOfConverterToPass ( boolean bSetData ) { } } | Converter field = this . getTargetField ( null ) ; if ( m_converterNext == field ) return - 1 ; // -1 is the code for the base field .
int iIndex = 0 ; for ( ; ; iIndex ++ ) { // Is this one already on my list ?
Converter converter = this . getConverterToPass ( iIndex ) ; if ( converter == null ) break ; // End of list... |
public class Handler { /** * Marks a CHANNELID + UUID as either a transaction or a query
* @ param uuid ID to be marked
* @ param isTransaction true for transaction , false for query
* @ return whether or not the UUID was successfully marked */
private synchronized boolean markIsTransaction ( String channelId , S... | if ( this . isTransaction == null ) { return false ; } String key = getTxKey ( channelId , uuid ) ; this . isTransaction . put ( key , isTransaction ) ; return true ; |
public class ParetoStochasticLaw { /** * Replies the x according to the value of the distribution function .
* @ param u is a value given by the uniform random variable generator { @ code U ( 0 , 1 ) } .
* @ return { @ code F < sup > - 1 < / sup > ( u ) }
* @ throws MathException in case { @ code F < sup > - 1 < ... | return this . xmin / Math . pow ( u , 1. / this . k ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link CoordinateReferenceSystemRefType } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link CoordinateRefer... | return new JAXBElement < CoordinateReferenceSystemRefType > ( _IncludesCRS_QNAME , CoordinateReferenceSystemRefType . class , null , value ) ; |
public class FloatColumn { /** * Returns a new IntColumn containing a value for each value in this column , truncating if necessary .
* A narrowing primitive conversion such as this one may lose information about the overall magnitude of a
* numeric value and may also lose precision and range . Specifically , if th... | IntArrayList values = new IntArrayList ( ) ; for ( float d : data ) { values . add ( ( int ) d ) ; } values . trim ( ) ; return IntColumn . create ( this . name ( ) , values . elements ( ) ) ; |
public class Statement { /** * Generates a statement that returns the value produced by the given expression .
* < p > This does not validate that the return type is appropriate . It is our callers responsibility
* to do that . */
public static Statement returnExpression ( final Expression expression ) { } } | // TODO ( lukes ) : it would be nice to do a checkType operation here to make sure that expression
// is compatible with the return type of the method , but i don ' t know how to get that
// information here ( reasonably ) . So it is the caller ' s responsibility .
return new Statement ( ) { @ Override protected void d... |
public class Manager { /** * 获取class加载信息
* @ return class加载信息 */
public static ClassLoadInfo classLoadManager ( ) { } } | ClassLoadingMXBean classLoadingMXBean = ManagementFactory . getClassLoadingMXBean ( ) ; int nowLoadedClassCount = classLoadingMXBean . getLoadedClassCount ( ) ; long totalLoadedClassCount = classLoadingMXBean . getTotalLoadedClassCount ( ) ; long unloadedClassCount = classLoadingMXBean . getUnloadedClassCount ( ) ; ret... |
public class CRFBiasedClassifier { /** * The main method , which is essentially the same as in CRFClassifier . See the class documentation . */
public static void main ( String [ ] args ) throws Exception { } } | System . err . println ( "CRFBiasedClassifier invoked at " + new Date ( ) + " with arguments:" ) ; for ( String arg : args ) { System . err . print ( " " + arg ) ; } System . err . println ( ) ; Properties props = StringUtils . argsToProperties ( args ) ; CRFBiasedClassifier crf = new CRFBiasedClassifier ( props ) ; St... |
public class Validators { /** * Creates a new { @ link HibernateValidatorConfiguration } with all the custom value extractors registered . */
public static HibernateValidatorConfiguration newConfiguration ( ) { } } | return BaseValidator . newConfiguration ( ) . constraintValidatorFactory ( new MutableValidatorFactory ( ) ) . parameterNameProvider ( new JerseyParameterNameProvider ( ) ) . addValueExtractor ( NonEmptyStringParamValueExtractor . DESCRIPTOR . getValueExtractor ( ) ) . addValueExtractor ( ParamValueExtractor . DESCRIPT... |
public class GeometryTools { /** * Calculates the center of mass for the < code > Atom < / code > s in the
* AtomContainer for the 2D coordinates .
* See comment for center ( IAtomContainer atomCon , Dimension areaDim , HashMap renderingCoordinates ) for details on coordinate sets
* @ param ac AtomContainer for w... | double xsum = 0.0 ; double ysum = 0.0 ; double totalmass = 0.0 ; Iterator < IAtom > atoms = ac . atoms ( ) . iterator ( ) ; while ( atoms . hasNext ( ) ) { IAtom a = ( IAtom ) atoms . next ( ) ; Double mass = a . getExactMass ( ) ; if ( mass == null ) return null ; totalmass += mass ; xsum += mass * a . getPoint2d ( ) ... |
public class LoggingFilter { /** * { @ inheritDoc } */
@ Override public void filter ( final ContainerRequestContext context ) throws IOException { } } | final long id = _id . incrementAndGet ( ) ; context . setProperty ( LOGGING_ID_PROPERTY , id ) ; final StringBuilder b = new StringBuilder ( ) ; printRequestLine ( b , "Server has received a request" , id , context . getMethod ( ) , context . getUriInfo ( ) . getRequestUri ( ) ) ; printPrefixedHeaders ( b , id , REQUES... |
public class IndexMetadataBuilder { /** * Add column . Parameters in columnMetadata will be null .
* @ param columnName the column name
* @ param colType the col type
* @ return the index metadata builder */
@ TimerJ public IndexMetadataBuilder addColumn ( String columnName , ColumnType colType ) { } } | ColumnName colName = new ColumnName ( tableName , columnName ) ; ColumnMetadata colMetadata = new ColumnMetadata ( colName , null , colType ) ; columns . put ( colName , colMetadata ) ; return this ; |
public class GCI { /** * B & # 8849 ; & # 8707 ; r . C ' & rarr ; { B & # 8849 ; & # 8707 ; r . A , A & # 8849 ; C ' }
* @ param gcis
* @ return */
boolean rule6 ( final IFactory factory , final Inclusion [ ] gcis ) { } } | boolean result = false ; if ( rhs instanceof Existential ) { Existential existential = ( Existential ) rhs ; final AbstractConcept cHat = existential . getConcept ( ) ; if ( ! ( cHat instanceof Concept ) ) { result = true ; Concept a = getA ( factory , cHat ) ; gcis [ 0 ] = new GCI ( lhs , new Existential ( existential... |
public class JKAbstractCacheManager { /** * ( non - Javadoc )
* @ see com . jk . util . cache . JKCacheManager # cache ( java . lang . Object ,
* java . lang . Object , java . lang . Class ) */
@ Override public < T > void cache ( final Object key , final Object object , Class < T > clas ) { } } | this . logger . debug ( "@cache v2 " ) ; if ( object == null && ! isAllowNullable ( ) ) { return ; } else { this . logger . debug ( "logging key :" , key , " with object : " , object , " with Class : " , clas ) ; getCachableMap ( clas ) . put ( key , object ) ; } |
public class ReflectingConverter { /** * Helper method to do token replacement for strings .
* @ param str
* @ param context
* @ return
* @ throws Siren4JException */
private String handleTokenReplacement ( String str , EntityContext context ) throws Siren4JException { } } | String result = "" ; // First resolve parents
result = ReflectionUtils . replaceFieldTokens ( context . getParentObject ( ) , str , context . getParentFieldInfo ( ) , true ) ; // Now resolve others
result = ReflectionUtils . flattenReservedTokens ( ReflectionUtils . replaceFieldTokens ( context . getCurrentObject ( ) ,... |
public class StringUtils { /** * Removes all non alpha numerical characters from the passed text . First tries to convert diacritics to their
* alpha numeric representation .
* @ param text the text to convert
* @ return the alpha numeric equivalent
* @ since 10.6RC1 */
@ Unstable public static String toAlphaNu... | if ( isEmpty ( text ) ) { return text ; } return stripAccents ( text ) . replaceAll ( "[^a-zA-Z0-9]" , "" ) ; |
public class SerializerFactory { /** * Returns a custom serializer the class
* @ param cl the class of the object that needs to be serialized .
* @ return a serializer object for the serialization . */
protected Deserializer getCustomDeserializer ( Class cl ) { } } | try { Class serClass = Class . forName ( cl . getName ( ) + "HessianDeserializer" , false , cl . getClassLoader ( ) ) ; Deserializer ser = ( Deserializer ) serClass . newInstance ( ) ; return ser ; } catch ( ClassNotFoundException e ) { log . log ( Level . FINEST , e . toString ( ) , e ) ; return null ; } catch ( Excep... |
public class WalkerFactory { /** * Tell if the pattern can be ' walked ' with the iteration steps in natural
* document order , without duplicates .
* @ param analysis The general analysis of the pattern .
* @ return true if the walk can be done in natural order .
* @ throws javax . xml . transform . Transforme... | if ( canCrissCross ( analysis ) || isSet ( analysis , BIT_NAMESPACE ) || walksFilteredList ( analysis ) ) return false ; if ( walksInDocOrder ( analysis ) ) return true ; return false ; |
public class QRDecomposition { /** * Least squares solution of A * X = B
* @ param aMatrix
* A Matrix with as many rows as A and any number of columns .
* @ return X that minimizes the two norm of Q * R * X - B .
* @ exception IllegalArgumentException
* Matrix row dimensions must agree .
* @ exception Runti... | if ( aMatrix . getRowDimension ( ) != m_nRows ) throw new IllegalArgumentException ( "Matrix row dimensions must agree." ) ; if ( ! isFullRank ( ) ) throw new IllegalStateException ( "Matrix is rank deficient." ) ; // Copy right hand side
final int nCols = aMatrix . getColumnDimension ( ) ; final double [ ] [ ] aArray ... |
public class CSSExpression { /** * Shortcut method to add a numeric value
* @ param nIndex
* The index where the member should be added . Must be & ge ; 0.
* @ param dValue
* The value to be added .
* @ return this */
@ Nonnull public CSSExpression addNumber ( @ Nonnegative final int nIndex , final double dVa... | return addMember ( nIndex , new CSSExpressionMemberTermSimple ( dValue ) ) ; |
public class AstaTextFileReader { /** * Very basic implementation of an inner join between two result sets .
* @ param leftRows left result set
* @ param leftColumn left foreign key column
* @ param rightTable right table name
* @ param rightRows right result set
* @ param rightColumn right primary key column... | List < Row > result = new LinkedList < Row > ( ) ; RowComparator leftComparator = new RowComparator ( new String [ ] { leftColumn } ) ; RowComparator rightComparator = new RowComparator ( new String [ ] { rightColumn } ) ; Collections . sort ( leftRows , leftComparator ) ; Collections . sort ( rightRows , rightComparat... |
public class HeapAlphaSketch { /** * restricted methods */
@ Override int getCurrentPreambleLongs ( final boolean compact ) { } } | if ( ! compact ) { return Family . ALPHA . getMinPreLongs ( ) ; } return computeCompactPreLongs ( thetaLong_ , empty_ , curCount_ ) ; |
public class VariableListConverter { /** * Expects a query parameter of multiple variable expressions formatted as KEY _ OPERATOR _ VALUE , e . g . aVariable _ eq _ aValue .
* Multiple values are expected to be comma - separated . */
@ Override public List < VariableQueryParameterDto > convertQueryParameterToType ( S... | String [ ] expressions = value . split ( EXPRESSION_DELIMITER ) ; List < VariableQueryParameterDto > queryVariables = new ArrayList < VariableQueryParameterDto > ( ) ; for ( String expression : expressions ) { String [ ] valueTriple = expression . split ( ATTRIBUTE_DELIMITER ) ; if ( valueTriple . length != 3 ) { throw... |
public class JKAbstractContext { /** * ( non - Javadoc )
* @ see com . jk . context . JKContext # setAttribute ( java . lang . String ,
* java . lang . Object ) */
@ Override public void setAttribute ( final String key , final Object value ) { } } | logger . debug ( "Attribute ({}) is set to ({})" , key , value ) ; JKThreadLocal . setValue ( key , value ) ; |
public class FieldParser { /** * Checks if the given bytes ends with the delimiter at the given end position .
* @ param bytes The byte array that holds the value .
* @ param endPos The index of the byte array where the check for the delimiter ends .
* @ param delim The delimiter to check for .
* @ return true ... | if ( endPos < delim . length - 1 ) { return false ; } for ( int pos = 0 ; pos < delim . length ; ++ pos ) { if ( delim [ pos ] != bytes [ endPos - delim . length + 1 + pos ] ) { return false ; } } return true ; |
public class GenericWordSpace { /** * Updates the semantic vectors based on the words in the document .
* @ param document { @ inheritDoc }
* @ throws IllegalStateException if the vector values of this instance have
* been transform using { @ link # processSpace ( Transform ) } */
public void processDocument ( Bu... | if ( wordToTransformedVector != null ) { throw new IllegalStateException ( "Cannot add new documents to a " + "GenericWordSpace whose vectors have been transformed" ) ; } Queue < String > prevWords = new ArrayDeque < String > ( windowSize ) ; Queue < String > nextWords = new ArrayDeque < String > ( windowSize ) ; Itera... |
public class MtasDataCollector { /** * Sets the with total .
* @ throws IOException Signals that an I / O exception has occurred . */
public void setWithTotal ( ) throws IOException { } } | if ( collectorType . equals ( DataCollector . COLLECTOR_TYPE_LIST ) ) { if ( segmentName != null ) { throw new IOException ( "can't get total with segmentRegistration" ) ; } else { withTotal = true ; } } else { throw new IOException ( "can't get total for dataCollector of type " + collectorType ) ; } |
public class Matrix4x3d { /** * Apply a mirror / reflection transformation to this matrix that reflects about the given plane
* specified via the equation < code > x * a + y * b + z * c + d = 0 < / code > .
* The vector < code > ( a , b , c ) < / code > must be a unit vector .
* If < code > M < / code > is < code... | return reflect ( a , b , c , d , this ) ; |
public class AllocatedEvaluatorBridge { /** * Bridge function for REEF . NET to submit context configuration for the allocated evaluator .
* @ param evaluatorConfigurationString the evaluator configuration from . NET .
* @ param contextConfigurationString the context configuration from . NET . */
public void submit... | if ( evaluatorConfigurationString . isEmpty ( ) ) { throw new RuntimeException ( "empty evaluatorConfigurationString provided." ) ; } if ( contextConfigurationString . isEmpty ( ) ) { throw new RuntimeException ( "empty contextConfigurationString provided." ) ; } // When submit over the bridge , we would keep the conte... |
public class HTTP { /** * Opens the URL connection , and if a proxy is provided , uses the proxy to establish the connection
* @ param url - the url to connect to
* @ return HttpURLConnection : our established http connection
* @ throws IOException : if the connection can ' t be established , an IOException is th... | Proxy proxy = Proxy . NO_PROXY ; if ( Property . isProxySet ( ) ) { SocketAddress addr = new InetSocketAddress ( Property . getProxyHost ( ) , Property . getProxyPort ( ) ) ; proxy = new Proxy ( Proxy . Type . HTTP , addr ) ; } return ( HttpURLConnection ) url . openConnection ( proxy ) ; |
public class CompileEvent { /** * Get the source file information associated with this event . The source
* file information includes the name of the associated template and
* potential line number .
* @ return The source file information associated with the event */
public String getSourceInfoMessage ( ) { } } | String msg ; if ( mUnit == null ) { if ( mInfo == null ) { msg = "" ; } else { msg = String . valueOf ( mInfo . getLine ( ) ) ; } } else { if ( mInfo == null ) { msg = mUnit . getName ( ) ; } else { msg = mUnit . getName ( ) + ':' + mInfo . getLine ( ) ; } } return msg ; |
public class Crc32Caucho { /** * Calculates CRC from a string . */
public static int generate ( String value ) { } } | int len = value . length ( ) ; int crc = 0 ; for ( int i = 0 ; i < len ; i ++ ) { crc = next ( crc , value . charAt ( i ) ) ; } return crc ; |
public class WikibaseDataEditor { /** * Creates a new item document with the summary message as provided .
* The item document that is given as a parameter must use a local item id ,
* such as { @ link ItemIdValue # NULL } , and its revision id must be 0 . The
* newly created document is returned . It will contai... | String data = JsonSerializer . getJsonString ( itemDocument ) ; return ( ItemDocument ) this . wbEditingAction . wbEditEntity ( null , null , null , "item" , data , false , this . editAsBot , 0 , summary ) ; |
public class ScanIterator { /** * Sequentially iterate over keys in the keyspace . This method uses { @ code SCAN } to perform an iterative scan .
* @ param commands the commands interface , must not be { @ literal null } .
* @ param < K > Key type .
* @ param < V > Value type .
* @ return a new { @ link ScanIt... | return scan ( commands , Optional . empty ( ) ) ; |
public class XBELValidator { /** * { @ inheritDoc } */
@ Override public List < SAXParseException > validateWithErrors ( final String s ) throws SAXException , IOException { } } | final Source s2 = new StreamSource ( new StringReader ( s ) ) ; final Validator errorValidator = createNewErrorValidator ( ) ; errorValidator . validate ( s2 , null ) ; return ( ( Handler ) errorValidator . getErrorHandler ( ) ) . exceptions ; |
public class XPath { /** * Evaluates this { @ code XPath } expression on the object supplied , producing as result a
* unique object of the type { @ code T } specified .
* @ param object
* the object to evaluate this expression on
* @ param resultClass
* the { @ code Class } object for the result object
* @... | Preconditions . checkNotNull ( object ) ; Preconditions . checkNotNull ( resultClass ) ; try { return toUnique ( doEval ( object ) , resultClass ) ; } catch ( final Exception ex ) { if ( isLenient ( ) ) { return null ; } throw new IllegalArgumentException ( "Evaluation of XPath failed: " + ex . getMessage ( ) + "\nXPat... |
public class PathUtil { /** * Test if the target path is an archive .
* @ param path path to the file .
* @ return true if the path points to a zip file - false otherwise .
* @ throws IOException */
public static final boolean isArchive ( Path path ) throws IOException { } } | if ( Files . exists ( path ) && Files . isRegularFile ( path ) ) { try ( ZipFile zip = new ZipFile ( path . toFile ( ) ) ) { return true ; } catch ( ZipException e ) { return false ; } } return false ; |
public class CQLSSTableWriter { /** * Adds a new row to the writer given already serialized values .
* This is equivalent to the other rawAddRow methods , but takes a map whose
* keys are the names of the columns to add instead of taking a list of the
* values in the order of the insert statement used during cons... | int size = Math . min ( values . size ( ) , boundNames . size ( ) ) ; List < ByteBuffer > rawValues = new ArrayList < > ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { ColumnSpecification spec = boundNames . get ( i ) ; rawValues . add ( values . get ( spec . name . toString ( ) ) ) ; } return rawAddRow ( rawValues ) ... |
public class Matrix { /** * Frobenius norm
* @ return sqrt of sum of squares of all elements . */
public double normF ( ) { } } | double f = 0 ; for ( int i = 0 ; i < m ; i ++ ) { for ( int j = 0 ; j < n ; j ++ ) { f = Maths . hypot ( f , A [ i ] [ j ] ) ; } } return f ; |
public class ParticipantListener { /** * Sets the active state .
* @ param active The new active state . When set to true , all event subscriptions are activated
* and a participant add event is fired globally . When set to false , all event
* subscriptions are inactivated and a participant remove event is fired ... | refreshListener . setActive ( active ) ; addListener . setActive ( active ) ; removeListener . setActive ( active ) ; eventManager . fireRemoteEvent ( active ? addListener . eventName : removeListener . eventName , self ) ; if ( active ) { refresh ( ) ; } |
public class SesClient { /** * Send email .
* Simple to send email , all optional parameters use system default value .
* @ param from The sender , which is required
* @ param displayName The display name of sender , which can be custom by the users themselves
* @ param toAddr The receive , which is required
... | SendEmailRequest request = buildSendEmailRequest ( from , from , from , toAddr , new String [ ] { "" } , new String [ ] { "" } , subject , body , 1 , 1 ) ; request = fillDisplayName ( request , displayName ) ; request = fillAttachment ( request , attachmentFiles ) ; return sendEmail ( request ) ; |
public class MessageProcessorMatching { /** * Method evaluateDiscriminator
* Used to determine whether a supplied fully qualified discriminator matches
* a supplied wildcarded discriminator expression .
* @ param fullTopic
* @ param wildcardTopic
* @ param discriminatorTree
* @ return
* @ throws SIDiscrim... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "evaluateDiscriminator" , new Object [ ] { fullTopic , wildcardTopic , discriminatorTree } ) ; Object result = null ; boolean discriminatorMatches = false ; // Use the dummy evaluation cache , we don ' t need one here as we ... |
public class SourceColumnFinder { /** * Finds all source jobs / components for a particular job / component . This
* method uses { @ link Object } as types because input and output can be quite
* polymorphic . Typically { @ link InputColumnSinkJob } ,
* { @ link InputColumnSourceJob } , { @ link HasComponentRequi... | final Set < Object > result = new HashSet < Object > ( ) ; findAllSourceJobs ( job , result ) ; return result ; |
public class LogCursorImpl { /** * Returns a boolean flag to indicate if this LogCursorImpl has further objects to
* return .
* @ return boolean Flag indicating if this LogCursorImpl has further objects to
* return . */
public boolean hasNext ( ) { } } | if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "hasNext" , this ) ; boolean hasNext = false ; if ( ( ! _empty ) && ( ( _singleObject != null ) || ( ( _iterator1 != null ) && ( _iterator1 . hasNext ( ) ) ) || ( ( _iterator2 != null ) && ( _iterator2 . hasNext ( ) ) ) ) ) { hasNext = true ; } if ( tc . isEntryEnabled (... |
public class StreamUtils { /** * Helper method for { @ link # tar ( FileSystem , FileSystem , Path , Path ) } that adds a directory entry to a given
* { @ link TarArchiveOutputStream } . */
private static void dirToTarArchiveOutputStream ( Path destDir , TarArchiveOutputStream tarArchiveOutputStream ) throws IOExcept... | TarArchiveEntry tarArchiveEntry = new TarArchiveEntry ( formatPathToDir ( destDir ) ) ; tarArchiveEntry . setModTime ( System . currentTimeMillis ( ) ) ; tarArchiveOutputStream . putArchiveEntry ( tarArchiveEntry ) ; tarArchiveOutputStream . closeArchiveEntry ( ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link AbstractCoverageType } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link AbstractCoverageType } { @ ... | return new JAXBElement < AbstractCoverageType > ( __Coverage_QNAME , AbstractCoverageType . class , null , value ) ; |
public class ThreadHelper { /** * Sleep the current thread for a certain amount of time
* @ param nSeconds
* The seconds to sleep . Must be & ge ; 0.
* @ return { @ link ESuccess # SUCCESS } if sleeping was not interrupted ,
* { @ link ESuccess # FAILURE } if sleeping was interrupted */
@ Nonnull public static ... | ValueEnforcer . isGE0 ( nSeconds , "Seconds" ) ; return sleep ( nSeconds * CGlobal . MILLISECONDS_PER_SECOND ) ; |
public class LocationApi { /** * Get character online ( asynchronously ) Checks if the character is
* currently online - - - This route is cached for up to 60 seconds SSO Scope :
* esi - location . read _ online . v1
* @ param characterId
* An EVE character ID ( required )
* @ param datasource
* The server ... | com . squareup . okhttp . Call call = getCharactersCharacterIdOnlineValidateBeforeCall ( characterId , datasource , ifNoneMatch , token , callback ) ; Type localVarReturnType = new TypeToken < CharacterOnlineResponse > ( ) { } . getType ( ) ; apiClient . executeAsync ( call , localVarReturnType , callback ) ; return ca... |
public class DOInfoReader { /** * 先按照setter的约定寻找setter方法 ( 必须严格匹配参数类型或自动转换 ) < br >
* 如果有则按setter方法 , 如果没有则直接写入
* @ param field
* @ param object
* @ param value */
public static boolean setValue ( Field field , Object object , Object value ) { } } | String fieldName = field . getName ( ) ; String setMethodName = "set" + firstLetterUpperCase ( fieldName ) ; value = TypeAutoCast . cast ( value , field . getType ( ) ) ; Method method = null ; try { method = object . getClass ( ) . getMethod ( setMethodName , value . getClass ( ) ) ; } catch ( Exception e ) { } if ( m... |
public class Validator { /** * Validates a given field to have a maximum length
* @ param maxLength The maximum length
* @ param name The field to check */
public void expectMax ( String name , double maxLength ) { } } | expectMax ( name , maxLength , messages . get ( Validation . MAX_KEY . name ( ) , name , maxLength ) ) ; |
public class CouchDbSamlIdPMetadataDocument { /** * Merge another doc into this one .
* @ param doc other doc
* @ return this */
public CouchDbSamlIdPMetadataDocument merge ( final SamlIdPMetadataDocument doc ) { } } | setId ( doc . getId ( ) ) ; setMetadata ( doc . getMetadata ( ) ) ; setSigningCertificate ( doc . getSigningCertificate ( ) ) ; setSigningKey ( doc . getSigningKey ( ) ) ; setEncryptionCertificate ( doc . getEncryptionCertificate ( ) ) ; setEncryptionKey ( doc . getEncryptionKey ( ) ) ; return this ; |
public class SimpleDirectoryScanner { /** * Clears errors and warnings , automatically called for new scans . */
public void clear ( ) { } } | this . errors . clearErrorMessages ( ) ; ; this . warnings . clear ( ) ; this . infos . clear ( ) ; this . scDir = 0 ; this . scDirUnreadable = 0 ; this . scFiles = 0 ; this . scFilesUnreadable = 0 ; |
public class MultiLevelSeqGenerator { /** * add .
* @ param style a { @ link org . beangle . commons . text . seq . SeqPattern } object . */
public void add ( SeqPattern style ) { } } | style . setGenerator ( this ) ; patterns . put ( style . getLevel ( ) , style ) ; |
public class GetMLModelResult { /** * A list of the training parameters in the < code > MLModel < / code > . The list is implemented as a map of key - value
* pairs .
* The following is the current set of training parameters :
* < ul >
* < li >
* < code > sgd . maxMLModelSizeInBytes < / code > - The maximum a... | if ( trainingParameters == null ) { trainingParameters = new com . amazonaws . internal . SdkInternalMap < String , String > ( ) ; } return trainingParameters ; |
public class StringUtils { /** * Removes the leading and trailing delimiter from a string .
* @ param str String to process .
* @ param delimiter Delimiter to remove .
* @ return The string with the leading and trailing delimiter removed . */
public static String removeLeadingAndTrailingDelimiter ( String str , S... | final int strLength = str . length ( ) ; final int delimiterLength = delimiter . length ( ) ; final boolean leadingDelimiter = str . startsWith ( delimiter ) ; final boolean trailingDelimiter = strLength > delimiterLength && str . endsWith ( delimiter ) ; if ( ! leadingDelimiter && ! trailingDelimiter ) { return str ; ... |
public class ModelsImpl { /** * Delete an entity role .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param entityId The entity ID .
* @ param roleId The entity role Id .
* @ param serviceCallback the async ServiceCallback to handle successful and failed responses .
* @ throw... | return ServiceFuture . fromResponse ( deleteCustomEntityRoleWithServiceResponseAsync ( appId , versionId , entityId , roleId ) , serviceCallback ) ; |
public class DefaultTypeCache { /** * Return the list of type names in the type system which match the specified filter .
* @ return list of type names
* @ param filterMap - Map of filter for type names . Valid keys are CATEGORY , SUPERTYPE , NOT _ SUPERTYPE
* For example , CATEGORY = TRAIT & & SUPERTYPE contains... | assertFilter ( filterMap ) ; List < String > typeNames = new ArrayList < > ( ) ; for ( IDataType type : types_ . values ( ) ) { if ( shouldIncludeType ( type , filterMap ) ) { typeNames . add ( type . getName ( ) ) ; } } return typeNames ; |
public class PathTokenizer { /** * Get the remaining path from some tokens
* @ param tokens the tokens
* @ param i the current location
* @ return the remaining path
* @ throws IllegalArgumentException for null tokens or i is out of range */
public static String getRemainingPath ( List < String > tokens , int i... | if ( tokens == null ) { throw MESSAGES . nullArgument ( "tokens" ) ; } return getRemainingPath ( tokens , i , tokens . size ( ) ) ; |
public class GeoIPCityDissector { public void dissect ( final Parsable < ? > parsable , final String inputname , final InetAddress ipAddress ) throws DissectionFailure { } } | // City is the ' Country ' + more details .
CityResponse response ; try { response = reader . city ( ipAddress ) ; } catch ( IOException | GeoIp2Exception e ) { return ; } extractCountryFields ( parsable , inputname , response ) ; extractCityFields ( parsable , inputname , response ) ; |
public class Purge { /** * Executes the dependency - check purge to delete the existing local copy of
* the NVD CVE data .
* @ throws BuildException thrown if there is a problem deleting the file ( s ) */
@ Override public void execute ( ) throws BuildException { } } | populateSettings ( ) ; final File db ; try { db = new File ( getSettings ( ) . getDataDirectory ( ) , getSettings ( ) . getString ( Settings . KEYS . DB_FILE_NAME , "odc.mv.db" ) ) ; if ( db . exists ( ) ) { if ( db . delete ( ) ) { log ( "Database file purged; local copy of the NVD has been removed" , Project . MSG_IN... |
public class DirectCouponList { /** * Standard factory for new DirectCouponList .
* This initializes the given WritableMemory .
* @ param lgConfigK the configured Lg K
* @ param tgtHllType the configured HLL target
* @ param dstMem the destination memory for the sketch .
* @ return a new DirectCouponList */
s... | insertPreInts ( dstMem , LIST_PREINTS ) ; insertSerVer ( dstMem ) ; insertFamilyId ( dstMem ) ; insertLgK ( dstMem , lgConfigK ) ; insertLgArr ( dstMem , LG_INIT_LIST_SIZE ) ; insertFlags ( dstMem , EMPTY_FLAG_MASK ) ; // empty and not compact
insertListCount ( dstMem , 0 ) ; insertModes ( dstMem , tgtHllType , CurMode... |
public class CmsSecurityManager { /** * Locks a resource . < p >
* The < code > type < / code > parameter controls what kind of lock is used . < br >
* Possible values for this parameter are : < br >
* < ul >
* < li > < code > { @ link org . opencms . lock . CmsLockType # EXCLUSIVE } < / code > < / li >
* < l... | CmsDbContext dbc = m_dbContextFactory . getDbContext ( context ) ; try { checkOfflineProject ( dbc ) ; checkPermissions ( dbc , resource , CmsPermissionSet . ACCESS_WRITE , false , CmsResourceFilter . ALL ) ; m_driverManager . lockResource ( dbc , resource , type ) ; } catch ( Exception e ) { CmsMessageContainer messag... |
public class InternalXtextParser { /** * InternalXtext . g : 1095:1 : entryRuleTerminalRule : ruleTerminalRule EOF ; */
public final void entryRuleTerminalRule ( ) throws RecognitionException { } } | try { // InternalXtext . g : 1096:1 : ( ruleTerminalRule EOF )
// InternalXtext . g : 1097:1 : ruleTerminalRule EOF
{ before ( grammarAccess . getTerminalRuleRule ( ) ) ; pushFollow ( FollowSets000 . FOLLOW_1 ) ; ruleTerminalRule ( ) ; state . _fsp -- ; after ( grammarAccess . getTerminalRuleRule ( ) ) ; match ( input ... |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcMonetaryUnit ( ) { } } | if ( ifcMonetaryUnitEClass == null ) { ifcMonetaryUnitEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 323 ) ; } return ifcMonetaryUnitEClass ; |
public class CmsJspContentAccessBean { /** * Returns a lazy initialized Map that provides a Map that provides
* values from the XML content in the selected locale . < p >
* The first provided Map key is assumed to be a String that represents the Locale ,
* the second provided Map key is assumed to be a String tha... | if ( m_localeValue == null ) { m_localeValue = CmsCollectionsGenericWrapper . createLazyMap ( new CmsLocaleValueTransformer ( ) ) ; } return m_localeValue ; |
public class LocalTransactionCurrentService { /** * { @ inheritDoc } */
@ Override public void resume ( LocalTransactionCoordinator arg0 ) throws IllegalStateException { } } | if ( ltc != null ) { ltc . resume ( arg0 ) ; } |
public class CreatePlatformEndpointRequest { /** * For a list of attributes , see < a
* href = " https : / / docs . aws . amazon . com / sns / latest / api / API _ SetEndpointAttributes . html " > SetEndpointAttributes < / a > .
* @ return For a list of attributes , see < a
* href = " https : / / docs . aws . ama... | if ( attributes == null ) { attributes = new com . amazonaws . internal . SdkInternalMap < String , String > ( ) ; } return attributes ; |
public class DateUtils { /** * Returns a Java representation of a Facebook " month - year " { @ code date } string .
* @ param date
* Facebook { @ code date } string .
* @ return Java date representation of the given Facebook " month - year " { @ code date } string or { @ code null } if
* { @ code date } is { @... | if ( date == null ) { return null ; } if ( "0000-00" . equals ( date ) ) { return null ; } return toDateWithFormatString ( date , FACEBOOK_MONTH_YEAR_DATE_FORMAT ) ; |
public class RemoveDescendantsUtil { /** * class属性の指定で子孫要素を削除する
* @ param < T >
* tag class type . ( i . e . Div . class , Span . class . . . )
* @ param target
* objects for scan
* @ param clazz
* class property of tag */
public static < T extends AbstractJaxb > void removeDescendants ( T target , String ... | execute ( target , null , clazz ) ; |
public class GermanSpellerRule { /** * that contains an ignored word from spelling . txt ( e . g . , " Feynman " ) */
private boolean ignoreCompoundWithIgnoredWord ( String word ) throws IOException { } } | if ( ! StringTools . startsWithUppercase ( word ) && ! StringUtils . startsWithAny ( word , "nord" , "west" , "ost" , "süd" ) ) { // otherwise stuff like " rumfangreichen " gets accepted
return false ; } String [ ] words = word . split ( "-" ) ; if ( words . length < 2 ) { // non - hyphenated compound ( e . g . , " Fey... |
public class StringConverter { /** * Normalizes and prints the given string . */
public static String normalizeString ( String s , boolean canonical ) { } } | StringBuilder strBuf = new StringBuilder ( ) ; int len = ( s != null ) ? s . length ( ) : 0 ; for ( int i = 0 ; i < len ; i ++ ) { char c = s . charAt ( i ) ; if ( '_' == c ) { if ( len - i > ENCODE_CHARS ) { String spart = s . substring ( i , i + ENCODE_CHARS ) ; Matcher encodeMatcher = ENCODE_PATTERN . matcher ( spar... |
public class JSON { /** * / * ObjectReadContext : databind */
@ Override public < T extends TreeNode > T readTree ( JsonParser p ) throws IOException { } } | if ( _treeCodec == null ) { _noTreeCodec ( "write TreeNode" ) ; } return _treeCodec . readTree ( p ) ; |
public class TransformerIdentityImpl { /** * Report an attribute type declaration .
* < p > Only the effective ( first ) declaration for an attribute will
* be reported . The type will be one of the strings " CDATA " ,
* " ID " , " IDREF " , " IDREFS " , " NMTOKEN " , " NMTOKENS " , " ENTITY " ,
* " ENTITIES " ... | if ( null != m_resultDeclHandler ) m_resultDeclHandler . attributeDecl ( eName , aName , type , valueDefault , value ) ; |
public class Disposables { /** * Performs null checks and disposes of assets .
* @ param disposables its values will be disposed of ( if they exist ) . Can be null . */
public static void disposeOf ( final ObjectMap < ? , ? extends Disposable > disposables ) { } } | if ( disposables != null ) { for ( final Disposable disposable : disposables . values ( ) ) { disposeOf ( disposable ) ; } } |
public class JsBusImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . admin . JsBus # getSIBDestination ( java . lang . String ,
* java . lang . String ) */
public BaseDestinationDefinition getSIBDestination ( String busName , String name ) throws SIBExceptionBase , SIBExceptionDestinationNotFound { } } | return getDestinationCache ( ) . getSIBDestination ( busName , name ) ; |
public class SparseBitmap { /** * Convenience method : returns an array containing the set bits .
* @ return array corresponding to the position of the set bits . */
public int [ ] toArray ( ) { } } | IntIterator i = getIntIterator ( ) ; final int cardinality = this . cardinality ( ) ; int [ ] answer = new int [ cardinality ] ; for ( int k = 0 ; k < cardinality ; ++ k ) answer [ k ] = i . next ( ) ; return answer ; |
public class DialogState { /** * Flush the scope of unit and all children .
* @ param unitId */
public void flushChildScopes ( QName unitId ) { } } | Set < Integer > childScopes = findChildScopes ( unitId ) ; for ( Integer scopeId : childScopes ) { MutableContext mutableContext = statementContexts . get ( scopeId ) ; mutableContext . clearStatements ( ) ; } |
public class VolatileIndex { /** * Overwrites the default implementation by adding the documents to a
* pending list and commits the pending list if needed .
* @ param docs the documents to add to the index .
* @ throws IOException if an error occurs while writing to the index . */
@ Override void addDocuments ( ... | for ( int i = 0 ; i < docs . length ; i ++ ) { Document old = pending . put ( docs [ i ] . get ( FieldNames . UUID ) , docs [ i ] ) ; if ( old != null ) { Util . disposeDocument ( old ) ; } if ( pending . size ( ) >= bufferSize ) { commitPending ( ) ; } numDocs ++ ; } invalidateSharedReader ( ) ; |
public class ForkJoinPool { /** * Tries to decrement active count ( sometimes implicitly ) and
* possibly release or create a compensating worker in preparation
* for blocking . Fails on contention or termination . Otherwise ,
* adds a new thread if no idle workers are available and either
* pool would become c... | int pc = parallelism , e ; long c = ctl ; WorkQueue [ ] ws = workQueues ; if ( ( e = ( int ) c ) >= 0 && ws != null ) { int u , a , ac , hc ; int tc = ( short ) ( ( u = ( int ) ( c >>> 32 ) ) >>> UTC_SHIFT ) + pc ; boolean replace = false ; if ( ( a = u >> UAC_SHIFT ) <= 0 ) { if ( ( ac = a + pc ) <= 1 ) replace = true... |
public class FacebookFragment { /** * Gets the permissions associated with the current session or null if no session
* has been created .
* @ return the permissions associated with the current session */
protected final List < String > getSessionPermissions ( ) { } } | if ( sessionTracker != null ) { Session currentSession = sessionTracker . getSession ( ) ; return ( currentSession != null ) ? currentSession . getPermissions ( ) : null ; } return null ; |
public class Error { /** * Converts an array of { @ link Error } s to an array of { @ link String } s .
* @ param spans
* @ param s
* @ return the strings */
public static String [ ] spansToStrings ( Error [ ] spans , CharSequence s ) { } } | String [ ] tokens = new String [ spans . length ] ; for ( int si = 0 , sl = spans . length ; si < sl ; si ++ ) { tokens [ si ] = spans [ si ] . getCoveredText ( s ) . toString ( ) ; } return tokens ; |
public class DraeneiSearchService { /** * Filter stop word facets
* @ param facets Input facets
* @ return */
private Collection < Facet > filter ( Collection < Facet > facets ) { } } | if ( NotStopWordPredicate == null ) { return facets ; } return facets . stream ( ) . filter ( NotStopWordPredicate ) . collect ( Collectors . toList ( ) ) ; |
public class TokenBucket { /** * Note : this method should only be called while holding the class lock . For performance , the lock is not explicitly
* acquired .
* @ return the wait until the tokens are available or negative if they can ' t be acquired in the give timeout . */
synchronized long tryReserveTokens ( ... | long now = System . currentTimeMillis ( ) ; long waitUntilNextTokenAvailable = Math . max ( 0 , this . nextTokenAvailableMillis - now ) ; updateTokensStored ( now ) ; if ( tokens <= this . tokensStored ) { this . tokensStored -= tokens ; return waitUntilNextTokenAvailable ; } double additionalNeededTokens = tokens - th... |
public class SleUtility { /** * Groups values by the groups from the SLE .
* @ param values List of Extendable implementations to group .
* @ param groups Group fields ( from the SimpleListExtension module )
* @ return Grouped list of entries . */
public static < T extends Extendable > List < T > group ( final Li... | final SortableList < T > list = getSortableList ( values ) ; final GroupStrategy strategy = new GroupStrategy ( ) ; for ( int i = groups . length - 1 ; i >= 0 ; i -- ) { list . sortOnProperty ( groups [ i ] , true , strategy ) ; } return list ; |
public class JAXBUtils { /** * Write XML entity to the given destination .
* @ param entity
* XML entity
* @ param destination
* destination to write to . Supported destinations : { @ link java . io . OutputStream } , { @ link java . io . File } ,
* { @ link java . io . Writer }
* @ param comment
* option... | try { JAXBContext jaxbContext ; if ( entity instanceof JAXBElement ) { jaxbContext = JAXBContext . newInstance ( ( ( JAXBElement ) entity ) . getValue ( ) . getClass ( ) ) ; } else { jaxbContext = JAXBContext . newInstance ( entity . getClass ( ) ) ; } Marshaller marshaller = jaxbContext . createMarshaller ( ) ; marsha... |
public class CacheProxy { /** * Sets the access expiration time .
* @ param expirable the entry that was operated on
* @ param currentTimeMS the current time , or 0 if not read yet */
protected final void setAccessExpirationTime ( Expirable < ? > expirable , long currentTimeMS ) { } } | try { Duration duration = expiry . getExpiryForAccess ( ) ; if ( duration == null ) { return ; } else if ( duration . isZero ( ) ) { expirable . setExpireTimeMS ( 0L ) ; } else if ( duration . isEternal ( ) ) { expirable . setExpireTimeMS ( Long . MAX_VALUE ) ; } else { if ( currentTimeMS == 0L ) { currentTimeMS = curr... |
public class Participant { /** * Waits for the end of the synchronization and updates last seen config
* file .
* @ param peerId the id of the peer .
* @ throws TimeoutException in case of timeout .
* @ throws IOException in case of IOException .
* @ throws InterruptedException if it ' s interrupted . */
void... | MessageTuple tuple = filter . getExpectedMessage ( MessageType . SYNC_END , peerId , getSyncTimeoutMs ( ) ) ; ClusterConfiguration cnf = ClusterConfiguration . fromProto ( tuple . getMessage ( ) . getConfig ( ) , this . serverId ) ; LOG . debug ( "Got SYNC_END {} from {}" , cnf , peerId ) ; this . persistence . setLast... |
public class JInternalDialog { /** * Scans up the interface hierarchy looking for the { @ link
* JInternalDialog } that contains the supplied child component and
* dismisses it . */
public static void dismissDialog ( Component child ) { } } | if ( child == null ) { return ; } else if ( child instanceof JInternalDialog ) { ( ( JInternalDialog ) child ) . dismissDialog ( ) ; } else { dismissDialog ( child . getParent ( ) ) ; } |
public class RSS090Parser { /** * Parses the root element of an RSS document looking for image information .
* It reads title and url out of the ' image ' element .
* @ param rssRoot the root element of the RSS document to parse for image information .
* @ return the parsed image bean . */
protected Image parseIm... | Image image = null ; final Element eImage = getImage ( rssRoot ) ; if ( eImage != null ) { image = new Image ( ) ; final Element title = eImage . getChild ( "title" , getRSSNamespace ( ) ) ; if ( title != null ) { image . setTitle ( title . getText ( ) ) ; } final Element url = eImage . getChild ( "url" , getRSSNamespa... |
public class AbstractRenderer { /** * Computes a score by checking the value of the ' $ format ' parameter ( if present ) against a required media type .
* @ param formatOption The option containing the ' $ format ' parameter .
* @ param requiredMediaType The required media type .
* @ return A score that indicate... | if ( ! formatOption . isDefined ( ) ) { return DEFAULT_SCORE ; } if ( formatOption . get ( ) . mediaType ( ) . matches ( requiredMediaType ) ) { return MAXIMUM_FORMAT_SCORE ; } return DEFAULT_SCORE ; |
public class AWSDatabaseMigrationServiceClient { /** * Deletes the specified certificate .
* @ param deleteCertificateRequest
* @ return Result of the DeleteCertificate operation returned by the service .
* @ throws ResourceNotFoundException
* The resource could not be found .
* @ throws InvalidResourceStateE... | request = beforeClientExecution ( request ) ; return executeDeleteCertificate ( request ) ; |
public class TimeUtils { /** * Generate a fancy timestamp based on unix epoch time that is more user friendly than just
* a raw output by collapsing the time into manageable formats based on how much time has
* elapsed since epoch
* @ param epoch the time in unix epoch
* @ return the fancy timestamp */
public s... | // First , check to see if it ' s within 1 minute of the current date
if ( System . currentTimeMillis ( ) - epoch < 60000 ) { return "Just now" ; } // Get calendar for just now
Calendar now = Calendar . getInstance ( ) ; // Generate Calendar for this time
Calendar cal = Calendar . getInstance ( ) ; cal . setTimeInMilli... |
public class Router { /** * This should be called by the host Activity when its onBackPressed method is called . The call will be forwarded
* to its top { @ link Controller } . If that controller doesn ' t handle it , then it will be popped .
* @ return Whether or not a back action was handled by the Router */
@ Ui... | ThreadUtils . ensureMainThread ( ) ; if ( ! backstack . isEmpty ( ) ) { // noinspection ConstantConditions
if ( backstack . peek ( ) . controller . handleBack ( ) ) { return true ; } else if ( popCurrentController ( ) ) { return true ; } } return false ; |
public class MutableDataPoint { /** * Resets with a new pair of a timestamp and a double value .
* @ param timestamp A timestamp .
* @ param value A double value . */
public void reset ( final long timestamp , final double value ) { } } | this . timestamp = timestamp ; this . is_integer = false ; this . value = Double . doubleToRawLongBits ( value ) ; |
public class Requests { /** * Retrieve a request by doc id , masterRequestId , all matching requests , or an aggregated request breakdown . */
@ Override @ Path ( "/{requestId}" ) @ ApiOperation ( value = "Retrieve a request or a page of requests according to specified filters" , notes = "If requestId is not present, r... | RequestServices requestServices = ServiceLocator . getRequestServices ( ) ; try { Query query = getQuery ( path , headers ) ; String segOne = getSegment ( path , 1 ) ; if ( segOne != null ) { if ( segOne . equals ( "tops" ) ) { return getTops ( query ) . getJson ( ) ; } else if ( segOne . equals ( "breakdown" ) ) { ret... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.