signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class CFMLTransformer { /** * Startmethode zum transfomieren einer CFML Datei . < br / >
* EBNF : < br / >
* < code > { body } < / code >
* @ param config
* @ param ps CFML File
* @ param tlibs Tag Library Deskriptoren , nach denen innerhalb der CFML Datei geprueft werden soll .
* @ param flibs Funct... | Page p ; SourceCode sc ; boolean writeLog = config . getExecutionLogEnabled ( ) ; Charset charset = config . getTemplateCharset ( ) ; boolean dotUpper = ps . getDialect ( ) == CFMLEngine . DIALECT_CFML && ( ( MappingImpl ) ps . getMapping ( ) ) . getDotNotationUpperCase ( ) ; // parse regular
while ( true ) { try { sc ... |
public class AesEncrypter { /** * Encrypt .
* @ param plainText the plain text
* @ param secretKey the secret key
* @ return the string */
public static String encrypt ( String secretKey , String plainText ) { } } | if ( plainText == null ) { return null ; } else if ( plainText . startsWith ( "$CRYPT::" ) ) { // Avoid encrypting already encrypted text - APIMAN - 1201
return plainText ; } byte [ ] encrypted ; Cipher cipher ; try { SecretKeySpec skeySpec = keySpecFromSecretKey ( secretKey ) ; cipher = Cipher . getInstance ( "AES" ) ... |
public class LongColumn { /** * { @ inheritDoc } */
@ Override protected Long decodeData ( byte [ ] buffer ) { } } | final ByteBuffer bytebuf = allocate ( size ) ; // buffer is guaranteed non - null and proper length
bytebuf . put ( buffer ) ; bytebuf . rewind ( ) ; return bytebuf . getLong ( ) ; |
public class DListImpl { /** * Returns the element at the specified position in this list .
* @ param index index of element to return .
* @ return the element at the specified position in this list .
* @ throws IndexOutOfBoundsException if the index is out of range ( index
* & lt ; 0 | | index & gt ; = size ( ... | DListEntry entry = ( DListEntry ) elements . get ( index ) ; return entry . getRealSubject ( ) ; |
public class ManagedObject { /** * Customized deserialization . Notice that subclasses do not have to call this method
* in their super class because the deserialisation of the subclass need not concern
* itself with restoring the state of the super class .
* @ param objectInputStream containing the serialized fo... | final String methodName = "readObject" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { objectInputStream } ) ; objectInputStream . defaultReadObject ( ) ; threadsWaitingForLock = 0 ; forcedUpdateSequence = 0 ; forcedUpdateSequenceLoc... |
public class AjaxHelper { /** * This internal method is used to register an arbitrary target container . It must only used by components which
* contain implicit AJAX capability .
* @ param triggerId the id of the trigger that will cause the component to be painted .
* @ param containerId the target container id ... | AjaxOperation operation = new AjaxOperation ( triggerId , containerContentIds ) ; operation . setTargetContainerId ( containerId ) ; operation . setAction ( AjaxOperation . AjaxAction . REPLACE_CONTENT ) ; registerAjaxOperation ( operation ) ; return operation ; |
public class HlsCaptionLanguageMappingMarshaller { /** * Marshall the given parameter object . */
public void marshall ( HlsCaptionLanguageMapping hlsCaptionLanguageMapping , ProtocolMarshaller protocolMarshaller ) { } } | if ( hlsCaptionLanguageMapping == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( hlsCaptionLanguageMapping . getCaptionChannel ( ) , CAPTIONCHANNEL_BINDING ) ; protocolMarshaller . marshall ( hlsCaptionLanguageMapping . getCustomLanguageCod... |
public class WriterEncodedAppender { /** * / * ( non - Javadoc )
* @ see AbstractEncodedAppender # write ( EncodingState , java . lang . String , int , int ) */
@ Override protected void write ( EncodingState encodingState , String str , int off , int len ) throws IOException { } } | target . write ( str , off , len ) ; |
public class MonthNames { /** * To pass in localized names directly
* @ param longNames
* @ param shortNames */
public void localize ( final String [ ] longNames , final String [ ] shortNames ) { } } | assert longNames != null && longNames . length == 12 ; assert shortNames != null && shortNames . length == 12 ; final JsArrayString longOnes = ( JsArrayString ) JsArrayString . createArray ( ) ; for ( final String name : longNames ) { longOnes . push ( name ) ; } final JsArrayString shortOnes = ( JsArrayString ) JsArra... |
public class SarlBatchCompiler { /** * Create a message for the issue .
* @ param issue the issue .
* @ return the message . */
protected String createIssueMessage ( Issue issue ) { } } | final IssueMessageFormatter formatter = getIssueMessageFormatter ( ) ; final org . eclipse . emf . common . util . URI uriToProblem = issue . getUriToProblem ( ) ; if ( formatter != null ) { final String message = formatter . format ( issue , uriToProblem ) ; if ( message != null ) { return message ; } } if ( uriToProb... |
public class MDC { /** * Return a copy of the current thread ' s context map , with keys and values of
* type String . Returned value may be null .
* @ return A copy of the current thread ' s context map . May be null .
* @ since 1.5.1 */
public static Map < String , String > getCopyOfContextMap ( ) { } } | if ( mdcAdapter == null ) { throw new IllegalStateException ( "MDCAdapter cannot be null. See also " + NULL_MDCA_URL ) ; } return mdcAdapter . getCopyOfContextMap ( ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcBoundingBox ( ) { } } | if ( ifcBoundingBoxEClass == null ) { ifcBoundingBoxEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 52 ) ; } return ifcBoundingBoxEClass ; |
public class SigningHAServiceConfigurationListener { /** * Gets the aggregator ' s configuration . Invokes configuration updates for all the subclients .
* @ return { @ link Future } which eventually provides subconfiguration ' s consolidation result . */
Future < AggregatorConfiguration > getAggregationConfiguration... | return new HAConfFuture < > ( invokeSubServiceConfUpdates ( ) , new HAConfFuture . ConfResultSupplier < ConsolidatedResult < AggregatorConfiguration > > ( ) { public ConsolidatedResult < AggregatorConfiguration > get ( ) { return lastConsolidatedConfiguration ; } } ) ; |
public class FctEntitiesFileReportersPdf { /** * < p > Get bean in lazy mode ( if bean is null then initialize it ) . < / p >
* @ param pAddParam additional param
* @ param pBeanName - bean name
* @ return requested bean
* @ throws Exception - an exception */
@ Override public final IEntityFileReporter lazyGet ... | IEntityFileReporter proc = this . reportersMap . get ( pBeanName ) ; if ( proc == null ) { // locking :
synchronized ( this ) { // make sure again whether it ' s null after locking :
proc = this . reportersMap . get ( pBeanName ) ; if ( proc == null && pBeanName . equals ( InvoiceReportPdf . class . getSimpleName ( ) )... |
public class TextObject { /** * getter for objectLabel - gets the label of an object
* @ generated
* @ return value of the feature */
public String getObjectLabel ( ) { } } | if ( TextObject_Type . featOkTst && ( ( TextObject_Type ) jcasType ) . casFeat_objectLabel == null ) jcasType . jcas . throwFeatMissing ( "objectLabel" , "de.julielab.jules.types.TextObject" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( TextObject_Type ) jcasType ) . casFeatCode_objectLabel ) ; |
public class OnPremisesTagSet { /** * A list that contains other lists of on - premises instance tag groups . For an instance to be included in the
* deployment group , it must be identified by all of the tag groups in the list .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) ... | if ( this . onPremisesTagSetList == null ) { setOnPremisesTagSetList ( new com . amazonaws . internal . SdkInternalList < java . util . List < TagFilter > > ( onPremisesTagSetList . length ) ) ; } for ( java . util . List < TagFilter > ele : onPremisesTagSetList ) { this . onPremisesTagSetList . add ( ele ) ; } return ... |
public class BlobContainersInner { /** * Clears legal hold tags . Clearing the same or non - existent tag results in an idempotent operation . ClearLegalHold clears out only the specified tags in the request .
* @ param resourceGroupName The name of the resource group within the user ' s subscription . The name is ca... | if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( accountName == null ) { throw new IllegalArgumentException ( "Parameter accountName is required and cannot be null." ) ; } if ( containerName == null ) { throw new IllegalArgu... |
public class Where { /** * Add a IN clause so the column must be equal - to one of the objects passed in . */
public Where < T , ID > in ( String columnName , Object ... objects ) throws SQLException { } } | return in ( true , columnName , objects ) ; |
public class AbstractContext { /** * Get the current attribute type .
* @ param key the entry ' s key , not null
* @ return the current attribute type , or null , if no such attribute exists . */
public Class < ? > getType ( String key ) { } } | Object val = this . data . get ( key ) ; return val == null ? null : val . getClass ( ) ; |
public class DeepLearningTask2 { /** * Reduce between worker nodes , with network traffic ( if greater than 1 nodes )
* After all reduce ( ) ' s are done , postGlobal ( ) will be called
* @ param drt task to reduce */
@ Override public void reduce ( DeepLearningTask2 drt ) { } } | if ( _res == null ) _res = drt . _res ; else { _res . _chunk_node_count += drt . _res . _chunk_node_count ; _res . model_info ( ) . add ( drt . _res . model_info ( ) ) ; // add models , but don ' t average yet
} assert ( _res . model_info ( ) . get_params ( ) . _replicate_training_data ) ; |
public class Solo { /** * Simulate touching the specified location and dragging it to a new location .
* @ param fromX X coordinate of the initial touch , in screen coordinates
* @ param toX X coordinate of the drag destination , in screen coordinates
* @ param fromY Y coordinate of the initial touch , in screen ... | if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "drag(" + fromX + ", " + toX + ", " + fromY + ", " + toY + ")" ) ; } dialogUtils . hideSoftKeyboard ( null , false , true ) ; scroller . drag ( fromX , toX , fromY , toY , stepCount ) ; |
public class Strings { /** * Make the first character lower case
* @ param name Any String
* @ return A String */
public static String toFirstLower ( String name ) { } } | if ( isEmpty ( name ) ) { return name ; } return "" + name . toLowerCase ( Locale . ROOT ) . charAt ( 0 ) + name . substring ( 1 ) ; |
public class PDFView { /** * Change the zoom level , relatively to a pivot point .
* It will call moveTo ( ) to make sure the given point stays
* in the middle of the screen .
* @ param zoom The zoom level .
* @ param pivot The point on the screen that should stays . */
public void zoomCenteredTo ( float zoom ,... | float dzoom = zoom / this . zoom ; zoomTo ( zoom ) ; float baseX = currentXOffset * dzoom ; float baseY = currentYOffset * dzoom ; baseX += ( pivot . x - pivot . x * dzoom ) ; baseY += ( pivot . y - pivot . y * dzoom ) ; moveTo ( baseX , baseY ) ; |
public class PlaybackService { /** * Start the playback .
* Play the track matching the given position in the given playlist .
* @ param context context from which the service will be started .
* @ param clientId SoundCloud api client id .
* @ param track the track which will be played . */
public static void p... | Intent intent = new Intent ( context , PlaybackService . class ) ; intent . setAction ( ACTION_PLAY ) ; intent . putExtra ( BUNDLE_KEY_SOUND_CLOUD_CLIENT_ID , clientId ) ; intent . putExtra ( BUNDLE_KEY_SOUND_CLOUD_TRACK , track ) ; context . startService ( intent ) ; |
public class DefaultGroovyMethods { /** * Iterates over the elements of an Iterator , starting from a
* specified startIndex , and returns the index of the first item that satisfies the
* condition specified by the closure .
* @ param self an Iterator
* @ param startIndex start matching from this index
* @ pa... | int result = - 1 ; int i = 0 ; BooleanClosureWrapper bcw = new BooleanClosureWrapper ( condition ) ; while ( self . hasNext ( ) ) { Object value = self . next ( ) ; if ( i ++ < startIndex ) { continue ; } if ( bcw . call ( value ) ) { result = i - 1 ; break ; } } return result ; |
public class TinValidator { /** * check the Tax Identification Number number , country version for Denmark .
* @ param ptin vat id to check
* @ return true if checksum is ok */
private boolean checkDkTin ( final String ptin ) { } } | final int checkSum = ptin . charAt ( 9 ) - '0' ; final int sum = ( ( ptin . charAt ( 0 ) - '0' ) * 4 + ( ptin . charAt ( 1 ) - '0' ) * 2 + ( ptin . charAt ( 2 ) - '0' ) * 3 + ( ptin . charAt ( 3 ) - '0' ) * 7 + ( ptin . charAt ( 4 ) - '0' ) * 6 + ( ptin . charAt ( 5 ) - '0' ) * 5 + ( ptin . charAt ( 6 ) - '0' ) * 4 + (... |
public class SystemAnimations { /** * TODO add a Policy class that allows a warning to be emitted , instead */
@ VisibleForTesting void checkPermissionStatus ( @ NonNull Context context ) { } } | boolean hasPermission = getPermissionChecker ( ) . hasAnimationPermission ( context ) ; if ( ! hasPermission ) { throw new IllegalStateException ( getPermissionErrorMessage ( ) ) ; } |
public class ByteBufUtil { /** * Fast - Path implementation */
static int writeUtf8 ( AbstractByteBuf buffer , int writerIndex , CharSequence seq , int len ) { } } | int oldWriterIndex = writerIndex ; // We can use the _ set methods as these not need to do any index checks and reference checks .
// This is possible as we called ensureWritable ( . . . ) before .
for ( int i = 0 ; i < len ; i ++ ) { char c = seq . charAt ( i ) ; if ( c < 0x80 ) { buffer . _setByte ( writerIndex ++ , ... |
public class NatsServerInfo { /** * Removed octal support */
String unescapeString ( String st ) { } } | StringBuilder sb = new StringBuilder ( st . length ( ) ) ; for ( int i = 0 ; i < st . length ( ) ; i ++ ) { char ch = st . charAt ( i ) ; if ( ch == '\\' ) { char nextChar = ( i == st . length ( ) - 1 ) ? '\\' : st . charAt ( i + 1 ) ; switch ( nextChar ) { case '\\' : ch = '\\' ; break ; case 'b' : ch = '\b' ; break ;... |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcFlowTerminal ( ) { } } | if ( ifcFlowTerminalEClass == null ) { ifcFlowTerminalEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 252 ) ; } return ifcFlowTerminalEClass ; |
public class JobExecutionsInner { /** * Gets a job execution .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param serverName The name of the server .
* @ param jobAgentName The name of the ... | return getWithServiceResponseAsync ( resourceGroupName , serverName , jobAgentName , jobName , jobExecutionId ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class AwsSecurityFindingFilters { /** * The destination IPv4 address of network - related information about a finding .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setNetworkDestinationIpV4 ( java . util . Collection ) } or
* { @ link # withNetwo... | if ( this . networkDestinationIpV4 == null ) { setNetworkDestinationIpV4 ( new java . util . ArrayList < IpFilter > ( networkDestinationIpV4 . length ) ) ; } for ( IpFilter ele : networkDestinationIpV4 ) { this . networkDestinationIpV4 . add ( ele ) ; } return this ; |
public class VectorDrawable { /** * The size of a pixel when scaled from the intrinsic dimension to the viewport dimension .
* This is used to calculate the path animation accuracy .
* @ hide */
public float getPixelSize ( ) { } } | if ( mVectorState == null && mVectorState . mVPathRenderer == null || mVectorState . mVPathRenderer . mBaseWidth == 0 || mVectorState . mVPathRenderer . mBaseHeight == 0 || mVectorState . mVPathRenderer . mViewportHeight == 0 || mVectorState . mVPathRenderer . mViewportWidth == 0 ) { return 1 ; // fall back to 1:1 pixe... |
public class IHEAuditor { /** * Audit a User Authentication - Login Event
* @ param outcome Event outcome indicator
* @ param isAuthenticatedSystem Whether the system auditing is the authenticated system ( client ) or authenticator ( server , e . g . kerberos )
* @ param remoteUserIdUser ID of the system that is ... | auditUserAuthenticationEvent ( outcome , new DICOMEventTypeCodes . Login ( ) , isAuthenticatedSystem , remoteUserId , remoteIpAddress , remoteUserNodeIpAddress ) ; |
public class ContainerDatasetAction { /** * The values of variables used within the context of the execution of the containerized application ( basically ,
* parameters passed to the application ) . Each variable must have a name and a value given by one of " stringValue " ,
* " datasetContentVersionValue " , or " ... | if ( variables == null ) { this . variables = null ; return ; } this . variables = new java . util . ArrayList < Variable > ( variables ) ; |
public class AWSIotClient { /** * Creates an AWS IoT OTAUpdate on a target group of things or groups .
* @ param createOTAUpdateRequest
* @ return Result of the CreateOTAUpdate operation returned by the service .
* @ throws InvalidRequestException
* The request is not valid .
* @ throws LimitExceededException... | request = beforeClientExecution ( request ) ; return executeCreateOTAUpdate ( request ) ; |
public class ProfileManager { /** * This method is invoked by searchImpl ( ) to make sure that each
* adapter receives only its corresponding checkpoint in the change
* control .
* @ param searchDO Input search DataObject
* @ param reposId Identifier for the repository whose checkpoint needs to be retained
* ... | Root retDO = new Root ( ) ; Map < String , Control > ctrlsMap = ControlsHelper . getControlMap ( searchDO ) ; ChangeControl changeCtrl = ( ChangeControl ) ctrlsMap . get ( DO_CHANGE_CONTROL ) ; ChangeControl returnChangeControl = new ChangeControl ( ) ; CheckPointType returnCheckPoint = new CheckPointType ( ) ; returnC... |
public class LabelParameterVersionRequest { /** * One or more labels to attach to the specified parameter version .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setLabels ( java . util . Collection ) } or { @ link # withLabels ( java . util . Collection ) ... | if ( this . labels == null ) { setLabels ( new com . amazonaws . internal . SdkInternalList < String > ( labels . length ) ) ; } for ( String ele : labels ) { this . labels . add ( ele ) ; } return this ; |
public class GetOperationsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetOperationsRequest getOperationsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getOperationsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getOperationsRequest . getPageToken ( ) , PAGETOKEN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e ... |
public class Path3ifx { /** * Replies the isMultiParts property .
* @ return the isMultiParts property . */
public BooleanProperty isMultiPartsProperty ( ) { } } | if ( this . isMultipart == null ) { this . isMultipart = new ReadOnlyBooleanWrapper ( this , MathFXAttributeNames . IS_MULTIPARTS , false ) ; this . isMultipart . bind ( Bindings . createBooleanBinding ( ( ) -> { boolean foundOne = false ; for ( final PathElementType type : innerTypesProperty ( ) ) { if ( type == PathE... |
public class ExpectedConditions { /** * An expectation for checking whether the given frame is available to switch to . < p > If the frame
* is available it switches the given driver to the specified frame .
* @ param locator used to find the frame
* @ return WebDriver instance after frame has been switched */
pu... | return new ExpectedCondition < WebDriver > ( ) { @ Override public WebDriver apply ( WebDriver driver ) { try { return driver . switchTo ( ) . frame ( driver . findElement ( locator ) ) ; } catch ( NoSuchFrameException e ) { return null ; } } @ Override public String toString ( ) { return "frame to be available: " + lo... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Object } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ XmlElementDecl... | return new JAXBElement < Object > ( __GenericApplicationPropertyOfBridgeInstallation_QNAME , Object . class , null , value ) ; |
public class FileHelper { /** * Determines if a character is a valid " safe filename " character ( which we restrict to : alpha , digits , " - " , " _ " and " . " )
* @ param c
* @ return */
private static boolean isSafeFilenameCharacter ( char c ) { } } | if ( Character . isLetterOrDigit ( c ) ) { return true ; } else if ( c == '-' || c == '_' || c == '.' ) { return true ; } else { return false ; } |
public class PubSub { /** * Wait 5 seconds and then execute periodic { @ link Broadcaster # broadcast ( java . lang . Object ) }
* operations .
* @ param message A String from an HTML form
* @ return A { @ link Broadcastable } used to broadcast events . */
@ Schedule ( period = 10 , waitFor = 5 ) @ POST @ Path ( ... | return broadcast ( message ) ; |
public class Results { /** * Generates a result with the { @ literal 200 - OK } status and with the given XML content . The result has the
* { @ literal Content - Type } header set to { @ literal application / xml } .
* @ param document the XML document
* @ return a new configured result */
public static Result o... | return status ( Result . OK ) . render ( document ) . as ( MimeTypes . XML ) ; |
public class PropertyParser { /** * Parse property .
* @ param name property name
* @ return property */
public String parseString ( String name ) { } } | String property = getProperties ( ) . getProperty ( name ) ; if ( property == null ) { throw new NullPointerException ( ) ; } return property ; |
public class ClassFileUtils { /** * This method cracks open { @ code ClassLoader # defineClass ( ) } methods using { @ code Unsafe } .
* It is invoked during { @ code WeldStartup # startContainer ( ) } and only in case the integrator does not
* fully implement { @ link ProxyServices } .
* Method first attempts to... | // the AtomicBoolean make sure this gets invoked only once as WeldStartup is triggered per deployment
if ( classLoaderMethodsMadeAccessible . compareAndSet ( false , true ) ) { try { AccessController . doPrivileged ( new PrivilegedExceptionAction < Object > ( ) { public Object run ( ) throws Exception { Class < ? > cl ... |
public class ValidationObjUtil { /** * Gets value .
* @ param obj the obj
* @ param field the field
* @ return the value */
public static Object getValue ( Object obj , String field ) { } } | Method getter = getGetterMethod ( obj . getClass ( ) , field ) ; try { return getter . invoke ( obj ) ; } catch ( IllegalAccessException | InvocationTargetException e ) { return null ; } |
public class OverlapResolver { /** * Calculates a score based on the intersection of bonds .
* @ param ac The Atomcontainer to work on
* @ param overlappingBonds Description of the Parameter
* @ return The overlapScore value */
public double getBondOverlapScore ( IAtomContainer ac , Vector overlappingBonds ) { } ... | overlappingBonds . removeAllElements ( ) ; double overlapScore = 0 ; IBond bond1 = null ; IBond bond2 = null ; double bondLength = GeometryUtil . getBondLengthAverage ( ac ) ; ; double overlapCutoff = bondLength / 2 ; for ( int f = 0 ; f < ac . getBondCount ( ) ; f ++ ) { bond1 = ac . getBond ( f ) ; for ( int g = f ; ... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link TimeInstantType } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link TimeInstantType } { @ code > } *... | return new JAXBElement < TimeInstantType > ( _TimeInstant_QNAME , TimeInstantType . class , null , value ) ; |
public class JdbcQueue { /** * { @ inheritDoc }
* @ throws Exception */
@ Override public JdbcQueue < ID , DATA > init ( ) throws Exception { } } | SQL_COUNT = MessageFormat . format ( SQL_COUNT , getTableName ( ) ) ; SQL_COUNT_EPHEMERAL = MessageFormat . format ( SQL_COUNT_EPHEMERAL , getTableNameEphemeral ( ) ) ; if ( jdbcHelper == null ) { setJdbcHelper ( buildJdbcHelper ( ) , true ) ; } super . init ( ) ; if ( jdbcHelper == null ) { throw new IllegalStateExcep... |
public class CreateBankAccountBicMapConstantsClass { /** * Instantiates a class via deferred binding .
* @ return the new instance , which must be cast to the requested class */
public static BankAccountBicSharedConstants create ( ) { } } | if ( bicMapConstants == null ) { // NOPMD it ' s thread save !
synchronized ( BankAccountBicConstantsImpl . class ) { if ( bicMapConstants == null ) { final BankAccountBicConstantsImpl bicMapConstantsTmp = new BankAccountBicConstantsImpl ( ) ; COUNTRIES . stream ( ) . forEach ( country -> bicMapConstantsTmp . addBankAc... |
public class PortalJobStatusChanged { /** * Gets the signature from a given signer .
* @ param signer an identifier referring to a signer of the job . It may be a personal identification number or
* contact information , depending of how the { @ link PortalSigner signer } was initially created
* ( using { @ link ... | return signatures . stream ( ) . filter ( signatureFrom ( signer ) ) . findFirst ( ) . orElseThrow ( ( ) -> new IllegalArgumentException ( "Unable to find signature from this signer" ) ) ; |
public class AdobePathBuilder { /** * Builds the path .
* @ return the path
* @ throws javax . imageio . IIOException if the input contains a bad path data .
* @ throws IOException if a general I / O exception occurs during reading . */
public Path2D path ( ) throws IOException { } } | List < List < AdobePathSegment > > subPaths = new ArrayList < List < AdobePathSegment > > ( ) ; List < AdobePathSegment > currentPath = null ; int currentPathLength = 0 ; AdobePathSegment segment ; while ( ( segment = nextSegment ( ) ) != null ) { if ( DEBUG ) { System . out . println ( segment ) ; } if ( segment . sel... |
public class DZcs_spsolve { /** * solve Gx = b ( : , k ) , where G is either upper ( lo = false ) or lower ( lo = true )
* triangular .
* @ param G
* lower or upper triangular matrix in column - compressed form
* @ param B
* right hand side , b = B ( : , k )
* @ param k
* use kth column of B as right hand... | int j , J , p , q , px , top , n , Gp [ ] , Gi [ ] , Bp [ ] , Bi [ ] ; DZcsa Gx = new DZcsa ( ) , Bx = new DZcsa ( ) ; if ( ! CS_CSC ( G ) || ! CS_CSC ( B ) || xi == null || x == null ) return ( - 1 ) ; Gp = G . p ; Gi = G . i ; Gx . x = G . x ; n = G . n ; Bp = B . p ; Bi = B . i ; Bx . x = B . x ; top = cs_reach ( G ... |
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public String convertObjectOriginIdentifierSystemToString ( EDataType eDataType , Object instanceValue ) { } } | return instanceValue == null ? null : instanceValue . toString ( ) ; |
public class InternalSARLParser { /** * $ ANTLR start synpred12 _ InternalSARL */
public final void synpred12_InternalSARL_fragment ( ) throws RecognitionException { } } | // InternalSARL . g : 8629:6 : ( ( ( ( ruleJvmFormalParameter ) ) ' = ' ) )
// InternalSARL . g : 8629:7 : ( ( ( ruleJvmFormalParameter ) ) ' = ' )
{ // InternalSARL . g : 8629:7 : ( ( ( ruleJvmFormalParameter ) ) ' = ' )
// InternalSARL . g : 8630:7 : ( ( ruleJvmFormalParameter ) ) ' = '
{ // InternalSARL . g : 8630:7... |
public class DatabaseAdvisorsInner { /** * Returns a list of database advisors .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param serverName The name of the server .
* @ param databaseNam... | return listByDatabaseWithServiceResponseAsync ( resourceGroupName , serverName , databaseName ) . map ( new Func1 < ServiceResponse < AdvisorListResultInner > , AdvisorListResultInner > ( ) { @ Override public AdvisorListResultInner call ( ServiceResponse < AdvisorListResultInner > response ) { return response . body (... |
public class ControllerEventSerializer { /** * Serializes the given { @ link ControllerEvent } to a { @ link ByteBuffer } .
* @ param value The { @ link ControllerEvent } to serialize .
* @ return A new { @ link ByteBuffer } wrapping an array that contains the serialization . */
@ SneakyThrows ( IOException . class... | ByteArraySegment s = serialize ( value ) ; return ByteBuffer . wrap ( s . array ( ) , s . arrayOffset ( ) , s . getLength ( ) ) ; |
public class VectorLayerPainter { /** * The actual painting function . Draws the groups .
* @ param paintable
* A { @ link VectorLayer } object .
* @ param group
* The group where the object resides in ( optional ) .
* @ param context
* A MapContext object , responsible for actual drawing . */
public void p... | VectorLayer layer = ( VectorLayer ) paintable ; PictureStyle opacityStyle = new PictureStyle ( layer . getOpacity ( ) ) ; // Create the needed groups in the correct order :
context . getVectorContext ( ) . drawGroup ( mapWidget . getGroup ( RenderGroup . VECTOR ) , layer , opacityStyle ) ; context . getVectorContext ( ... |
public class StreamMessageHeader { /** * Add key to history .
* @ param historyKey history key */
public void addHistory ( Object historyKey ) { } } | if ( this . history == null ) { this . history = new KeyHistory ( ) ; } this . history . addKey ( historyKey . toString ( ) ) ; |
public class ExpressRouteCircuitsInner { /** * Gets all stats from an express route circuit in a resource group .
* @ param resourceGroupName The name of the resource group .
* @ param circuitName The name of the express route circuit .
* @ param peeringName The name of the peering .
* @ throws IllegalArgumentE... | if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( circuitName == null ) { throw new IllegalArgumentException ( "Parameter circuitName is required and cannot be null." ) ; } if ( peeringName == null ) { throw new IllegalArgume... |
public class StandardServiceAgentServer { /** * Main method to start this service agent .
* < br / >
* It accepts a single program argument , the file path of the configuration file that overrides the
* defaults for this service agent
* @ param args the program arguments
* @ throws IOException in case the con... | Settings settings = null ; if ( args . length > 0 ) settings = PropertiesSettings . from ( new File ( args [ 0 ] ) ) ; Server server = newInstance ( settings ) ; server . start ( ) ; |
public class JobScheduler { /** * Updates the job .
* < p > This just updates the job , but it doesn ' t schedule it . In order to be executed , the job has
* to be scheduled after being set . In case there was a previous job scheduled that has not yet
* started , this new job will be executed instead .
* @ ret... | if ( ! shouldProcess ( encodedImage , status ) ) { return false ; } EncodedImage oldEncodedImage ; synchronized ( this ) { oldEncodedImage = mEncodedImage ; mEncodedImage = EncodedImage . cloneOrNull ( encodedImage ) ; mStatus = status ; } EncodedImage . closeSafely ( oldEncodedImage ) ; return true ; |
public class Javalin { /** * Adds a HEAD request handler with the given roles for the specified path to the instance .
* Requires an access manager to be set on the instance .
* @ see AccessManager
* @ see < a href = " https : / / javalin . io / documentation # handlers " > Handlers in docs < / a > */
public Java... | return addHandler ( HandlerType . HEAD , path , handler , permittedRoles ) ; |
public class VaultsInner { /** * Fetches all the resources of the specified type in the subscription .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the PagedList & lt ; VaultInner & gt ; object */
public Observable < Page < VaultInner > > listAsync ( ) { ... | return listWithServiceResponseAsync ( ) . map ( new Func1 < ServiceResponse < Page < VaultInner > > , Page < VaultInner > > ( ) { @ Override public Page < VaultInner > call ( ServiceResponse < Page < VaultInner > > response ) { return response . body ( ) ; } } ) ; |
public class iptunnel { /** * Use this API to fetch iptunnel resource of given name . */
public static iptunnel get ( nitro_service service , String name ) throws Exception { } } | iptunnel obj = new iptunnel ( ) ; obj . set_name ( name ) ; iptunnel response = ( iptunnel ) obj . get_resource ( service ) ; return response ; |
public class druidGLexer { /** * $ ANTLR start " ON " */
public final void mON ( ) throws RecognitionException { } } | try { int _type = ON ; int _channel = DEFAULT_TOKEN_CHANNEL ; // druidG . g : 658:5 : ( ( ' ON ' ) )
// druidG . g : 658:7 : ( ' ON ' )
{ // druidG . g : 658:7 : ( ' ON ' )
// druidG . g : 658:8 : ' ON '
{ match ( "ON" ) ; } } state . type = _type ; state . channel = _channel ; } finally { // do for sure before leaving... |
public class AbstractThriftServerImpl { /** * 启动Thrift服务
* @ exception IkasoaException
* 异常 */
public void start ( ) throws IkasoaException { } } | if ( server == null ) { log . debug ( "Server configuration : {}" , configuration ) ; // 不允许使用1024以内的端口 .
if ( ! ServerUtil . isSocketPort ( serverPort ) ) throw new IkasoaException ( String . format ( "Server initialize failed ! Port range must is 1025 ~ 65535 . Your port is : %d ." , serverPort ) ) ; try { initServer... |
import java . util . * ; class CheckSequenceLinearity { /** * Function checks if a given sequence is linear or not .
* Args :
* numbers ( ArrayList ) : A sequence of numbers
* Returns :
* String : ' Linear Sequence ' if it ' s a linear sequence , ' Non Linear Sequence ' otherwise .
* Examples :
* > > > chec... | ArrayList < Integer > diffs = new ArrayList < > ( numbers . size ( ) - 1 ) ; for ( int i = 1 ; i < numbers . size ( ) ; i ++ ) { diffs . add ( numbers . get ( i ) - numbers . get ( i - 1 ) ) ; } Set < Integer > uniqueDiffs = new HashSet < > ( diffs ) ; return uniqueDiffs . size ( ) == 1 ? "Linear Sequence" : "Non Linea... |
public class ElementsExceptionsFactory { /** * Constructs and initializes a new { @ link ObjectNotFoundException } with the given { @ link Throwable cause }
* and { @ link String message } formatted with the given { @ link Object [ ] arguments } .
* @ param cause { @ link Throwable } identified as the reason this {... | return new ObjectNotFoundException ( format ( message , args ) , cause ) ; |
public class XMLUtil { /** * Append a space , then a new element to the appendable element , the name of the element is
* attrName and the value is attrValue . The value won ' t be escaped .
* @ param appendable where to write
* @ param attrName the name of the attribute
* @ param attrValue escaped attribute
... | appendable . append ( ' ' ) . append ( attrName ) . append ( "=\"" ) . append ( attrValue ) . append ( '"' ) ; |
public class FilesImpl { /** * Lists all of the files in task directories on the specified compute node .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ param fileListFromComputeNodeNextOptions Additional parameters for the operation
* @ throws IllegalArgumentExcepti... | ServiceResponseWithHeaders < Page < NodeFile > , FileListFromComputeNodeHeaders > response = listFromComputeNodeNextSinglePageAsync ( nextPageLink , fileListFromComputeNodeNextOptions ) . toBlocking ( ) . single ( ) ; return new PagedList < NodeFile > ( response . body ( ) ) { @ Override public Page < NodeFile > nextPa... |
public class RequireActiveProfile { /** * Checks if profile is active .
* @ param project the project
* @ param profileName the profile name
* @ return < code > true < / code > if profile is active , otherwise < code > false < / code > */
protected boolean isProfileActive ( MavenProject project , String profileNa... | @ SuppressWarnings ( "unchecked" ) List < Profile > activeProfiles = project . getActiveProfiles ( ) ; if ( activeProfiles != null && ! activeProfiles . isEmpty ( ) ) { for ( Profile profile : activeProfiles ) { if ( profile . getId ( ) . equals ( profileName ) ) { return true ; } } } return false ; |
public class Bytes { /** * Decode from hexadecimal */
public static byte [ ] fromHex ( String hex ) { } } | char [ ] c = hex . toCharArray ( ) ; byte [ ] b = new byte [ c . length / 2 ] ; for ( int i = 0 ; i < b . length ; i ++ ) { b [ i ] = ( byte ) ( HEX_DECODE_CHAR [ c [ i * 2 ] & 0xFF ] * 16 + HEX_DECODE_CHAR [ c [ i * 2 + 1 ] & 0xFF ] ) ; } return b ; |
public class OnLineStatistics { /** * Computes a new set of statistics that is the equivalent of having removed
* all observations in { @ code B } from { @ code A } . < br >
* NOTE : removing statistics is not as numerically stable . The values of the
* 3rd and 4th moments { @ link # getSkewness ( ) } and { @ lin... | OnLineStatistics toRet = A . clone ( ) ; toRet . remove ( B ) ; return toRet ; |
public class PhoneNumberUtil { /** * format phone number in E123 format with cursor position handling .
* @ param pphoneNumberData phone number to format with cursor position
* @ param pcountryData country data
* @ return formated phone number as String with new cursor position */
public final ValueWithPos < Stri... | if ( pphoneNumberData != null && pcountryData != null && StringUtils . equals ( pcountryData . getCountryCodeData ( ) . getCountryCode ( ) , pphoneNumberData . getValue ( ) . getCountryCode ( ) ) ) { return this . formatE123NationalWithPos ( pphoneNumberData ) ; } else { return this . formatE123InternationalWithPos ( p... |
public class PGPKeyValidator { /** * Validates a PGP public key .
* @ param value value to validate
* @ param crypto crypto implementation to carry out additional checks
* @ throws BadPublicKeyException thrown if validation fails ; getMessage ( )
* contains error code */
public static void validatePublicKey ( S... | if ( org . springframework . util . StringUtils . hasText ( value ) ) { int open = value . indexOf ( "-----BEGIN PGP PUBLIC KEY BLOCK-----" ) ; int close = value . indexOf ( "-----END PGP PUBLIC KEY BLOCK-----" ) ; if ( open < 0 ) { throw new BadPublicKeyException ( "PublicKeyValidator.noBeginBlock" ) ; } if ( close < ... |
public class Iterators { /** * Returns a list that represents [ start , end ) .
* For example sequence ( 1,5,1 ) = { 1,2,3,4 } , and sequence ( 7,1 , - 2 ) = { 7.5,3}
* @ since 1.150 */
public static List < Integer > sequence ( final int start , int end , final int step ) { } } | final int size = ( end - start ) / step ; if ( size < 0 ) throw new IllegalArgumentException ( "List size is negative" ) ; return new AbstractList < Integer > ( ) { public Integer get ( int index ) { if ( index < 0 || index >= size ) throw new IndexOutOfBoundsException ( ) ; return start + index * step ; } public int s... |
public class ThriftHttpServlet { /** * Do the GSS - API kerberos authentication .
* We already have a logged in subject in the form of serviceUGI ,
* which GSS - API will extract information from .
* In case of a SPNego request we use the httpUGI ,
* for the authenticating service tickets .
* @ param request ... | // Try authenticating with the http / _ HOST principal
if ( httpUGI != null ) { try { return httpUGI . doAs ( new HttpKerberosServerAction ( request , httpUGI ) ) ; } catch ( Exception e ) { LOG . info ( "Failed to authenticate with http/_HOST kerberos principal, " + "trying with hive/_HOST kerberos principal" ) ; } } ... |
public class ChainerServlet { /** * Initialize the servlet chainer . */
@ SuppressWarnings ( "unchecked" ) public void init ( ) throws ServletException { } } | // Method re - written for PQ47469
String servlets = getRequiredInitParameter ( PARAM_SERVLET_PATHS ) ; StringTokenizer sTokenizer = new StringTokenizer ( servlets ) ; Vector servletChainPath = new Vector ( ) ; while ( sTokenizer . hasMoreTokens ( ) == true ) { String path = sTokenizer . nextToken ( ) . trim ( ) ; if (... |
public class PooledObjects { /** * Converts the given object to an unpooled copy and releases the given object . */
public static < T > T toUnpooled ( T o ) { } } | if ( o instanceof ByteBufHolder ) { o = copyAndRelease ( ( ByteBufHolder ) o ) ; } else if ( o instanceof ByteBuf ) { o = copyAndRelease ( ( ByteBuf ) o ) ; } return o ; |
public class ResponseMessage { /** * @ see javax . servlet . http . HttpServletResponse # sendRedirect ( java . lang . String ) */
@ Override public void sendRedirect ( String location ) throws IOException { } } | if ( isCommitted ( ) ) { throw new IllegalStateException ( "Response already committed" ) ; } if ( null == location ) { throw new IllegalArgumentException ( "Location is null" ) ; } resetBuffer ( ) ; this . response . setHeader ( "Location" , convertURItoURL ( location . trim ( ) ) ) ; this . response . setStatus ( 307... |
public class ComplianceByConfigRuleMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ComplianceByConfigRule complianceByConfigRule , ProtocolMarshaller protocolMarshaller ) { } } | if ( complianceByConfigRule == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( complianceByConfigRule . getConfigRuleName ( ) , CONFIGRULENAME_BINDING ) ; protocolMarshaller . marshall ( complianceByConfigRule . getCompliance ( ) , COMPLIANC... |
public class Apptentive { /** * Sends a file to the server . This file will be visible in the conversation view on the server , but will not be shown
* in the client ' s Message Center . A local copy of this file will be made until the message is transmitted , at which
* point the temporary file will be deleted .
... | dispatchConversationTask ( new ConversationDispatchTask ( ) { @ Override protected boolean execute ( Conversation conversation ) { if ( TextUtils . isEmpty ( uri ) ) { return false ; // TODO : add error message
} CompoundMessage message = new CompoundMessage ( ) ; // No body , just attachment
message . setBody ( null )... |
public class LocalPortletRequestContextServiceImpl { /** * / * ( non - Javadoc )
* @ see org . apache . pluto . container . PortletRequestContextService # getPortletResourceRequestContext ( org . apache . pluto . container . PortletContainer , javax . servlet . http . HttpServletRequest , javax . servlet . http . Htt... | final IPortletWindow portletWindow = this . portletWindowRegistry . convertPortletWindow ( containerRequest , window ) ; final IPortalRequestInfo portalRequestInfo = this . urlSyntaxProvider . getPortalRequestInfo ( containerRequest ) ; return new PortletResourceRequestContextImpl ( container , portletWindow , containe... |
public class ManagedProperties { /** * Retrieve a { @ link Properties } object that contains the properties managed
* by this instance . If a non - < code > null < / code > property name is given , the
* values will be the last saved value for each property except the given
* one . Otherwise , the properties will... | Properties tmpProperties = new Properties ( defaults ) ; for ( Entry < String , ChangeStack < String > > entry : properties . entrySet ( ) ) { String entryName = entry . getKey ( ) ; /* * If we are only concerned with a single property , we need to grab
* the last saved value for all of the other properties . */
Stri... |
public class sslcertkey_crldistribution_binding { /** * Use this API to count sslcertkey _ crldistribution _ binding resources configued on NetScaler . */
public static long count ( nitro_service service , String certkey ) throws Exception { } } | sslcertkey_crldistribution_binding obj = new sslcertkey_crldistribution_binding ( ) ; obj . set_certkey ( certkey ) ; options option = new options ( ) ; option . set_count ( true ) ; sslcertkey_crldistribution_binding response [ ] = ( sslcertkey_crldistribution_binding [ ] ) obj . get_resources ( service , option ) ; i... |
public class UserExecutorConfiguration { /** * Construct a { @ link UserExecutorConfiguration } for the given { @ link io . micronaut . scheduling . executor . ExecutorType } .
* @ param type The type
* @ param num The number of threads for { @ link io . micronaut . scheduling . executor . ExecutorType # FIXED } or... | UserExecutorConfiguration configuration = of ( type , num ) ; if ( threadFactoryClass != null ) { configuration . threadFactoryClass = threadFactoryClass ; } return configuration ; |
public class KmeansUpdater { /** * { @ inheritDoc } */
@ Override public void updateState ( MapState < KmeansDataSet > state , List < TridentTuple > tuples , TridentCollector collector ) { } } | // データが流れてきていない場合はupdateStateメソッドが呼ばれないため 、 本メソッド内ではデータが存在するとして扱う 。
List < KmeansDataSet > dataSets = state . multiGet ( Arrays . asList ( Arrays . asList ( ( Object ) this . stateName ) ) ) ; KmeansDataSet dataSet = null ; if ( dataSets != null && ! dataSets . isEmpty ( ) ) { dataSet = dataSets . get ( 0 ) ; ... |
public class QueryString { /** * Apply this url QueryString on the given URL . If a query string already
* exists , it is replaced by this one .
* @ param url the URL to apply this query string .
* @ return url with query string added */
public URL applyOnURL ( URL url ) { } } | if ( url == null ) { return url ; } try { return new URL ( applyOnURL ( url . toString ( ) ) ) ; } catch ( MalformedURLException e ) { throw new RuntimeException ( "Cannot applyl query string to: " + url , e ) ; } |
public class CmsHtmlList { /** * This method returns the item identified by the parameter id . < p >
* Only current visible item can be retrieved using this method . < p >
* @ param id the id of the item to look for
* @ return the requested item or < code > null < / code > if not found */
public CmsListItem getIt... | Iterator < CmsListItem > it = getAllContent ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { CmsListItem item = it . next ( ) ; if ( item . getId ( ) . equals ( id ) ) { return item ; } } return null ; |
public class PreferenceFragment { /** * Initializes the preference , which allows to show the single choice list dialog . */
private void initializeShowSingleChoiceListDialogPreference ( ) { } } | Preference preference = findPreference ( getString ( R . string . show_single_choice_dialog_preference_key ) ) ; preference . setOnPreferenceClickListener ( new OnPreferenceClickListener ( ) { @ Override public boolean onPreferenceClick ( final Preference preference ) { initializeSingleChoiceListDialog ( ) ; singleChoi... |
public class StateMachine { /** * Adds an edge between the current and new state .
* @ return true if the new state is not found in the state machine . */
public boolean switchToStateAndCheckIfClone ( final Eventable event , StateVertex newState , CrawlerContext context ) { } } | StateVertex cloneState = this . addStateToCurrentState ( newState , event ) ; runOnInvariantViolationPlugins ( context ) ; if ( cloneState == null ) { changeState ( newState ) ; plugins . runOnNewStatePlugins ( context , newState ) ; return true ; } else { changeState ( cloneState ) ; return false ; } |
public class Files { /** * Get file path components . Return a list of path components in their natural order . List first item is path root
* stored as an empty string ; if file argument is empty returned list contains only root . If file argument is null
* returns empty list .
* @ param file file to retrieve pa... | if ( file == null ) { return Collections . emptyList ( ) ; } List < String > pathComponents = new ArrayList < String > ( ) ; do { pathComponents . add ( 0 , file . getName ( ) ) ; file = file . getParentFile ( ) ; } while ( file != null ) ; return pathComponents ; |
public class HttpQuery { /** * Sends an HTTP reply to the client .
* @ param status The status of the request ( e . g . 200 OK or 404 Not Found ) .
* @ param buf The content of the reply to send . */
private void sendBuffer ( final HttpResponseStatus status , final ChannelBuffer buf ) { } } | final String contentType = ( api_version < 1 ? guessMimeType ( buf ) : serializer . responseContentType ( ) ) ; sendBuffer ( status , buf , contentType ) ; |
public class CodecCodeGenerator { /** * Find a field with the @ Id annotation OR with type ObjectId OR with type UUID OR
* with name _ id OR with name id */
private static Element lookupId ( List < Element > fields ) { } } | Element objectIdField = null ; Element uuidField = null ; Element _idField = null ; Element idField = null ; for ( Element field : fields ) { if ( field . getAnnotation ( Id . class ) != null ) { return field ; } if ( isObjectId ( field ) ) { objectIdField = field ; } else if ( isUUID ( field ) ) { uuidField = field ; ... |
public class Datatype_Builder { /** * Sets the value to be returned by { @ link Datatype # getRebuildableType ( ) } .
* @ return this { @ code Builder } object */
public Datatype . Builder setRebuildableType ( Optional < ? extends TypeClass > rebuildableType ) { } } | if ( rebuildableType . isPresent ( ) ) { return setRebuildableType ( rebuildableType . get ( ) ) ; } else { return clearRebuildableType ( ) ; } |
public class CommerceShippingFixedOptionLocalServiceWrapper { /** * Deletes the commerce shipping fixed option from the database . Also notifies the appropriate model listeners .
* @ param commerceShippingFixedOption the commerce shipping fixed option
* @ return the commerce shipping fixed option that was removed *... | return _commerceShippingFixedOptionLocalService . deleteCommerceShippingFixedOption ( commerceShippingFixedOption ) ; |
public class SecureUtil { /** * sha1计算后进行16进制转换
* @ param data
* 待计算的数据
* @ param encoding
* 编码
* @ return 计算结果 */
public static byte [ ] sha1X16 ( String data , String encoding ) { } } | byte [ ] bytes = sha1 ( data , encoding ) ; StringBuilder sha1StrBuff = new StringBuilder ( ) ; for ( int i = 0 ; i < bytes . length ; i ++ ) { if ( Integer . toHexString ( 0xFF & bytes [ i ] ) . length ( ) == 1 ) { sha1StrBuff . append ( "0" ) . append ( Integer . toHexString ( 0xFF & bytes [ i ] ) ) ; } else { sha1St... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.