signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class DefaultVOMSTrustStore { /** * Builds a list of trusted directories containing only
* { @ link # DEFAULT _ VOMS _ DIR } .
* @ return a list of default trusted directory containing the
* { @ link # DEFAULT _ VOMS _ DIR } */
protected static List < String > buildDefaultTrustedDirs ( ) { } } | List < String > tDirs = new ArrayList < String > ( ) ; tDirs . add ( DEFAULT_VOMS_DIR ) ; return tDirs ; |
public class AudioFactory { /** * Load an audio file and prepare it to be played .
* @ param media The audio media ( must not be < code > null < / code > ) .
* @ return The loaded audio .
* @ throws LionEngineException If invalid audio . */
public static synchronized Audio loadAudio ( Media media ) { } } | Check . notNull ( media ) ; final String extension = UtilFile . getExtension ( media . getPath ( ) ) ; return Optional . ofNullable ( FACTORIES . get ( extension ) ) . orElseThrow ( ( ) -> new LionEngineException ( media , ERROR_FORMAT ) ) . loadAudio ( media ) ; |
public class ClientVpnEndpoint { /** * Information about the authentication method used by the Client VPN endpoint .
* @ return Information about the authentication method used by the Client VPN endpoint . */
public java . util . List < ClientVpnAuthentication > getAuthenticationOptions ( ) { } } | if ( authenticationOptions == null ) { authenticationOptions = new com . amazonaws . internal . SdkInternalList < ClientVpnAuthentication > ( ) ; } return authenticationOptions ; |
public class BeanTypeImpl { /** * Returns all < code > method < / code > elements
* @ return list of < code > method < / code > */
public List < MethodType < BeanType < T > > > getAllMethod ( ) { } } | List < MethodType < BeanType < T > > > list = new ArrayList < MethodType < BeanType < T > > > ( ) ; List < Node > nodeList = childNode . get ( "method" ) ; for ( Node node : nodeList ) { MethodType < BeanType < T > > type = new MethodTypeImpl < BeanType < T > > ( this , "method" , childNode , node ) ; list . add ( type... |
public class AbstractJsonGetter { /** * Traverses given array . If { @ code cursor # getNext ( ) } is
* { @ code null } , this method adds all the scalar values in current
* array to the result . Otherwise , it traverses all objects in
* given array and adds their scalar values named
* { @ code cursor # getNext... | cursor . getNext ( ) ; MultiResult < Object > multiResult = new MultiResult < Object > ( ) ; JsonToken currentToken = parser . currentToken ( ) ; if ( currentToken != JsonToken . START_ARRAY ) { return null ; } while ( true ) { currentToken = parser . nextToken ( ) ; if ( currentToken == JsonToken . END_ARRAY ) { break... |
public class NetworkInterfaceIPConfigurationsInner { /** * Gets the specified network interface ip configuration .
* @ param resourceGroupName The name of the resource group .
* @ param networkInterfaceName The name of the network interface .
* @ param ipConfigurationName The name of the ip configuration name .
... | return getWithServiceResponseAsync ( resourceGroupName , networkInterfaceName , ipConfigurationName ) . map ( new Func1 < ServiceResponse < NetworkInterfaceIPConfigurationInner > , NetworkInterfaceIPConfigurationInner > ( ) { @ Override public NetworkInterfaceIPConfigurationInner call ( ServiceResponse < NetworkInterfa... |
public class DescribeDatasetRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeDatasetRequest describeDatasetRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeDatasetRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeDatasetRequest . getIdentityPoolId ( ) , IDENTITYPOOLID_BINDING ) ; protocolMarshaller . marshall ( describeDatasetRequest . getIdentityId ( ) , IDENTITYI... |
public class ArgUtils { /** * 検証対象の値が 、 指定したクラスを継承しているかどうか検証する 。
* @ since 2.0
* @ param arg 検証対象の値
* @ param clazz 親クラス
* @ param name 検証対象の引数の名前 */
public static void instanceOf ( final Object arg , final Class < ? > clazz , final String name ) { } } | if ( arg == null ) { throw new IllegalArgumentException ( String . format ( "%s should not be null." , name ) ) ; } if ( ! clazz . isAssignableFrom ( arg . getClass ( ) ) ) { throw new IllegalArgumentException ( String . format ( "%s should not be class with '%s'." , name , clazz . getName ( ) ) ) ; } |
public class TrainingsImpl { /** * Gets the number of untagged images .
* This API returns the images which have no tags for a given project and optionally an iteration . If no iteration is specified the
* current workspace is used .
* @ param projectId The project id
* @ param getUntaggedImageCountOptionalPara... | return getUntaggedImageCountWithServiceResponseAsync ( projectId , getUntaggedImageCountOptionalParameter ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class ActivationDeployment { /** * Stop */
public void stop ( ) { } } | for ( org . ironjacamar . core . api . deploymentrepository . Deployment d : deployments ) { try { d . deactivate ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } finally { deploymentRepository . unregisterDeployment ( d ) ; } } |
public class MultiLineString { /** * Create a new instance of this class by passing in a single { @ link LineString } object . The
* LineStrings should comply with the GeoJson specifications described in the documentation .
* @ param lineString a single LineString which make up this MultiLineString
* @ return a n... | List < List < Point > > coordinates = Arrays . asList ( lineString . coordinates ( ) ) ; return new MultiLineString ( TYPE , null , coordinates ) ; |
public class EventUtils { /** * Adds an event listener to the specified source . This looks for an " add " method corresponding to the event
* type ( addActionListener , for example ) .
* @ param eventSource the event source
* @ param listenerType the event listener type
* @ param listener the listener
* @ pa... | try { MethodUtils . invokeMethod ( eventSource , "add" + listenerType . getSimpleName ( ) , listener ) ; } catch ( final NoSuchMethodException e ) { throw new IllegalArgumentException ( "Class " + eventSource . getClass ( ) . getName ( ) + " does not have a public add" + listenerType . getSimpleName ( ) + " method whic... |
public class MeasureOverview { /** * Updates the measure overview . If no measures are currently to display ,
* reset the display to hyphens . Otherwise display the last measured and
* mean values . */
public void update ( ) { } } | if ( this . measures == null || this . measures . length == 0 ) { // no measures to show - > empty entries
for ( int i = 0 ; i < this . currentValues . length ; i ++ ) { this . currentValues [ i ] . setText ( "-" ) ; this . meanValues [ i ] . setText ( "-" ) ; } return ; } DecimalFormat d = new DecimalFormat ( "0.00" )... |
public class Base64Encoder { /** * Returns the encoded form of the given unencoded string .
* @ param bytes the bytes to encode
* @ return the encoded form of the unencoded string */
public static String encode ( byte [ ] bytes ) { } } | if ( null == bytes ) { return null ; } ByteArrayOutputStream out = new ByteArrayOutputStream ( ( int ) ( bytes . length * 1.37 ) ) ; Base64Encoder encodedOut = new Base64Encoder ( out ) ; try { encodedOut . write ( bytes ) ; encodedOut . close ( ) ; return out . toString ( "UTF-8" ) ; } catch ( IOException ignored ) { ... |
public class IfcProductImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) public EList < IfcRelAssignsToProduct > getReferencedBy ( ) { } } | return ( EList < IfcRelAssignsToProduct > ) eGet ( Ifc2x3tc1Package . Literals . IFC_PRODUCT__REFERENCED_BY , true ) ; |
import java . util . * ; public class ReorganizeWords { /** * Function to reverse the sequence of words in a supplied string .
* Examples :
* reorganize _ words ( ' python program ' ) - > ' program python '
* reorganize _ words ( ' java language ' ) - > ' language java '
* reorganize _ words ( ' indian man ' ) ... | List < String > words = Arrays . asList ( strInput . split ( " " ) ) ; Collections . reverse ( words ) ; return String . join ( " " , words ) ; |
public class Normalizer { /** * Concatenate normalized strings , making sure that the result is normalized
* as well .
* If both the left and the right strings are in
* the normalization form according to " mode " ,
* then the result will be
* < code >
* dest = normalize ( left + right , mode )
* < / code... | StringBuilder dest = new StringBuilder ( left . length + right . length + 16 ) . append ( left ) ; return mode . getNormalizer2 ( options ) . append ( dest , CharBuffer . wrap ( right ) ) . toString ( ) ; |
public class DistributionSetSelectComboBox { /** * Overriden in order to return the caption for the selected distribution
* set from cache . Otherwise , it could lead to multiple database queries ,
* trying to retrieve the caption from container , when it is not present in
* filtered options .
* @ param itemId ... | if ( itemId != null && itemId . equals ( getValue ( ) ) && ! StringUtils . isEmpty ( selectedValueCaption ) ) { return selectedValueCaption ; } return super . getItemCaption ( itemId ) ; |
public class CMap { /** * This will add a mapping .
* @ param src The src to the mapping .
* @ param dest The dest to the mapping .
* @ throws IOException if the src is invalid . */
public void addMapping ( byte [ ] src , String dest ) throws IOException { } } | if ( src . length == 1 ) { singleByteMappings . put ( Integer . valueOf ( src [ 0 ] & 0xff ) , dest ) ; } else if ( src . length == 2 ) { int intSrc = src [ 0 ] & 0xFF ; intSrc <<= 8 ; intSrc |= ( src [ 1 ] & 0xFF ) ; doubleByteMappings . put ( Integer . valueOf ( intSrc ) , dest ) ; } else { throw new IOException ( "M... |
public class JsonUtils { /** * Used to obtain a JSONified object from a string
* @ param jsonAsString the json object represented in string form
* @ return the JSONified object representation if the input is a valid json string
* if the input is not a valid json string , it will be returned as - is and no excepti... | try { return objectMapper . readValue ( jsonAsString , Object . class ) ; } catch ( Exception e ) { logger . info ( "Unable to parse (json?) string: {}" , jsonAsString , e ) ; return jsonAsString ; } |
public class CompressionFactory { /** * Float currently does not support any encoding types , and stores values as 4 byte float */
public static Supplier < ColumnarFloats > getFloatSupplier ( int totalSize , int sizePer , ByteBuffer fromBuffer , ByteOrder order , CompressionStrategy strategy ) { } } | if ( strategy == CompressionStrategy . NONE ) { return new EntireLayoutColumnarFloatsSupplier ( totalSize , fromBuffer , order ) ; } else { return new BlockLayoutColumnarFloatsSupplier ( totalSize , sizePer , fromBuffer , order , strategy ) ; } |
public class KeyVaultClientBaseImpl { /** * List storage accounts managed by the specified key vault . This operation requires the storage / list permission .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail the v... | return getStorageAccountsNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < StorageAccountItem > > , Page < StorageAccountItem > > ( ) { @ Override public Page < StorageAccountItem > call ( ServiceResponse < Page < StorageAccountItem > > response ) { return response . body ( ) ; ... |
public class GeopaparazziController { /** * Extract data from the db and add them to the map view .
* @ param projectTemplate
* @ return
* @ throws Exception */
public void loadProjectData ( ProjectInfo currentSelectedProject , boolean zoomTo ) throws Exception { } } | if ( geopapDataLayer != null ) geopapDataLayer . removeAllRenderables ( ) ; Envelope bounds = new Envelope ( ) ; File dbFile = currentSelectedProject . databaseFile ; try ( Connection connection = DriverManager . getConnection ( "jdbc:sqlite:" + dbFile . getAbsolutePath ( ) ) ) { // NOTES
List < String [ ] > noteDataLi... |
public class PowerMock { /** * A utility method that may be used to mock several < b > static < / b > methods
* ( nice ) in an easy way ( by just passing in the method names of the method
* you wish to mock ) . Note that you cannot uniquely specify a method to mock
* using this method if there are several methods... | mockStaticNice ( clazz , Whitebox . getMethods ( clazz , methodNames ) ) ; |
public class ExecutionTraceInspections { /** * Utility methods . */
private static boolean hasRequestedEvents ( BProgramSyncSnapshot bpss ) { } } | return bpss . getBThreadSnapshots ( ) . stream ( ) . anyMatch ( btss -> ( ! btss . getSyncStatement ( ) . getRequest ( ) . isEmpty ( ) ) ) ; |
public class ComponentLister { /** * Lists all component ' s names and counts the number of instances which have the same names .
* @ return an array of Strings that have the following format : component _ name ( number of instance : X ) */
@ Override String [ ] executeCommand ( int timeout , String componentName , O... | mComponentsMap = new HashMap < > ( ) ; Window [ ] displayableWindows = getDisplayableWindows ( ) ; for ( Window window : displayableWindows ) { if ( window . getName ( ) != null ) { addToMap ( window ) ; } browseComponent ( window . getComponents ( ) ) ; } ArrayList < String > list = new ArrayList < > ( ) ; for ( Strin... |
public class CompilerExecutor { /** * We can ' t access the { @ link org . apache . maven . plugin . compiler . CompilationFailureException } directly ,
* because the mojo is loaded in another classloader . So , we have to use this method to retrieve the ' compilation
* failures ' .
* @ param mojo the mojo
* @ ... | try { return ( String ) exception . getClass ( ) . getMethod ( "getLongMessage" ) . invoke ( exception ) ; } catch ( IllegalAccessException | InvocationTargetException | NoSuchMethodException e ) { mojo . getLog ( ) . error ( "Cannot extract the long message from the Compilation Failure Exception " + exception , e ) ; ... |
public class EJSDeployedSupport { /** * d395666 - added entire method . */
protected Boolean getApplicationExceptionRollback ( Throwable t ) { } } | Boolean rollback ; if ( ivIgnoreApplicationExceptions ) { rollback = null ; } else { ComponentMetaData cmd = getComponentMetaData ( ) ; EJBModuleMetaDataImpl mmd = ( EJBModuleMetaDataImpl ) cmd . getModuleMetaData ( ) ; rollback = mmd . getApplicationExceptionRollback ( t ) ; } return rollback ; |
public class SVGAndroidRenderer { /** * Fill a path with a pattern by setting the path as a clip path and
* drawing the pattern element as a repeating tile inside it . */
private void fillWithPattern ( SvgElement obj , Path path , Pattern pattern ) { } } | boolean patternUnitsAreUser = ( pattern . patternUnitsAreUser != null && pattern . patternUnitsAreUser ) ; float x , y , w , h ; float originX , originY ; if ( pattern . href != null ) fillInChainedPatternFields ( pattern , pattern . href ) ; if ( patternUnitsAreUser ) { x = ( pattern . x != null ) ? pattern . x . floa... |
public class ResultIterator { /** * Sets the relation entities .
* @ param enhanceEntity
* the enhance entity
* @ param client
* the client
* @ param m
* the m
* @ return the e */
private E setRelationEntities ( Object enhanceEntity , Client client , EntityMetadata m ) { } } | E result = null ; if ( enhanceEntity != null ) { if ( ! ( enhanceEntity instanceof EnhanceEntity ) ) { enhanceEntity = new EnhanceEntity ( enhanceEntity , PropertyAccessorHelper . getId ( enhanceEntity , m ) , null ) ; } EnhanceEntity ee = ( EnhanceEntity ) enhanceEntity ; result = ( E ) client . getReader ( ) . recurs... |
public class IDGenerator { /** * Choose a MAC address from one of this machine ' s NICs or a random value . */
private static byte [ ] chooseMACAddress ( ) { } } | byte [ ] result = new byte [ 6 ] ; boolean bFound = false ; try { Enumeration < NetworkInterface > ifaces = NetworkInterface . getNetworkInterfaces ( ) ; while ( ! bFound && ifaces . hasMoreElements ( ) ) { // Look for a real NIC .
NetworkInterface iface = ifaces . nextElement ( ) ; try { byte [ ] hwAddress = iface . g... |
public class ListNamespacesRequest { /** * A complex type that contains specifications for the namespaces that you want to list .
* If you specify more than one filter , a namespace must match all filters to be returned by
* < code > ListNamespaces < / code > .
* @ param filters
* A complex type that contains s... | if ( filters == null ) { this . filters = null ; return ; } this . filters = new java . util . ArrayList < NamespaceFilter > ( filters ) ; |
public class Shape { /** * Get a single point in this polygon
* @ param index The index of the point to retrieve
* @ return The point ' s coordinates */
public float [ ] getPoint ( int index ) { } } | checkPoints ( ) ; float result [ ] = new float [ 2 ] ; result [ 0 ] = points [ index * 2 ] ; result [ 1 ] = points [ index * 2 + 1 ] ; return result ; |
public class AopProxyWriter { /** * Finalizes the proxy . This method should be called before writing the proxy to disk with { @ link # writeTo ( File ) } */
@ Override public void visitBeanDefinitionEnd ( ) { } } | if ( constructorArgumentTypes == null ) { throw new IllegalStateException ( "The method visitBeanDefinitionConstructor(..) should be called at least once" ) ; } Type [ ] interceptorTypes = getObjectTypes ( this . interceptorTypes ) ; this . constructArgumentMetadata = new LinkedHashMap < > ( this . constructArgumentMet... |
public class DscConfigurationsInner { /** * Retrieve a list of configurations .
* @ param resourceGroupName Name of an Azure Resource group .
* @ param automationAccountName The name of the automation account .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observabl... | return listByAutomationAccountWithServiceResponseAsync ( resourceGroupName , automationAccountName ) . map ( new Func1 < ServiceResponse < Page < DscConfigurationInner > > , Page < DscConfigurationInner > > ( ) { @ Override public Page < DscConfigurationInner > call ( ServiceResponse < Page < DscConfigurationInner > > ... |
public class ResourceAssignment { /** * Maps a field index to an AssignmentField instance .
* @ param fields array of fields used as the basis for the mapping .
* @ param index required field index
* @ return AssignmnetField instance */
private AssignmentField selectField ( AssignmentField [ ] fields , int index ... | if ( index < 1 || index > fields . length ) { throw new IllegalArgumentException ( index + " is not a valid field index" ) ; } return ( fields [ index - 1 ] ) ; |
public class CoNLLSentence { /** * 获取包含根节点在内的单词数组
* @ return */
public CoNLLWord [ ] getWordArrayWithRoot ( ) { } } | CoNLLWord [ ] wordArray = new CoNLLWord [ word . length + 1 ] ; wordArray [ 0 ] = CoNLLWord . ROOT ; System . arraycopy ( word , 0 , wordArray , 1 , word . length ) ; return wordArray ; |
public class MultipleFilesOutput { /** * Open a new stream of the given name
* @ param name file name ( which will be appended to the base name )
* @ return stream object for the given name
* @ throws IOException */
private PrintStream newStream ( String name ) throws IOException { } } | if ( LOG . isDebuggingFiner ( ) ) { LOG . debugFiner ( "Requested stream: " + name ) ; } // Ensure the directory exists :
if ( ! basename . exists ( ) ) { basename . mkdirs ( ) ; } String fn = basename . getAbsolutePath ( ) + File . separator + name + EXTENSION ; fn = usegzip ? fn + GZIP_EXTENSION : fn ; OutputStream o... |
public class ModelUtils { /** * Returns whether { @ code type } overrides method { @ code methodName ( params ) } . */
public static boolean overrides ( TypeElement type , Types types , String methodName , TypeMirror ... params ) { } } | return override ( type , types , methodName , params ) . isPresent ( ) ; |
public class Schema { /** * Load individual ColumnFamily Definition to the schema
* ( to make ColumnFamily lookup faster )
* @ param cfm The ColumnFamily definition to load */
public void load ( CFMetaData cfm ) { } } | Pair < String , String > key = Pair . create ( cfm . ksName , cfm . cfName ) ; if ( cfIdMap . containsKey ( key ) ) throw new RuntimeException ( String . format ( "Attempting to load already loaded column family %s.%s" , cfm . ksName , cfm . cfName ) ) ; logger . debug ( "Adding {} to cfIdMap" , cfm ) ; cfIdMap . put (... |
public class TransliteratorRegistry { /** * Register an entry object ( adopted ) with the given ID , source ,
* target , and variant strings . */
private void registerEntry ( String ID , String source , String target , String variant , Object entry , boolean visible ) { } } | CaseInsensitiveString ciID = new CaseInsensitiveString ( ID ) ; Object [ ] arrayOfObj ; // Store the entry within an array so it can be modified later
if ( entry instanceof Object [ ] ) { arrayOfObj = ( Object [ ] ) entry ; } else { arrayOfObj = new Object [ ] { entry } ; } registry . put ( ciID , arrayOfObj ) ; if ( v... |
public class DataArchiver { /** * Add the given file to the data archive
* @ param file
* File to add
* @ throws IOException */
public void collect ( Path file ) throws IOException { } } | Path targetPath = tempDir . resolve ( projectRoot . relativize ( file ) ) ; Files . createDirectories ( targetPath . getParent ( ) ) ; Files . copy ( file , targetPath ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcStyledRepresentation ( ) { } } | if ( ifcStyledRepresentationEClass == null ) { ifcStyledRepresentationEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 571 ) ; } return ifcStyledRepresentationEClass ; |
public class NonBlockingStack { /** * Replaces the top element in the stack . This is a shortcut for
* < code > pop ( ) ; push ( aItem ) ; < / code >
* @ param aItem
* the item to be pushed onto this stack .
* @ return the < code > aItem < / code > argument .
* @ throws EmptyStackException
* if the stack is... | if ( isEmpty ( ) ) throw new EmptyStackException ( ) ; setLast ( aItem ) ; return aItem ; |
public class CommerceAddressRestrictionPersistenceImpl { /** * Returns the commerce address restriction where classNameId = & # 63 ; and classPK = & # 63 ; and commerceCountryId = & # 63 ; or returns < code > null < / code > if it could not be found , optionally using the finder cache .
* @ param classNameId the clas... | Object [ ] finderArgs = new Object [ ] { classNameId , classPK , commerceCountryId } ; Object result = null ; if ( retrieveFromCache ) { result = finderCache . getResult ( FINDER_PATH_FETCH_BY_C_C_C , finderArgs , this ) ; } if ( result instanceof CommerceAddressRestriction ) { CommerceAddressRestriction commerceAddres... |
public class GenericFilter { /** * If request is filtered , returns true , otherwise marks request as filtered
* and returns false .
* A return value of false , indicates that the filter has not yet run .
* A return value of true , indicates that the filter has run for this
* request , and processing should not... | // If request already filtered , return true ( skip )
if ( pRequest . getAttribute ( attribRunOnce ) == ATTRIB_RUN_ONCE_VALUE ) { return true ; } // Set attribute and return false ( continue )
pRequest . setAttribute ( attribRunOnce , ATTRIB_RUN_ONCE_VALUE ) ; return false ; |
public class NotificationConfigurationMarshaller { /** * Marshall the given parameter object . */
public void marshall ( NotificationConfiguration notificationConfiguration , ProtocolMarshaller protocolMarshaller ) { } } | if ( notificationConfiguration == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( notificationConfiguration . getTopicArn ( ) , TOPICARN_BINDING ) ; protocolMarshaller . marshall ( notificationConfiguration . getTopicStatus ( ) , TOPICSTATUS... |
public class ActivePoint { /** * Resizes the active length in the case where we are sitting on a terminal .
* @ return true if reset occurs false otherwise . */
private boolean resetActivePointToTerminal ( ) { } } | if ( activeEdge != null && activeEdge . getLength ( ) == activeLength && activeEdge . isTerminating ( ) ) { activeNode = activeEdge . getTerminal ( ) ; activeEdge = null ; activeLength = 0 ; return true ; } return false ; |
public class DiffBase { /** * Rehydrate the text in a diff from a string of line hashes to real lines of
* text .
* @ param diffs LinkedList of DiffBase objects .
* @ param lineArray List of unique strings . */
void charsToLines ( LinkedList < Change > diffs , List < String > lineArray ) { } } | StringBuilder text ; for ( Change diff : diffs ) { text = new StringBuilder ( ) ; for ( int y = 0 ; y < diff . text . length ( ) ; y ++ ) { text . append ( lineArray . get ( diff . text . charAt ( y ) ) ) ; } diff . text = text . toString ( ) ; } |
public class WebService { /** * method to calculate from a non - ambiguous HELM input the molecular formula
* @ param notation
* HELM input
* @ return molecular formula from the HELM input
* @ throws ValidationException
* if the HELM input is not valid
* @ throws BuilderMoleculeException
* if the molecule... | String result = MoleculePropertyCalculator . getMolecularFormular ( validate ( notation ) ) ; setMonomerFactoryToDefault ( notation ) ; return result ; |
public class CreateBackupRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateBackupRequest createBackupRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createBackupRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createBackupRequest . getServerName ( ) , SERVERNAME_BINDING ) ; protocolMarshaller . marshall ( createBackupRequest . getDescription ( ) , DESCRIPTION_BINDING ) ; }... |
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public BDDReserved2 createBDDReserved2FromString ( EDataType eDataType , String initialValue ) { } } | BDDReserved2 result = BDDReserved2 . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ; |
public class FeatureLinkingCandidate { /** * Returns the actual arguments of the expression . These do not include the
* receiver . */
@ Override protected List < XExpression > getArguments ( ) { } } | List < XExpression > syntacticArguments = getSyntacticArguments ( ) ; XExpression firstArgument = getFirstArgument ( ) ; if ( firstArgument != null ) { return createArgumentList ( firstArgument , syntacticArguments ) ; } return syntacticArguments ; |
public class LookupProcessor { /** * < p > Konstruiert eine neue Instanz mit Hilfe einer { @ code Map } . < / p >
* @ param element element to be formatted
* @ param resources text resources
* @ throws IllegalArgumentException if there not enough text resources to match all values of an enum element type */
stati... | Map < V , String > map ; Class < V > keyType = element . getType ( ) ; if ( keyType . isEnum ( ) ) { if ( resources . size ( ) < keyType . getEnumConstants ( ) . length ) { throw new IllegalArgumentException ( "Not enough text resources defined for enum: " + keyType . getName ( ) ) ; } map = createMap ( keyType ) ; } e... |
public class ServerOperations { /** * Creates a remove operation .
* @ param address the address for the operation
* @ param recursive { @ code true } if the remove should be recursive , otherwise { @ code false }
* @ return the operation */
public static ModelNode createRemoveOperation ( final ModelNode address ... | final ModelNode op = createRemoveOperation ( address ) ; op . get ( RECURSIVE ) . set ( recursive ) ; return op ; |
public class Company { /** * Gets the settings value for this Company .
* @ return settings * Specifies the default billing settings of this { @ code Company } .
* This attribute is optional . */
public com . google . api . ads . admanager . axis . v201902 . CompanySettings getSettings ( ) { } } | return settings ; |
public class AbstractParentCommandNode { /** * Returns the template ' s last child node that matches the given condition . */
@ Nullable public SoyNode lastChildThatMatches ( Predicate < SoyNode > condition ) { } } | int lastChildIndex = numChildren ( ) - 1 ; while ( lastChildIndex >= 0 && ! condition . test ( getChild ( lastChildIndex ) ) ) { lastChildIndex -- ; } if ( lastChildIndex >= 0 ) { return getChild ( lastChildIndex ) ; } return null ; |
public class ForwardRule { /** * Returns a new instance of ForwardRule .
* @ param transletName the translet name
* @ return an instance of ForwardRule
* @ throws IllegalRuleException if an illegal rule is found */
public static ForwardRule newInstance ( String transletName ) throws IllegalRuleException { } } | if ( transletName == null ) { throw new IllegalRuleException ( "transletName must not be null" ) ; } ForwardRule fr = new ForwardRule ( ) ; fr . setTransletName ( transletName ) ; return fr ; |
public class VisualStudioNETProjectWriter { /** * Get value of AdditionalIncludeDirectories property .
* @ param compilerConfig
* compiler configuration .
* @ param baseDir
* base for relative paths .
* @ return value of AdditionalIncludeDirectories property . */
private String getAdditionalIncludeDirectories... | final File [ ] includePath = compilerConfig . getIncludePath ( ) ; final StringBuffer includeDirs = new StringBuffer ( ) ; // Darren Sargent Feb 10 2010 - - reverted to older code to ensure sys
// includes get , erm , included
final String [ ] args = compilerConfig . getPreArguments ( ) ; for ( final String arg : args ... |
public class ExcelUtils { /** * 无模板 、 无注解的数据 ( 形如 { @ code List [ ? ] } 、 { @ code List [ List [ ? ] ] } 、 { @ code List [ Object [ ] ] } ) 导出
* @ param data 待导出数据
* @ param header 设置表头信息
* @ param sheetName 指定导出Excel的sheet名称
* @ param isXSSF 导出的Excel是否为Excel2007及以上版本 ( 默认是 )
* @ param os 生成的Excel待输出数据流
* @... | try ( Workbook workbook = exportExcelBySimpleHandler ( data , header , sheetName , isXSSF ) ) { workbook . write ( os ) ; } |
public class ProcessExecutorImpl { /** * Cancels a single process instance .
* It cancels all active transition instances , all event wait instances ,
* and sets the process instance into canceled status .
* The method does not cancel task instances
* @ param pProcessInst
* @ return new WorkInstance */
privat... | edao . cancelTransitionInstances ( pProcessInst . getId ( ) , "ProcessInstance has been cancelled." , null ) ; edao . setProcessInstanceStatus ( pProcessInst . getId ( ) , WorkStatus . STATUS_CANCELLED ) ; edao . removeEventWaitForProcessInstance ( pProcessInst . getId ( ) ) ; this . cancelTasksOfProcessInstance ( pPro... |
public class DecimalFormat { /** * < strong > [ icu ] < / strong > Returns the MathContext used by this format .
* @ return desired MathContext
* @ see # getMathContext */
public java . math . MathContext getMathContext ( ) { } } | try { // don ' t allow multiple references
return mathContext == null ? null : new java . math . MathContext ( mathContext . getDigits ( ) , java . math . RoundingMode . valueOf ( mathContext . getRoundingMode ( ) ) ) ; } catch ( Exception foo ) { return null ; // should never happen
} |
public class TimedMap { /** * This method is NOT supported and always throws UnsupportedOperationException
* @ see Map # entrySet ( ) */
public Set < Map . Entry < K , V > > entrySet ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && _tc . isEntryEnabled ( ) ) SibTr . entry ( this , _tc , "entrySet" ) ; UnsupportedOperationException uoe = new UnsupportedOperationException ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && _tc . isEntryEnabled ( ) ) SibTr . exit ( this , _tc , "entrySet" , uoe ) ;... |
public class Request { /** * Executes requests that have already been serialized into an HttpURLConnection . No validation is done that the
* contents of the connection actually reflect the serialized requests , so it is the caller ' s responsibility to
* ensure that it will correctly generate the desired responses... | return executeConnectionAndWait ( connection , new RequestBatch ( requests ) ) ; |
public class BaseBundleActivator { /** * Get the ( persistent ) configuration dictionary from the service manager .
* Note : Properties are stored under the activator ' s package name .
* @ return The properties */
@ SuppressWarnings ( "unchecked" ) public Dictionary < String , String > getConfigurationProperties (... | if ( returnCopy ) dictionary = putAll ( dictionary , null ) ; if ( dictionary == null ) dictionary = new Hashtable < String , String > ( ) ; try { String servicePid = this . getServicePid ( ) ; if ( servicePid != null ) { ServiceReference caRef = context . getServiceReference ( ConfigurationAdmin . class . getName ( ) ... |
public class Crypto { /** * Decrypt text using private key
* @ param text The encrypted text
* @ param key The private key
* @ return The unencrypted text
* @ throws MangooEncryptionException if decryption fails */
public byte [ ] decrypt ( byte [ ] text , PrivateKey key ) throws MangooEncryptionException { } } | Objects . requireNonNull ( text , Required . ENCRYPTED_TEXT . toString ( ) ) ; Objects . requireNonNull ( text , Required . PRIVATE_KEY . toString ( ) ) ; byte [ ] decrypt = null ; try { Cipher cipher = Cipher . getInstance ( ENCRYPTION ) ; cipher . init ( Cipher . DECRYPT_MODE , key ) ; decrypt = cipher . doFinal ( te... |
public class ZeroFile { /** * Zeroes the provided random access file , only writing blocks that contain non - zero .
* Reads at the maximum provided bpsIn blocks per second .
* Writes at the maximum provided bpsOut blocks per second .
* Returns the number of bytes written . */
public static long zeroFile ( int bp... | // Initialize bitset
final long len = raf . length ( ) ; final int blocks ; { long blocksLong = len / BLOCK_SIZE ; if ( ( len & ( BLOCK_SIZE - 1 ) ) != 0 ) blocksLong ++ ; if ( blocksLong > Integer . MAX_VALUE ) throw new IOException ( "File too large: " + len ) ; blocks = ( int ) blocksLong ; } BitSet dirtyBlocks = ne... |
public class Collections { /** * Filter a { @ link List } using { @ link Filter } s and return a new { @ link List } .
* { @ link Filter } s are applied in given order on each element from source collection . < br / >
* The returned collection contain all the source elements accepted by at least one { @ link Filter... | if ( Arrays . isEmpty ( filters ) ) { return new ArrayList < T > ( list ) ; } return filterToList ( list , filters ) ; |
public class BitVector { /** * NOTE : uncertain future */
long [ ] toLongArray ( ) { } } | // create array through an aligned copy
BitVector copy = alignedCopy ( ) ; long [ ] longs = copy . bits ; int length = longs . length ; if ( length == 0 ) return longs ; // reverse the array
for ( int i = 0 , mid = length >> 1 , j = length - 1 ; i < mid ; i ++ , j -- ) { long t = longs [ i ] ; longs [ i ] = longs [ j ]... |
public class AbstractSqlFluent { /** * { @ inheritDoc }
* @ see jp . co . future . uroborosql . fluent . SqlFluent # sqlId ( String ) */
@ SuppressWarnings ( "unchecked" ) @ Override public T sqlId ( final String sqlId ) { } } | context ( ) . setSqlId ( sqlId ) ; return ( T ) this ; |
public class SharedPreferenceUtils { /** * Extract number from string , failsafe . If the string is not a proper number it will always return 0l ;
* @ param string
* : String that should be converted into a number
* @ return : 0l if conversion to number is failed anyhow , otherwise converted number is returned */... | long number = 0l ; try { if ( ! isEmptyString ( string ) ) { if ( TextUtils . isDigitsOnly ( string ) ) { number = Long . parseLong ( string . toString ( ) ) ; } } } catch ( NumberFormatException e ) { e . printStackTrace ( ) ; } return number ; |
public class CSSReaderDeclarationList { /** * Read the CSS from the passed { @ link Reader } .
* @ param aReader
* The reader to use . Will be closed automatically after reading -
* independent of success or error . May not be < code > null < / code > .
* @ param eVersion
* The CSS version to use . May not be... | return readFromReader ( aReader , new CSSReaderSettings ( ) . setCSSVersion ( eVersion ) . setCustomErrorHandler ( aCustomErrorHandler ) . setCustomExceptionHandler ( aCustomExceptionHandler ) ) ; |
public class RaygunClient { /** * Attaches a pre - built Raygun exception handler to the thread ' s DefaultUncaughtExceptionHandler .
* This automatically sends any exceptions that reaches it to the Raygun API .
* @ param tags A list of tags that relate to the calling application ' s currently build or state .
* ... | UncaughtExceptionHandler oldHandler = Thread . getDefaultUncaughtExceptionHandler ( ) ; if ( ! ( oldHandler instanceof RaygunUncaughtExceptionHandler ) ) { RaygunClient . handler = new RaygunUncaughtExceptionHandler ( oldHandler , tags , userCustomData ) ; Thread . setDefaultUncaughtExceptionHandler ( RaygunClient . ha... |
public class CommerceOrderPaymentUtil { /** * Returns the commerce order payment with the primary key or throws a { @ link NoSuchOrderPaymentException } if it could not be found .
* @ param commerceOrderPaymentId the primary key of the commerce order payment
* @ return the commerce order payment
* @ throws NoSuch... | return getPersistence ( ) . findByPrimaryKey ( commerceOrderPaymentId ) ; |
public class NodeCache { /** * Return the cache listenable
* @ return listenable */
public ListenerContainer < NodeCacheListener > getListenable ( ) { } } | Preconditions . checkState ( state . get ( ) != State . CLOSED , "Closed" ) ; return listeners ; |
public class ISUPMessageFactoryImpl { /** * ( non - Javadoc )
* @ see org . restcomm . protocols . ss7 . isup . ISUPMessageFactory # createCIM ( int cic ) */
public ChargeInformationMessage createCIM ( int cic ) { } } | ChargeInformationMessage msg = createCIM ( ) ; CircuitIdentificationCode code = this . parameterFactory . createCircuitIdentificationCode ( ) ; code . setCIC ( cic ) ; msg . setCircuitIdentificationCode ( code ) ; return msg ; |
public class RowOutputBinary { /** * Calculate the size of byte array required to store a row .
* @ param row - a database row
* @ return size of byte array
* @ exception HsqlException When data is inconsistent */
public int getSize ( Row row ) { } } | Object [ ] data = row . getData ( ) ; Type [ ] types = row . getTable ( ) . getColumnTypes ( ) ; int cols = row . getTable ( ) . getDataColumnCount ( ) ; return INT_STORE_SIZE + getSize ( data , cols , types ) ; |
public class DescribeDomainControllersRequest { /** * A list of identifiers for the domain controllers whose information will be provided .
* @ param domainControllerIds
* A list of identifiers for the domain controllers whose information will be provided . */
public void setDomainControllerIds ( java . util . Coll... | if ( domainControllerIds == null ) { this . domainControllerIds = null ; return ; } this . domainControllerIds = new com . amazonaws . internal . SdkInternalList < String > ( domainControllerIds ) ; |
public class BuildPlatform { /** * Check the configurations and mark one as primary .
* @ throws MojoExecutionException if duplicate configuration names are found */
public void identifyPrimaryConfiguration ( ) throws MojoExecutionException { } } | Set < String > configurationNames = new HashSet < String > ( ) ; for ( BuildConfiguration configuration : configurations ) { if ( configurationNames . contains ( configuration . getName ( ) ) ) { throw new MojoExecutionException ( "Duplicate configuration '" + configuration . getName ( ) + "' for '" + getName ( ) + "',... |
public class CmsAutoSetup { /** * Main program entry point when started via the command line . < p >
* @ param args parameters passed to the application via the command line */
public static void main ( String [ ] args ) { } } | System . out . println ( ) ; System . out . println ( HR ) ; System . out . println ( "OpenCms setup started at: " + new Date ( System . currentTimeMillis ( ) ) ) ; System . out . println ( HR ) ; System . out . println ( ) ; String path = null ; boolean setupDBOnly = false ; if ( ( args . length > 0 ) && ( args [ 0 ] ... |
public class BeaconService { /** * methods for clients */
@ MainThread public void startRangingBeaconsInRegion ( Region region , Callback callback ) { } } | synchronized ( mScanHelper . getRangedRegionState ( ) ) { if ( mScanHelper . getRangedRegionState ( ) . containsKey ( region ) ) { LogManager . i ( TAG , "Already ranging that region -- will replace existing region." ) ; mScanHelper . getRangedRegionState ( ) . remove ( region ) ; // need to remove it , otherwise the o... |
public class InstanceInformationFilter { /** * The filter values .
* @ return The filter values . */
public java . util . List < String > getValueSet ( ) { } } | if ( valueSet == null ) { valueSet = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return valueSet ; |
public class CmsContentEditorHandler { /** * Opens the XML content editor . < p >
* @ param element the container element widget
* @ param inline < code > true < / code > to open the in - line editor for the given element if available
* @ param wasNew < code > true < / code > in case this is a newly created eleme... | if ( ! inline && element . hasEditHandler ( ) ) { m_handler . m_controller . getEditOptions ( element . getId ( ) , false , new I_CmsSimpleCallback < CmsDialogOptionsAndInfo > ( ) { public void execute ( CmsDialogOptionsAndInfo editOptions ) { final I_CmsSimpleCallback < CmsUUID > editCallBack = new I_CmsSimpleCallback... |
public class AppServicePlansInner { /** * Update a Virtual Network gateway .
* Update a Virtual Network gateway .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param name Name of the App Service plan .
* @ param vnetName Name of the Virtual Network .
* @ param gate... | return updateVnetGatewayWithServiceResponseAsync ( resourceGroupName , name , vnetName , gatewayName , connectionEnvelope ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class MiniBenchmark { /** * Prints the usage . */
private static void usage ( ) { } } | new HelpFormatter ( ) . printHelp ( String . format ( "java -cp %s %s -type <[READ, WRITE]> -fileSize <fileSize> -iterations <iterations> " + "-concurrency <concurrency>" , RuntimeConstants . ALLUXIO_JAR , MiniBenchmark . class . getCanonicalName ( ) ) , "run a mini benchmark to write or read a file" , OPTIONS , "" , t... |
public class BigDecimal { /** * Compares this { @ code BigDecimal } with the specified
* { @ code BigDecimal } . Two { @ code BigDecimal } objects that are
* equal in value but have a different scale ( like 2.0 and 2.00)
* are considered equal by this method . This method is provided
* in preference to individu... | // Quick path for equal scale and non - inflated case .
if ( scale == val . scale ) { long xs = intCompact ; long ys = val . intCompact ; if ( xs != INFLATED && ys != INFLATED ) return xs != ys ? ( ( xs > ys ) ? 1 : - 1 ) : 0 ; } int xsign = this . signum ( ) ; int ysign = val . signum ( ) ; if ( xsign != ysign ) retur... |
public class PoBoxBuilder { /** * { @ inheritDoc } */
@ Override public PoBox buildObject ( String namespaceURI , String localName , String namespacePrefix ) { } } | return new PoBoxImpl ( namespaceURI , localName , namespacePrefix ) ; |
public class RestrictionValidator { /** * Validates the number of fraction digits present in the { @ code value } received .
* @ param fractionDigits The allowed number of fraction digits .
* @ param value The { @ link Double } to be validated . */
public static void validateFractionDigits ( int fractionDigits , do... | if ( value != ( ( int ) value ) ) { String doubleValue = String . valueOf ( value ) ; int numberOfFractionDigits = doubleValue . substring ( doubleValue . indexOf ( ',' ) ) . length ( ) ; if ( numberOfFractionDigits > fractionDigits ) { throw new RestrictionViolationException ( "Violation of fractionDigits restriction,... |
public class Handler { /** * Returns the instance of the next handler , rather then calling handleRequest
* on it .
* @ param httpServerExchange
* The current requests server exchange .
* @ return The HttpHandler that should be executed next . */
public static HttpHandler getNext ( HttpServerExchange httpServer... | String chainId = httpServerExchange . getAttachment ( CHAIN_ID ) ; List < HttpHandler > handlersForId = handlerListById . get ( chainId ) ; Integer nextIndex = httpServerExchange . getAttachment ( CHAIN_SEQ ) ; // Check if we ' ve reached the end of the chain .
if ( nextIndex < handlersForId . size ( ) ) { httpServerEx... |
public class SignalFxNamingConvention { /** * Dimension value can be any non - empty UTF - 8 string , with a maximum length < = 256 characters . */
@ Override public String tagValue ( String value ) { } } | String formattedValue = StringEscapeUtils . escapeJson ( delegate . tagValue ( value ) ) ; return StringUtils . truncate ( formattedValue , TAG_VALUE_MAX_LENGTH ) ; |
public class GammaDistribution { /** * Compute the Psi / Digamma function
* Reference :
* J . M . Bernando < br >
* Algorithm AS 103 : Psi ( Digamma ) Function < br >
* Statistical Algorithms
* TODO : is there a more accurate version maybe in R ?
* @ param x Position
* @ return digamma value */
@ Referenc... | if ( ! ( x > 0 ) ) { return Double . NaN ; } // Method of equation 5:
if ( x <= 1e-5 ) { return - EULERS_CONST - 1. / x ; } // Method of equation 4:
else if ( x > 49. ) { final double ix2 = 1. / ( x * x ) ; // Partial series expansion
return FastMath . log ( x ) - 0.5 / x - ix2 * ( ( 1.0 / 12. ) + ix2 * ( 1.0 / 120. - ... |
public class OffsetDateTimeRangeRandomizer { /** * Create a new { @ link OffsetDateTimeRangeRandomizer } .
* @ param min min value
* @ param max max value
* @ param seed initial seed
* @ return a new { @ link OffsetDateTimeRangeRandomizer } . */
public static OffsetDateTimeRangeRandomizer aNewOffsetDateTimeRang... | return new OffsetDateTimeRangeRandomizer ( min , max , seed ) ; |
public class KeyVaultClientBaseImpl { /** * Sets a secret in a specified key vault .
* The SET operation adds a secret to the Azure Key Vault . If the named secret already exists , Azure Key Vault creates a new version of that secret . This operation requires the secrets / set permission .
* @ param vaultBaseUrl Th... | return setSecretWithServiceResponseAsync ( vaultBaseUrl , secretName , value ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class RemoteRepositoryCache { /** * gets number of records in the result based on the information available in this cache .
* @ return sum of sizes recorded in start and end arrays */
public int getSize ( ) { } } | if ( size < 0 ) { size = 0 ; for ( byte [ ] cache : start ) { size += new RemoteOneFileCache ( cache ) . getSize ( ) ; } for ( byte [ ] cache : end ) { size += new RemoteOneFileCache ( cache ) . getSize ( ) ; } } return size ; |
public class Configs { /** * < p > Add self define configs file . < / p >
* Can use self configs path or self class extends { @ link OneProperties } .
* @ param configAbsoluteClassPath self configs absolute class path .
* This path also is a config file key string .
* Can ' t be null , if null add nothing .
*... | if ( configAbsoluteClassPath == null ) { return ; } if ( configsObj == null ) { OneProperties configs = otherConfigs . get ( configAbsoluteClassPath ) ; if ( configs == null ) { configsObj = new OneProperties ( ) ; } else { configsObj = configs ; } } configsObj . initConfigs ( configAbsoluteClassPath ) ; otherConfigs .... |
public class CreateCustomActionTypeRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateCustomActionTypeRequest createCustomActionTypeRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createCustomActionTypeRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createCustomActionTypeRequest . getCategory ( ) , CATEGORY_BINDING ) ; protocolMarshaller . marshall ( createCustomActionTypeRequest . getProvider ( ) , PR... |
public class XmlParser { /** * Report a serious error .
* @ param message
* The error message .
* @ param textFound
* The text that caused the error ( or null ) . */
private void fatal ( String message , char textFound , String textExpected ) throws SAXException { } } | fatal ( message , Character . valueOf ( textFound ) . toString ( ) , textExpected ) ; |
public class AbstractConnectionManager { /** * { @ inheritDoc } */
public synchronized void shutdown ( ) { } } | shutdown . set ( true ) ; if ( pool != null ) pool . shutdown ( ) ; if ( scheduledExecutorService != null ) { if ( scheduledGraceful != null && ! scheduledGraceful . isDone ( ) ) scheduledGraceful . cancel ( true ) ; scheduledGraceful = null ; scheduledExecutorService . shutdownNow ( ) ; scheduledExecutorService = null... |
public class BoxFolder { /** * Creates metadata on this folder using a specified template .
* @ param templateName the name of the metadata template .
* @ param metadata the new metadata values .
* @ return the metadata returned from the server . */
public Metadata createMetadata ( String templateName , Metadata ... | String scope = Metadata . scopeBasedOnType ( templateName ) ; return this . createMetadata ( templateName , scope , metadata ) ; |
public class BasePageShowChildrenRenderer { /** * Called before a menu item is rendered .
* @ param aWPEC
* Web page execution context . May not be < code > null < / code > .
* @ param aMenuObj
* The menu object about to be rendered . Never < code > null < / code > .
* @ param aPreviousLI
* The previous ele... | if ( aMenuObj . getMenuObjectType ( ) == EMenuObjectType . SEPARATOR && aPreviousLI != null ) aPreviousLI . addStyle ( CCSSProperties . MARGIN_BOTTOM . newValue ( "1em" ) ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.