signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class DefiniteAssignmentCheck { /** * Check that all variables used in a given list of statements are
* definitely assigned . Furthermore , update the set of definitely assigned
* variables to include any which are definitely assigned at the end of
* these statements .
* @ param block
* The list of sta... | DefinitelyAssignedSet nextEnvironment = environment ; DefinitelyAssignedSet breakEnvironment = null ; for ( int i = 0 ; i != block . size ( ) ; ++ i ) { Stmt s = block . get ( i ) ; ControlFlow nf = visitStatement ( s , nextEnvironment ) ; nextEnvironment = nf . nextEnvironment ; breakEnvironment = join ( breakEnvironm... |
public class CPAttachmentFileEntryPersistenceImpl { /** * Removes the cp attachment file entry where uuid = & # 63 ; and groupId = & # 63 ; from the database .
* @ param uuid the uuid
* @ param groupId the group ID
* @ return the cp attachment file entry that was removed */
@ Override public CPAttachmentFileEntry... | CPAttachmentFileEntry cpAttachmentFileEntry = findByUUID_G ( uuid , groupId ) ; return remove ( cpAttachmentFileEntry ) ; |
public class ReferenceMap { /** * Constructs a reference of the given type to the given
* referent . The reference is registered with the queue
* for later purging .
* @ param type HARD , SOFT or WEAK
* @ param referent the object to refer to
* @ param hash the hash code of the < I > key < / I > of the mappin... | switch ( type ) { case HARD : return referent ; case SOFT : return new SoftRef ( hash , referent , queue ) ; case WEAK : return new WeakRef ( hash , referent , queue ) ; default : throw new Error ( ) ; } |
public class DynamicResourceManager { /** * invoke transpilers during prodmode inlining
* @ param impFi
* @ return */
@ Override public byte [ ] retrieveBytes ( File impFi ) { } } | String fname = impFi . getName ( ) ; int idx = fname . indexOf ( '.' ) ; if ( idx >= 0 ) { String ext = fname . substring ( idx + 1 ) . toLowerCase ( ) ; TranspilerHook transpilerHook = transpilerMap . get ( ext ) ; if ( transpilerHook != null ) { return transpilerHook . transpile ( impFi , this , new HashMap ( ) ) ; }... |
public class CommercePriceListPersistenceImpl { /** * Caches the commerce price list in the entity cache if it is enabled .
* @ param commercePriceList the commerce price list */
@ Override public void cacheResult ( CommercePriceList commercePriceList ) { } } | entityCache . putResult ( CommercePriceListModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListImpl . class , commercePriceList . getPrimaryKey ( ) , commercePriceList ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commercePriceList . getUuid ( ) , commercePriceList . getGroupId ( ) } , co... |
public class ActualPoolInfoArgs { /** * Returns true if field corresponding to fieldID is set ( has been assigned a value ) and false otherwise */
public boolean isSet ( _Fields field ) { } } | if ( field == null ) { throw new IllegalArgumentException ( ) ; } switch ( field ) { case POOL_INFO_STRING : return isSetPoolInfoString ( ) ; case JOB_INPUT_SIZE : return isSetJobInputSize ( ) ; } throw new IllegalStateException ( ) ; |
public class LCSRequestorIDImpl { /** * ( non - Javadoc )
* @ see org . restcomm . protocols . ss7 . map . api . primitives . MAPAsnPrimitive # encodeData
* ( org . mobicents . protocols . asn . AsnOutputStream ) */
public void encodeData ( AsnOutputStream asnOs ) throws MAPException { } } | if ( this . requestorIDString == null ) throw new MAPException ( "nameString must not be null" ) ; try { asnOs . writeOctetString ( Tag . CLASS_CONTEXT_SPECIFIC , _TAG_DATA_CODING_SCHEME , new byte [ ] { ( byte ) this . dataCodingScheme . getCode ( ) } ) ; ( ( USSDStringImpl ) this . requestorIDString ) . encodeAll ( a... |
public class UserGroupGridScreen { /** * Process the command .
* < br / > Step 1 - Process the command if possible and return true if processed .
* < br / > Step 2 - If I can ' t process , pass to all children ( with me as the source ) .
* < br / > Step 3 - If children didn ' t process , pass to parent ( with me ... | if ( strCommand . equalsIgnoreCase ( MenuConstants . FORMDETAIL ) ) return ( this . onForm ( null , ScreenConstants . DETAIL_MODE , true , iCommandOptions , null ) != null ) ; else if ( strCommand . equalsIgnoreCase ( UserGroup . USER_DETAIL ) ) return ( this . onForm ( null , UserGroup . USER_INFO_DETAIL_SCREEN , true... |
public class BeanUtils { /** * 根据给定的多个实例化参数类型和对应数据实例化指定类型的对象 。 Returns a newly allocated instance of the
* class represented by this class use given constructor parameters class
* type and constructor parameters value .
* @ param clazz
* 想要实例化的类型 。 want to create instance class .
* @ param fieldTypes
* 、 构造... | return ClassUtils . instantiateClass ( clazz , getParameterTypes ( fieldTypes ) , getParameterValues ( values ) ) ; |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getSTOIORNTION ( ) { } } | if ( stoiorntionEEnum == null ) { stoiorntionEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 72 ) ; } return stoiorntionEEnum ; |
public class CPOptionUtil { /** * Returns the first cp option in the ordered set where groupId = & # 63 ; .
* @ param groupId the group ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return the first matching cp option
* @ throws NoSuchCPOptionExcep... | return getPersistence ( ) . findByGroupId_First ( groupId , orderByComparator ) ; |
public class ModifyDocumentPermissionRequest { /** * The AWS user accounts that should have access to the document . The account IDs can either be a group of account
* IDs or < i > All < / i > .
* @ param accountIdsToAdd
* The AWS user accounts that should have access to the document . The account IDs can either ... | if ( accountIdsToAdd == null ) { this . accountIdsToAdd = null ; return ; } this . accountIdsToAdd = new com . amazonaws . internal . SdkInternalList < String > ( accountIdsToAdd ) ; |
public class MapField { /** * Returns an immutable empty MapField . */
public static < K , V > MapField < K , V > emptyMapField ( MapEntry < K , V > defaultEntry ) { } } | return new MapField < K , V > ( defaultEntry , StorageMode . MAP , Collections . < K , V > emptyMap ( ) , null ) ; |
public class TypeInference { /** * Traverses a destructuring pattern , and calls { @ code declarer . declareTypeInScope } on each lvalue
* < p > The purpose of the callback is to abstract different logic for declaring lvalues in function
* parameters vs . in regular assignments / declarations .
* @ param declarer... | checkArgument ( pattern . isDestructuringPattern ( ) , pattern ) ; checkNotNull ( patternType ) ; for ( DestructuredTarget target : DestructuredTarget . createAllNonEmptyTargetsInPattern ( registry , patternType , pattern ) ) { // The computed property is always evaluated first .
if ( target . hasComputedProperty ( ) )... |
public class CreateEntities { /** * < p > Reads an entire file from the classpath using UTF - 8 encoding . < / p >
* @ param filename the name of the file in the classpath
* @ return the contents of the file */
private static String readClasspathResource ( String filename ) { } } | InputStream is = CreateEntities . class . getResourceAsStream ( filename ) ; if ( is == null ) { throw new IllegalArgumentException ( "Could not find the given file '" + filename + "' in the classpath." ) ; } return readContents ( is ) ; |
public class LocalDate { /** * Returns a copy of this { @ code LocalDate } with the specified number of years added .
* This method adds the specified amount to the years field in three steps :
* < ol >
* < li > Add the input years to the year field < / li >
* < li > Check if the resulting date would be invalid... | if ( yearsToAdd == 0 ) { return this ; } int newYear = YEAR . checkValidIntValue ( year + yearsToAdd ) ; // safe overflow
return resolvePreviousValid ( newYear , month , day ) ; |
public class NumberFormatterDemo { /** * Format decimal numbers in this locale . */
private static void decimal ( CLDR . Locale locale , String [ ] numbers , DecimalFormatOptions opts ) { } } | for ( String num : numbers ) { BigDecimal n = new BigDecimal ( num ) ; StringBuilder buf = new StringBuilder ( " " ) ; NumberFormatter fmt = CLDR . get ( ) . getNumberFormatter ( locale ) ; fmt . formatDecimal ( n , buf , opts ) ; System . out . println ( buf . toString ( ) ) ; } |
public class ClassWriterImpl { /** * { @ inheritDoc } */
public Content getHeader ( String header ) { } } | String pkgname = ( classDoc . containingPackage ( ) != null ) ? classDoc . containingPackage ( ) . name ( ) : "" ; String clname = classDoc . name ( ) ; HtmlTree bodyTree = getBody ( true , getWindowTitle ( clname ) ) ; HtmlTree htmlTree = ( configuration . allowTag ( HtmlTag . HEADER ) ) ? HtmlTree . HEADER ( ) : body... |
public class JSDocInfo { /** * Returns the interfaces extended by an interface
* @ return An immutable list of JSTypeExpression objects that can
* be resolved to types . */
public List < JSTypeExpression > getExtendedInterfaces ( ) { } } | if ( info == null || info . extendedInterfaces == null ) { return ImmutableList . of ( ) ; } return Collections . unmodifiableList ( info . extendedInterfaces ) ; |
public class IdleConnectionRemover { /** * Register pool for idle connection cleanup
* @ param mcp managed connection pool
* @ param mcpInterval validation interval */
public void registerPool ( ManagedConnectionPool mcp , long mcpInterval ) { } } | try { lock . lock ( ) ; synchronized ( registeredPools ) { registeredPools . put ( new Key ( System . identityHashCode ( mcp ) , System . currentTimeMillis ( ) , mcpInterval ) , mcp ) ; } if ( mcpInterval > 1 && mcpInterval / 2 < interval ) { interval = interval / 2 ; long maybeNext = System . currentTimeMillis ( ) + i... |
public class Connectors { /** * Returns a connector which was registered for the given source name .
* @ param sourceName a { @ code non - null } String ; the name of a source
* @ return either a { @ link Connector } instance or { @ code null } */
public Connector getConnectorForSourceName ( String sourceName ) { }... | assert sourceName != null ; return this . snapshot . get ( ) . getConnectorWithSourceKey ( NodeKey . keyForSourceName ( sourceName ) ) ; |
public class Divider { /** * Sets the visibility of the divider .
* @ param visibility
* The visibility , which should be set , as an { @ link Integer } value . Must be one of
* { @ link # VISIBLE } , { @ link # INVISIBLE } or { @ link # GONE } .
* @ param animate
* True , if the visibility should be changed ... | boolean visible = visibility == View . VISIBLE ; Boolean tag = ( Boolean ) getTag ( ) ; setTag ( visible ) ; if ( animate ) { if ( tag == null || tag != visible ) { if ( getAnimation ( ) != null ) { getAnimation ( ) . cancel ( ) ; } animate ( ) . alpha ( visible ? 1 : 0 ) . setDuration ( getResources ( ) . getInteger (... |
public class DescribeMountTargetSecurityGroupsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeMountTargetSecurityGroupsRequest describeMountTargetSecurityGroupsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeMountTargetSecurityGroupsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeMountTargetSecurityGroupsRequest . getMountTargetId ( ) , MOUNTTARGETID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientExcepti... |
public class StorageDescriptorMarshaller { /** * Marshall the given parameter object . */
public void marshall ( StorageDescriptor storageDescriptor , ProtocolMarshaller protocolMarshaller ) { } } | if ( storageDescriptor == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( storageDescriptor . getColumns ( ) , COLUMNS_BINDING ) ; protocolMarshaller . marshall ( storageDescriptor . getLocation ( ) , LOCATION_BINDING ) ; protocolMarshaller ... |
public class Weld { /** * Registers annotations which will be considered as bean defining annotations .
* NOTE - If used along with { @ code < trim / > } bean archives and / or with Weld configuration key
* { @ code org . jboss . weld . bootstrap . vetoTypesWithoutBeanDefiningAnnotation } , these annotations will b... | for ( Class < ? extends Annotation > annotation : annotations ) { this . extendedBeanDefiningAnnotations . add ( annotation ) ; } return this ; |
public class MockWebServerPlus { /** * Given paths will be parsed to fixtures and added to the queue . Can be multiple */
public List < MockResponse > enqueue ( String ... paths ) { } } | if ( paths == null ) { return null ; } List < MockResponse > mockResponseList = new ArrayList < > ( ) ; for ( String path : paths ) { Fixture fixture = Fixture . parseFrom ( path , parser ) ; MockResponse mockResponse = fixture . toMockResponse ( ) ; mockWebServer . enqueue ( mockResponse ) ; mockResponseList . add ( m... |
public class CssEscape { /** * Perform a CSS Identifier level 1 ( only basic set ) < strong > escape < / strong > operation
* on a < tt > String < / tt > input , writing results to a < tt > Writer < / tt > .
* < em > Level 1 < / em > means this method will only escape the CSS Identifier basic escape set :
* < ul ... | escapeCssIdentifier ( text , writer , CssIdentifierEscapeType . BACKSLASH_ESCAPES_DEFAULT_TO_COMPACT_HEXA , CssIdentifierEscapeLevel . LEVEL_1_BASIC_ESCAPE_SET ) ; |
public class ICPImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setXCSize ( Integer newXCSize ) { } } | Integer oldXCSize = xcSize ; xcSize = newXCSize ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . ICP__XC_SIZE , oldXCSize , xcSize ) ) ; |
public class MalisisGui { /** * Called every frame to handle mouse input . */
@ Override public void handleMouseInput ( ) { } } | try { MOUSE_POSITION . udpate ( this ) ; UIComponent component = getComponentAt ( MOUSE_POSITION . x ( ) , MOUSE_POSITION . y ( ) ) ; int button = Mouse . getEventButton ( ) ; if ( Mouse . getEventButtonState ( ) ) { if ( this . mc . gameSettings . touchscreen && this . touchValue ++ > 0 ) return ; this . eventButton =... |
public class SaslEncryption { /** * Adds channel handlers that perform encryption / decryption of data using SASL .
* @ param channel The channel .
* @ param backend The SASL backend .
* @ param maxOutboundBlockSize Max size in bytes of outgoing encrypted blocks , to control
* memory usage . */
static void addT... | channel . pipeline ( ) . addFirst ( ENCRYPTION_HANDLER_NAME , new EncryptionHandler ( backend , maxOutboundBlockSize ) ) . addFirst ( "saslDecryption" , new DecryptionHandler ( backend ) ) . addFirst ( "saslFrameDecoder" , NettyUtils . createFrameDecoder ( ) ) ; |
public class ParameterMetaData { /** * { @ inheritDoc } */
public String getParameterTypeName ( final int param ) throws SQLException { } } | try { return this . parameters . get ( param - 1 ) . sqlTypeName ; } catch ( NullPointerException e ) { throw new SQLException ( "Parameter is not set: " + param ) ; } catch ( IndexOutOfBoundsException out ) { throw new SQLException ( "Parameter out of bounds: " + param ) ; } // end of catch |
public class CsvToJsonConverterV2 { /** * Convert string value to the expected type */
private JsonElement convertValue ( String value , JsonObject dataType ) { } } | if ( dataType == null || ! dataType . has ( TYPE ) ) { return new JsonPrimitive ( value ) ; } String type = dataType . get ( TYPE ) . getAsString ( ) . toUpperCase ( ) ; ValueType valueType = ValueType . valueOf ( type ) ; return valueType . convert ( value ) ; |
public class RoaringBitmap { /** * Assume that one wants to store " cardinality " integers in [ 0 , universe _ size ) , this function
* returns an upper bound on the serialized size in bytes .
* @ param cardinality maximal cardinality
* @ param universe _ size maximal value
* @ return upper bound on the seriali... | long contnbr = ( universe_size + 65535 ) / 65536 ; if ( contnbr > cardinality ) { contnbr = cardinality ; // we can ' t have more containers than we have values
} final long headermax = Math . max ( 8 , 4 + ( contnbr + 7 ) / 8 ) + 8 * contnbr ; final long valsarray = 2 * cardinality ; final long valsbitmap = contnbr * ... |
public class Hasher { /** * Hash resource at the given URL . */
protected String hashURL ( URL url , String externalForm ) { } } | if ( url == null ) return ERR_HASH ; String hash = path2Hash . get ( externalForm ) ; if ( hash != null ) { return hash ; } if ( mIsSemanticHashing ) { byte [ ] bytes = FileUtil . loadBytes ( url ) ; if ( bytes == null ) return ERR_HASH ; // Remove debug info from classfiles .
bytes = BytecodeCleaner . removeDebugInfo ... |
public class Stream { /** * Creates a new stream that contains elements of the current stream with a given number of them skipped from the beginning .
* @ param count a number items to skip .
* @ return a new stream that contains elements of the current stream with a given number of them skipped from the beginning ... | return new Stream < T > ( ) { @ Override public Iterator < T > iterator ( ) { Iterator < T > iterator = Stream . this . iterator ( ) ; for ( int skip = count ; skip > 0 && iterator . hasNext ( ) ; skip -- ) iterator . next ( ) ; return iterator ; } } ; |
public class ApiVersionUtil { /** * Separates apiGroupVersion for apiGroupName / apiGroupVersion combination .
* @ param apiVersion The apiGroupVersion or apiGroupName / apiGroupVersion combo .
* @ return Just the apiGroupVersion part without the apiGroupName . */
private static String trimVersion ( String apiVersi... | if ( apiVersion != null && apiVersion . contains ( "/" ) ) { String [ ] versionParts = apiVersion . split ( "/" ) ; return versionParts [ versionParts . length - 1 ] ; } return apiVersion ; |
public class CustomFieldsBase { /** * A specific , existing custom field can be deleted by making a DELETE request on the URL for that custom field .
* Returns an empty data record .
* @ param customField Globally unique identifier for the custom field .
* @ return Request object */
public ItemRequest < CustomFie... | String path = String . format ( "/custom_fields/%s" , customField ) ; return new ItemRequest < CustomField > ( this , CustomField . class , path , "DELETE" ) ; |
public class JdbcTemplateCrud { /** * delete the object with the specified key .
* @ param key the key
* @ throws DataAccessException if an error occurs */
public void delete ( final K key ) throws DataAccessException { } } | jdbcTemplate . execute ( new ConnectionCallback < Object > ( ) { @ Override public Object doInConnection ( Connection connection ) throws SQLException , DataAccessException { crud . delete ( connection , key ) ; return null ; } } ) ; |
public class S3AbortableInputStream { /** * { @ inheritDoc } */
@ Override public int read ( ) throws IOException { } } | try { int value = super . read ( ) ; eofReached = value == - 1 ; if ( ! eofReached ) { bytesRead ++ ; } return value ; } catch ( Exception e ) { return onException ( e ) ; } |
public class IterateTablesProcessor { /** * レコード用のアノテーションの整合性のチェックを行う 。
* < p > { @ link XlsHorizontalRecords } と { @ link XlsVerticalRecords } は 、 どちらか一方のみ指定可能 。 < / p >
* @ param tableClass テーブル用のクラス情報
* @ param annoReader アノテーションの提供クラス */
private void checkRecordAnnotation ( final Class < ? > tableClass , f... | final int horizontalSize = FieldAccessorUtils . getPropertiesWithAnnotation ( tableClass , annoReader , XlsHorizontalRecords . class ) . size ( ) ; final int verticalSize = FieldAccessorUtils . getPropertiesWithAnnotation ( tableClass , annoReader , XlsVerticalRecords . class ) . size ( ) ; if ( horizontalSize > 0 && v... |
public class SessionAgent { /** * Called by the { @ link CoreActivity }
* when a session is first accessed by a request . */
public void access ( ) { } } | Session session = getSession ( false ) ; if ( session == null ) { return ; } sessionHandler . access ( session ) ; |
public class LockedExternalTaskImpl { /** * Construct representation of locked ExternalTask from corresponding entity .
* During mapping variables will be collected , during collection variables will not be deserialized
* and scope will not be set to local .
* @ see { @ link org . camunda . bpm . engine . impl . ... | LockedExternalTaskImpl result = new LockedExternalTaskImpl ( ) ; result . id = externalTaskEntity . getId ( ) ; result . topicName = externalTaskEntity . getTopicName ( ) ; result . workerId = externalTaskEntity . getWorkerId ( ) ; result . lockExpirationTime = externalTaskEntity . getLockExpirationTime ( ) ; result . ... |
public class Ollie { /** * Initialize the database . Must be called before interacting with the database .
* @ param context Context
* @ param name The database name .
* @ param version The database version .
* @ param cacheSize The cache size .
* @ param logLevel The logging level . */
public static void ini... | sLogLevel = logLevel ; if ( sInitialized ) { if ( sLogLevel . log ( LogLevel . BASIC ) ) { Log . d ( TAG , "Already initialized." ) ; } return ; } try { Class adapterClass = Class . forName ( AdapterHolder . IMPL_CLASS_FQCN ) ; sAdapterHolder = ( AdapterHolder ) adapterClass . newInstance ( ) ; } catch ( Exception e ) ... |
public class GlueGroupMember { /** * Adds a glue component using the given container populator .
* { @ inheritDoc } */
protected void fill ( GroupContainerPopulator parentContainer , Object factory , CommandButtonConfigurer configurer , List previousButtons ) { } } | parentContainer . add ( Box . createGlue ( ) ) ; |
public class GobblinServiceFlowConfigResourceHandler { /** * Updating { @ link FlowConfig } should check if current node is active ( master ) .
* If current node is active , call { @ link FlowConfigResourceLocalHandler # updateFlowConfig ( FlowId , FlowConfig ) } directly .
* If current node is standby , forward { ... | String flowName = flowId . getFlowName ( ) ; String flowGroup = flowId . getFlowGroup ( ) ; if ( ! flowGroup . equals ( flowConfig . getId ( ) . getFlowGroup ( ) ) || ! flowName . equals ( flowConfig . getId ( ) . getFlowName ( ) ) ) { throw new FlowConfigLoggedException ( HttpStatus . S_400_BAD_REQUEST , "flowName and... |
public class BackupMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Backup backup , ProtocolMarshaller protocolMarshaller ) { } } | if ( backup == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( backup . getBackupId ( ) , BACKUPID_BINDING ) ; protocolMarshaller . marshall ( backup . getBackupState ( ) , BACKUPSTATE_BINDING ) ; protocolMarshaller . marshall ( backup . get... |
public class FileSet { /** * Adds the file names of this FileSet to the given field of the given ConfigurationModule .
* @ param input the ConfigurationModule to fill out
* @ param field the field to add the files in this set to .
* @ return the filled out ConfigurationModule */
ConfigurationModule addNamesTo ( f... | ConfigurationModule result = input ; for ( final String fileName : this . fileNames ( ) ) { result = result . set ( field , fileName ) ; } return result ; |
public class JdbcQueue { /** * Get all orphan messages ( messages that were left in ephemeral storage for
* a long time ) , retry if deadlock .
* Note : http : / / dev . mysql . com / doc / refman / 5.0 / en / innodb - deadlocks . html
* InnoDB uses automatic row - level locking . You can get deadlocks even in
... | try { jdbcHelper . startTransaction ( conn ) ; conn . setTransactionIsolation ( transactionIsolationLevel ) ; Collection < ? extends IQueueMessage < ID , DATA > > msgs = getOrphanFromEphemeralStorage ( conn , thresholdTimestampMs ) ; jdbcHelper . commitTransaction ( conn ) ; return msgs ; } catch ( DaoException de ) { ... |
public class StreamUtil { /** * Closes an OutputStream , logging any exceptions .
* @ param stream the stream to close . */
public static void safeClose ( final Closeable stream ) { } } | if ( stream != null ) { try { stream . close ( ) ; } catch ( IOException e ) { LOG . error ( "Failed to close resource stream" , e ) ; } } |
public class CssUnescapeUtil { /** * Perform an unescape operation based on String . */
static String unescape ( final String text ) { } } | if ( text == null ) { return null ; } StringBuilder strBuilder = null ; final int offset = 0 ; final int max = text . length ( ) ; int readOffset = offset ; int referenceOffset = offset ; for ( int i = offset ; i < max ; i ++ ) { final char c = text . charAt ( i ) ; /* * Check the need for an unescape operation at this... |
public class VetoableASTTransformation { /** * Convenience method to see if an annotated node is { @ code @ Vetoable } .
* @ param node the node to check
* @ return true if the node is constrained */
public static boolean hasVetoableAnnotation ( AnnotatedNode node ) { } } | for ( AnnotationNode annotation : node . getAnnotations ( ) ) { if ( constrainedClassNode . equals ( annotation . getClassNode ( ) ) ) { return true ; } } return false ; |
public class UcsApi { /** * Get the history of interactions for the agent
* @ param agentHistoryData ( optional )
* @ return ApiSuccessResponse
* @ throws ApiException If fail to call the API , e . g . server error or cannot deserialize the response body */
public ApiSuccessResponse getAgentHistory ( AgentHistory... | ApiResponse < ApiSuccessResponse > resp = getAgentHistoryWithHttpInfo ( agentHistoryData ) ; return resp . getData ( ) ; |
public class CompilerUtil { /** * Finds the parent binder type in the supplied set , if any . */
public TypeElement findParent ( TypeElement typeElement , Set < TypeElement > parents ) { } } | TypeMirror type ; while ( true ) { type = typeElement . getSuperclass ( ) ; if ( type . getKind ( ) == TypeKind . NONE ) { return null ; } typeElement = ( TypeElement ) ( ( DeclaredType ) type ) . asElement ( ) ; if ( containsTypeMirror ( parents , type ) ) { return typeElement ; } } |
public class DB { /** * Resolves a taxonomy term by id .
* Uses configured caches .
* @ param id The taxonomy term id .
* @ return The resolved term or { @ code null } if not found .
* @ throws SQLException on database error . */
public TaxonomyTerm resolveTaxonomyTerm ( final long id ) throws SQLException { } ... | metrics . taxonomyTermCacheTries . mark ( ) ; TaxonomyTerm term = taxonomyTermCache . getIfPresent ( id ) ; if ( term != null ) { metrics . taxonomyTermCacheHits . mark ( ) ; return term ; } Connection conn = null ; PreparedStatement stmt = null ; ResultSet rs = null ; long termId = 0 ; String taxonomy = "" ; String de... |
public class DelegatingPortletFilterProxy { /** * { @ inheritDoc } */
public void doFilter ( RenderRequest request , RenderResponse response , FilterChain chain ) throws IOException , PortletException { } } | // Lazily initialize the delegate if necessary .
initDelegate ( true ) ; if ( this . renderDelegate == null ) { throw new IllegalStateException ( "The delegate PortletFilter does not implement RenderFilter but " + this . getFilterName ( ) + " is configured with the RENDER_PHASE lifecycle." ) ; } // Let the delegate per... |
public class TomcatReactiveWebServerFactory { /** * Set { @ link LifecycleListener } s that should be applied to the Tomcat
* { @ link Context } . Calling this method will replace any existing listeners .
* @ param contextLifecycleListeners the listeners to set */
public void setContextLifecycleListeners ( Collecti... | Assert . notNull ( contextLifecycleListeners , "ContextLifecycleListeners must not be null" ) ; this . contextLifecycleListeners = new ArrayList < > ( contextLifecycleListeners ) ; |
public class DeleteAuthorizerRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteAuthorizerRequest deleteAuthorizerRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteAuthorizerRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteAuthorizerRequest . getRestApiId ( ) , RESTAPIID_BINDING ) ; protocolMarshaller . marshall ( deleteAuthorizerRequest . getAuthorizerId ( ) , AUTHORIZERID_B... |
public class PairManager { /** * this return list contains : int [ 0 ] = pair _ hashcode , int [ 1 ] = position */
private List < int [ ] > getPairPositionList ( byte [ ] fingerprint ) { } } | int numFrames = FingerprintManager . getNumFrames ( fingerprint ) ; // table for paired frames
byte [ ] pairedFrameTable = new byte [ numFrames / anchorPointsIntervalLength + 1 ] ; // each second has numAnchorPointsPerSecond pairs only
// end table for paired frames
List < int [ ] > pairList = new LinkedList < > ( ) ; ... |
public class Sample { /** * Helper method to convert a double [ ] to a byte [ ] in a format that can be
* used by { @ link javax . sound . sampled . AudioInputStream } . Typically this will be used with
* a { @ link ameba . captcha . audio . Sample } that has been modified from its original .
* @ param sample sam... | int b_len = ( int ) sampleCount * ( SC_AUDIO_FORMAT . getSampleSizeInBits ( ) / 8 ) ; byte [ ] buffer = new byte [ b_len ] ; int in ; for ( int i = 0 ; i < sample . length ; i ++ ) { in = ( int ) ( sample [ i ] * 32767 ) ; buffer [ 2 * i ] = ( byte ) ( in & 255 ) ; buffer [ 2 * i + 1 ] = ( byte ) ( in >> 8 ) ; } return... |
public class AbstractArrayBytesBuff { /** * 保证缓冲区大小
* @ param addBytes 增加的字节数组长度
* @ return 返回当前buff */
protected BytesBuff ensureCapacity ( int addBytes ) { } } | if ( addBytes < 0 ) { throw new IllegalArgumentException ( String . format ( "addBytes: %d (expected: >= 0)" , addBytes ) ) ; } ensureCapacityUnsafe ( addBytes ) ; return this ; |
public class AutoAnnotationProcessor { /** * Returns the hashCode of the given AnnotationValue , if that hashCode is guaranteed to be always
* the same . The hashCode of a String or primitive type never changes . The hashCode of a Class or
* an enum constant does potentially change in different runs of the same pro... | Object value = annotationValue . getValue ( ) ; if ( value instanceof String || Primitives . isWrapperType ( value . getClass ( ) ) ) { return Optional . of ( value . hashCode ( ) ) ; } else if ( value instanceof List < ? > ) { @ SuppressWarnings ( "unchecked" ) // by specification
List < ? extends AnnotationValue > li... |
public class HBaseSchemaManager { /** * Adds the join table .
* @ param relations
* the relations */
private void addJoinTable ( List < Relation > relations ) { } } | for ( Relation relation : relations ) { if ( relation . getType ( ) . equals ( ForeignKey . MANY_TO_MANY ) && relation . isRelatedViaJoinTable ( ) ) { String joinTableName = relation . getJoinTableMetadata ( ) . getJoinTableName ( ) ; String hTableName = HBaseUtils . getHTableName ( databaseName , joinTableName ) ; HTa... |
public class DatePicker { /** * Gets the current setting month and year from the calendar header .
* @ return current setting month and year */
public String getDateText ( ) { } } | String value = null ; value = HtmlElementUtils . locateElement ( dateTextLocator ) . getText ( ) ; return value ; |
public class MediaBlobContainerWriter { /** * ( non - Javadoc )
* @ see com . microsoft . windowsazure . services . core . FilterableService #
* withResponseFilterFirst
* ( com . microsoft . windowsazure . services . core . ServiceFilter ) */
@ Override public WritableBlobContainerContract withResponseFilterFirst... | MediaBlobContainerWriter mediaBlobContainerWriter = new MediaBlobContainerWriter ( this ) ; mediaBlobContainerWriter . setBlobContract ( mediaBlobContainerWriter . getBlobContract ( ) . withResponseFilterFirst ( serviceResponseFilter ) ) ; return mediaBlobContainerWriter ; |
public class AuditLogEndpoint { /** * Gets audit log .
* @ return the audit log */
@ ReadOperation public Set < AuditActionContext > getAuditLog ( ) { } } | val sinceDate = LocalDate . now ( ) . minusDays ( casProperties . getAudit ( ) . getNumberOfDaysInHistory ( ) ) ; return this . auditTrailManager . getAuditRecordsSince ( sinceDate ) ; |
public class CmdLineCLA { /** * { @ inheritDoc } */
@ Override public ICmdLine convert ( final String valueStr , final boolean _caseSensitive , final Object target ) throws ParseException , IOException { } } | ICmdLine cmdline = null ; final Object newtarget = null ; try { cmdline = templateCmdLine . clone ( ) ; cmdline . parse ( newtarget , valueStr ) ; } catch ( final CloneNotSupportedException e ) { e . printStackTrace ( ) ; return null ; } return cmdline ; |
public class CriteriaVisitor { /** * { @ inheritDoc } */
@ Override public Object visit ( Intersects filter , Object userData ) { } } | String finalName = parsePropertyName ( geomName , userData ) ; return SpatialRestrictions . intersects ( finalName , asGeometry ( getLiteralValue ( filter . getExpression2 ( ) ) ) ) ; |
public class CmsLetsEncryptConfiguration { /** * Gets the trigger mode . < p >
* @ return the trigger mode */
public Trigger getTrigger ( ) { } } | try { String triggerStr = m_config . get ( ATTR_TRIGGER ) ; if ( triggerStr == null ) { return DEFAULT_TRIGGER ; // trigger is optional , don ' t log an error
} Trigger trigger = Trigger . valueOf ( triggerStr ) ; return trigger ; } catch ( Exception e ) { LOG . error ( "Error getting configured letsencrypt trigger: " ... |
public class OmemoService { /** * Encrypt a message with a messageKey and an IV and create an OmemoMessage from it .
* @ param managerGuard authenticated OmemoManager
* @ param contactsDevices set of recipient OmemoDevices
* @ param messageKey AES key to encrypt the message
* @ param iv iv to be used with the m... | OmemoManager manager = managerGuard . get ( ) ; OmemoDevice userDevice = manager . getOwnDevice ( ) ; // Do not encrypt for our own device .
removeOurDevice ( userDevice , contactsDevices ) ; buildMissingSessionsWithDevices ( manager . getConnection ( ) , userDevice , contactsDevices ) ; Set < OmemoDevice > undecidedDe... |
public class Optionals { /** * Tests if the value held by { @ code optional } is an instance of { @ code type } .
* @ param optional the optional
* @ param type the type
* @ return { @ code true } if the value held by { @ code optional } is an instance of { @ code type } , { @ code false } otherwise */
public sta... | return optional . isPresent ( ) && type . isInstance ( optional . get ( ) ) ; |
public class FhirValidator { /** * Validates a resource instance returning a { @ link ca . uhn . fhir . validation . ValidationResult } which contains the results .
* @ param theResource
* the resource to validate
* @ return the results of validation
* @ since 0.7 */
public ValidationResult validateWithResult (... | Validate . notNull ( theResource , "theResource must not be null" ) ; applyDefaultValidators ( ) ; IValidationContext < IBaseResource > ctx = ValidationContext . forResource ( myContext , theResource ) ; for ( IValidatorModule next : myValidators ) { next . validateResource ( ctx ) ; } return ctx . toResult ( ) ; |
public class ParamConvertUtils { /** * Common helper method to convert value for { @ link HeaderParam } and { @ link QueryParam } .
* @ see # createHeaderParamConverter ( Type )
* @ see # createQueryParamConverter ( Type ) */
private static Converter < List < String > , Object > createListConverter ( Type resultTyp... | // Use boxed type if raw type is primitive type . Otherwise the type won ' t change .
Class < ? > resultClass = getRawClass ( resultType ) ; // For string , just return the first value
if ( resultClass == String . class ) { return new BasicConverter ( defaultValue ( resultClass ) ) { @ Override protected Object convert... |
public class ImageManager { /** * Like { @ link # getMirage ( ImageKey ) } but that only the specified subimage of the source image
* is used to build the mirage . */
public Mirage getMirage ( ImageKey key , Rectangle bounds ) { } } | return getMirage ( key , bounds , null ) ; |
public class EventableConditionChecker { /** * Checks whether an XPath expression starts with an XPath eventable condition .
* @ param dom The DOM String .
* @ param eventableCondition The eventable condition .
* @ param xpath The XPath .
* @ return boolean whether xpath starts with xpath location of eventable ... | if ( eventableCondition == null || Strings . isNullOrEmpty ( eventableCondition . getInXPath ( ) ) ) { throw new CrawljaxException ( "Eventable has no XPath condition" ) ; } List < String > expressions = XPathHelper . getXpathForXPathExpressions ( dom , eventableCondition . getInXPath ( ) ) ; return checkXPathUnderXPat... |
public class ApiOvhTelephony { /** * Change the voicemail password . It must be 4 digit
* REST : POST / telephony / { billingAccount } / voicemail / { serviceName } / settings / changePassword
* @ param password [ required ] The password
* @ param billingAccount [ required ] The name of your billingAccount
* @ ... | String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/settings/changePassword" ; StringBuilder sb = path ( qPath , billingAccount , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "password" , password ) ; exec ( qPath , "POST" , sb . toString ( ) , o ) ... |
public class LexerEngine { /** * Skip until one of input tokens .
* @ param tokenTypes to be skipped untiled token types */
public void skipUntil ( final TokenType ... tokenTypes ) { } } | Set < TokenType > tokenTypeSet = Sets . newHashSet ( tokenTypes ) ; tokenTypeSet . add ( Assist . END ) ; while ( ! tokenTypeSet . contains ( lexer . getCurrentToken ( ) . getType ( ) ) ) { lexer . nextToken ( ) ; } |
public class ManagerConnectionImpl { /** * Notifies all { @ link ManagerEventListener } s registered by users .
* @ param event the event to propagate */
private void fireEvent ( ManagerEvent event ) { } } | synchronized ( eventListeners ) { for ( ManagerEventListener listener : eventListeners ) { try { listener . onManagerEvent ( event ) ; } catch ( RuntimeException e ) { logger . warn ( "Unexpected exception in eventHandler " + listener . getClass ( ) . getName ( ) , e ) ; } } } |
public class CassandraSchemaManager { /** * On set bloom filter .
* @ param cfDef
* the cf def
* @ param cfProperties
* the cf properties
* @ param builder
* the builder */
private void onSetBloomFilter ( CfDef cfDef , Properties cfProperties , StringBuilder builder ) { } } | String bloomFilterFpChance = cfProperties . getProperty ( CassandraConstants . BLOOM_FILTER_FP_CHANCE ) ; if ( bloomFilterFpChance != null ) { try { if ( builder != null ) { appendPropertyToBuilder ( builder , bloomFilterFpChance , CassandraConstants . BLOOM_FILTER_FP_CHANCE ) ; } else { cfDef . setBloom_filter_fp_chan... |
public class CmsSitemapClipboardData { /** * Adds an entry to the modified list . < p >
* @ param entry the entry to add */
public void addModified ( CmsClientSitemapEntry entry ) { } } | if ( m_modifications . containsKey ( entry . getId ( ) ) ) { m_modifications . remove ( entry . getId ( ) ) ; } m_modifications . put ( entry . getId ( ) , entry ) ; checkMapSize ( m_modifications ) ; |
public class TypeValueSelect { /** * { @ inheritDoc } */
@ Override public int append2SQLSelect ( final Type _type , final SQLSelect _select , final int _tableIndex , final int _colIndex ) { } } | int ret = 0 ; if ( _type . getMainTable ( ) . getSqlColType ( ) != null ) { _select . column ( _tableIndex , _type . getMainTable ( ) . getSqlColType ( ) ) ; getColIndexs ( ) . add ( _colIndex + ret ) ; ret ++ ; } this . type = _type ; return ret ; |
public class Log { /** * report a warning : */
public void rawWarning ( int pos , String msg ) { } } | PrintWriter warnWriter = writers . get ( WriterKind . ERROR ) ; if ( nwarnings < MaxWarnings && emitWarnings ) { printRawDiag ( warnWriter , "warning: " , pos , msg ) ; } prompt ( ) ; nwarnings ++ ; warnWriter . flush ( ) ; |
public class Vector3d { /** * Set the x , y and z components to match the supplied vector .
* @ param v
* the vector to set this vector ' s components from
* @ return this */
public Vector3d set ( Vector3dc v ) { } } | return set ( v . x ( ) , v . y ( ) , v . z ( ) ) ; |
public class XMLConfigFactory { /** * load XML Document from XML File
* @ param xmlFile XML File to read
* @ return returns the Document
* @ throws SAXException
* @ throws IOException */
static Document loadDocument ( Resource xmlFile ) throws SAXException , IOException { } } | InputStream is = null ; try { return _loadDocument ( is = IOUtil . toBufferedInputStream ( xmlFile . getInputStream ( ) ) ) ; } finally { IOUtil . closeEL ( is ) ; } |
public class RomanticAssistCreator { protected boolean isAppJob ( Class < ? > tp ) { } } | for ( String jobPackage : jobPackagePrefixList ) { if ( tp . getName ( ) . startsWith ( jobPackage ) ) { return true ; } } return false ; |
public class JSONConverter { /** * Decode a JSON document to retrieve a String value .
* @ param in The stream to read JSON from
* @ return The decoded String value
* @ throws ConversionException If JSON uses unexpected structure / format
* @ throws IOException If an I / O error occurs or if JSON is ill - forme... | JSONArray json = parseArray ( in ) ; if ( json . size ( ) != 1 ) { throwConversionException ( "readString() expects one item in the array: [ String ]." , json ) ; } return readStringInternal ( json . get ( 0 ) ) ; |
public class DataFormatHelper { /** * Return the given time formatted as dd / MMM / yyyy HH : mm : ss : SSS Z
* @ param timestamp
* A timestamp as a long , e . g . what would be returned from
* < code > System . currentTimeMillis ( ) < / code >
* @ return formated date string */
public static final String forma... | DateFormat sdf = dateformats . get ( ) ; if ( sdf == null ) { sdf = getDateFormat ( ) ; dateformats . set ( sdf ) ; } return sdf . format ( timestamp ) ; |
public class FtpUploaderCommons { /** * List files inside the current folder .
* @ return List with files names and size
* @ throws IOException */
private Map < String , Long > listFiles ( ) throws FtpException { } } | int attempts = 0 ; Map < String , Long > files = new LinkedHashMap < String , Long > ( ) ; while ( true ) { try { FTPListParseEngine engine = null ; if ( type . startsWith ( "UNIX" ) ) { engine = ftpClient . initiateListParsing ( FTPClientConfig . SYST_UNIX , null ) ; } else { engine = ftpClient . initiateListParsing (... |
public class SecurityProfileTargetMappingMarshaller { /** * Marshall the given parameter object . */
public void marshall ( SecurityProfileTargetMapping securityProfileTargetMapping , ProtocolMarshaller protocolMarshaller ) { } } | if ( securityProfileTargetMapping == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( securityProfileTargetMapping . getSecurityProfileIdentifier ( ) , SECURITYPROFILEIDENTIFIER_BINDING ) ; protocolMarshaller . marshall ( securityProfileTarge... |
public class InternalXbaseWithAnnotationsParser { /** * InternalXbaseWithAnnotations . g : 761:1 : ruleOpMultiAssign returns [ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken ( ) ] : ( kw = ' + = ' | kw = ' - = ' | kw = ' * = ' | kw = ' / = ' | kw = ' % = ' | ( kw = ' < ' kw = ' < ' kw = ' = ' ) | ( kw = ' ... | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken ( ) ; Token kw = null ; enterRule ( ) ; try { // InternalXbaseWithAnnotations . g : 767:2 : ( ( kw = ' + = ' | kw = ' - = ' | kw = ' * = ' | kw = ' / = ' | kw = ' % = ' | ( kw = ' < ' kw = ' < ' kw = ' = ' ) | ( kw = ' > ' ( kw = ' > ' ) ? kw = ' > = ' ) ) )
/... |
public class ServerStats { /** * Initializes the object , starting data collection and reporting . */
public void initialize ( Server server ) { } } | serverFailureCounts = new MeasuredRate ( failureCountSlidingWindowInterval ) ; requestCountInWindow = new MeasuredRate ( 300000L ) ; if ( publisher == null ) { dataDist = new DataDistribution ( getBufferSize ( ) , PERCENTS ) ; publisher = new DataPublisher ( dataDist , getPublishIntervalMillis ( ) ) ; publisher . start... |
public class TagMagix { /** * get ( and cache ) a regex Pattern for locating an entire HTML start tag .
* @ param tagName
* @ return Pattern to match the tag */
private synchronized static Pattern getWholeTagPattern ( String tagName ) { } } | Pattern pc = wholeTagPatterns . get ( tagName ) ; if ( pc == null ) { String tagPatString = "<\\s*" + tagName + "((>)|(\\s+[^>]*>))" ; pc = Pattern . compile ( tagPatString , Pattern . CASE_INSENSITIVE ) ; wholeTagPatterns . put ( tagName , pc ) ; } return pc ; |
public class Check { /** * Ensures that the given arguments are a valid range .
* A range ( < em > start < / em > , < em > end < / em > , < em > size < / em > ) is valid if the following conditions are { @ code true } :
* < ul >
* < li > start < = size < / li >
* < li > end < = size < / li >
* < li > start < ... | final boolean rangeIsValid = ( start <= size ) && ( end <= size ) && ( start <= end ) ; final boolean inputValuesAreValid = ( size >= 0 ) && ( start >= 0 ) && ( end >= 0 ) ; if ( ! rangeIsValid || ! inputValuesAreValid ) { throw new IllegalRangeException ( start , end , size ) ; } |
public class GetIdRequest { /** * A set of optional name - value pairs that map provider names to provider tokens . The available provider names for
* < code > Logins < / code > are as follows :
* < ul >
* < li >
* Facebook : < code > graph . facebook . com < / code >
* < / li >
* < li >
* Amazon Cognito ... | setLogins ( logins ) ; return this ; |
public class MavenProjectScannerPlugin { /** * Scan a { @ link File } that represents a Java artifact .
* @ param projectDescriptor
* The maven project descriptor .
* @ param artifactDescriptor
* The resolved { @ link MavenArtifactDescriptor } .
* @ param file
* The { @ link File } .
* @ param path
* Th... | JavaArtifactFileDescriptor javaArtifactFileDescriptor = scanner . getContext ( ) . getStore ( ) . addDescriptorType ( artifactDescriptor , JavaClassesDirectoryDescriptor . class ) ; ScannerContext context = scanner . getContext ( ) ; context . push ( JavaArtifactFileDescriptor . class , javaArtifactFileDescriptor ) ; t... |
public class CPDefinitionPersistenceImpl { /** * Returns the first cp definition in the ordered set where groupId = & # 63 ; and status = & # 63 ; .
* @ param groupId the group ID
* @ param status the status
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
*... | List < CPDefinition > list = findByG_S ( groupId , status , 0 , 1 , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; |
public class OWLEquivalentObjectPropertiesAxiomImpl_CustomFieldSerializer { /** * Deserializes the content of the object from the
* { @ link com . google . gwt . user . client . rpc . SerializationStreamReader } .
* @ param streamReader the { @ link com . google . gwt . user . client . rpc . SerializationStreamRead... | deserialize ( streamReader , instance ) ; |
public class CameraEncoder { /** * Notify the preview and encoder programs
* of a touch event . Used by
* GLCameraEncoderView
* @ param ev onTouchEvent event to handle */
public void handleCameraPreviewTouchEvent ( MotionEvent ev ) { } } | if ( mFullScreen != null ) mFullScreen . handleTouchEvent ( ev ) ; if ( mDisplayRenderer != null ) mDisplayRenderer . handleTouchEvent ( ev ) ; |
public class Smarts2MQLVisitor { /** * logical bonds */
public Object visit ( ASTOrBond node , Object data ) { } } | return node . jjtGetChild ( 0 ) . jjtAccept ( this , data ) ; |
public class AbstractSEPAGV { /** * Diese Methode schaut in den BPD nach den unterstützen pain Versionen
* ( bei LastSEPA pain . 008 . xxx . xx ) und vergleicht diese mit den von HBCI4Java
* unterstützen pain Versionen . Der größte gemeinsamme Nenner wird
* zurueckgeliefert .
* @ param passport
* @ param g... | log . debug ( "searching for supported pain versions for GV " + gvName ) ; if ( ! passport . jobSupported ( gvName ) ) { log . debug ( "don't have any BPD for GV " + gvName ) ; return null ; } List < SepaVersion > found = new ArrayList < > ( ) ; // GV - Restrictions laden und darüber iterieren
Map < String , String > ... |
public class OpenSearchModuleParser { /** * Use feed links and / or xml : base attribute to determine baseURI of feed */
private static URL findBaseURI ( final Element root ) { } } | URL baseURI = null ; final List < Element > linksList = root . getChildren ( "link" , OS_NS ) ; if ( linksList != null ) { for ( final Element element : linksList ) { final Element link = element ; if ( ! root . equals ( link . getParent ( ) ) ) { break ; } String href = link . getAttribute ( "href" ) . getValue ( ) ; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.