signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class FormatFactory { /** * Creates new format descriptor
* @ param name the encoding
* @ param sampleRate sample rate value in Hertz
* @ param sampleSize sample size in bits
* @ param channels number of channels */
public static AudioFormat createAudioFormat ( EncodingName name , int sampleRate , int sa... | AudioFormat fmt = createAudioFormat ( name ) ; fmt . setSampleRate ( sampleRate ) ; fmt . setSampleSize ( sampleSize ) ; fmt . setChannels ( channels ) ; return fmt ; |
public class RemoteMediationPoint { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . runtime . SIMPRemoteQueuePointControllable # getPtoPOutboundTransmit ( java . lang . String , java . lang . String ) */
public SIMPPtoPOutboundTransmitControllable getPtoPOutboundTransmit ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getPtoPOutboundTransmit" ) ; SIMPPtoPOutboundTransmitControllable control = null ; if ( xmitPointControl != null ) { control = xmitPointControl . getPtoPOutboundTransmit ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( )... |
public class UserApi { /** * Search users by Email or username .
* < pre > < code > GitLab Endpoint : GET / users ? search = : email _ or _ username < / code > < / pre >
* @ param emailOrUsername the email or username to search for
* @ return a Stream of User instances with the email or username like emailOrUsern... | return ( findUsers ( emailOrUsername , getDefaultPerPage ( ) ) . stream ( ) ) ; |
public class ConfigurationFactory { /** * Create the bb - processor using xml - configuration resource
* @ param resourceName name of resource file
* @ return bb - code processor
* @ throws TextProcessorFactoryException when can ' t find or read the resource or illegal config file */
public Configuration createFr... | Exceptions . nullArgument ( "resourceName" , resourceName ) ; Configuration configuration ; try { InputStream stream = null ; try { stream = Utils . openResourceStream ( resourceName ) ; if ( stream != null ) { configuration = create ( stream ) ; } else { throw new TextProcessorFactoryException ( "Can't find or open re... |
public class ReactionSchemeManipulator { /** * Extract reactions from a IReactionSet which at least one product is existing
* as reactant given a IReaction
* @ param reaction The IReaction to analyze
* @ param reactionSet The IReactionSet to inspect
* @ return A IReactionSet containing the reactions */
private ... | IReactionSet reactConSet = reaction . getBuilder ( ) . newInstance ( IReactionSet . class ) ; for ( IAtomContainer reactant : reaction . getReactants ( ) . atomContainers ( ) ) { for ( IReaction reactionInt : reactionSet . reactions ( ) ) { for ( IAtomContainer precursor : reactionInt . getProducts ( ) . atomContainers... |
public class AppTrackerImpl { /** * Store module names for the app */
private synchronized AppModuleName addAppModuleNames ( String appName , String moduleAndAppName ) { } } | HashSet < String > moduleNames = null ; String moduleName = moduleAndAppName . split ( "#" ) [ 1 ] ; if ( appModules . containsKey ( appName ) ) { moduleNames = ( HashSet < String > ) appModules . get ( appName ) ; moduleNames . add ( moduleName ) ; } else { moduleNames = new HashSet < String > ( ) ; moduleNames . add ... |
public class MapWithProtoValuesSubject { /** * Limits the comparison of Protocol buffers to the defined { @ link FieldScope } .
* < p > This method is additive and has well - defined ordering semantics . If the invoking { @ link
* ProtoFluentAssertion } is already scoped to a { @ link FieldScope } { @ code X } , an... | return usingConfig ( config . withPartialScope ( checkNotNull ( fieldScope , "fieldScope" ) ) ) ; |
public class ProxiedFileSystemCache { /** * Gets a { @ link FileSystem } that can perform any operations allowed by the specified userNameToProxyAs .
* @ param userNameToProxyAs The name of the user the super user should proxy as
* @ param properties { @ link java . util . Properties } containing initialization pro... | return getProxiedFileSystem ( userNameToProxyAs , properties , fsURI , new Configuration ( ) ) ; |
public class CmsRelationFilter { /** * Returns an extended filter with defined in content type restriction . < p >
* @ return an extended filter with defined in content type restriction */
public CmsRelationFilter filterDefinedInContent ( ) { } } | CmsRelationFilter filter = ( CmsRelationFilter ) clone ( ) ; if ( filter . m_types . isEmpty ( ) ) { filter . m_types . addAll ( CmsRelationType . getAllDefinedInContent ( ) ) ; } else { filter . m_types = new HashSet < CmsRelationType > ( CmsRelationType . filterDefinedInContent ( filter . m_types ) ) ; } return filte... |
public class EncryptedPutObjectRequest { /** * sets the materials description for the encryption materials to be used with the current PutObjectRequest .
* @ param materialsDescription the materialsDescription to set */
public void setMaterialsDescription ( Map < String , String > materialsDescription ) { } } | this . materialsDescription = materialsDescription == null ? null : Collections . unmodifiableMap ( new HashMap < String , String > ( materialsDescription ) ) ; |
public class ParameterNameExtractor { /** * Extracts names of a serializable lambda parameters
* @ param lambda Serializable lambda
* @ param lambdaParametersCount number of lambda parameters */
public static List < String > extractParameterNames ( Serializable lambda , int lambdaParametersCount ) { } } | SerializedLambda serializedLambda = serialized ( lambda ) ; Method lambdaMethod = lambdaMethod ( serializedLambda ) ; String [ ] paramNames = paramNameReader . getParamNames ( lambdaMethod ) ; return asList ( Arrays . copyOfRange ( paramNames , paramNames . length - lambdaParametersCount , paramNames . length ) ) ; |
public class RecurlyClient { /** * Updates the acquisition details for an account
* https : / / dev . recurly . com / docs / update - account - acquisition
* @ param accountCode The account ' s account code
* @ param acquisition The AccountAcquisition data
* @ return The created AccountAcquisition object */
pub... | final String path = Account . ACCOUNT_RESOURCE + "/" + accountCode + AccountAcquisition . ACCOUNT_ACQUISITION_RESOURCE ; return doPUT ( path , acquisition , AccountAcquisition . class ) ; |
public class NodeSelectorMarkupHandler { /** * Text events */
@ Override public void handleText ( final char [ ] buffer , final int offset , final int len , final int line , final int col ) throws ParseException { } } | this . someSelectorsMatch = false ; for ( int i = 0 ; i < this . selectorsLen ; i ++ ) { this . selectorMatches [ i ] = this . selectorFilters [ i ] . matchText ( false , this . markupLevel , this . markupBlocks [ this . markupLevel ] ) ; if ( this . selectorMatches [ i ] ) { this . someSelectorsMatch = true ; } } if (... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcRelCoversBldgElements ( ) { } } | if ( ifcRelCoversBldgElementsEClass == null ) { ifcRelCoversBldgElementsEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 543 ) ; } return ifcRelCoversBldgElementsEClass ; |
public class PrimitiveEvent { /** * Creates a new primitive event .
* @ param eventType the event type
* @ param value the event value
* @ return the primitive event */
public static PrimitiveEvent event ( EventType eventType , byte [ ] value ) { } } | return new PrimitiveEvent ( EventType . canonical ( eventType ) , value ) ; |
public class FinishingFidelityImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public boolean eIsSet ( int featureID ) { } } | switch ( featureID ) { case AfplibPackage . FINISHING_FIDELITY__STP_FIN_EX : return STP_FIN_EX_EDEFAULT == null ? stpFinEx != null : ! STP_FIN_EX_EDEFAULT . equals ( stpFinEx ) ; case AfplibPackage . FINISHING_FIDELITY__REP_FIN_EX : return REP_FIN_EX_EDEFAULT == null ? repFinEx != null : ! REP_FIN_EX_EDEFAULT . equals ... |
public class FileNode { /** * Loads the children , caching the results in the children ivar . */
public Object [ ] getChildren ( ) { } } | if ( children != null ) { return children ; } if ( this . isTestcaseDir ( ) ) { try { ArrayList < TestDataNode > arrayDataNode = new ArrayList < > ( ) ; // load test case data
File tcDataFile = this . getPythonTestScript ( ) . getTestcaseData ( ) ; if ( tcDataFile == null ) { return new Object [ ] { } ; } CSVFile csvDa... |
public class RemoteIOSObject { /** * Uses reflection to instanciate a remote object implementing the correct interface .
* @ return the object . If the object is UIAElementNil , return null for a simple object , an empty
* list for a UIAElementArray . */
public static WebElement createObject ( RemoteWebDriver drive... | String ref = ro . get ( "ELEMENT" ) . toString ( ) ; String type = ( String ) ro . get ( "type" ) ; if ( type != null ) { String remoteObjectName = "org.uiautomation.ios.client.uiamodels.impl.Remote" + type ; if ( "UIAElementNil" . equals ( type ) ) { return null ; } boolean isArray = false ; // uiObject . has ( " leng... |
public class Page { /** * add url to fetch
* @ param requestString requestString */
public void addTargetRequest ( String requestString ) { } } | if ( StringUtils . isBlank ( requestString ) || requestString . equals ( "#" ) ) { return ; } requestString = UrlUtils . canonicalizeUrl ( requestString , url . toString ( ) ) ; targetRequests . add ( new Request ( requestString ) ) ; |
public class BlockJUnit4ClassRunner { /** * Adds to { @ code errors } for each method annotated with { @ code @ Test } ,
* { @ code @ Before } , or { @ code @ After } that is not a public , void instance
* method with no arguments .
* @ deprecated */
@ Deprecated protected void validateInstanceMethods ( List < Th... | validatePublicVoidNoArgMethods ( After . class , false , errors ) ; validatePublicVoidNoArgMethods ( Before . class , false , errors ) ; validateTestMethods ( errors ) ; if ( computeTestMethods ( ) . isEmpty ( ) ) { errors . add ( new Exception ( "No runnable methods" ) ) ; } |
public class DailyTimeIntervalTrigger { /** * Get a { @ link IScheduleBuilder } that is configured to produce a schedule
* identical to this trigger ' s schedule .
* @ see # getTriggerBuilder ( ) */
@ Override public IScheduleBuilder < IDailyTimeIntervalTrigger > getScheduleBuilder ( ) { } } | final DailyTimeIntervalScheduleBuilder cb = DailyTimeIntervalScheduleBuilder . dailyTimeIntervalSchedule ( ) . withInterval ( getRepeatInterval ( ) , getRepeatIntervalUnit ( ) ) . onDaysOfTheWeek ( getDaysOfWeek ( ) ) . startingDailyAt ( getStartTimeOfDay ( ) ) . endingDailyAt ( getEndTimeOfDay ( ) ) ; switch ( getMisf... |
public class ConstructorSup { /** * Create an instance with given args
* @ param args arguments to fill the parameter list
* @ return created instance */
public T newInstance ( Object ... args ) { } } | try { con . setAccessible ( true ) ; return con . newInstance ( args ) ; } catch ( Exception e ) { throw $ ( e ) ; } |
public class PersonDictionary { /** * 因为任何算法都无法解决100 % 的问题 , 总是有一些bad case , 这些bad case会以 “ 盖公章 A 1 ” 的形式加入词典中 < BR >
* 这个方法返回人名是否是bad case
* @ param name
* @ return */
static boolean isBadCase ( String name ) { } } | EnumItem < NR > nrEnumItem = dictionary . get ( name ) ; if ( nrEnumItem == null ) return false ; return nrEnumItem . containsLabel ( NR . A ) ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EEnum getIfcStackTerminalTypeEnum ( ) { } } | if ( ifcStackTerminalTypeEnumEEnum == null ) { ifcStackTerminalTypeEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 1069 ) ; } return ifcStackTerminalTypeEnumEEnum ; |
public class ZoomablePane { /** * Replies the property that contains the logger .
* @ return the logger . */
public ObjectProperty < Logger > loggerProperty ( ) { } } | if ( this . logger == null ) { this . logger = new SimpleObjectProperty < Logger > ( this , LOGGER_PROPERTY , Logger . getLogger ( getClass ( ) . getName ( ) ) ) { @ Override protected void invalidated ( ) { final Logger log = get ( ) ; if ( log == null ) { set ( Logger . getLogger ( getClass ( ) . getName ( ) ) ) ; } ... |
public class Vector3i { /** * / * ( non - Javadoc )
* @ see org . joml . Vector3ic # mul ( org . joml . Vector3ic , org . joml . Vector3i ) */
public Vector3i mul ( Vector3ic v , Vector3i dest ) { } } | dest . x = x * v . x ( ) ; dest . y = y * v . y ( ) ; dest . z = z * v . z ( ) ; return dest ; |
public class Base64InputStream { /** * Calls { @ link # read ( ) } repeatedly until the end of stream is reached or
* < em > len < / em > bytes are read . Returns number of bytes read into array or - 1
* if end of stream is encountered .
* @ param aDest
* array to hold values
* @ param nOfs
* offset for arr... | int nIndex = 0 ; for ( ; nIndex < nLen ; nIndex ++ ) { final int nByte = read ( ) ; if ( nByte >= 0 ) aDest [ nOfs + nIndex ] = ( byte ) nByte ; else if ( nIndex == 0 ) { // First byte is not Base64 - nothing read
return - 1 ; } else { // Out of ' for ' loop
break ; } } return nIndex ; |
public class SharedProcessor { /** * distribute the object among listeners .
* @ param obj specific obj
* @ param isSync is sync or not */
public void distribute ( ProcessorListener . Notification < ApiType > obj , boolean isSync ) { } } | lock . readLock ( ) . lock ( ) ; try { if ( isSync ) { for ( ProcessorListener < ApiType > listener : syncingListeners ) { listener . add ( obj ) ; } } else { for ( ProcessorListener < ApiType > listener : listeners ) { listener . add ( obj ) ; } } } finally { lock . readLock ( ) . unlock ( ) ; } |
public class Player { /** * 符計算をします
* 役なしの場合は0
* Situationが無い場合は一律で20 */
private int calcFu ( ) { } } | if ( normalYakuList . size ( ) == 0 ) { return 0 ; } if ( personalSituation == null || generalSituation == null ) { return 20 ; } // 特例の平和ツモと七対子の符
if ( normalYakuList . contains ( PINFU ) && normalYakuList . contains ( TSUMO ) ) { return 20 ; } if ( normalYakuList . contains ( CHITOITSU ) ) { return 25 ; } int tmpFu = ... |
import java . util . ArrayList ; import java . util . regex . Matcher ; import java . util . regex . Pattern ; class FindSubstrings { /** * This function is used to identify the occurrences and locations of a substring within a larger text string .
* @ param mainText The larger string that is being scanned for the oc... | Pattern pattern = Pattern . compile ( substring ) ; Matcher matcher = pattern . matcher ( mainText ) ; ArrayList < Object > result = new ArrayList < > ( ) ; while ( matcher . find ( ) ) { result . add ( matcher . group ( ) ) ; result . add ( matcher . start ( ) ) ; result . add ( matcher . end ( ) ) ; } return result ; |
public class CmsSitemapEditorConfiguration { /** * Opens the sitemap editor for the current site . < p > */
void openSitemapEditor ( ) { } } | CmsObject cms = A_CmsUI . getCmsObject ( ) ; String siteRoot = cms . getRequestContext ( ) . getSiteRoot ( ) ; if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( siteRoot ) ) { String path = getPath ( cms , A_CmsUI . get ( ) . getHttpSession ( ) ) ; if ( path != null ) { try { CmsAppWorkplaceUi ui = CmsAppWorkplaceUi . ... |
public class WritingRepositoryStrategy { /** * Speichert den übergebenen InputStream unter der angegebenen Id . Per
* Definition ist die Id der Hash des InputStreams . Falls unter der
* angegebenen Id also bereits ein Objekt anderer Länge gepeichert ist ,
* schlägt das Speichern fehl .
* @ param id
* Id de... | storeStream ( id , inputStream , null ) ; |
public class AvroEvaluatorListSerializer { /** * Build AvroEvaluatorList object . */
@ Override public AvroEvaluatorList toAvro ( final Map < String , EvaluatorDescriptor > evaluatorMap , final int totalEvaluators , final String startTime ) { } } | final List < AvroEvaluatorEntry > evaluatorEntities = new ArrayList < > ( ) ; for ( final Map . Entry < String , EvaluatorDescriptor > entry : evaluatorMap . entrySet ( ) ) { final EvaluatorDescriptor descriptor = entry . getValue ( ) ; evaluatorEntities . add ( AvroEvaluatorEntry . newBuilder ( ) . setId ( entry . get... |
public class AbstractWaterBoundarySurfaceType { /** * Gets the value of the genericApplicationPropertyOfWaterBoundarySurface property .
* This accessor method returns a reference to the live list ,
* not a snapshot . Therefore any modification you make to the
* returned list will be present inside the JAXB object... | if ( _GenericApplicationPropertyOfWaterBoundarySurface == null ) { _GenericApplicationPropertyOfWaterBoundarySurface = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfWaterBoundarySurface ; |
public class AbstractApkFile { /** * trans binary xml file to text xml file .
* @ param path the xml file path in apk file
* @ return the text . null if file not exists
* @ throws IOException */
public String transBinaryXml ( String path ) throws IOException { } } | byte [ ] data = getFileData ( path ) ; if ( data == null ) { return null ; } parseResourceTable ( ) ; XmlTranslator xmlTranslator = new XmlTranslator ( ) ; transBinaryXml ( data , xmlTranslator ) ; return xmlTranslator . getXml ( ) ; |
public class JsonReader { /** * Consumes the next token from the JSON stream and asserts that it is a
* literal null .
* @ throws IllegalStateException if the next token is not null or if this
* reader is closed . */
public void nextNull ( ) throws IOException { } } | int p = peeked ; if ( p == PEEKED_NONE ) { p = doPeek ( ) ; } if ( p == PEEKED_NULL ) { peeked = PEEKED_NONE ; pathIndices [ stackSize - 1 ] ++ ; } else { throw new IllegalStateException ( "Expected null but was " + peek ( ) + " at line " + getLineNumber ( ) + " column " + getColumnNumber ( ) + " path " + getPath ( ) )... |
public class InfluxDbWriter { /** * Each { @ link Result } is written as a { @ link Point } to InfluxDB
* The measurement for the { @ link Point } is to { @ link Result # getKeyAlias ( ) }
* < a href =
* " https : / / influxdb . com / docs / v0.9 / concepts / key _ concepts . html # retention - policy " >
* The... | // Creates only if it doesn ' t already exist
if ( createDatabase ) influxDB . createDatabase ( database ) ; BatchPoints . Builder batchPointsBuilder = BatchPoints . database ( database ) . retentionPolicy ( retentionPolicy ) . tag ( TAG_HOSTNAME , server . getSource ( ) ) ; for ( Map . Entry < String , String > tag : ... |
public class PartitionedStepControllerImpl { /** * Call the analyzerProxy ( if one was supplied ) with the given partition data . */
private void processPartitionReplyMsg ( PartitionReplyMsg msg ) { } } | if ( analyzerProxy == null ) { return ; } switch ( msg . getMsgType ( ) ) { case PARTITION_COLLECTOR_DATA : Serializable collectorData = deserializeCollectorData ( msg . getCollectorData ( ) ) ; logger . finer ( "Analyze collector data: " + collectorData ) ; analyzerProxy . analyzeCollectorData ( collectorData ) ; brea... |
public class Fn { public static < T > Collection < T > distinct ( Collection < ? extends T > collection ) { } } | return new HashSet < T > ( collection ) ; |
public class BlockLocation { /** * < code > optional . alluxio . grpc . WorkerNetAddress workerAddress = 2 ; < / code > */
public alluxio . grpc . WorkerNetAddressOrBuilder getWorkerAddressOrBuilder ( ) { } } | return workerAddress_ == null ? alluxio . grpc . WorkerNetAddress . getDefaultInstance ( ) : workerAddress_ ; |
public class Invoker { /** * to invoke a getter Method of a Object
* @ param o Object to invoke method from
* @ param prop Name of the Method without get
* @ return return Value of the getter Method
* @ throws SecurityException
* @ throws NoSuchMethodException
* @ throws IllegalArgumentException
* @ throw... | prop = "get" + prop ; Class c = o . getClass ( ) ; Method m = getMethodParameterPairIgnoreCase ( c , prop , null ) . getMethod ( ) ; // Method m = getMethodIgnoreCase ( c , prop , null ) ;
if ( m . getReturnType ( ) . getName ( ) . equals ( "void" ) ) throw new NoSuchMethodException ( "invalid return Type, method [" + ... |
public class RepositoryResourceImpl { /** * { @ inheritDoc } */
@ Override public AttachmentResource getLicense ( Locale loc ) throws RepositoryBackendException , RepositoryResourceException { } } | AttachmentSummary s = matchByLocale ( getAttachmentImpls ( ) , AttachmentType . LICENSE , loc ) ; AttachmentResource result = null ; if ( s instanceof AttachmentResource ) result = ( AttachmentResource ) s ; return result ; |
public class ParticleIO { /** * Load a set of configured emitters into a single system
* @ param ref
* The stream to read the XML from
* @ return A configured particle system
* @ throws IOException
* Indicates a failure to find , read or parse the XML file */
public static ParticleSystem loadConfiguredSystem ... | return loadConfiguredSystem ( ref , null , null , null ) ; |
public class ListEnabledProductsForImportRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ListEnabledProductsForImportRequest listEnabledProductsForImportRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( listEnabledProductsForImportRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listEnabledProductsForImportRequest . getNextToken ( ) , NEXTTOKEN_BINDING ) ; protocolMarshaller . marshall ( listEnabledProductsForImportRequest . ... |
public class JFXMasonryPane { /** * { @ inheritDoc } */
@ Override protected void layoutChildren ( ) { } } | performingLayout = true ; int col , row ; col = ( int ) Math . floor ( ( getWidth ( ) + getHSpacing ( ) - snappedLeftInset ( ) - snappedRightInset ( ) ) / ( getCellWidth ( ) + getHSpacing ( ) ) ) ; col = getLimitColumn ( ) != - 1 && col > getLimitColumn ( ) ? getLimitColumn ( ) : col ; if ( matrix != null && col == mat... |
public class LanguageProfileReader { /** * Reads a { @ link LanguageProfile } from an InputStream in UTF - 8. */
public LanguageProfile read ( InputStream inputStream ) throws IOException { } } | return OldLangProfileConverter . convert ( internalReader . read ( inputStream ) ) ; |
public class Widget { /** * Get a recursive count of the number of { @ link Widget } children of this
* { @ code Widget } .
* @ param includeHidden
* Pass { @ code false } to only count children whose
* { @ link # setVisibility ( Visibility ) visibility } is
* { @ link Visibility # VISIBLE } .
* @ return Th... | int count = 0 ; for ( Widget child : getChildren ( ) ) { if ( includeHidden || child . mVisibility == Visibility . VISIBLE ) { ++ count ; count += child . getChildCount ( includeHidden ) ; } } return count ; |
public class IPAddressSeqRange { /** * Subtracts the given range from this range , to produce either zero , one , or two address ranges that contain the addresses in this range and not in the given range .
* If the result has length 2 , the two ranges are in increasing order .
* @ param other
* @ return */
public... | IPAddress otherLower = other . getLower ( ) ; IPAddress otherUpper = other . getUpper ( ) ; IPAddress lower = this . getLower ( ) ; IPAddress upper = this . getUpper ( ) ; if ( compareLowValues ( lower , otherLower ) < 0 ) { if ( compareLowValues ( upper , otherUpper ) > 0 ) { // l ol ou u
return createPair ( lower , o... |
public class AnnotationMethodInterceptor { /** * Returns true if the specified object represents an annotation that is logically equivalent to this one .
* @ param object Object to inspect .
* @ return true if same annnotationType and all attributes are equal , else false . */
private boolean annotationEquals ( Obj... | if ( object == null || ! ( object instanceof Annotation ) || ! annotationType . equals ( ( ( Annotation ) object ) . annotationType ( ) ) ) { return false ; } for ( Map . Entry < String , Method > entry : attributes . entrySet ( ) ) { String methodName = entry . getKey ( ) ; Method method = entry . getValue ( ) ; Objec... |
public class JdbcEndpointAdapterController { /** * Executes a given query and returns the mapped result
* @ param query The query to execute
* @ return The DataSet containing the query result
* @ throws JdbcServerException In case that the query was not successful */
@ Override public DataSet executeQuery ( Strin... | log . info ( "Received execute query request: " + query ) ; Message response = handleMessageAndCheckResponse ( JdbcMessage . execute ( query ) ) ; return dataSetCreator . createDataSet ( response , getMessageType ( response ) ) ; |
public class RecommendationsInner { /** * Disable all recommendations for an app .
* Disable all recommendations for an app .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param siteName Name of the app .
* @ throws IllegalArgumentException thrown if parameters fail ... | disableAllForWebAppWithServiceResponseAsync ( resourceGroupName , siteName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class AppServicePlansInner { /** * Creates or updates an App Service Plan .
* Creates or updates an App Service Plan .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param name Name of the App Service plan .
* @ param appServicePlan Details of the App Service p... | return createOrUpdateWithServiceResponseAsync ( resourceGroupName , name , appServicePlan ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class Val { /** * Converts the object to a map
* @ param < K > the type parameter
* @ param < V > the type parameter
* @ param keyClass The key class
* @ param valueClass The value class
* @ return the object as a map */
public < K , V > Map < K , V > asMap ( Class < K > keyClass , Class < V > valueCla... | return asMap ( HashMap . class , keyClass , valueClass ) ; |
public class ProxyFactory { /** * Returns a reference to a { @ link ProxyFactory } service provider implementation provided by Elements that delegates
* all proxy operations to any / all application configured { @ link ProxyFactory } service provider implementations .
* @ param < T > { @ link Class } type of the { ... | return new ProxyFactory < T > ( ) { @ Override public boolean canProxy ( Object target , Class [ ] proxyInterfaces ) { return ProxyService . < T > newProxyService ( ) . canProxy ( target , proxyInterfaces ) ; } @ Override @ SuppressWarnings ( "unchecked" ) public < R > R newProxy ( ClassLoader proxyClassLoader , T targ... |
public class DescribePointSurf { /** * Compute SURF descriptor , but without laplacian sign
* @ param x Location of interest point .
* @ param y Location of interest point .
* @ param angle The angle the feature is pointing at in radians .
* @ param scale Scale of the interest point . Null is returned if the fe... | double c = Math . cos ( angle ) , s = Math . sin ( angle ) ; // By assuming that the entire feature is inside the image faster algorithms can be used
// the results are also of dubious value when interacting with the image border .
boolean isInBounds = SurfDescribeOps . isInside ( ii , x , y , radiusDescriptor , widthS... |
public class MultiLayerConfiguration { /** * Handle { @ link WeightInit } and { @ link Distribution } from legacy configs in Json format . Copied from handling of { @ link Activation }
* above .
* @ return True if all is well and layer iteration shall continue . False else - wise . */
private static boolean handleL... | if ( ( l instanceof BaseLayer ) && ( ( BaseLayer ) l ) . getWeightInitFn ( ) == null ) { try { JsonNode jsonNode = mapper . readTree ( json ) ; if ( confs == null ) { confs = jsonNode . get ( "confs" ) ; } if ( confs instanceof ArrayNode ) { ArrayNode layerConfs = ( ArrayNode ) confs ; JsonNode outputLayerNNCNode = lay... |
public class JSchema { /** * Resolve a case name to a case index
* @ param accessor the accessor of a JSVariant in the schema in whose scope the case
* name is to be resolved
* @ param name the case name to be resolved
* @ return the case index associated with the name or - 1 if either the accessor does not
*... | JMFFieldDef field = getFieldDef ( accessor ) ; if ( ! ( field instanceof JSVariant ) ) return - 1 ; JMFType target = findVariantChildByName ( ( JSVariant ) field , name ) ; if ( target != null ) return getEffectiveSiblingPosition ( target ) ; else return - 1 ; |
public class TECore { /** * Builds a DOM Document representing a classpath resource .
* @ param name
* The name of an XML resource .
* @ return A Document node , or { @ code null } if the resource cannot be parsed
* for any reason . */
public Document findXMLResource ( String name ) { } } | URL url = this . getClass ( ) . getResource ( name ) ; DocumentBuilderFactory docFactory = DocumentBuilderFactory . newInstance ( ) ; docFactory . setNamespaceAware ( true ) ; // Fortify Mod : Disable entity expansion to foil External Entity Injections
docFactory . setExpandEntityReferences ( false ) ; Document doc = n... |
public class EncoderFeatureIndex { /** * 读取训练文件中的标注集
* @ param filename
* @ return */
private boolean openTagSet ( String filename ) { } } | int max_size = 0 ; InputStreamReader isr = null ; y_ . clear ( ) ; try { isr = new InputStreamReader ( IOUtil . newInputStream ( filename ) , "UTF-8" ) ; BufferedReader br = new BufferedReader ( isr ) ; String line ; while ( ( line = br . readLine ( ) ) != null ) { if ( line . length ( ) == 0 ) { continue ; } char firs... |
public class SocketChannelSelectionProcessorActor { private void close ( final SocketChannel channel , final SelectionKey key ) { } } | try { channel . close ( ) ; } catch ( Exception e ) { // already closed ; ignore
} try { key . cancel ( ) ; } catch ( Exception e ) { // already cancelled / closed ; ignore
} |
public class CmsSecurityManager { /** * Changes the " release " date of a resource . < p >
* @ param context the current request context
* @ param resource the resource to touch
* @ param dateReleased the new release date of the changed resource
* @ throws CmsException if something goes wrong
* @ throws CmsSe... | CmsDbContext dbc = m_dbContextFactory . getDbContext ( context ) ; try { checkOfflineProject ( dbc ) ; checkPermissions ( dbc , resource , CmsPermissionSet . ACCESS_WRITE , true , CmsResourceFilter . IGNORE_EXPIRATION ) ; m_driverManager . setDateReleased ( dbc , resource , dateReleased ) ; } catch ( Exception e ) { db... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EEnum getIfcBenchmarkEnum ( ) { } } | if ( ifcBenchmarkEnumEEnum == null ) { ifcBenchmarkEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 921 ) ; } return ifcBenchmarkEnumEEnum ; |
public class FileSystemView { /** * Gets the regular file at the given path , creating it if it doesn ' t exist and the given options
* specify that it should be created . */
public RegularFile getOrCreateRegularFile ( JimfsPath path , Set < OpenOption > options , FileAttribute < ? > ... attrs ) throws IOException { ... | checkNotNull ( path ) ; if ( ! options . contains ( CREATE_NEW ) ) { // assume file exists unless we ' re explicitly trying to create a new file
RegularFile file = lookUpRegularFile ( path , options ) ; if ( file != null ) { return file ; } } if ( options . contains ( CREATE ) || options . contains ( CREATE_NEW ) ) { r... |
public class ReplicationDestinationConfig { /** * Sets the storage class for the replication destination . If not specified ,
* Amazon S3 uses the storage class of the source object to create object replica . */
public void setStorageClass ( StorageClass storageClass ) { } } | setStorageClass ( storageClass == null ? ( String ) null : storageClass . toString ( ) ) ; |
public class IfcSurfaceReinforcementAreaImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) @ Override public EList < Double > getSurfaceReinforcement2 ( ) { } } | return ( EList < Double > ) eGet ( Ifc4Package . Literals . IFC_SURFACE_REINFORCEMENT_AREA__SURFACE_REINFORCEMENT2 , true ) ; |
public class ClassUtils { /** * 返回给定对象的封装类型或自身类型 . < br >
* 如果给定对象是基本数据类型 , 则返回其封装类型 。 < br >
* 如果给定对象为 null 则返回 null . Returns given object wrapper class or self class . < br >
* if given object class is primitive class then return wrapper class . < br >
* if given object is null return null .
* @ param obje... | if ( object == null ) { return null ; } return getWrapperClass ( object . getClass ( ) ) ; |
public class ExtractionUtil { /** * Extracts the contents of an archive into the specified directory .
* @ param archive an archive file such as a WAR or EAR
* @ param destination a directory to extract the contents to
* @ param filter determines which files get extracted
* @ throws ExtractionException thrown i... | if ( archive == null || destination == null ) { return ; } try ( FileInputStream fis = new FileInputStream ( archive ) ) { extractArchive ( new ZipArchiveInputStream ( new BufferedInputStream ( fis ) ) , destination , filter ) ; } catch ( FileNotFoundException ex ) { final String msg = String . format ( "Error extracti... |
public class JmxUtilities { /** * Attempt to connect to a remote < code > MBeanServer < / code > . Fails if no
* < code > MBeanServer < / code > connection can be established . */
public static MBeanServerConnection connectMBeanServer ( String server ) throws MBeanServerException { } } | String url = "service:jmx:rmi://localhost/jndi/rmi://" + server + "/jmxrmi" ; try { JMXServiceURL jmxUrl = new JMXServiceURL ( url ) ; JMXConnector jmxConnector = JMXConnectorFactory . connect ( jmxUrl ) ; return jmxConnector . getMBeanServerConnection ( ) ; } catch ( MalformedURLException e ) { throw new MBeanServerEx... |
public class JmsFactoryFactoryImpl { /** * For use by the JCA resource adaptor . */
@ Override public ConnectionFactory createConnectionFactory ( JmsJcaConnectionFactory jcaConnectionFactory ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "createConnectionFactory" , jcaConnectionFactory ) ; ConnectionFactory cf = new JmsManagedConnectionFactoryImpl ( jcaConnectionFactory ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Sib... |
public class ToolbarLarge { /** * Obtains the color of the toolbar ' s background from a specific typed array .
* @ param theme
* The resource id of the theme , which should be applied on the toolbar , as an { @ link
* Integer } value */
private void obtainBackgroundColor ( final int theme ) { } } | TypedArray typedArray = getContext ( ) . getTheme ( ) . obtainStyledAttributes ( theme , new int [ ] { R . attr . colorPrimary } ) ; int colorPrimary = typedArray . getColor ( 0 , 0 ) ; typedArray . recycle ( ) ; if ( colorPrimary != 0 ) { backgroundView . setBackgroundColor ( colorPrimary ) ; } |
public class MethodInvokerRewriter { /** * method useful when debugging */
@ SuppressWarnings ( "unused" ) private static void checkNotTheSame ( byte [ ] bs , byte [ ] bytes ) { } } | if ( bs . length == bytes . length ) { System . out . println ( "same length!" ) ; boolean same = true ; for ( int i = 0 ; i < bs . length ; i ++ ) { if ( bs [ i ] != bytes [ i ] ) { same = false ; break ; } } if ( same ) { System . out . println ( "same data!!" ) ; } else { System . out . println ( "diff data" ) ; } }... |
public class AbstractOptionsForSelect { /** * Add the given async listener on the { @ link com . datastax . driver . core . Row } object .
* Example of usage :
* < pre class = " code " > < code class = " java " >
* . withRowAsyncListener ( row - > {
* / / Do something with the row object here
* < / code > < /... | getOptions ( ) . setRowAsyncListeners ( Optional . of ( asList ( rowAsyncListener ) ) ) ; return getThis ( ) ; |
public class BasicDDF { /** * Override to snapshot our List < ? > into a local variable for serialization */
@ Override public void beforeSerialization ( ) throws DDFException { } } | super . beforeSerialization ( ) ; mData = this . getList ( mUnitType ) ; mUnitTypeName = ( mUnitType != null ? mUnitType . getName ( ) : null ) ; |
public class WalkerState { /** * Seeks to the given day within the current month
* @ param dayOfMonth the day of the month to seek to , represented as an integer
* from 1 to 31 . Must be guaranteed to parse as an Integer . If this day is
* beyond the last day of the current month , the actual last day of the mont... | int dayOfMonthInt = Integer . parseInt ( dayOfMonth ) ; assert ( dayOfMonthInt >= 1 && dayOfMonthInt <= 31 ) ; markDateInvocation ( ) ; dayOfMonthInt = Math . min ( dayOfMonthInt , _calendar . getActualMaximum ( Calendar . DAY_OF_MONTH ) ) ; _calendar . set ( Calendar . DAY_OF_MONTH , dayOfMonthInt ) ; |
public class SpecStringParser { /** * Method that recursively parses a dotNotation String based on an iterator .
* This method will call out to parseAtPathElement
* @ param pathStrings List to store parsed Strings that each represent a PathElement
* @ param iter the iterator to pull characters from
* @ param do... | if ( ! iter . hasNext ( ) ) { return pathStrings ; } // Leave the forward slashes , unless it precedes a " . "
// The way this works is always suppress the forward slashes , but add them back in if the next char is not a " . "
boolean prevIsEscape = false ; boolean currIsEscape = false ; StringBuilder sb = new StringBu... |
public class SarlDocumentationParser { /** * Do a post processing of the text .
* @ param text the text to post process .
* @ return the post - processed text . */
protected String postProcessing ( CharSequence text ) { } } | final String lineContinuation = getLineContinuation ( ) ; if ( lineContinuation != null ) { final Pattern pattern = Pattern . compile ( "\\s*\\\\[\\n\\r]+\\s*" , // $ NON - NLS - 1 $
Pattern . DOTALL ) ; final Matcher matcher = pattern . matcher ( text . toString ( ) . trim ( ) ) ; return matcher . replaceAll ( lineCon... |
public class Collectors { /** * Returns a { @ code Collector } that performs flat - mapping before accumulation .
* @ param < T > the type of the input elements
* @ param < U > the result type of flat - mapping function
* @ param < A > the accumulation type
* @ param < R > the result type of collector
* @ par... | final BiConsumer < A , ? super U > accumulator = downstream . accumulator ( ) ; return new CollectorsImpl < T , A , R > ( downstream . supplier ( ) , new BiConsumer < A , T > ( ) { @ Override public void accept ( final A a , T t ) { final Stream < ? extends U > stream = mapper . apply ( t ) ; if ( stream == null ) retu... |
public class ChmodParser { /** * Apply permission against specified file and determine what the
* new mode would be
* @ param file File against which to apply mode
* @ return File ' s new mode if applied . */
public short applyNewPermission ( FileStatus file ) { } } | FsPermission perms = file . getPermission ( ) ; int existing = perms . toShort ( ) ; boolean exeOk = file . isDir ( ) || ( existing & 0111 ) != 0 ; return ( short ) combineModes ( existing , exeOk ) ; |
public class DaggerService { /** * Caller is required to know the type of the component for this context . */
@ SuppressWarnings ( "unchecked" ) public static < T > T getDaggerComponent ( Context context ) { } } | // noinspection ResourceType
return ( T ) context . getSystemService ( SERVICE_NAME ) ; |
public class CFMLExpressionInterpreter { /** * private FunctionLibFunction getFLF ( String name ) { FunctionLibFunction flf = null ; for ( int i = 0 ; i
* < flds . length ; i + + ) { flf = flds [ i ] . getFunction ( name ) ; if ( flf ! = null ) break ; } return flf ; } */
protected Object interpretPart ( PageContext ... | this . cfml = cfml ; init ( pc ) ; cfml . removeSpace ( ) ; return assignOp ( ) . getValue ( pc ) ; |
public class engines { /** * Create a new { @ link Engine } for solving the { @ link Knapsack } problem . The
* engine is used for testing purpose .
* @ see Knapsack # of ( int , Random )
* @ param populationSize the population size of the created engine
* @ param random the random engine used for creating the ... | // Search space fo 2 ^ 250 ~ 10 ^ 75.
final Knapsack knapsack = Knapsack . of ( 250 , random ) ; // Configure and build the evolution engine .
return Engine . builder ( knapsack ) . populationSize ( populationSize ) . survivorsSelector ( new TournamentSelector < > ( 5 ) ) . offspringSelector ( new RouletteWheelSelector... |
public class IndexSerializer { /** * Querying */
public List < Object > query ( final JointIndexQuery . Subquery query , final BackendTransaction tx ) { } } | IndexType index = query . getIndex ( ) ; if ( index . isCompositeIndex ( ) ) { MultiKeySliceQuery sq = query . getCompositeQuery ( ) ; List < EntryList > rs = sq . execute ( tx ) ; List < Object > results = new ArrayList < Object > ( rs . get ( 0 ) . size ( ) ) ; for ( EntryList r : rs ) { for ( java . util . Iterator ... |
public class HelpView { /** * Duplicates JavaHelp topic tree into HelpTopicNode - based tree .
* @ param htnParent Current parent for HelpTopicNode - based tree .
* @ param ttnParent Current parent for JavaHelp TreeNode - based tree . */
private void initTopicTree ( HelpTopicNode htnParent , TreeNode ttnParent ) { ... | for ( int i = 0 ; i < ttnParent . getChildCount ( ) ; i ++ ) { TreeNode ttnChild = ttnParent . getChildAt ( i ) ; HelpTopic ht = getTopic ( ttnChild ) ; HelpTopicNode htnChild = new HelpTopicNode ( ht ) ; htnParent . addChild ( htnChild ) ; initTopicTree ( htnChild , ttnChild ) ; } |
public class AbstractDependencyFilenameStrategy { /** * { @ inheritDoc } */
public String getDependencyFileVersion ( Artifact artifact , Boolean useUniqueVersions ) { } } | if ( useUniqueVersions != null && useUniqueVersions ) { return UniqueVersionsHelper . getUniqueVersion ( artifact ) ; } return artifact . getVersion ( ) ; |
public class WSStatsHelper { /** * This method allows translation of the textual information .
* By default translation is enabled using the default Locale .
* @ param textInfoTranslationEnabled enable / disable
* @ param locale Locale to use for translation */
public static void setTextInfoTranslationEnabled ( b... | com . ibm . ws . pmi . stat . StatsImpl . setEnableNLS ( textInfoTranslationEnabled , locale ) ; |
public class ModelsImpl { /** * Update an entity role for a given entity .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param entityId The entity ID .
* @ param roleId The entity role ID .
* @ param updatePrebuiltEntityRoleOptionalParameter the object representing the optional... | return ServiceFuture . fromResponse ( updatePrebuiltEntityRoleWithServiceResponseAsync ( appId , versionId , entityId , roleId , updatePrebuiltEntityRoleOptionalParameter ) , serviceCallback ) ; |
public class OptionsMethodProcessor { /** * { @ inheritDoc } */
@ Override public ResourceModel processResourceModel ( ResourceModel resourceModel , Configuration configuration ) { } } | return ModelProcessorUtil . enhanceResourceModel ( resourceModel , false , methodList , true ) . build ( ) ; |
public class ExpressionsParser { /** * P14
* Not all of the listed operators are actually legal , but if not legal , then they are at least imaginable , so we parse them and flag them as errors in the AST phase .
* @ see < a href = " http : / / java . sun . com / docs / books / jls / third _ edition / html / lexica... | return Sequence ( inlineIfExpressionChaining ( ) , set ( ) , Optional ( Sequence ( assignmentOperator ( ) . label ( "operator" ) , group . basics . optWS ( ) , assignmentExpressionChaining ( ) . label ( "RHS" ) ) ) . label ( "assignment" ) , set ( actions . createAssignmentExpression ( value ( ) , text ( "assignment/Se... |
public class DateUtil { /** * 2016-11-10 07:33:23 , 则返回2016-12-1 00:00:00 */
public static Date nextMonth ( @ NotNull final Date date ) { } } | return DateUtils . ceiling ( date , Calendar . MONTH ) ; |
public class UpdateLayerRequest { /** * A < code > VolumeConfigurations < / code > object that describes the layer ' s Amazon EBS volumes .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setVolumeConfigurations ( java . util . Collection ) } or { @ link # wi... | if ( this . volumeConfigurations == null ) { setVolumeConfigurations ( new com . amazonaws . internal . SdkInternalList < VolumeConfiguration > ( volumeConfigurations . length ) ) ; } for ( VolumeConfiguration ele : volumeConfigurations ) { this . volumeConfigurations . add ( ele ) ; } return this ; |
public class ProfileCsmConfigurationProvider { /** * ProfilesConfigFile immediately loads the profiles at construction time */
private ProfilesConfigFile getProfilesConfigFile ( ) { } } | if ( configFile == null ) { synchronized ( this ) { if ( configFile == null ) { try { configFile = new ProfilesConfigFile ( configFileLocationProvider . getLocation ( ) ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to load config file" , e ) ; } } } } return configFile ; |
public class WRadioButtonRenderer { /** * Paints the given WRadioButton .
* @ param component the WRadioButton to paint .
* @ param renderContext the RenderContext to paint to . */
@ Override public void doRender ( final WComponent component , final WebXmlRenderContext renderContext ) { } } | WRadioButton button = ( WRadioButton ) component ; XmlStringBuilder xml = renderContext . getWriter ( ) ; boolean readOnly = button . isReadOnly ( ) ; String value = button . getValue ( ) ; xml . appendTagOpen ( "ui:radiobutton" ) ; xml . appendAttribute ( "id" , component . getId ( ) ) ; xml . appendOptionalAttribute ... |
public class TinylogLogger { /** * Returns a throwable if the last argument is one .
* @ param arguments
* Passed arguments
* @ return Last argument as throwable or { @ code null } */
private static Throwable extractThrowable ( final Object [ ] arguments ) { } } | return arguments . length == 0 ? null : extractThrowable ( arguments [ arguments . length - 1 ] ) ; |
public class Arguments { /** * Return the value of a binding ( e . g . " value " for " - name = value " ) and the
* empty string " " for an option ( " - name " or " - name = " ) . A null value is
* returned if no binding or option is found .
* @ param name string name of the option or binding */
public String get... | for ( Entry e : commandLineArgs ) if ( name . equals ( e . name ) ) return e . val ; return System . getProperty ( "h2o.arg." + name ) ; |
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public String convertColorSpecificationColSpceToString ( EDataType eDataType , Object instanceValue ) { } } | return instanceValue == null ? null : instanceValue . toString ( ) ; |
public class NodeUtil { /** * Finds the number of times a type is referenced within the node tree . */
static int getNodeTypeReferenceCount ( Node node , Token type , Predicate < Node > traverseChildrenPred ) { } } | return getCount ( node , new MatchNodeType ( type ) , traverseChildrenPred ) ; |
public class RelationalJMapper { /** * This method initializes relational maps starting from XML .
* @ param xmlPath xml path
* @ throws MalformedURLException
* @ throws IOException */
private void init ( String xmlPath ) throws MalformedURLException , IOException { } } | XML xml = new XML ( true , xmlPath ) ; if ( ! xml . isInheritedMapped ( configuredClass ) ) Error . classNotMapped ( configuredClass ) ; for ( Class < ? > classe : getClasses ( xml ) ) { relationalManyToOneMapper . put ( classe . getName ( ) , new JMapper ( configuredClass , classe , ChooseConfig . DESTINATION , xmlPat... |
public class CompleteRestoreTaskParameters { /** * Parses properties from task parameter string
* @ param taskParameters - JSON formatted set of parameters */
public static CompleteRestoreTaskParameters deserialize ( String taskParameters ) { } } | JaxbJsonSerializer < CompleteRestoreTaskParameters > serializer = new JaxbJsonSerializer < > ( CompleteRestoreTaskParameters . class ) ; try { CompleteRestoreTaskParameters params = serializer . deserialize ( taskParameters ) ; // Verify expected parameters
if ( null == params . getSpaceId ( ) || params . getSpaceId ( ... |
public class RedisUtil { /** * 将有序集的元素转成String , 保存到集合中 .
* @ param set
* @ return */
public static Set < String > tupleToString ( Set < Tuple > set ) { } } | Set < String > result = new LinkedHashSet < String > ( ) ; for ( Tuple tuple : set ) { String element = tuple . getElement ( ) ; result . add ( element ) ; } return result ; |
public class ModelMetricsHandler { /** * Delete one or more ModelMetrics . */
@ SuppressWarnings ( "unused" ) // called through reflection by RequestServer
public ModelMetricsListSchemaV3 delete ( int version , ModelMetricsListSchemaV3 s ) { } } | ModelMetricsList m = s . createAndFillImpl ( ) ; s . fillFromImpl ( m . delete ( ) ) ; return s ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.