signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class NumberValidator { /** * Verifiziert die uebergebene Nummer , ob sie eine gueltige Nummer und
* nicht unendlich oder ' NaN ' ist . Falls die Nummer unendlich oder ' NaN '
* ist , wird eine { @ link ArithmeticException } geworfen .
* @ param number zu pruefende Nummer
* @ return die Nummer selbst zur... | if ( ( number instanceof Double ) || ( number instanceof Float ) ) { double dValue = number . doubleValue ( ) ; if ( Double . isNaN ( dValue ) || Double . isInfinite ( dValue ) ) { throw new LocalizedArithmeticException ( dValue , NUMBER ) ; } } return number ; |
public class DDSClient { /** * Encode a java object into a json which is returned as a string
* @ param object
* @ return
* @ throws IOException */
private static String jsonEncode ( Object object ) throws IOException { } } | ObjectMapper mapper = new ObjectMapper ( ) ; ByteArrayOutputStream outputStream = new ByteArrayOutputStream ( ) ; try { mapper . writeValue ( outputStream , object ) ; return new String ( outputStream . toByteArray ( ) ) ; } catch ( JsonGenerationException e ) { logger . severe ( "unable encode" ) ; throw new IOExcepti... |
public class PairCounter { /** * Counts the pair , increasing its total count by the specified positive amount .
* @ param count a positive value for the number of times the object occurred
* @ throws IllegalArgumentException if { @ code count } is not a positive value . */
public int count ( T x , T y , int count ... | if ( count < 1 ) throw new IllegalArgumentException ( "Count must be positive: " + count ) ; long index = getIndex ( x , y ) ; int oldCount = counts . get ( index ) ; int newCount = count + oldCount ; counts . put ( index , newCount ) ; sum += count ; return newCount ; |
public class DescribeUserHierarchyStructureRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeUserHierarchyStructureRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeUserHierarchyStructureRequest . getInstanceId ( ) , INSTANCEID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable... |
public class AgreementParser { /** * getWsagObject receives in serializedData the object information in json
* must returns a eu . atos . sla . parser . data . wsag . Agreement */
@ Override public Agreement getWsagObject ( String serializedData ) throws ParserException { } } | Agreement agreement = null ; try { logger . info ( "Will parse {}" , serializedData ) ; agreement = mapper . readValue ( serializedData , Agreement . class ) ; logger . info ( "Agreement parsed {}" , agreement ) ; } catch ( JsonProcessingException e ) { throw new ParserException ( e ) ; } catch ( Throwable e ) { throw ... |
public class RecycleManager { /** * Helper method to insert the provided widgets with { @ link RecycleType } defined */
protected void insert ( List < Widget > widgets ) { } } | switch ( type ) { case DETACH : for ( Widget widget : widgets ) { int index = widgets . indexOf ( widget ) ; parent . insert ( widget , index ) ; } break ; case DISPLAY : widgets . forEach ( widget -> widget . getElement ( ) . getStyle ( ) . setDisplay ( Style . Display . BLOCK ) ) ; break ; } |
public class DefaultDecomposer { /** * ( non - Javadoc )
* @ see org . jsmpp . util . PDUDecomposer # submitSmResp ( byte [ ] ) */
public SubmitSmResp submitSmResp ( byte [ ] b ) throws PDUStringException { } } | SubmitSmResp resp = new SubmitSmResp ( ) ; SequentialBytesReader reader = new SequentialBytesReader ( b ) ; assignHeader ( resp , reader ) ; if ( resp . getCommandLength ( ) > 16 && resp . getCommandStatus ( ) == 0 ) { resp . setMessageId ( reader . readCString ( ) ) ; StringValidator . validateString ( resp . getMessa... |
public class ModbusSerialTransport { /** * Writes the bytes to the output stream
* @ param buffer Buffer to write
* @ param bytesToWrite Number of bytes to write
* @ return Number of bytes written
* @ throws java . io . IOException if writing to invalid port */
final int writeBytes ( byte [ ] buffer , long byte... | if ( commPort != null && commPort . isOpen ( ) ) { return commPort . writeBytes ( buffer , bytesToWrite ) ; } else { throw new IOException ( "Comm port is not valid or not open" ) ; } |
public class FeatureIndexer { /** * This method should only be used for print or debug purpose .
* @ return Array of feat names . Index corresponding to feat vector ' s Index . */
public String [ ] getFeatNames ( ) { } } | String [ ] namesArray = new String [ nameIndexMap . size ( ) ] ; for ( Map . Entry < String , Integer > entry : nameIndexMap . entrySet ( ) ) { namesArray [ entry . getValue ( ) ] = entry . getKey ( ) ; } return namesArray ; |
public class CountersManager { /** * Allocate a counter record and wrap it with a new { @ link AtomicCounter } for use .
* @ param label to describe the counter .
* @ param typeId for the type of counter .
* @ param keyFunc for setting the key value for the counter .
* @ return a newly allocated { @ link Atomic... | return new AtomicCounter ( valuesBuffer , allocate ( label , typeId , keyFunc ) , this ) ; |
public class JNvgraph { /** * nvGRAPH WidestPath
* Find widest path potential from source _ index to every other vertices . */
public static int nvgraphWidestPath ( nvgraphHandle handle , nvgraphGraphDescr descrG , long weight_index , Pointer source_vert , long widest_path_index ) { } } | return checkResult ( nvgraphWidestPathNative ( handle , descrG , weight_index , source_vert , widest_path_index ) ) ; |
public class PermissionsInner { /** * Gets all permissions the caller has for a resource group .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the PagedList & lt ; ... | return listByResourceGroupNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < PermissionInner > > , Page < PermissionInner > > ( ) { @ Override public Page < PermissionInner > call ( ServiceResponse < Page < PermissionInner > > response ) { return response . body ( ) ; } } ) ; |
public class AbstractDocumentationMojo { /** * Internal run .
* @ return the error message */
protected String internalExecute ( ) { } } | getLog ( ) . info ( Messages . AbstractDocumentationMojo_1 ) ; final Map < File , File > files = getFiles ( ) ; getLog ( ) . info ( MessageFormat . format ( Messages . AbstractDocumentationMojo_2 , files . size ( ) ) ) ; return internalExecute ( files ) ; |
public class AbstractTransactionLog { /** * will accumulate in a new list . */
private List < Entry > getPendingWrites ( ) { } } | synchronized ( this ) { List < Entry > save = this . pendingWrites ; this . pendingWrites = new LinkedList < > ( ) ; return save ; } |
public class SARLRuntime { /** * Replies if the given JAR file contains a SRE bootstrap .
* < p > The SRE bootstrap detection is based on the service definition within META - INF folder .
* @ param jarFile the JAR file to test .
* @ return < code > true < / code > if the given directory contains a SRE . Otherwise... | try ( JarFile jFile = new JarFile ( jarFile ) ) { final ZipEntry jEntry = jFile . getEntry ( SREConstants . SERVICE_SRE_BOOTSTRAP ) ; if ( jEntry != null ) { try ( InputStream is = jFile . getInputStream ( jEntry ) ) { try ( BufferedReader reader = new BufferedReader ( new InputStreamReader ( is ) ) ) { String line = r... |
public class ParticleGenerator { /** * Returns angle in degrees between two points
* @ param ax x of the point 1
* @ param ay y of the point 1
* @ param bx x of the point 2
* @ param by y of the point 2
* @ return angle in degrees between two points */
private static float angleDeg ( final float ax , final fl... | final double angleRad = Math . atan2 ( ay - by , ax - bx ) ; double angle = Math . toDegrees ( angleRad ) ; if ( angleRad < 0 ) { angle += 360 ; } return ( float ) angle ; |
public class ResourcePathNode { /** * Flexible implementation of { @ link # create ( String ) } to custom data function .
* @ param < D > is the type of the { @ link # getData ( ) generic data } . For simple usage just { @ link Void } .
* @ param path is the path to parse .
* @ param dataFunction - the { @ link F... | "unchecked" , "rawtypes" } ) public static < D > ResourcePathNode < D > create ( String path , Function < ResourcePathNode < D > , D > dataFunction ) { if ( path == null ) { return null ; } if ( path . isEmpty ( ) ) { if ( ( ( Function ) dataFunction ) == VOID_FUNCTION ) { return ( ResourcePathNode < D > ) ROOT_RELATIV... |
public class JDBDT { /** * Assert that table does not exist in a database .
* @ param db Database .
* @ param tableName Table name .
* @ throws DBAssertionError If the assertion fails .
* @ see # assertTableExists ( DB , String )
* @ see # drop ( Table ) */
public static void assertTableDoesNotExist ( DB db ,... | DBAssert . assertTableExistence ( CallInfo . create ( ) , db , tableName , false ) ; |
public class SimpleBlas { /** * Compute A < - alpha * x * y ^ T + A ( general rank - 1 update ) */
public static ComplexFloatMatrix geru ( ComplexFloat alpha , ComplexFloatMatrix x , ComplexFloatMatrix y , ComplexFloatMatrix a ) { } } | NativeBlas . cgeru ( a . rows , a . columns , alpha , x . data , 0 , 1 , y . data , 0 , 1 , a . data , 0 , a . rows ) ; return a ; |
public class DataDecoder { /** * Decodes a float from exactly 4 bytes .
* @ param src source of encoded bytes
* @ param srcOffset offset into source array
* @ return float value */
public static float decodeFloat ( byte [ ] src , int srcOffset ) throws CorruptEncodingException { } } | int bits = decodeFloatBits ( src , srcOffset ) ; bits ^= ( bits < 0 ) ? 0x80000000 : 0xffffffff ; return Float . intBitsToFloat ( bits ) ; |
public class SegmentManager { /** * Recycle a free segment into the < code > _ recycleList < / code > .
* @ param seg - the free Segment
* @ return < code > true < / code > if the specified segment is added to the < code > _ recycleList < / code > . */
private boolean recycle ( Segment seg ) { } } | if ( _recycleList . size ( ) < _recycleLimit ) { return _recycleList . add ( seg ) ; } return false ; |
public class CheckMethodAdapter { /** * Returns the field of the Label class whose name is given .
* @ param name
* a field name .
* @ return the field of the Label class whose name is given , or null . */
private static Field getLabelField ( final String name ) { } } | try { Field f = Label . class . getDeclaredField ( name ) ; f . setAccessible ( true ) ; return f ; } catch ( NoSuchFieldException e ) { return null ; } |
public class JsonArray { /** * Adds the specified string to self .
* @ param string the string that needs to be added to the array . */
public void add ( String string ) { } } | elements . add ( string == null ? JsonNull . INSTANCE : new JsonPrimitive ( string ) ) ; |
public class DateRangeValueExpression { /** * / * ( non - Javadoc )
* @ see com . github . mkolisnyk . aerial . expressions . ValueExpression # validate ( ) */
@ Override public void validate ( ) throws Exception { } } | super . validate ( ) ; this . parse ( ) ; Assert . assertTrue ( "The upper date should be after the initial date" , this . upper . after ( this . lower ) ) ; |
public class TorqueDBHandling { /** * Template - and - Hook method for generating the url required by the jdbc driver
* to allow for creating a database ( as opposed to accessing an already - existing
* database ) . */
protected String getDBCreationUrl ( ) { } } | JdbcConnectionDescriptor jcd = getConnection ( ) ; // currently I only know about specifics for mysql
if ( TORQUE_PLATFORM_MYSQL . equals ( getTargetTorquePlatform ( ) ) ) { // we have to remove the db name as the jdbc driver would try to connect to
// a non - existing db
// the db - alias has this form : [ host & port... |
public class MultiFormatter { /** * httl . properties : false . value = false */
public void setFalseValue ( String falseValue ) { } } | this . falseValue = falseValue ; this . falseValueChars = falseValue . toCharArray ( ) ; this . falseValueBytes = toBytes ( falseValue , falseValue ) ; |
public class DescribeCustomKeyStoresResult { /** * Contains metadata about each custom key store .
* @ param customKeyStores
* Contains metadata about each custom key store . */
public void setCustomKeyStores ( java . util . Collection < CustomKeyStoresListEntry > customKeyStores ) { } } | if ( customKeyStores == null ) { this . customKeyStores = null ; return ; } this . customKeyStores = new com . amazonaws . internal . SdkInternalList < CustomKeyStoresListEntry > ( customKeyStores ) ; |
public class NodeReportsInner { /** * Retrieve the Dsc node report data by node id and report id .
* @ param resourceGroupName Name of an Azure Resource group .
* @ param automationAccountName The name of the automation account .
* @ param nodeId The Dsc node id .
* @ param reportId The report id .
* @ param ... | return ServiceFuture . fromResponse ( getWithServiceResponseAsync ( resourceGroupName , automationAccountName , nodeId , reportId ) , serviceCallback ) ; |
public class Transition { /** * Instantiates a transition specifying an action , the origin and
* destination states .
* @ param fromState state origin of the transition
* @ param action action associated to this transition
* @ param toState state destination of the transition
* @ param < A > type of the acti... | return new Transition < A , S > ( fromState , action , toState ) ; |
public class ManagementResource { /** * ( non - Javadoc )
* @ see net . roboconf . dm . rest . services . internal . resources . IManagementResource
* # listApplications ( java . lang . String ) */
@ Override public List < Application > listApplications ( String exactName ) { } } | if ( exactName != null ) this . logger . fine ( "Request: list/find the application named " + exactName + "." ) ; else this . logger . fine ( "Request: list all the applications." ) ; List < Application > result = new ArrayList < > ( ) ; for ( ManagedApplication ma : this . manager . applicationMngr ( ) . getManagedApp... |
public class MolecularFormulaSetManipulator { /** * True , if the IMolecularFormulaSet contains the given IMolecularFormula but not
* as object . It compare according contains the same number and type of Isotopes .
* It is not based on compare objects .
* @ param formulaSet The IMolecularFormulaSet
* @ param fo... | for ( IMolecularFormula fm : formulaSet . molecularFormulas ( ) ) { if ( MolecularFormulaManipulator . compare ( fm , formula ) ) { return true ; } } return false ; |
public class PdfContentByte { /** * Draws a partial ellipse inscribed within the rectangle x1 , y1 , x2 , y2,
* starting at startAng degrees and covering extent degrees . Angles
* start with 0 to the right ( + x ) and increase counter - clockwise .
* @ param x1 a corner of the enclosing rectangle
* @ param y1 a... | ArrayList ar = bezierArc ( x1 , y1 , x2 , y2 , startAng , extent ) ; if ( ar . isEmpty ( ) ) return ; float pt [ ] = ( float [ ] ) ar . get ( 0 ) ; moveTo ( pt [ 0 ] , pt [ 1 ] ) ; for ( int k = 0 ; k < ar . size ( ) ; ++ k ) { pt = ( float [ ] ) ar . get ( k ) ; curveTo ( pt [ 2 ] , pt [ 3 ] , pt [ 4 ] , pt [ 5 ] , pt... |
public class MessagesApi { /** * Get Normalized Messages
* Get the messages normalized
* @ param uid User ID . If not specified , assume that of the current authenticated user . If specified , it must be that of a user for which the current authenticated user has read access to . ( optional )
* @ param sdid Sourc... | ApiResponse < NormalizedMessagesEnvelope > resp = getNormalizedMessagesWithHttpInfo ( uid , sdid , mid , fieldPresence , filter , offset , count , startDate , endDate , order ) ; return resp . getData ( ) ; |
public class JDBC4CallableStatement { /** * Sets the designated parameter to a InputStream object . */
@ Override public void setBlob ( String parameterName , InputStream inputStream ) throws SQLException { } } | checkClosed ( ) ; throw SQLError . noSupport ( ) ; |
public class PubSubInputHandler { /** * Ensure all target streams are flushed ( and therefore in - doubt
* messages are resolved ) . This is done in preparation for
* deleting the destination . If the delete must be deferred ,
* this code will automatically redrive delete when possible .
* @ return true if the ... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "flushAllForDeleteTarget" ) ; synchronized ( this ) { // Flush may have completed , if so then return
// without starting another one .
if ( _flushedForDeleteTarget ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . i... |
public class AdCustomizerFeed { /** * Gets the feedStatus value for this AdCustomizerFeed .
* @ return feedStatus * Status of the feed .
* < span class = " constraint Selectable " > This field can
* be selected using the value " FeedStatus " . < / span > < span class = " constraint
* Filterable " > This field c... | return feedStatus ; |
public class PeriodType { /** * Sets the indexed field part of the period .
* @ param period the period to query
* @ param index the index to use
* @ param values the array to populate
* @ param newValue the value to set
* @ throws UnsupportedOperationException if not supported */
boolean setIndexedField ( Re... | int realIndex = iIndices [ index ] ; if ( realIndex == - 1 ) { throw new UnsupportedOperationException ( "Field is not supported" ) ; } values [ realIndex ] = newValue ; return true ; |
public class MultiStatus { public static MultiStatus lookup ( List < MultiStatus > lst , Name name , int status ) { } } | for ( MultiStatus ms : lst ) { if ( status == ms . status && name . equals ( ms . property . getName ( ) ) ) { return ms ; } } return null ; |
public class HadoopProxy { /** * Setup Job Properties when the proxy is enabled
* @ param props all properties
* @ param jobProps job properties
* @ param logger logger handler */
public void setupPropsForProxy ( Props props , Props jobProps , final Logger logger ) throws Exception { } } | if ( isProxyEnabled ( ) ) { userToProxy = jobProps . getString ( HadoopSecurityManager . USER_TO_PROXY ) ; logger . info ( "Need to proxy. Getting tokens." ) ; // get tokens in to a file , and put the location in props
tokenFile = HadoopJobUtils . getHadoopTokens ( hadoopSecurityManager , props , logger ) ; jobProps . ... |
public class InvoiceReportPdf { /** * < p > Retrieves sales invoice from DB . < / p >
* @ param pReqVars additional param
* @ param pInvoice Invoice
* @ param pLang Lang
* @ param pIsOverseas Is Overseas
* @ return SalesInvoice
* @ throws Exception an Exception */
public final SalesInvoice retrieveEntity ( ... | SalesInvoice inv = this . srvOrm . retrieveEntity ( pReqVars , pInvoice ) ; if ( pIsOverseas ) { Set < String > ndFlSil = new HashSet < String > ( ) ; ndFlSil . add ( "itsId" ) ; ndFlSil . add ( "subtotal" ) ; ndFlSil . add ( "totalTaxes" ) ; ndFlSil . add ( "taxesDescription" ) ; ndFlSil . add ( "invItem" ) ; ndFlSil ... |
public class Kafka08PartitionDiscoverer { /** * Send request to Kafka to get partitions for topics .
* @ param topics The name of the topics . */
public List < KafkaTopicPartitionLeader > getPartitionLeadersForTopics ( List < String > topics ) { } } | List < KafkaTopicPartitionLeader > partitions = new LinkedList < > ( ) ; retryLoop : for ( int retry = 0 ; retry < numRetries ; retry ++ ) { brokersLoop : for ( int arrIdx = 0 ; arrIdx < seedBrokerAddresses . length ; arrIdx ++ ) { LOG . info ( "Trying to get topic metadata from broker {} in try {}/{}" , seedBrokerAddr... |
public class CommerceAccountUtil { /** * Returns a range of all the commerce accounts where companyId = & # 63 ; .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys , they are indexes in the re... | return getPersistence ( ) . findByCompanyId ( companyId , start , end ) ; |
public class SgClassPool { /** * Adds a class to the internal cache .
* @ param clasz
* Class to add - Cannot be null . */
public final void put ( final SgClass clasz ) { } } | if ( clasz == null ) { throw new IllegalArgumentException ( "The argument 'clasz' cannot be null!" ) ; } cache . put ( clasz . getName ( ) , clasz ) ; |
public class MatlabSparseMatrixBuilder { /** * { @ inheritDoc } */
public synchronized int addColumn ( double [ ] column ) { } } | if ( isFinished ) throw new IllegalStateException ( "Cannot add rows to a MatrixBuilder that is finished" ) ; for ( int r = 0 ; r < column . length ; ++ r ) { if ( column [ r ] != 0d ) { // NB : Matlab sparse format is in [ col row val ] format
// NOTE : Matlab indices start at 1 , not 0 , so update all the
// row and ... |
public class BshArray { /** * Copy and cast the elements of from arrays to type in to array .
* Recursively traverse dimensions to populate the elements at to array .
* @ param toType the element type to cast to
* @ param to the destination array
* @ param from the list of origin arrays */
private static void c... | int f = 0 , fi = 0 , length = Array . getLength ( from [ 0 ] ) , total = from . length > 1 ? Array . getLength ( to ) : length ; if ( Types . arrayDimensions ( to . getClass ( ) ) == 1 ) { for ( int i = 0 ; i < total ; i ++ ) { Object value = Array . get ( from [ f ] , fi ++ ) ; try { value = Primitive . unwrap ( Types... |
public class LineItemSummary { /** * Gets the discountType value for this LineItemSummary .
* @ return discountType * The type of discount being applied to a { @ code LineItem } , either
* percentage
* based or absolute . This attribute is optional and
* defaults to
* { @ link LineItemDiscountType # PERCENTAG... | return discountType ; |
public class CommerceTaxMethodPersistenceImpl { /** * Removes all the commerce tax methods where groupId = & # 63 ; from the database .
* @ param groupId the group ID */
@ Override public void removeByGroupId ( long groupId ) { } } | for ( CommerceTaxMethod commerceTaxMethod : findByGroupId ( groupId , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ) { remove ( commerceTaxMethod ) ; } |
public class StylesheetPIHandler { /** * Return the last stylesheet found that match the constraints .
* @ return Source object that references the last stylesheet reference
* that matches the constraints . */
public Source getAssociatedStylesheet ( ) { } } | int sz = m_stylesheets . size ( ) ; if ( sz > 0 ) { Source source = ( Source ) m_stylesheets . elementAt ( sz - 1 ) ; return source ; } else return null ; |
public class JdbcMapperFactory { /** * Associate the specified FieldMapper for the specified property .
* @ param key the property
* @ param fieldMapper the fieldMapper
* @ return the current factory */
public JdbcMapperFactory addCustomFieldMapper ( String key , FieldMapper < ResultSet , ? > fieldMapper ) { } } | return addColumnDefinition ( key , FieldMapperColumnDefinition . < JdbcColumnKey > customFieldMapperDefinition ( fieldMapper ) ) ; |
public class FeatureSearchServiceImpl { /** * Search all features within a certain layer that intersect a certain bounding box .
* @ param layer
* The features supported layer wherein to search .
* @ param bbox
* The bounding box wherein to search .
* @ param callback
* Call - back method executed on return... | MapModel mapModel = map . getMapWidget ( ) . getMapModel ( ) ; Layer < ? > gwtLayer = mapModel . getLayer ( layer . getId ( ) ) ; if ( gwtLayer != null && gwtLayer instanceof VectorLayer ) { final VectorLayer vLayer = ( VectorLayer ) gwtLayer ; SearchByLocationRequest request = new SearchByLocationRequest ( ) ; request... |
public class ReconciliationLineItemReportPage { /** * Gets the results value for this ReconciliationLineItemReportPage .
* @ return results * The collection of { @ link ReconciliationLineItemReport } objects
* contained in this page . */
public com . google . api . ads . admanager . axis . v201902 . ReconciliationL... | return results ; |
public class ProducerService { /** * Publish a message .
* @ param channel The channel on which to publish the message .
* @ param message Message to publish .
* @ param recipients Optional list of targeted recipients .
* @ return True if successfully published . */
public boolean publish ( String channel , Mes... | boolean result = false ; prepare ( channel , message , recipients ) ; for ( IMessageProducer producer : producers ) { result |= producer . publish ( channel , message ) ; } return result ; |
public class ErrorCodeConfig { /** * Get the String value by the property name .
* When the property name not exits , get exception , it always return the default
* String value DEFAULT _ STRING _ VALUE .
* @ param name
* The property name
* @ return
* The String value */
public static String getStringPrope... | try { if ( resourceBundle == null ) { resourceBundle = ResourceBundle . getBundle ( ERRORCODE_FILE , Locale . getDefault ( ) , ErrorCodeConfig . class . getClassLoader ( ) ) ; } String tagValue = resourceBundle . getString ( name ) ; if ( tagValue == null || tagValue . isEmpty ( ) ) { return DEFAULT_STRING_VALUE ; } re... |
public class TimeFormat { /** * Parses a Time , according to this format .
* Will bug on some formats . It ' s safest to always use delimiters between
* the minutes ( m ) and seconds ( s ) part . */
public Time parse ( String pStr ) { } } | Time time = new Time ( ) ; int sec = 0 ; int min = 0 ; int pos = 0 ; int skip = 0 ; boolean onlyUseSeconds = false ; for ( int i = 0 ; ( i < formatter . length ) && ( pos + skip < pStr . length ( ) ) ; i ++ ) { // Go to next offset
pos += skip ; if ( formatter [ i ] instanceof MinutesFormatter ) { // Parse MINUTES
if (... |
public class Interface_stats { /** * Use this API to fetch the statistics of all Interface _ stats resources that are configured on netscaler . */
public static Interface_stats [ ] get ( nitro_service service ) throws Exception { } } | Interface_stats obj = new Interface_stats ( ) ; Interface_stats [ ] response = ( Interface_stats [ ] ) obj . stat_resources ( service ) ; return response ; |
public class ValueUtils { /** * Convert a { @ link JsonNode } to a specified value type .
* @ param node
* @ param clazz
* @ return
* @ since 0.6.2 */
@ SuppressWarnings ( "unchecked" ) public static < T > T convertValue ( JsonNode node , Class < T > clazz ) { } } | if ( node instanceof POJONode ) { return convertValue ( DPathUtils . extractValue ( ( POJONode ) node ) , clazz ) ; } if ( clazz == null ) { throw new NullPointerException ( "Class parameter is null!" ) ; } if ( node == null || node instanceof NullNode || node instanceof MissingNode ) { return null ; } if ( node instan... |
public class MpscLinkedQueue { /** * { @ inheritDoc } < br >
* IMPLEMENTATION NOTES : < br >
* Poll is allowed from a SINGLE thread . < br >
* Poll reads the next node from the consumerNode and :
* < ol >
* < li > If it is null , the queue is assumed empty ( though it might not be ) .
* < li > If it is not ... | LinkedQueueNode < E > currConsumerNode = lpConsumerNode ( ) ; // don ' t load twice , it ' s alright
LinkedQueueNode < E > nextNode = currConsumerNode . lvNext ( ) ; if ( nextNode != null ) { return getSingleConsumerNodeValue ( currConsumerNode , nextNode ) ; } else if ( currConsumerNode != lvProducerNode ( ) ) { nextN... |
public class IndexForHeaderIndexFile { /** * loads the index from the { @ link MappedByteBuffer } */
protected void fillIndexFromByteBuffer ( ) { } } | indexBuffer . rewind ( ) ; for ( int i = 0 ; i < numberOfChunks ; i ++ ) { maxKeyPerChunk [ i ] = new byte [ keySize ] ; indexBuffer . get ( maxKeyPerChunk [ i ] ) ; if ( KeyUtils . isNull ( maxKeyPerChunk [ i ] ) && i > 0 ) { filledUpTo = i - 1 ; break ; } } |
public class FileItem { /** * Deserialisiert ein FileItem aus einem übergebenen InputStream .
* @ param dataInputStream
* Quelle der Deserialisierung
* @ return FileItem
* @ throws IOException */
public static FileItem fromStream ( DataInputStream dataInputStream ) throws IOException { } } | // Über die Version kann gesteuert werden , wieviele Felder gelesen
// werden . Das ist aus Gründen der Abwärtskompatibilität notwendig .
// Neue Felder dürfen nur am Ende hinzugefügt werden . Die Version
// muss dann heraufgesetzt werden .
byte binaryVersion = dataInputStream . readByte ( ) ; if ( binaryVersion ... |
public class WriteClass { /** * Write the end of class code . */
public void writeEndCode ( boolean bJavaFile ) { } } | m_StreamOut . setTabs ( - 1 ) ; if ( bJavaFile ) m_StreamOut . writeit ( "\n}" ) ; m_StreamOut . writeit ( "\n" ) ; m_StreamOut . free ( ) ; m_StreamOut = null ; m_IncludeNameList . free ( ) ; m_IncludeNameList = null ; |
public class TypeNameShadowing { /** * Iterate through a list of type parameters , looking for type names shadowed by any of them . */
private Description findShadowedTypes ( Tree tree , List < ? extends TypeParameterTree > typeParameters , VisitorState state ) { } } | Env < AttrContext > env = Enter . instance ( state . context ) . getEnv ( ASTHelpers . getSymbol ( state . findEnclosing ( ClassTree . class ) ) ) ; Symtab symtab = state . getSymtab ( ) ; PackageSymbol javaLang = symtab . enterPackage ( symtab . java_base , Names . instance ( state . context ) . java_lang ) ; Iterable... |
public class SAX2DTM2 { /** * Override SAX2DTM . startElement ( )
* < p > Receive notification of the start of an element .
* < p > By default , do nothing . Application writers may override this
* method in a subclass to take specific actions at the start of
* each element ( such as allocating a new tree node ... | charactersFlush ( ) ; int exName = m_expandedNameTable . getExpandedTypeID ( uri , localName , DTM . ELEMENT_NODE ) ; int prefixIndex = ( qName . length ( ) != localName . length ( ) ) ? m_valuesOrPrefixes . stringToIndex ( qName ) : 0 ; int elemNode = addNode ( DTM . ELEMENT_NODE , exName , m_parents . peek ( ) , m_pr... |
public class CancelAuditTaskRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CancelAuditTaskRequest cancelAuditTaskRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( cancelAuditTaskRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( cancelAuditTaskRequest . getTaskId ( ) , TASKID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . ... |
public class JsonConfig { /** * Finds a DefaultValueProcessor registered to the target class . < br >
* Returns null if none is registered . < br >
* [ Java - & gt ; JSON ]
* @ param target a class used for searching a DefaultValueProcessor . */
public DefaultValueProcessor findDefaultValueProcessor ( Class targe... | if ( ! defaultValueMap . isEmpty ( ) ) { Object key = defaultValueProcessorMatcher . getMatch ( target , defaultValueMap . keySet ( ) ) ; DefaultValueProcessor processor = ( DefaultValueProcessor ) defaultValueMap . get ( key ) ; if ( processor != null ) { return processor ; } } return DEFAULT_VALUE_PROCESSOR ; |
public class MetadataUtils { /** * Reads value returned from getDatabaseProductName ( DatabaseMetadata class ) and converts it into
* " short " name
* @ param databaseProductName { @ link java . sql . DatabaseMetaData # getDatabaseProductName ( ) }
* @ return short database name */
public static String processDat... | String result = databaseProductName ; if ( databaseProductName != null && databaseProductName . startsWith ( "DB2" ) == true ) { result = "DB2" ; } else if ( "Sybase SQL Server" . equals ( databaseProductName ) == true || "Adaptive Server Enterprise" . equals ( databaseProductName ) == true || "ASE" . equals ( database... |
public class RhinoTopLevel { /** * The scope function creates a new JavaScript scope object
* with given Bindings object as backing store . This can be used
* to create a script scope based on arbitrary Bindings instance .
* For example , in webapp scenario , a ' page ' level Bindings instance
* may be wrapped ... | if ( args . length == 1 ) { Object arg = args [ 0 ] ; if ( arg instanceof Wrapper ) { arg = ( ( Wrapper ) arg ) . unwrap ( ) ; } if ( arg instanceof Bindings ) { ScriptContext ctx = new SimpleScriptContext ( ) ; ctx . setBindings ( ( Bindings ) arg , ScriptContext . ENGINE_SCOPE ) ; Scriptable res = new ExternalScripta... |
public class XmlNormalizer { /** * Reads the XML file found at the provided filePath , returning a normalized
* XML form suitable for comparison .
* @ param filePath The path to the XML file to read .
* @ return A normalized , human - readable , version of the given XML document . */
public String getNormalizedXm... | // Read the provided filename
final StringWriter toReturn = new StringWriter ( ) ; final BufferedReader in ; try { in = new BufferedReader ( new FileReader ( new File ( filePath ) ) ) ; } catch ( FileNotFoundException e ) { throw new IllegalArgumentException ( "Could not find file [" + filePath + "]" , e ) ; } // Parse... |
public class RepositoryContainer { /** * Init workspace root node . If it ' s the system workspace init jcr : system too .
* @ param wsConfig
* @ throws RepositoryException */
private void initWorkspace ( WorkspaceEntry wsConfig ) throws RepositoryException { } } | WorkspaceContainer workspaceContainer = getWorkspaceContainer ( wsConfig . getName ( ) ) ; // touch independent components
workspaceContainer . getComponentInstanceOfType ( IdGenerator . class ) ; // Init Root and jcr : system if workspace is system workspace
WorkspaceInitializer wsInitializer = ( WorkspaceInitializer ... |
public class PeerManager { /** * Called when a peer updates a lock . */
protected void peerUpdatedLock ( String nodeName , NodeObject . Lock lock ) { } } | // notify the handler , if any
LockHandler handler = _locks . get ( lock ) ; if ( handler != null ) { handler . peerUpdatedLock ( nodeName ) ; } |
public class MapConverterSupport { /** * Treats the text value of this property as an input stream that
* is converted into a Property bundle .
* @ return a Properties object
* @ throws ConversionException An error occurred creating the Properties object . */
@ Override protected final Object convertToObject ( fi... | Map map = CollectionUtil . toMap ( text , keyEditor , valueEditor ) ; if ( map == null ) { return null ; } return createMap ( map ) ; |
public class DuracloudFileWriter { /** * Writes the tempfile to durastore . */
@ Override public void flush ( ) throws IOException { } } | checkWriter ( ) ; writer . flush ( ) ; try { contentStoreUtil . storeContentStream ( tempFile , spaceId , contentId , mimetype ) ; } catch ( DuraCloudRuntimeException ex ) { throw new IOException ( "flush failed: " + ex . getMessage ( ) , ex ) ; } |
public class OAuth2SessionRef { /** * Return the URI for this service ' s callback resource
* @ return */
public URI getOwnCallbackUri ( ) { } } | String localEndpointStr = ( oauthSelfEndpoint != null ) ? oauthSelfEndpoint : localEndpoint . toString ( ) ; if ( ! localEndpointStr . endsWith ( "/" ) ) localEndpointStr += "/" ; return URI . create ( localEndpointStr + "oauth2/client/cb" ) ; |
public class MessageItem { /** * ( non - Javadoc )
* The logic in this method has been reversed so that the register vs callbacks are handled
* like a stack rather than a queue . This sequence is now vital to SIB0115 and shouldn ' t be changed .
* @ see com . ibm . ws . sib . store . AbstractItem # eventPostRollb... | super . eventPostRollbackRemove ( transaction ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "eventPostRollbackRemove" , transaction ) ; if ( failedInitInRestore ) { initialiseNonPersistent ( true ) ; } try { // Don ' t change the order of this callback sequen... |
public class BRGImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eUnset ( int featureID ) { } } | switch ( featureID ) { case AfplibPackage . BRG__RGRP_NAME : setRGrpName ( RGRP_NAME_EDEFAULT ) ; return ; case AfplibPackage . BRG__TRIPLETS : getTriplets ( ) . clear ( ) ; return ; } super . eUnset ( featureID ) ; |
public class BuilderImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . security . jwt . internal . Builder # jwtId ( boolean ) */
@ Override public Builder jwtId ( boolean create ) { } } | if ( create ) { String jti = JwtUtils . getRandom ( 16 ) ; claims . put ( Claims . ID , jti ) ; } else { claims . remove ( Claims . ID ) ; } return this ; |
public class OlapQuery { /** * Check required parameters and set default values . */
private void checkDefaults ( ) { } } | Utils . require ( m_shards != null || m_shardsRange != null , "shards or range parameter is not set" ) ; Utils . require ( m_shards == null || m_shardsRange == null , "shards and range parameters cannot be both set" ) ; Utils . require ( m_continueAt == null || m_continueAfter == null , "Both continue-at and continue-a... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link ConstantType } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.w3.org/1998/Math/MathML" , name = "reals" ) public JAXBElement < ConstantType > createReals ( ConstantType value ) { } } | return new JAXBElement < ConstantType > ( _Reals_QNAME , ConstantType . class , null , value ) ; |
public class JDBCResultSet { /** * < ! - - start generic documentation - - >
* Maps the given < code > ResultSet < / code > column label to its
* < code > ResultSet < / code > column index .
* < ! - - end generic documentation - - >
* < ! - - start release - specific documentation - - >
* < div class = " Rele... | checkClosed ( ) ; if ( columnLabel == null ) { throw Util . nullArgument ( ) ; } int columnIndex ; // faster lookup for subsequent access
if ( columnMap != null ) { columnIndex = columnMap . get ( columnLabel , - 1 ) ; if ( columnIndex != - 1 ) { return columnIndex ; } } final String [ ] colLabels = resultMetaData . co... |
public class BeanMetaData { /** * Returns enterprise bean constructor
* ivEnterpriseBeanClassConstructor for default no - arg constructor
* ivEnterpriseBeanFactory . getConstructor ( ) for non default
* @ throws ManagedObjectException */
public Constructor < ? > getEnterpriseBeanClassConstructor ( ) { } } | Constructor < ? > constructor = ivEnterpriseBeanClassConstructor ; if ( constructor == null ) { constructor = ivEnterpriseBeanFactory . getConstructor ( ) ; } return constructor ; |
public class LocalQueue { /** * Purge some messages from the buffer */
public void purge ( MessageSelector selector ) throws JMSException { } } | if ( volatileStore != null ) purgeStore ( volatileStore , selector ) ; if ( persistentStore != null ) { openTransaction ( ) ; try { purgeStore ( persistentStore , selector ) ; commitChanges ( ) ; } finally { closeTransaction ( ) ; } } |
public class BinaryReader { /** * Read an unsigned short from the input stream .
* @ return The number read .
* @ throws IOException If no number to read . */
public int expectUInt16 ( ) throws IOException { } } | int b1 = in . read ( ) ; if ( b1 < 0 ) { throw new IOException ( "Missing byte 1 to expected uint16" ) ; } int b2 = in . read ( ) ; if ( b2 < 0 ) { throw new IOException ( "Missing byte 2 to expected uint16" ) ; } return unshift2bytes ( b1 , b2 ) ; |
public class MyArrays { /** * 对数组的绝对值由大到小排序 , 返回调整后元素对于的原始下标
* @ param c
* 待排序数组
* @ return 原始下标 */
public static int [ ] sort ( float [ ] c ) { } } | HashMap < Integer , Float > map = new HashMap < Integer , Float > ( ) ; for ( int i = 0 ; i < c . length ; i ++ ) { if ( c [ i ] != 0.0 ) { map . put ( i , Math . abs ( c [ i ] ) ) ; } } ArrayList < Map . Entry < Integer , Float > > list = new ArrayList < Map . Entry < Integer , Float > > ( map . entrySet ( ) ) ; Colle... |
public class SRTMProvider { /** * The URLs are a bit ugly and so we need to find out which area name a certain lat , lon
* coordinate has . */
private SRTMProvider init ( ) { } } | try { String strs [ ] = { "Africa" , "Australia" , "Eurasia" , "Islands" , "North_America" , "South_America" } ; for ( String str : strs ) { InputStream is = getClass ( ) . getResourceAsStream ( str + "_names.txt" ) ; for ( String line : Helper . readFile ( new InputStreamReader ( is , Helper . UTF_CS ) ) ) { int lat =... |
public class PDFDomTree { /** * Creates an element that represents a rectangle drawn at the specified coordinates in the page .
* @ param x the X coordinate of the rectangle
* @ param y the Y coordinate of the rectangle
* @ param width the width of the rectangle
* @ param height the height of the rectangle
* ... | float lineWidth = transformWidth ( getGraphicsState ( ) . getLineWidth ( ) ) ; float wcor = stroke ? lineWidth : 0.0f ; float strokeOffset = wcor == 0 ? 0 : wcor / 2 ; width = width - wcor < 0 ? 1 : width - wcor ; height = height - wcor < 0 ? 1 : height - wcor ; StringBuilder pstyle = new StringBuilder ( 50 ) ; pstyle ... |
public class FbBotMillServlet { /** * Specifies how to handle a GET request . GET requests are used by Facebook
* only during the WebHook registration . During this phase , the
* FbBotMillServlet checks that the
* { @ link FbBotMillNetworkConstants # HUB _ MODE _ PARAMETER } value received
* equals to { @ link ... | // Retrieves GET parameters .
String validationToken = FbBotMillContext . getInstance ( ) . getValidationToken ( ) ; Map < String , String [ ] > parameters = req . getParameterMap ( ) ; String hubMode = safeUnwrapGetParameters ( parameters . get ( FbBotMillNetworkConstants . HUB_MODE_PARAMETER ) ) ; String hubToken = s... |
public class SerDeserializers { /** * Finds the deserializer for the specified type .
* The { @ code DefaultDeserializer } is used if one has not been registered .
* @ param type the type , not null
* @ return the deserializer , not null */
public SerDeserializer findDeserializer ( Class < ? > type ) { } } | SerDeserializer deser = deserializers . get ( type ) ; if ( deser != null ) { return deser ; } for ( SerDeserializerProvider provider : providers ) { deser = provider . findDeserializer ( type ) ; if ( deser != null ) { return deser ; } } return defaultDeserializer ; |
public class ClientPrepareResult { /** * Valid that query is valid ( no ending semi colon , or end - of line comment ) .
* @ param queryString query
* @ param noBackslashEscapes escape
* @ return valid flag */
public static boolean canAggregateSemiColon ( String queryString , boolean noBackslashEscapes ) { } } | LexState state = LexState . Normal ; char lastChar = '\0' ; boolean singleQuotes = false ; boolean endingSemicolon = false ; char [ ] query = queryString . toCharArray ( ) ; for ( char car : query ) { if ( state == LexState . Escape && ! ( ( car == '\'' && singleQuotes ) || ( car == '"' && ! singleQuotes ) ) ) { state ... |
public class MemcachedBackupSessionManager { /** * { @ inheritDoc } */
@ Override public void stop ( ) throws LifecycleException { } } | if ( log . isDebugEnabled ( ) ) { log . debug ( "Stopping" ) ; } // Validate and update our current component state
if ( ! _started ) { throw new LifecycleException ( sm . getString ( "standardManager.notStarted" ) ) ; } _lifecycle . fireLifecycleEvent ( STOP_EVENT , null ) ; _started = false ; // Require a new random ... |
public class RoundedMoney { /** * ( non - Javadoc )
* @ see javax . money . MonetaryAmount # with ( java . lang . Number ) */
public RoundedMoney with ( Number amount ) { } } | checkNumber ( amount ) ; return new RoundedMoney ( MoneyUtils . getBigDecimal ( amount ) , currency , rounding ) ; |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getGCFLT ( ) { } } | if ( gcfltEClass == null ) { gcfltEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 450 ) ; } return gcfltEClass ; |
public class vpnvserver_authenticationsamlpolicy_binding { /** * Use this API to fetch vpnvserver _ authenticationsamlpolicy _ binding resources of given name . */
public static vpnvserver_authenticationsamlpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { } } | vpnvserver_authenticationsamlpolicy_binding obj = new vpnvserver_authenticationsamlpolicy_binding ( ) ; obj . set_name ( name ) ; vpnvserver_authenticationsamlpolicy_binding response [ ] = ( vpnvserver_authenticationsamlpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; |
public class AbstractIoAcceptor { /** * { @ inheritDoc } */
@ Override public final Set < SocketAddress > getLocalAddresses ( ) { } } | Set < SocketAddress > localAddresses = new HashSet < > ( ) ; synchronized ( bindLock ) { localAddresses . addAll ( boundAddresses ) ; } return localAddresses ; |
public class ProgramMeta { /** * Map of program name to meta of included programs
* @ return Optional of the < code > includes < / code > field value . */
@ javax . annotation . Nonnull public java . util . Optional < java . util . Map < String , net . morimekta . providence . model . ProgramMeta > > optionalIncludes... | return java . util . Optional . ofNullable ( mIncludes ) ; |
public class ProtoStuffSerialization { /** * Enables ProtoStuff Serialization support in Hadoop . */
public static void enableProtoStuffSerialization ( Configuration conf ) { } } | String ser = conf . get ( "io.serializations" ) . trim ( ) ; if ( ser . length ( ) != 0 ) { ser += "," ; } // Adding the ProtoStuff serialization
ser += ProtoStuffSerialization . class . getName ( ) ; conf . set ( "io.serializations" , ser ) ; |
public class ApiOvhTelephony { /** * Replace the phone by its spare . The broken phone became a spare if it was bought . An RMA is created if the broken phone is under securitydeposit .
* REST : POST / telephony / spare / { spare } / replace
* @ param domain [ required ] The phone to replace by the spare
* @ para... | String qPath = "/telephony/spare/{spare}/replace" ; StringBuilder sb = path ( qPath , spare ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "domain" , domain ) ; addBody ( o , "ip" , ip ) ; exec ( qPath , "POST" , sb . toString ( ) , o ) ; |
public class BaseAppenderatorDriver { /** * Find a segment in the { @ link SegmentState # APPENDING } state for the given timestamp and sequenceName . */
private SegmentIdWithShardSpec getAppendableSegment ( final DateTime timestamp , final String sequenceName ) { } } | synchronized ( segments ) { final SegmentsForSequence segmentsForSequence = segments . get ( sequenceName ) ; if ( segmentsForSequence == null ) { return null ; } final Map . Entry < Long , SegmentsOfInterval > candidateEntry = segmentsForSequence . floor ( timestamp . getMillis ( ) ) ; if ( candidateEntry != null ) { ... |
public class JMExceptionManager { /** * Log exception .
* @ param log the log
* @ param throwable the throwable
* @ param methodName the method name
* @ param params the params */
@ Deprecated public static void logException ( Logger log , Throwable throwable , String methodName , Object ... params ) { } } | handleException ( log , throwable , methodName , params ) ; |
public class ResolveVisitor { /** * resolve constant - looking expressions statically ( do here as gets transformed away later ) */
private Expression transformInlineConstants ( Expression exp ) { } } | if ( exp instanceof PropertyExpression ) { PropertyExpression pe = ( PropertyExpression ) exp ; if ( pe . getObjectExpression ( ) instanceof ClassExpression ) { ClassExpression ce = ( ClassExpression ) pe . getObjectExpression ( ) ; ClassNode type = ce . getType ( ) ; if ( type . isEnum ( ) ) return exp ; FieldNode fn ... |
public class A_CmsResourceCollector { /** * Shrinks a List to fit a maximum size . < p >
* @ param result a List
* @ param maxSize the maximum size of the List
* @ param explicitNumResults the value of the numResults parameter given to the getResults method ( this overrides maxSize if it is positive )
* @ retur... | return shrinkToFit ( result , explicitNumResults > 0 ? explicitNumResults : maxSize ) ; |
public class TypeUtils { /** * Parse a Java identifier with the given separator ( ' . ' or ' / ' ) . Potentially replaces the separator with a
* different character . Appends the identifier to the token buffer in the parser .
* @ param parser
* The parser .
* @ param separator
* The separator character .
* ... | boolean consumedChar = false ; while ( parser . hasMore ( ) ) { final char c = parser . peek ( ) ; if ( c == separator ) { parser . appendToToken ( separatorReplace ) ; parser . next ( ) ; consumedChar = true ; } else if ( c != ';' && c != '[' && c != '<' && c != '>' && c != ':' && c != '/' && c != '.' ) { parser . app... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.