signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Transform2D { /** * Concatenates this transform with a scaling transformation .
* < p > This function is equivalent to :
* < pre >
* this = this * [ sx 0 0 ]
* [ 0 sy 0 ]
* [ 0 0 1 ]
* < / pre >
* @ param scaleX scaling along x axis .
* @ param scaleY scaling along y axis . */
public void s... | this . m00 *= scaleX ; this . m11 *= scaleY ; this . m01 *= scaleY ; this . m10 *= scaleX ; |
public class AbstractIndexWriter { /** * Add description about the Static Variable / Method / Constructor for a
* member .
* @ param member MemberDoc for the member within the Class Kind
* @ param contentTree the content tree to which the member description will be added */
protected void addMemberDesc ( Element ... | TypeElement containing = utils . getEnclosingTypeElement ( member ) ; String classdesc = utils . getTypeElementName ( containing , true ) + " " ; if ( utils . isField ( member ) ) { Content resource = contents . getContent ( utils . isStatic ( member ) ? "doclet.Static_variable_in" : "doclet.Variable_in" , classdesc ) ... |
public class BugLoader { /** * Does what it says it does , hit apple r ( control r on pc ) and the analysis
* is redone using the current project
* @ param p
* @ return the bugs from the reanalysis , or null if cancelled */
public static @ CheckForNull BugCollection doAnalysis ( @ Nonnull Project p ) { } } | requireNonNull ( p , "null project" ) ; RedoAnalysisCallback ac = new RedoAnalysisCallback ( ) ; AnalyzingDialog . show ( p , ac , true ) ; if ( ac . finished ) { return ac . getBugCollection ( ) ; } else { return null ; } |
public class GreenPepperXmlRpcServer { /** * { @ inheritDoc } */
public Vector < Object > getSpecification ( Vector < Object > specificationParams ) { } } | try { Specification specification = Specification . newInstance ( ( String ) specificationParams . get ( DOCUMENT_NAME_IDX ) ) ; Vector < ? > repositoryParams = ( Vector < ? > ) specificationParams . get ( DOCUMENT_REPOSITORY_IDX ) ; Repository repository = Repository . newInstance ( ( String ) repositoryParams . get (... |
public class CPOptionPersistenceImpl { /** * Removes all the cp options where uuid = & # 63 ; and companyId = & # 63 ; from the database .
* @ param uuid the uuid
* @ param companyId the company ID */
@ Override public void removeByUuid_C ( String uuid , long companyId ) { } } | for ( CPOption cpOption : findByUuid_C ( uuid , companyId , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ) { remove ( cpOption ) ; } |
public class ClassName { /** * Returns all enclosing classes in this , outermost first . */
private List < ClassName > enclosingClasses ( ) { } } | List < ClassName > result = new ArrayList < > ( ) ; for ( ClassName c = this ; c != null ; c = c . enclosingClassName ) { result . add ( c ) ; } Collections . reverse ( result ) ; return result ; |
public class Country { /** * Gets the value of the requested property
* @ param propName
* allowed object is { @ link String }
* @ return
* returned object is { @ link Object } */
@ Override public Object get ( String propName ) { } } | if ( propName . equals ( PROP_C ) ) { return getC ( ) ; } if ( propName . equals ( PROP_COUNTRY_NAME ) ) { return getCountryName ( ) ; } if ( propName . equals ( PROP_DESCRIPTION ) ) { return getDescription ( ) ; } return super . get ( propName ) ; |
public class JSATData { /** * Returns a DataWriter object which can be used to stream a set of arbitrary datapoints into the given output stream . This works in a thread safe manner .
* @ param out the location to store all the data
* @ param catInfo information about the categorical features to be written
* @ pa... | return new DataWriter ( out , catInfo , dim , type ) { @ Override protected void writeHeader ( CategoricalData [ ] catInfo , int dim , DataWriter . DataSetType type , OutputStream out ) throws IOException { DataOutputStream data_out = new DataOutputStream ( out ) ; data_out . write ( JSATData . MAGIC_NUMBER ) ; int num... |
import java . util . * ; class TopFrequentChars { /** * Function to identify the top n most frequent characters in a given string with their counts .
* > > > top _ frequent _ chars ( ' lkseropewdssafsdfafkpwe ' , 3)
* [ ( ' s ' , 4 ) , ( ' e ' , 3 ) , ( ' f ' , 3 ) ]
* > > > top _ frequent _ chars ( ' lkseropewds... | Map < Character , Integer > freqMap = new HashMap < > ( ) ; for ( char c : text . toCharArray ( ) ) { freqMap . put ( c , freqMap . getOrDefault ( c , 0 ) + 1 ) ; } List < Map . Entry < Character , Integer > > list = new ArrayList < > ( freqMap . entrySet ( ) ) ; list . sort ( ( Map . Entry < Character , Integer > a , ... |
public class CPAttachmentFileEntryPersistenceImpl { /** * Removes all the cp attachment file entries where classNameId = & # 63 ; and classPK = & # 63 ; from the database .
* @ param classNameId the class name ID
* @ param classPK the class pk */
@ Override public void removeByC_C ( long classNameId , long classPK ... | for ( CPAttachmentFileEntry cpAttachmentFileEntry : findByC_C ( classNameId , classPK , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ) { remove ( cpAttachmentFileEntry ) ; } |
public class ActivityLifecycleCallback { /** * Enables lifecycle callbacks for Android devices
* @ param application App ' s Application object */
@ TargetApi ( Build . VERSION_CODES . ICE_CREAM_SANDWICH ) public static synchronized void register ( android . app . Application application ) { } } | if ( application == null ) { Logger . i ( "Application instance is null/system API is too old" ) ; return ; } if ( registered ) { Logger . v ( "Lifecycle callbacks have already been registered" ) ; return ; } registered = true ; application . registerActivityLifecycleCallbacks ( new android . app . Application . Activi... |
public class JsType { /** * Returns a { @ link JsType } corresponding to the given { @ link SoyType }
* < p > TODO ( lukes ) : consider adding a cache for all the computed types . The same type is probably
* accessed many many times .
* @ param soyType the soy type
* @ param isIncrementalDom whether or not this... | switch ( soyType . getKind ( ) ) { case NULL : return NULL_OR_UNDEFINED_TYPE ; case ANY : return ANY_TYPE ; case UNKNOWN : return UNKNOWN_TYPE ; case BOOL : return isStrict ? BOOLEAN_TYPE_STRICT : BOOLEAN_TYPE ; case PROTO_ENUM : SoyProtoEnumType enumType = ( SoyProtoEnumType ) soyType ; String enumTypeName = enumType ... |
public class Reference { /** * Matches locator to this reference locator .
* Descriptors are matched using equal method . All other locator types are
* matched using direct comparison .
* @ param locator the locator to match .
* @ return true if locators are matching and false it they don ' t .
* @ see Descri... | // Locate by direct reference matching
if ( _reference . equals ( locator ) ) return true ; // Locate by type
else if ( locator instanceof Class < ? > ) return ( ( Class < ? > ) locator ) . isInstance ( _reference ) ; // Locate by direct locator matching
else if ( _locator != null ) return _locator . equals ( locator )... |
public class DdlParsers { /** * Parse the supplied DDL content and return the { @ link AstNode root node } of the AST representation .
* @ param ddl content string ; may not be null
* @ param fileName the approximate name of the file containing the DDL content ; may be null if this is not known
* @ return the roo... | CheckArg . isNotEmpty ( ddl , "ddl" ) ; RuntimeException firstException = null ; // Go through each parser and score the DDL content
final Map < DdlParser , Integer > scoreMap = new HashMap < DdlParser , Integer > ( this . parsers . size ( ) ) ; final DdlParserScorer scorer = new DdlParserScorer ( ) ; for ( final DdlPa... |
public class CPDefinitionVirtualSettingLocalServiceUtil { /** * Adds the cp definition virtual setting to the database . Also notifies the appropriate model listeners .
* @ param cpDefinitionVirtualSetting the cp definition virtual setting
* @ return the cp definition virtual setting that was added */
public static... | return getService ( ) . addCPDefinitionVirtualSetting ( cpDefinitionVirtualSetting ) ; |
public class PublishLayerVersionRequest { /** * A list of compatible < a href = " https : / / docs . aws . amazon . com / lambda / latest / dg / lambda - runtimes . html " > function
* runtimes < / a > . Used for filtering with < a > ListLayers < / a > and < a > ListLayerVersions < / a > .
* @ param compatibleRunti... | com . amazonaws . internal . SdkInternalList < String > compatibleRuntimesCopy = new com . amazonaws . internal . SdkInternalList < String > ( compatibleRuntimes . length ) ; for ( Runtime value : compatibleRuntimes ) { compatibleRuntimesCopy . add ( value . toString ( ) ) ; } if ( getCompatibleRuntimes ( ) == null ) {... |
public class CmsPropertyAdvanced { /** * Deletes the current resource if the dialog is in wizard mode . < p >
* If the dialog is not in wizard mode , the resource is not deleted . < p >
* @ throws JspException if including the error page fails */
public void actionDeleteResource ( ) throws JspException { } } | if ( ( getParamDialogmode ( ) != null ) && getParamDialogmode ( ) . startsWith ( MODE_WIZARD ) ) { // only delete resource if dialog mode is a wizard mode
try { getCms ( ) . deleteResource ( getParamResource ( ) , CmsResource . DELETE_PRESERVE_SIBLINGS ) ; } catch ( Throwable e ) { // error deleting the resource , show... |
public class PropertyFileSnitch { /** * Return the rack for which an endpoint resides in
* @ param endpoint the endpoint to process
* @ return string of rack */
public String getRack ( InetAddress endpoint ) { } } | String [ ] info = getEndpointInfo ( endpoint ) ; assert info != null : "No location defined for endpoint " + endpoint ; return info [ 1 ] ; |
public class StreamingConnectionImpl { /** * Process an ack from the STAN cluster */
void processAck ( Message msg ) { } } | PubAck pa ; Exception ex = null ; try { pa = PubAck . parseFrom ( msg . getData ( ) ) ; } catch ( InvalidProtocolBufferException e ) { // If we are speaking to a server we don ' t understand , let the
// user know .
System . err . println ( "Protocol error: " + e . getStackTrace ( ) ) ; return ; } // Remove
AckClosure ... |
public class TextUnit { /** * Compress spaces around a list of instructions , following these rules :
* - The first instruction that is on the left usually make contact with a component .
* @ param instructionBuffer
* @ param size
* @ return */
final static int compressSpaces ( List < Instruction > instructionB... | boolean addleftspace = true ; boolean addrightspace = false ; boolean skipnext = false ; for ( int i = 0 ; i < size ; i ++ ) { String text = null ; String newText = null ; int instructionType = 0 ; if ( skipnext ) { skipnext = false ; continue ; } Instruction ins = instructionBuffer . get ( i ) ; if ( i + 1 == size ) {... |
public class X509CRLImpl { /** * Encodes the " to - be - signed " CRL to the OutputStream .
* @ param out the OutputStream to write to .
* @ exception CRLException on encoding errors . */
public void encodeInfo ( OutputStream out ) throws CRLException { } } | try { DerOutputStream tmp = new DerOutputStream ( ) ; DerOutputStream rCerts = new DerOutputStream ( ) ; DerOutputStream seq = new DerOutputStream ( ) ; if ( version != 0 ) // v2 crl encode version
tmp . putInteger ( version ) ; infoSigAlgId . encode ( tmp ) ; if ( ( version == 0 ) && ( issuer . toString ( ) == null ) ... |
public class Variables { /** * Remove the top { @ link Variables } layer from the the stack . */
public Map < String , Iterable < ? extends WindupVertexFrame > > pop ( ) { } } | Map < String , Iterable < ? extends WindupVertexFrame > > frame = deque . pop ( ) ; return frame ; |
public class When { /** * Sets up automatic binding and unbinding of { @ code target } ' s items to / from
* { @ code source } ' s items , based on the changing value of the encapsulated
* condition . In other words , whenever the encapsulated condition is
* { @ code true } , { @ code target } ' s content is sync... | return bind ( ( ) -> EasyBind . listBind ( target , source ) ) ; |
public class ClassPathResource { /** * Remove any leading explicit classpath resource prefixes .
* @ param sPath
* The source path to strip the class path prefixes from . May be
* < code > null < / code > .
* @ return < code > null < / code > if the parameter was < code > null < / code > .
* @ see # CLASSPATH... | if ( StringHelper . startsWith ( sPath , CLASSPATH_PREFIX_LONG ) ) return sPath . substring ( CLASSPATH_PREFIX_LONG . length ( ) ) ; if ( StringHelper . startsWith ( sPath , CLASSPATH_PREFIX_SHORT ) ) return sPath . substring ( CLASSPATH_PREFIX_SHORT . length ( ) ) ; return sPath ; |
public class FastJsonProvider { /** * Check whether a class can be serialized or deserialized . It can check
* based on packages , annotations on entities or explicit classes .
* @ param type class need to check
* @ return true if valid */
protected boolean isValidType ( Class < ? > type , Annotation [ ] classAnn... | if ( type == null ) return false ; if ( annotated ) { return checkAnnotation ( type ) ; } else if ( scanpackages != null ) { String classPackage = type . getPackage ( ) . getName ( ) ; for ( String pkg : scanpackages ) { if ( classPackage . startsWith ( pkg ) ) { if ( annotated ) { return checkAnnotation ( type ) ; } e... |
public class Logger { /** * Issue a log message and throwable at the given log level and a specific logger class name .
* @ param level the level
* @ param loggerFqcn the logger class name
* @ param message the message
* @ param t the throwable */
public void log ( Level level , String loggerFqcn , Object messa... | doLog ( level , loggerFqcn , message , null , t ) ; |
public class ProcessDefinitionManager { /** * Cascades the deletion of the process definition to the process instances .
* Skips the custom listeners if the flag was set to true .
* @ param processDefinitionId the process definition id
* @ param skipCustomListeners true if the custom listeners should be skipped a... | getProcessInstanceManager ( ) . deleteProcessInstancesByProcessDefinition ( processDefinitionId , "deleted process definition" , true , skipCustomListeners , skipIoMappings ) ; |
public class KeyValuePairs { /** * Batched */
public static BatchedKeyStringValueString string ( KeyValuePair < byte [ ] , ? > raw , byte [ ] value , int batch , boolean last ) { } } | BatchedKeyStringValueString kv = new BatchedKeyStringValueString ( ) ; copy ( raw , kv , batch , last ) ; kv . setValue ( value ) ; return kv ; |
public class ApplicationExceptionFactory { /** * Recreates ApplicationException object from serialized ErrorDescription .
* It tries to restore original exception type using type or error category fields .
* @ param descriptiona serialized error description received as a result of remote call
* @ return new Appli... | if ( description == null ) throw new NullPointerException ( "Description cannot be null" ) ; ApplicationException error = null ; String category = description . getCategory ( ) ; String code = description . getCode ( ) ; String message = description . getMessage ( ) ; String correlationId = description . getCorrelation... |
public class GetTagsResult { /** * The requested tags .
* @ param tags
* The requested tags .
* @ return Returns a reference to this object so that method calls can be chained together . */
public GetTagsResult withTags ( java . util . Map < String , String > tags ) { } } | setTags ( tags ) ; return this ; |
public class ConstructorBasedConverter { /** * Converts the given input to an object by using the constructor approach . Notice that the constructor must
* expect receiving a { @ literal null } value .
* @ param input the input , can be { @ literal null }
* @ return the instance of T
* @ throws IllegalArgumentE... | try { return constructor . newInstance ( input ) ; } catch ( InstantiationException | IllegalAccessException | InvocationTargetException e ) { LoggerFactory . getLogger ( this . getClass ( ) ) . error ( "Cannot create an instance of {} from \"{}\"" , constructor . getDeclaringClass ( ) . getName ( ) , input , e ) ; if ... |
public class AstBuilder { /** * } statement - - - - - */
@ Override public ClassNode visitTypeDeclaration ( TypeDeclarationContext ctx ) { } } | if ( asBoolean ( ctx . classDeclaration ( ) ) ) { // e . g . class A { }
ctx . classDeclaration ( ) . putNodeMetaData ( TYPE_DECLARATION_MODIFIERS , this . visitClassOrInterfaceModifiersOpt ( ctx . classOrInterfaceModifiersOpt ( ) ) ) ; return configureAST ( this . visitClassDeclaration ( ctx . classDeclaration ( ) ) ,... |
public class SnapshotsInner { /** * Deletes a snapshot .
* @ param resourceGroupName The name of the resource group .
* @ param snapshotName The name of the snapshot that is being created . The name can ' t be changed after the snapshot is created . Supported characters for the name are a - z , A - Z , 0-9 and _ . ... | deleteWithServiceResponseAsync ( resourceGroupName , snapshotName ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class Converters { /** * Registers the { @ link Duration } converter .
* @ param builder The GSON builder to register the converter with .
* @ return A reference to { @ code builder } . */
public static GsonBuilder registerDuration ( GsonBuilder builder ) { } } | if ( builder == null ) { throw new NullPointerException ( "builder cannot be null" ) ; } builder . registerTypeAdapter ( DURATION_TYPE , new DurationConverter ( ) ) ; return builder ; |
public class InfinispanDialect { /** * Get a strategy instance which knows how to acquire a database - level lock
* of the specified / mode for this dialect .
* @ param lockable The persister for the entity to be locked .
* @ param lockMode The type of lock to be acquired .
* @ return The appropriate locking st... | if ( lockMode == LockMode . PESSIMISTIC_FORCE_INCREMENT ) { return new PessimisticForceIncrementLockingStrategy ( lockable , lockMode ) ; } else if ( lockMode == LockMode . PESSIMISTIC_WRITE ) { return new InfinispanPessimisticWriteLockingStrategy < EK > ( lockable , lockMode ) ; } else if ( lockMode == LockMode . PESS... |
public class Operator { /** * compares a Date with a Date
* @ param left
* @ param right
* @ return difference as int */
public static int compare ( Date left , Date right ) { } } | return compare ( left . getTime ( ) / 1000 , right . getTime ( ) / 1000 ) ; |
public class AssertCoverage { /** * Populates a list of classes from a given java source directory . All source files must have a " . class " file in the class path .
* @ param classes
* Set to populate .
* @ param baseDir
* Root directory like " src / main / java " .
* @ param srcDir
* A directory inside t... | final FileProcessor fileProcessor = new FileProcessor ( new FileHandler ( ) { @ Override public final FileHandlerResult handleFile ( final File file ) { if ( file . isDirectory ( ) ) { // Directory
if ( recursive ) { return FileHandlerResult . CONTINUE ; } return FileHandlerResult . SKIP_SUBDIRS ; } // File
final Strin... |
public class BatchObjectUpdater { /** * Update the given object , which must exist , using the given set of current scalar values . */
private ObjectResult updateObject ( DBObject dbObj , Map < String , String > currScalarMap , Map < String , Map < String , Integer > > targObjShardNos ) { } } | ObjectResult objResult = null ; if ( Utils . isEmpty ( dbObj . getObjectID ( ) ) ) { objResult = ObjectResult . newErrorResult ( "Object ID is required" , null ) ; } else if ( currScalarMap == null ) { objResult = ObjectResult . newErrorResult ( "No object found" , dbObj . getObjectID ( ) ) ; } else { ObjectUpdater obj... |
public class DigitalOceanClient { /** * Easy method for HTTP header values . defaults to first one . */
private String getSimpleHeaderValue ( String header , HttpResponse httpResponse ) { } } | return getSimpleHeaderValue ( header , httpResponse , true ) ; |
public class OutboundHandshake { /** * Gets and verifies the server digest .
* @ return true if the server digest is found and verified , false otherwise */
private boolean getServerDigestPosition ( ) { } } | boolean result = false ; // log . trace ( " BigEndian bytes : { } " , Hex . encodeHexString ( s1 ) ) ;
log . trace ( "Trying algorithm: {}" , algorithm ) ; digestPosServer = getDigestOffset ( algorithm , s1 , 0 ) ; log . debug ( "Server digest position offset: {}" , digestPosServer ) ; if ( ! ( result = verifyDigest ( ... |
public class BeanCopierFactory { /** * 会被动态类使用 */
public static PropConverter < ? , ? > getConverter ( int sequence , String propName ) { } } | Map < String , PropConverter < ? , ? > > map = SEQ_PROP_CVT_MAP . get ( sequence ) ; return map . get ( propName ) ; |
public class DeleteMetricFilterRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteMetricFilterRequest deleteMetricFilterRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteMetricFilterRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteMetricFilterRequest . getLogGroupName ( ) , LOGGROUPNAME_BINDING ) ; protocolMarshaller . marshall ( deleteMetricFilterRequest . getFilterName ( ) , FILT... |
public class Signer { /** * Returns pre - signed post policy string for given stringToSign , secret key , date and region . */
public static String postPresignV4 ( String stringToSign , String secretKey , DateTime date , String region ) throws NoSuchAlgorithmException , InvalidKeyException { } } | Signer signer = new Signer ( null , null , date , region , null , secretKey , null ) ; signer . stringToSign = stringToSign ; signer . setSigningKey ( ) ; signer . setSignature ( ) ; return signer . signature ; |
public class ValidationDataGroup { /** * Add rule .
* @ param vd the vd */
public void addRule ( ValidationData vd ) { } } | this . rules . addAll ( vd . getValidationRules ( ) . stream ( ) . filter ( vr -> vr . isUse ( ) ) . collect ( Collectors . toList ( ) ) ) ; |
public class MysqlExportService { /** * This will get the final output
* sql file name .
* @ return String */
public String getSqlFilename ( ) { } } | return isSqlFileNamePropertySet ( ) ? properties . getProperty ( SQL_FILE_NAME ) + ".sql" : new SimpleDateFormat ( "d_M_Y_H_mm_ss" ) . format ( new Date ( ) ) + "_" + database + "_database_dump.sql" ; |
public class DatumWriterGenerator { /** * Returns the encode method for the given type and schema . The same method will be returned if the same
* type and schema has been passed to the method before .
* @ param outputType Type information of the data type for output
* @ param schema Schema to use for output .
... | String key = String . format ( "%s%s" , normalizeTypeName ( outputType ) , schema . getSchemaHash ( ) ) ; Method method = encodeMethods . get ( key ) ; if ( method != null ) { return method ; } // Generate the encode method ( value , encoder , schema , set )
TypeToken < ? > callOutputType = getCallTypeToken ( outputTyp... |
public class AuditUtils { /** * Get the method from the request - generally " GET " or " POST "
* @ param req
* @ return the method */
public static String getRequestMethod ( HttpServletRequest req ) { } } | String method ; if ( req . getMethod ( ) != null ) method = req . getMethod ( ) . toUpperCase ( ) ; else method = AuditEvent . TARGET_METHOD_GET ; return method ; |
public class SplitTaskFactory { /** * Process the timephased resource assignment data to work out the
* split structure of the task .
* @ param task parent task
* @ param timephasedComplete completed resource assignment work
* @ param timephasedPlanned planned resource assignment work */
public void processSpli... | Date splitsComplete = null ; TimephasedWork lastComplete = null ; TimephasedWork firstPlanned = null ; if ( ! timephasedComplete . isEmpty ( ) ) { lastComplete = timephasedComplete . get ( timephasedComplete . size ( ) - 1 ) ; splitsComplete = lastComplete . getFinish ( ) ; } if ( ! timephasedPlanned . isEmpty ( ) ) { ... |
public class Deserializer { /** * Deserializes the input parameter and returns an Object which must then be cast to a core data type
* @ param < T >
* type
* @ param in
* input
* @ param target
* target
* @ return Object object */
@ SuppressWarnings ( { } } | "unchecked" , "rawtypes" } ) public static < T > T deserialize ( Input in , Type target ) { if ( BLACK_LIST == null ) { // log . info ( " Black list is not yet initialized " ) ;
try { loadBlackList ( ) ; } catch ( IOException e ) { throw new RuntimeException ( "Failed to init black-list" ) ; } } byte type = in . readDa... |
public class CmsChangePasswordDialog { /** * Submits the password change . < p > */
void submit ( ) { } } | String password1 = m_form . getPassword1 ( ) ; String password2 = m_form . getPassword2 ( ) ; if ( validatePasswords ( password1 , password2 ) ) { String oldPassword = m_form . getOldPassword ( ) ; boolean error = false ; if ( oldPassword . equals ( password1 ) ) { m_form . setErrorPassword1 ( new UserError ( Messages ... |
public class FessMessages { /** * Add the created action message for the key ' errors . failed _ to _ start _ crawl _ process ' with parameters .
* < pre >
* message : Failed to start a crawl process .
* < / pre >
* @ param property The property name for the message . ( NotNull )
* @ return this . ( NotNull )... | assertPropertyNotNull ( property ) ; add ( property , new UserMessage ( ERRORS_failed_to_start_crawl_process ) ) ; return this ; |
public class HSaslThriftClient { /** * { @ inheritDoc } */
public HSaslThriftClient open ( ) { } } | if ( isOpen ( ) ) { throw new IllegalStateException ( "Open called on already open SASL connection. You should not have gotten here." ) ; } if ( log . isDebugEnabled ( ) ) { log . debug ( "Creating a new SASL thrift connection to {}" , cassandraHost ) ; } TSocket socket ; try { if ( params == null ) socket = new TSocke... |
public class QrCode { /** * Resets the QR - Code so that it ' s in its initial state . */
public void reset ( ) { } } | for ( int i = 0 ; i < 4 ; i ++ ) { ppCorner . get ( i ) . set ( 0 , 0 ) ; ppDown . get ( i ) . set ( 0 , 0 ) ; ppRight . get ( i ) . set ( 0 , 0 ) ; } this . threshCorner = 0 ; this . threshDown = 0 ; this . threshRight = 0 ; version = - 1 ; error = L ; mask = QrCodeMaskPattern . M111 ; alignment . reset ( ) ; mode = M... |
public class CommonOps_DDRM { /** * Given a symmetric matrix which is represented by a lower triangular matrix convert it back into
* a full symmetric matrix .
* @ param A ( Input ) Lower triangular matrix ( Output ) symmetric matrix */
public static void symmLowerToFull ( DMatrixRMaj A ) { } } | if ( A . numRows != A . numCols ) throw new MatrixDimensionException ( "Must be a square matrix" ) ; final int cols = A . numCols ; for ( int row = 0 ; row < A . numRows ; row ++ ) { for ( int col = row + 1 ; col < cols ; col ++ ) { A . data [ row * cols + col ] = A . data [ col * cols + row ] ; } } |
public class SortedMapSubject { /** * Fails if the map ' s last key is not equal to the given key . */
public void hasLastKey ( @ NullableDecl Object key ) { } } | if ( actualAsNavigableMap ( ) . isEmpty ( ) ) { failWithActual ( "expected to have last key" , key ) ; return ; } if ( ! Objects . equal ( actualAsNavigableMap ( ) . lastKey ( ) , key ) ) { if ( actualAsNavigableMap ( ) . containsKey ( key ) ) { failWithoutActual ( simpleFact ( lenientFormat ( "Not true that %s has las... |
public class RU { /** * / * GLOBAL FORMAT FUNCTION */
public static String format ( Object obj , String mask , double round ) { } } | if ( obj == null ) { return "" ; } if ( obj instanceof Date ) { return formatDate ( ( Date ) obj , mask ) ; } if ( obj instanceof Number ) { return formatNumber ( ( Number ) obj , mask , round ) ; } return obj . toString ( ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcWindowPanelProperties ( ) { } } | if ( ifcWindowPanelPropertiesEClass == null ) { ifcWindowPanelPropertiesEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 647 ) ; } return ifcWindowPanelPropertiesEClass ; |
public class S6aLocalSessionDataFactory { /** * ( non - Javadoc )
* @ see org . jdiameter . common . api . app . IAppSessionDataFactory # getAppSessionData ( java . lang . Class , java . lang . String ) */
@ Override public IS6aSessionData getAppSessionData ( Class < ? extends AppSession > clazz , String sessionId ) ... | if ( clazz . equals ( ClientS6aSession . class ) ) { ClientS6aSessionDataLocalImpl data = new ClientS6aSessionDataLocalImpl ( ) ; data . setSessionId ( sessionId ) ; return data ; } else if ( clazz . equals ( ServerS6aSession . class ) ) { ServerS6aSessionDataLocalImpl data = new ServerS6aSessionDataLocalImpl ( ) ; dat... |
public class XPathContext { /** * Reset for new run . */
public void reset ( ) { } } | releaseDTMXRTreeFrags ( ) ; // These couldn ' t be disposed of earlier ( see comments in release ( ) ) ; zap them now .
if ( m_rtfdtm_stack != null ) for ( java . util . Enumeration e = m_rtfdtm_stack . elements ( ) ; e . hasMoreElements ( ) ; ) m_dtmManager . release ( ( DTM ) e . nextElement ( ) , true ) ; m_rtfdtm_s... |
public class MemcachedBackupSessionManager { /** * { @ inheritDoc } */
@ Override public void remove ( final Session session ) { } } | remove ( session , session . getNote ( MemcachedSessionService . NODE_FAILURE ) != Boolean . TRUE ) ; |
public class TSDB { /** * Attempts to assign a UID to a name for the given type
* Used by the UniqueIdRpc call to generate IDs for new metrics , tagks or
* tagvs . The name must pass validation and if it ' s already assigned a UID ,
* this method will throw an error with the proper UID . Otherwise if it can
* c... | Tags . validateString ( type , name ) ; if ( type . toLowerCase ( ) . equals ( "metric" ) ) { try { final byte [ ] uid = this . metrics . getId ( name ) ; throw new IllegalArgumentException ( "Name already exists with UID: " + UniqueId . uidToString ( uid ) ) ; } catch ( NoSuchUniqueName nsue ) { return this . metrics ... |
public class Vector2d { /** * / * ( non - Javadoc )
* @ see org . joml . Vector2dc # mul ( double , org . joml . Vector2d ) */
public Vector2d mul ( double scalar , Vector2d dest ) { } } | dest . x = x * scalar ; dest . y = y * scalar ; return dest ; |
public class MappedText { /** * Legacy */
public void setPath ( String path ) { } } | if ( StringUtils . isEmpty ( url ) ) { url = path ; } else { url = path + "/" + url ; } |
public class DebugRepositoryLookupFailureCallback { /** * ( non - Javadoc )
* @ see
* edu . umd . cs . findbugs . ba . RepositoryLookupFailureCallback # reportMissingClass
* ( java . lang . ClassNotFoundException ) */
@ Override @ SuppressFBWarnings ( "DM_EXIT" ) public void reportMissingClass ( ClassNotFoundExce... | String missing = AbstractBugReporter . getMissingClassName ( ex ) ; if ( missing == null || missing . charAt ( 0 ) == '[' ) { return ; } System . out . println ( "Missing class" ) ; ex . printStackTrace ( ) ; System . exit ( 1 ) ; |
public class KeyChainGroup { /** * Returns the key chain that ' s used for generation of fresh / current keys of the given type . If it ' s not the default
* type and no active chain for this type exists , { @ code null } is returned . No upgrade or downgrade is tried . */
public final DeterministicKeyChain getActive... | checkState ( isSupportsDeterministicChains ( ) , "doesn't support deterministic chains" ) ; for ( DeterministicKeyChain chain : ImmutableList . copyOf ( chains ) . reverse ( ) ) if ( chain . getOutputScriptType ( ) == outputScriptType && chain . getEarliestKeyCreationTime ( ) >= keyRotationTimeSecs ) return chain ; ret... |
public class ExpressionUtils { /** * Create a { @ code any col } expression
* @ param col subquery expression
* @ return any col */
@ SuppressWarnings ( "unchecked" ) public static < T > Expression < T > any ( SubQueryExpression < ? extends T > col ) { } } | return new OperationImpl < T > ( col . getType ( ) , Ops . QuantOps . ANY , ImmutableList . < Expression < ? > > of ( col ) ) ; |
public class QrCode { /** * Adds format information to eval . */
private static void addFormatInfoEval ( byte [ ] eval , int size , EccLevel ecc_level , int pattern ) { } } | int format = pattern ; int seq ; int i ; switch ( ecc_level ) { case L : format += 0x08 ; break ; case Q : format += 0x18 ; break ; case H : format += 0x10 ; break ; } seq = QR_ANNEX_C [ format ] ; for ( i = 0 ; i < 6 ; i ++ ) { eval [ ( i * size ) + 8 ] = ( byte ) ( ( ( ( seq >> i ) & 0x01 ) != 0 ) ? ( 0x01 >> pattern... |
public class NetworkSecurityGroupsInner { /** * Creates or updates a network security group in the specified resource group .
* @ param resourceGroupName The name of the resource group .
* @ param networkSecurityGroupName The name of the network security group .
* @ param parameters Parameters supplied to the cre... | return createOrUpdateWithServiceResponseAsync ( resourceGroupName , networkSecurityGroupName , parameters ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class HtmlTag { /** * Generate html tags for use in { @ link HtmlTag . Html # head & lt ; head & gt ; } .
* Allows adding attributes to a head tag .
* @ param tag the name and contents of the head tag .
* @ param attributes the attributes of the head tag .
* @ return an object that generates the tag in t... | return head ( tag . name ( ) , tag :: value , attributes ) ; |
public class BuildInfoDeployer { /** * Adding environment and system variables to build info .
* @ param builder */
@ Override protected void addBuildInfoProperties ( BuildInfoBuilder builder ) { } } | if ( envVars != null ) { for ( Map . Entry < String , String > entry : envVars . entrySet ( ) ) { builder . addProperty ( BuildInfoProperties . BUILD_INFO_ENVIRONMENT_PREFIX + entry . getKey ( ) , entry . getValue ( ) ) ; } } if ( sysVars != null ) { for ( Map . Entry < String , String > entry : sysVars . entrySet ( ) ... |
public class IncidentEntity { /** * Instantiate recursive a new incident a super execution
* ( i . e . super process instance ) which is affected from this
* incident .
* For example : a super process instance called via CallActivity
* a new process instance on which an incident happened , so that
* the super... | final ExecutionEntity execution = getExecution ( ) ; if ( execution != null ) { ExecutionEntity superExecution = execution . getProcessInstance ( ) . getSuperExecution ( ) ; if ( superExecution != null ) { // create a new incident
IncidentEntity newIncident = create ( incidentType ) ; newIncident . setExecution ( super... |
public class CmsSitemapController { /** * Removes the entry with the given site - path from navigation . < p >
* @ param entryId the entry id */
public void removeFromNavigation ( CmsUUID entryId ) { } } | CmsClientSitemapEntry entry = getEntryById ( entryId ) ; CmsClientSitemapEntry parent = getEntry ( CmsResource . getParentFolder ( entry . getSitePath ( ) ) ) ; CmsSitemapChange change = new CmsSitemapChange ( entry . getId ( ) , entry . getSitePath ( ) , ChangeType . remove ) ; change . setParentId ( parent . getId ( ... |
public class ConfigFetchMgrImpl { /** * 根据详细参数获取配置 */
@ Override public Config getConfByParameter ( Long appId , Long envId , String version , String key , DisConfigTypeEnum disConfigTypeEnum ) { } } | return configDao . getByParameter ( appId , envId , version , key , disConfigTypeEnum ) ; |
public class base_resource { /** * This method , forms the http GET request , applies on the netscaler .
* Reads the response from the netscaler and converts it to corresponding
* resource type .
* @ param service
* @ param option
* @ return Array of requested resources . */
private base_resource [ ] get_requ... | StringBuilder responseStr = new StringBuilder ( ) ; HttpURLConnection httpURLConnection = null ; try { String urlstr ; String ipaddress = service . get_ipaddress ( ) ; String version = service . get_version ( ) ; String sessionid = service . get_sessionid ( ) ; String objtype = get_object_type ( ) ; String protocol = s... |
public class MutableInodeDirectory { /** * Converts the entry to an { @ link MutableInodeDirectory } .
* @ param entry the entry to convert
* @ return the { @ link MutableInodeDirectory } representation */
public static MutableInodeDirectory fromJournalEntry ( InodeDirectoryEntry entry ) { } } | // If journal entry has no mode set , set default mode for backwards - compatibility .
MutableInodeDirectory ret = new MutableInodeDirectory ( entry . getId ( ) ) . setCreationTimeMs ( entry . getCreationTimeMs ( ) ) . setName ( entry . getName ( ) ) . setParentId ( entry . getParentId ( ) ) . setPersistenceState ( Per... |
public class VerySimpleClient { /** * And , check the benchmark went fine afterwards : */
public static void main ( String [ ] args ) throws Exception { } } | if ( Jvm . isDebug ( ) ) { VerySimpleClient main = new VerySimpleClient ( ) ; main . setUp ( ) ; for ( Method m : VerySimpleClient . class . getMethods ( ) ) { if ( m . getAnnotation ( Benchmark . class ) != null ) { for ( int i = 0 ; i < 100 ; i ++ ) { for ( int j = 0 ; j < 100 ; j ++ ) { m . invoke ( main ) ; } } } }... |
public class Packet { /** * Queues this { @ link Packet } to one ( or more ) { @ link Client } ( s ) .
* < br > < br >
* No { @ link Client } will receive this { @ link Packet } until { @ link Client # flush ( ) } is called for that respective
* { @ link Client } .
* @ param < T > A { @ link Client } or any of ... | if ( clients . length == 0 ) { throw new IllegalArgumentException ( "You must send this packet to at least one client!" ) ; } for ( var client : clients ) { write ( client ) ; } |
public class RevokeFlowEntitlementRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( RevokeFlowEntitlementRequest revokeFlowEntitlementRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( revokeFlowEntitlementRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( revokeFlowEntitlementRequest . getEntitlementArn ( ) , ENTITLEMENTARN_BINDING ) ; protocolMarshaller . marshall ( revokeFlowEntitlementRequest . getFlowArn ... |
public class GoogleCloudStorageReadChannel { /** * Opens the underlying stream , sets its position to the { @ link # currentPosition } .
* < p > If the file encoding in GCS is gzip ( and therefore the HTTP client will decompress it ) , the
* entire file is always requested and we seek to the position requested . If... | checkArgument ( bytesToRead > 0 , "bytesToRead should be greater than 0, but was %s" , bytesToRead ) ; checkState ( contentChannel == null && contentChannelEnd < 0 , "contentChannel and contentChannelEnd should be not initialized yet for '%s'" , resourceIdString ) ; if ( size == 0 ) { return new ByteArrayInputStream ( ... |
public class ExecutorManager { /** * Checks whether the given flow has an active ( running , non - dispatched ) executions { @ inheritDoc }
* @ see azkaban . executor . ExecutorManagerAdapter # isFlowRunning ( int , java . lang . String ) */
@ Override public boolean isFlowRunning ( final int projectId , final String... | boolean isRunning = false ; isRunning = isRunning || isFlowRunningHelper ( projectId , flowId , this . queuedFlows . getAllEntries ( ) ) ; isRunning = isRunning || isFlowRunningHelper ( projectId , flowId , this . runningExecutions . get ( ) . values ( ) ) ; return isRunning ; |
public class Util { /** * Closes { @ code serverSocket } , ignoring any checked exceptions . Does nothing if { @ code
* serverSocket } is null . */
public static void closeQuietly ( ServerSocket serverSocket ) { } } | if ( serverSocket != null ) { try { serverSocket . close ( ) ; } catch ( RuntimeException rethrown ) { throw rethrown ; } catch ( Exception ignored ) { } } |
public class ThriftClientFactory { /** * / * ( non - Javadoc )
* @ see com . impetus . kundera . loader . GenericClientFactory # instantiateClient ( java . lang . String ) */
@ Override protected Client instantiateClient ( String persistenceUnit ) { } } | ConnectionPool pool = getPoolUsingPolicy ( ) ; return new ThriftClient ( this , indexManager , reader , persistenceUnit , pool , externalProperties , kunderaMetadata , timestampGenerator ) ; |
public class XmLepResourceService { /** * { @ inheritDoc } */
@ Override public LepResourceDescriptor getResourceDescriptor ( ContextsHolder contextsHolder , LepResourceKey resourceKey ) { } } | Objects . requireNonNull ( resourceKey , "resourceKey can't be null" ) ; Resource scriptResource = getScriptResource ( contextsHolder , resourceKey ) ; if ( ! scriptResource . exists ( ) ) { log . debug ( "No LEP resource for key {}" , resourceKey ) ; return null ; } return getLepResourceDescriptor ( resourceKey , scri... |
public class JsonMarshaller { /** * Formats a log level into one of the accepted string representation of a log level .
* @ param level log level to format .
* @ return log level as a String . */
private String formatLevel ( Event . Level level ) { } } | if ( level == null ) { return null ; } switch ( level ) { case DEBUG : return "debug" ; case FATAL : return "fatal" ; case WARNING : return "warning" ; case INFO : return "info" ; case ERROR : return "error" ; default : logger . error ( "The level '{}' isn't supported, this should NEVER happen, contact Sentry developer... |
public class DateISO8601Codec { /** * { @ inheritDoc } */
@ Override public Date decode ( String value ) { } } | Calendar calendar = GregorianCalendar . getInstance ( ) ; String s = value . replace ( "Z" , "+00:00" ) ; try { s = s . substring ( 0 , 22 ) + s . substring ( 23 ) ; } catch ( IndexOutOfBoundsException e ) { throw new RuntimeException ( e ) ; } Date date ; try { date = new SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ssZ" ) ... |
public class DescribeJobDefinitionsRequest { /** * A list of up to 100 job definition names or full Amazon Resource Name ( ARN ) entries .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setJobDefinitions ( java . util . Collection ) } or { @ link # withJobDe... | if ( this . jobDefinitions == null ) { setJobDefinitions ( new java . util . ArrayList < String > ( jobDefinitions . length ) ) ; } for ( String ele : jobDefinitions ) { this . jobDefinitions . add ( ele ) ; } return this ; |
public class AnnotationLookup { /** * / * @ Nullable */
public JvmAnnotationReference removeAnnotation ( /* @ NonNull */
JvmAnnotationTarget annotationTarget , /* @ NonNull */
Class < ? extends Annotation > type ) { } } | JvmAnnotationReference result = findAnnotation ( annotationTarget , type ) ; if ( result != null ) { annotationTarget . getAnnotations ( ) . remove ( result ) ; return result ; } return null ; |
public class GeometryDeserializer { /** * Parses the JSON as a linestring geometry
* @ param coords The coordinates for the linestring , which is a list of coordinates ( which in turn are lists of
* two values , x and y )
* @ param crsId
* @ return An instance of linestring
* @ throws IOException if the given... | if ( coords == null || coords . size ( ) < 2 ) { throw new IOException ( "A linestring requires a valid series of coordinates (at least two coordinates)" ) ; } PointSequence coordinates = getPointSequence ( coords , crsId ) ; return new LineString ( coordinates ) ; |
public class Agg { /** * Get a { @ link Collector } that calculates the < code > LAST < / code > function .
* Note that unlike in ( Oracle ) SQL , where the < code > FIRST < / code > function
* is an ordered set aggregate function that produces a set of results , this
* collector just produces the first value in ... | return Collectors . reducing ( ( v1 , v2 ) -> v2 ) ; |
public class CmsFile { /** * Sets the contents of this file . < p >
* This will also set the date content , but only if the content is already set . < p >
* @ param value the content of this file */
public void setContents ( byte [ ] value ) { } } | if ( value == null ) { value = new byte [ ] { } ; } long dateContent = System . currentTimeMillis ( ) ; if ( ( m_fileContent == null ) || ( m_fileContent . length == 0 ) ) { dateContent = m_dateContent ; } m_fileContent = new byte [ value . length ] ; System . arraycopy ( value , 0 , m_fileContent , 0 , value . length ... |
public class I18nEngine { /** * Formatting Pending notification text
* @ param pendingNotification pending notification
* @ return formatted notification */
@ ObjectiveCName ( "formatNotificationText:" ) public String formatNotificationText ( Notification pendingNotification ) { } } | return formatContentText ( pendingNotification . getSender ( ) , pendingNotification . getContentDescription ( ) . getContentType ( ) , pendingNotification . getContentDescription ( ) . getText ( ) , pendingNotification . getContentDescription ( ) . getRelatedUser ( ) , pendingNotification . isChannel ( ) ) ; |
public class PCA { /** * Return a reduced basis set that covers a certain fraction of the variance of the data
* @ param variance The desired fractional variance ( 0 to 1 ) , it will always be greater than the value .
* @ return The basis vectors as columns , size < i > N < / i > rows by < i > ndims < / i > columns... | INDArray vars = Transforms . pow ( eigenvalues , - 0.5 , true ) ; double res = vars . sumNumber ( ) . doubleValue ( ) ; double total = 0.0 ; int ndims = 0 ; for ( int i = 0 ; i < vars . columns ( ) ; i ++ ) { ndims ++ ; total += vars . getDouble ( i ) ; if ( total / res > variance ) break ; } INDArray result = Nd4j . c... |
public class Util { /** * get the nth element from the path - first is 0.
* @ param index of element we want
* @ param path from which we extract the element
* @ return element or null */
public static String pathElement ( final int index , final String path ) { } } | final String [ ] paths = path . split ( "/" ) ; int idx = index ; if ( ( paths [ 0 ] == null ) || ( paths [ 0 ] . length ( ) == 0 ) ) { // skip empty first part - leading " / "
idx ++ ; } if ( idx >= paths . length ) { return null ; } return paths [ idx ] ; |
public class dnscnamerec { /** * Use this API to fetch all the dnscnamerec resources that are configured on netscaler .
* This uses dnscnamerec _ args which is a way to provide additional arguments while fetching the resources . */
public static dnscnamerec [ ] get ( nitro_service service , dnscnamerec_args args ) th... | dnscnamerec obj = new dnscnamerec ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; dnscnamerec [ ] response = ( dnscnamerec [ ] ) obj . get_resources ( service , option ) ; return response ; |
public class BatchListPolicyAttachmentsMarshaller { /** * Marshall the given parameter object . */
public void marshall ( BatchListPolicyAttachments batchListPolicyAttachments , ProtocolMarshaller protocolMarshaller ) { } } | if ( batchListPolicyAttachments == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( batchListPolicyAttachments . getPolicyReference ( ) , POLICYREFERENCE_BINDING ) ; protocolMarshaller . marshall ( batchListPolicyAttachments . getNextToken ( ... |
public class ZipShort { /** * Helper method to get the value as a java int from two bytes starting at given array offset
* @ param bytes the array of bytes
* @ param offset the offset to start
* @ return the corresponding java int value */
public static int getValue ( byte [ ] bytes , int offset ) { } } | int value = ( bytes [ offset + 1 ] << BYTE_1_SHIFT ) & BYTE_1_MASK ; value += ( bytes [ offset ] & BYTE_MASK ) ; return value ; |
public class CloudSchedulerClient { /** * Gets a job .
* < p > Sample code :
* < pre > < code >
* try ( CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient . create ( ) ) {
* JobName name = JobName . of ( " [ PROJECT ] " , " [ LOCATION ] " , " [ JOB ] " ) ;
* Job response = cloudSchedulerClient .... | GetJobRequest request = GetJobRequest . newBuilder ( ) . setName ( name == null ? null : name . toString ( ) ) . build ( ) ; return getJob ( request ) ; |
public class SARLQuickfixProvider { /** * Add the fixes with suppress - warning annotations .
* @ param issue the issue .
* @ param acceptor the resolution acceptor . */
@ Fix ( "*" ) public void fixSuppressWarnings ( Issue issue , IssueResolutionAcceptor acceptor ) { } } | if ( isIgnorable ( issue . getCode ( ) ) ) { SuppressWarningsAddModification . accept ( this , issue , acceptor ) ; } |
public class CNFactory { /** * 增加词典
* @ param words
* @ param pos */
public static void addDict ( Collection < String > words , String pos ) { } } | for ( String w : words ) { dict . add ( w , pos ) ; } setDict ( ) ; |
public class HashUtils { /** * Hashes a string using the SHA - 224 algorithm .
* @ since 1.1
* @ param data the string to hash
* @ param charset the charset of the string
* @ return the SHA - 224 hash of the string
* @ throws NoSuchAlgorithmException the algorithm is not supported by existing providers */
pub... | return sha224Hash ( data . getBytes ( charset ) ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.