signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class CRestBuilder { /** * < p > Binds a deserializer to a list of interface method ' s return types . < / p > * < p > By default , < b > CRest < / b > handle the following types : < / p > * < ul > * < li > all primitives and wrapper types < / li > * < li > java . io . InputStream < / li > * < li > jav...
this . classDeserializerBuilder . register ( deserializer , classes , config ) ; return this ;
public class Table { /** * Starts a BigQuery Job to copy the current table to the provided destination table . Returns the * started { @ link Job } object . * < p > Example copying the table to a destination table . * < pre > { @ code * String dataset = " my _ dataset " ; * String tableName = " my _ destinati...
CopyJobConfiguration configuration = CopyJobConfiguration . of ( destinationTable , getTableId ( ) ) ; return bigquery . create ( JobInfo . of ( configuration ) , options ) ;
public class DatabasesInner { /** * Exports a database to a bacpac . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server . * @ param databaseName The name o...
return ServiceFuture . fromResponse ( beginExportWithServiceResponseAsync ( resourceGroupName , serverName , databaseName , parameters ) , serviceCallback ) ;
public class AnnotationInfoImpl { /** * the enumeration class name and the enumeration literal value . */ public AnnotationValueImpl addAnnotationValue ( String name , String enumClassName , String enumName ) { } }
AnnotationValueImpl annotationValue = new AnnotationValueImpl ( enumClassName , enumName ) ; addAnnotationValue ( name , annotationValue ) ; return annotationValue ;
public class IoUtil { /** * 从流中读取内容 , 读到输出流中 * @ param in 输入流 * @ return 输出流 * @ throws IORuntimeException IO异常 */ public static FastByteArrayOutputStream read ( InputStream in ) throws IORuntimeException { } }
final FastByteArrayOutputStream out = new FastByteArrayOutputStream ( ) ; copy ( in , out ) ; return out ;
public class HeartbeatImpl { /** * Sends a server status message to the hub servers . The server message * contains the status for the current server . */ private void sendSpokeHeartbeats ( ) { } }
for ( ServerTarget target : _targets ) { ServerHeartbeat server = target . getServer ( ) ; if ( server . getRack ( ) != _rack ) { continue ; } if ( isHub ( server ) ) { target . sendServerHeartbeat ( getServerSelf ( ) . getUpdate ( ) ) ; } }
public class JvmTypeAnnotationValueImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eUnset ( int featureID ) { } }
switch ( featureID ) { case TypesPackage . JVM_TYPE_ANNOTATION_VALUE__VALUES : getValues ( ) . clear ( ) ; return ; } super . eUnset ( featureID ) ;
public class CPOptionValuePersistenceImpl { /** * Returns the cp option value where CPOptionId = & # 63 ; and key = & # 63 ; or throws a { @ link NoSuchCPOptionValueException } if it could not be found . * @ param CPOptionId the cp option ID * @ param key the key * @ return the matching cp option value * @ thro...
CPOptionValue cpOptionValue = fetchByC_K ( CPOptionId , key ) ; if ( cpOptionValue == null ) { StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "CPOptionId=" ) ; msg . append ( CPOptionId ) ; msg . append ( ", key=" ) ; msg . append ( key ) ; msg . append ( "}" ) ...
public class RandomUtil { /** * 随机获得列表中的一定量的不重复元素 , 返回Set * @ param < T > 元素类型 * @ param collection 列表 * @ param count 随机取出的个数 * @ return 随机元素 * @ throws IllegalArgumentException 需要的长度大于给定集合非重复总数 */ public static < T > Set < T > randomEleSet ( Collection < T > collection , int count ) { } }
ArrayList < T > source = new ArrayList < > ( new HashSet < > ( collection ) ) ; if ( count > source . size ( ) ) { throw new IllegalArgumentException ( "Count is larger than collection distinct size !" ) ; } final HashSet < T > result = new HashSet < T > ( count ) ; int limit = collection . size ( ) ; while ( result . ...
public class Selector { /** * Unselect all elements . */ private void unSelectAll ( ) { } }
final int n = selected . size ( ) ; for ( int i = 0 ; i < n ; i ++ ) { selected . get ( i ) . onSelection ( false ) ; } selected . clear ( ) ;
public class ns_device_profile { /** * < pre > * Converts API response of bulk operation into object and returns the object array in case of get request . * < / pre > */ protected base_resource [ ] get_nitro_bulk_response ( nitro_service service , String response ) throws Exception { } }
ns_device_profile_responses result = ( ns_device_profile_responses ) service . get_payload_formatter ( ) . string_to_resource ( ns_device_profile_responses . class , response ) ; if ( result . errorcode != 0 ) { if ( result . errorcode == SESSION_NOT_EXISTS ) service . clear_session ( ) ; throw new nitro_exception ( re...
public class Mapper { /** * Creates a new mapper instance . * Shares common data ( esp . scanner and parser table with this instance . */ public Mapper newInstance ( ) { } }
Mapper mapper ; mapper = new Mapper ( name , parser . newInstance ( ) , oag . newInstance ( ) ) ; mapper . setLogging ( logParsing , logAttribution ) ; return mapper ;
public class CodecCollector { /** * Creates the kwic . * @ param kwicList * the kwic list * @ param spansMatchData * the spans match data * @ param docList * the doc list * @ param field * the field * @ param docBase * the doc base * @ param uniqueKeyField * the unique key field * @ param mtas...
if ( kwicList != null ) { for ( ComponentKwic kwic : kwicList ) { Map < Integer , List < Match > > matchData = spansMatchData . get ( kwic . query ) ; List < Match > matchList ; if ( kwic . output . equals ( ComponentKwic . KWIC_OUTPUT_HIT ) ) { for ( int docId : docList ) { if ( matchData != null && ( matchList = matc...
public class CmsGalleryController { /** * Remove the gallery from the search object . < p > * @ param galleryPath the gallery path as id */ public void removeGallery ( String galleryPath ) { } }
m_searchObject . removeGallery ( galleryPath ) ; m_searchObjectChanged = true ; m_galleriesChanged = true ; ValueChangeEvent . fire ( this , m_searchObject ) ;
public class PassThruTable { /** * Remove this table from this table list . * @ param table The table to remove . */ public boolean removeTable ( BaseTable table ) { } }
if ( m_mapTable != null ) { for ( Object objKey : m_mapTable . keySet ( ) ) { if ( table == m_mapTable . get ( objKey ) ) { return ( m_mapTable . remove ( objKey ) != null ) ; } } } else { if ( this . getNextTable ( ) != null ) return this . getNextTable ( ) . removeTable ( table ) ; } return super . removeTable ( tabl...
public class AdminAccesstokenAction { private HtmlResponse asListHtml ( ) { } }
return asHtml ( path_AdminAccesstoken_AdminAccesstokenJsp ) . renderWith ( data -> { RenderDataUtil . register ( data , "accessTokenItems" , accessTokenService . getAccessTokenList ( accessTokenPager ) ) ; } ) . useForm ( SearchForm . class , setup -> { setup . setup ( form -> { copyBeanToBean ( accessTokenPager , form...
public class PBS { /** * Executes a PBS command . * @ param cmdLine command * @ param environment env vars * @ param out output stream * @ param err err stream * @ return execute handler * @ throws ExecuteException if there is an error executing a command * @ throws IOException in case of an IO problem */...
DefaultExecuteResultHandler resultHandler = new DefaultExecuteResultHandler ( ) ; ExecuteStreamHandler streamHandler = new PumpStreamHandler ( out , err ) ; DefaultExecutor executor = new DefaultExecutor ( ) ; executor . setExitValue ( 0 ) ; executor . setStreamHandler ( streamHandler ) ; if ( environment != null ) { e...
public class BaseMessageFilter { /** * Add this message listener to the listener list . * Also adds the filter to my filter list . * @ param listener The message listener to set this filter to . */ public void addMessageListener ( JMessageListener listener ) { } }
if ( listener == null ) return ; // Never this . removeDuplicateFilters ( listener ) ; // Remove any duplicate record filters if ( m_vListenerList == null ) m_vListenerList = new Vector < JMessageListener > ( ) ; for ( int i = 0 ; i < m_vListenerList . size ( ) ; i ++ ) { if ( m_vListenerList . get ( i ) == listener ) ...
public class CachingURLStreamHandlerFactory { /** * returns the URL class ' s stream handler for a protocol . this uses inspection . * @ param protocol * the protocol * @ return the URLStreamHandler , null if it cannot be retrieved . */ private URLStreamHandler getURLStreamHandler ( final String protocol ) { } }
try { final Method method = URL . class . getDeclaredMethod ( "getURLStreamHandler" , String . class ) ; method . setAccessible ( true ) ; return ( URLStreamHandler ) method . invoke ( null , protocol ) ; } catch ( final Exception e ) { if ( logger . isWarnEnabled ( ) ) { logger . warn ( "could not access URL.getUrlStr...
public class SwingGroovyMethods { /** * Returns an { @ link java . util . Iterator } which traverses the DefaultTableModel one item at a time . * @ param self a DefaultTableModel * @ return an Iterator for a DefaultTableModel * @ since 1.6.4 */ public static Iterator iterator ( final DefaultTableModel self ) { } ...
return new Iterator ( ) { private int row = 0 ; public boolean hasNext ( ) { return row > - 1 && row < self . getRowCount ( ) ; } public Object next ( ) { int cols = self . getColumnCount ( ) ; Object [ ] rowData = new Object [ cols ] ; for ( int col = 0 ; col < cols ; col ++ ) { rowData [ col ] = self . getValueAt ( r...
public class SpeechToText { /** * List grammars . * Lists information about all grammars from a custom language model . The information includes the total number of * out - of - vocabulary ( OOV ) words , name , and status of each grammar . You must use credentials for the instance of the * service that owns a mo...
Validator . notNull ( listGrammarsOptions , "listGrammarsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "grammars" } ; String [ ] pathParameters = { listGrammarsOptions . customizationId ( ) } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoin...
public class SQLExceptionMapper { /** * Maps an exception to a response or returns null if it wasn ' t handled * @ param sqlEx * @ return */ public static Response map ( SQLException sqlEx ) { } }
if ( null != sqlEx . getSQLState ( ) ) { switch ( sqlEx . getSQLState ( ) ) { // query _ canceled case "57014" : return Response . status ( 504 ) . entity ( sqlEx . getMessage ( ) ) . build ( ) ; case "2201B" : // regular expression did not compile AqlParseError error = new AqlParseError ( sqlEx . getMessage ( ) ) ; re...
public class DescribeRecoveryPointRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DescribeRecoveryPointRequest describeRecoveryPointRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( describeRecoveryPointRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeRecoveryPointRequest . getBackupVaultName ( ) , BACKUPVAULTNAME_BINDING ) ; protocolMarshaller . marshall ( describeRecoveryPointRequest . getRecove...
public class SaltClient { /** * Returns a WebSocket @ ClientEndpoint annotated object connected * to the / ws ServerEndpoint . * The stream object supports the { @ link WebSocketEventStream } interface which allows the caller * to register / unregister for stream event notifications as well as close the event *...
return new WebSocketEventStream ( uri , token , sessionIdleTimeout , idleTimeout , maxMsgSize , listeners ) ;
public class AbstractSimpleBeanConverter { /** * Convert element to another object given a parameterized type signature * @ param context * @ param destinationType * the destination type * @ param source * the source object * @ return the converted object * @ throws ConverterException * if conversion fa...
return ( T ) elementConverter . convert ( context , source , destinationType ) ;
public class FileSystem { /** * Test if the given filename is a local filename and extract * the path component . * @ param filename the filename . * @ return the path . */ @ Pure @ SuppressWarnings ( "checkstyle:magicnumber" ) private static String extractLocalPath ( String filename ) { } }
if ( filename == null ) { return null ; } final int max = Math . min ( FILE_PREFIX . length , filename . length ( ) ) ; final int inner = max - 2 ; if ( inner <= 0 ) { return filename ; } boolean foundInner = false ; boolean foundFull = false ; for ( int i = 0 ; i < max ; ++ i ) { final char c = Character . toLowerCase...
public class JMTimeUtil { /** * Change timestamp to new format string . * @ param originDateFormat the origin date format * @ param originTimestamp the origin timestamp * @ param newDateFormat the new date format * @ return the string */ public static String changeTimestampToNewFormat ( String originDateFormat ...
return getTime ( changeTimestampToLong ( getSimpleDateFormat ( originDateFormat ) , originTimestamp ) , newDateFormat ) ;
public class filterhtmlinjectionvariable { /** * Use this API to fetch filterhtmlinjectionvariable resource of given name . */ public static filterhtmlinjectionvariable get ( nitro_service service , String variable ) throws Exception { } }
filterhtmlinjectionvariable obj = new filterhtmlinjectionvariable ( ) ; obj . set_variable ( variable ) ; filterhtmlinjectionvariable response = ( filterhtmlinjectionvariable ) obj . get_resource ( service ) ; return response ;
public class AdministeredObjectDefinitionProcessor { /** * ( non - Javadoc ) * @ see com . ibm . wsspi . injectionengine . InjectionProcessor # processXML ( ) */ @ Override public void processXML ( ) throws InjectionException { } }
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "processXML : " + this ) ; List < ? extends AdministeredObject > administeredObjectDefinitions = ivNameSpaceConfig . getJNDIEnvironmentRefs ( AdministeredObject . class ) ; if ( administere...
public class MurmurHash3v2 { /** * Returns a 128 - bit hash of the input . * @ param in a String * @ param seed A long valued seed . * @ param hashOut A long array of size 2 * @ return the hash */ public static long [ ] hash ( final String in , final long seed , final long [ ] hashOut ) { } }
if ( ( in == null ) || ( in . length ( ) == 0 ) ) { return emptyOrNull ( seed , hashOut ) ; } final byte [ ] byteArr = in . getBytes ( UTF_8 ) ; return hash ( Memory . wrap ( byteArr ) , 0L , byteArr . length , seed , hashOut ) ;
public class AmazonLightsailClient { /** * Deletes a database in Amazon Lightsail . * The < code > delete relational database < / code > operation supports tag - based access control via resource tags applied * to the resource identified by relationalDatabaseName . For more information , see the < a * href = " ht...
request = beforeClientExecution ( request ) ; return executeDeleteRelationalDatabase ( request ) ;
public class ContextPreprocessorIt { /** * Finds multiwords in context . * @ param context data structure of input label * @ return context with multiwords * @ throws ContextPreprocessorException ContextPreprocessorException */ private IContext findMultiwordsInContextStructure ( IContext context ) throws ContextP...
for ( Iterator < INode > i = context . getNodes ( ) ; i . hasNext ( ) ; ) { INode sourceNode = i . next ( ) ; // sense disambiguation within the context structure // for all ACoLs in the source node for ( Iterator < IAtomicConceptOfLabel > j = sourceNode . getNodeData ( ) . getACoLs ( ) ; j . hasNext ( ) ; ) { IAtomicC...
public class BindDataSourceSubProcessor { /** * Analyze round . * @ param annotations * the annotations * @ param roundEnv * the round env * @ return true , if successful */ public boolean analyzeRound ( Set < ? extends TypeElement > annotations , RoundEnvironment roundEnv ) { } }
parseBindType ( roundEnv ) ; // Put all @ BindSqlType elements in beanElements for ( Element item : roundEnv . getElementsAnnotatedWith ( BindSqlType . class ) ) { if ( item . getKind ( ) != ElementKind . CLASS ) { String msg = String . format ( "%s %s, only class can be annotated with @%s annotation" , item . getKind ...
public class ns_config_diff { /** * < pre > * Use this operation to get config diff between source and target configuration files in the tabular format . * < / pre > */ public static ns_config_diff diff_table ( nitro_service client , ns_config_diff resource ) throws Exception { } }
return ( ( ns_config_diff [ ] ) resource . perform_operation ( client , "diff_table" ) ) [ 0 ] ;
public class SipSessionImpl { /** * This method is called immediately when the conditions for read to invalidate * session are met */ public void onReadyToInvalidate ( ) { } }
if ( isB2BUAOrphan ( ) ) { logger . debug ( "Session is B2BUA Orphaned, lets invalidate" ) ; setReadyToInvalidate ( true ) ; } if ( ! readyToInvalidate ) { logger . debug ( "Session not ready to invalidate, wait next chance." ) ; return ; } boolean allDerivedReady = true ; Iterator < MobicentsSipSession > derivedSessio...
public class Parser { /** * Generate sql for escaped functions . * @ param newsql destination StringBuilder * @ param functionName the escaped function name * @ param sql input SQL text ( containing arguments of a function call with possible JDBC escapes ) * @ param i position in the input SQL * @ param stdSt...
// Maximum arity of functions in EscapedFunctions is 3 List < CharSequence > parsedArgs = new ArrayList < CharSequence > ( 3 ) ; while ( true ) { StringBuilder arg = new StringBuilder ( ) ; int lastPos = i ; i = parseSql ( sql , i , arg , true , stdStrings ) ; if ( i != lastPos ) { parsedArgs . add ( arg ) ; } if ( i >...
public class UriEscape { /** * Perform am URI fragment identifier < strong > escape < / strong > operation * on a < tt > String < / tt > input , writing results to a < tt > Writer < / tt > . * The following are the only allowed chars in an URI fragment identifier ( will not be escaped ) : * < ul > * < li > < tt...
if ( writer == null ) { throw new IllegalArgumentException ( "Argument 'writer' cannot be null" ) ; } if ( encoding == null ) { throw new IllegalArgumentException ( "Argument 'encoding' cannot be null" ) ; } UriEscapeUtil . escape ( new InternalStringReader ( text ) , writer , UriEscapeUtil . UriEscapeType . FRAGMENT_I...
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EEnum getIfcActuatorTypeEnum ( ) { } }
if ( ifcActuatorTypeEnumEEnum == null ) { ifcActuatorTypeEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 772 ) ; } return ifcActuatorTypeEnumEEnum ;
public class PCMMetadata { /** * Return the sorted features concordingly with metadata * @ return an ordered list of features */ public List < Feature > getSortedFeatures ( ) { } }
ArrayList < Feature > result = new ArrayList < > ( pcm . getConcreteFeatures ( ) ) ; Collections . sort ( result , new Comparator < Feature > ( ) { @ Override public int compare ( Feature f1 , Feature f2 ) { Integer fp1 = getFeaturePosition ( f1 ) ; Integer fp2 = getFeaturePosition ( f2 ) ; return fp1 . compareTo ( fp2...
public class CommonAhoCorasickSegmentUtil { /** * 逆向最长分词 , 合并未知语素 * @ param charArray 文本 * @ param trie 自动机 * @ param < V > 类型 * @ return 结果链表 */ public static < V > LinkedList < ResultTerm < V > > segmentReverseOrder ( final char [ ] charArray , AhoCorasickDoubleArrayTrie < V > trie ) { } }
LinkedList < ResultTerm < V > > termList = new LinkedList < ResultTerm < V > > ( ) ; final ResultTerm < V > [ ] wordNet = new ResultTerm [ charArray . length + 1 ] ; trie . parseText ( charArray , new AhoCorasickDoubleArrayTrie . IHit < V > ( ) { @ Override public void hit ( int begin , int end , V value ) { if ( wordN...
public class XML { /** * Adds an annotated Class to xmlJmapper structure . * @ param aClass Class to convert to XmlClass * @ return this instance of XML */ private XML addClass ( Class < ? > aClass ) { } }
xmlJmapper . classes . add ( Converter . toXmlClass ( aClass ) ) ; return this ;
public class UserProfileExample { /** * Print the user profiles and actions for all users with the provided last * name * This method demonstrates how to open a scanner with a start key . It ' s using * the composite dao , so the records it returns will be a composite of both * the profile model and actions mod...
// Create a partial key that will allow us to start the scanner from the // first user record that has last name equal to the one provided . PartitionKey startKey = new PartitionKey ( "lastName" ) ; // Get the scanner with the start key . Null for stopKey in the getScanner // method indicates that the scanner will scan...
public class Between { /** * Returns the maximum condition . */ public BoundedAssertion getMax ( ) { } }
ICondition max = null ; Iterator < ICondition > conditions = getConditions ( ) ; for ( int i = 0 ; i < 2 ; i ++ ) max = conditions . next ( ) ; return ( BoundedAssertion ) max ;
public class AdaptedIterator { /** * / * ( non - Javadoc ) * @ see java . util . Iterator # next ( ) */ public T next ( ) { } }
if ( cachedNext == null ) { throw new NoSuchElementException ( "call hasNext first!" ) ; } T o = cachedNext ; cachedNext = null ; return o ;
public class ConsumerSessionProxy { /** * This method will turn this consumer from a synchronous consumer to asynchronous * consumer , registering the callback as the means by which to consume messages . * Calling this method successively causes the existing callback to be discarded * and replaced with the new on...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "registerAsynchConsumerCallback" , new Object [ ] { callback , maxActiveMessages , messageLockExpiry , maxBatchSize , orderingContext } ) ; if ( executingOnCallbackThread ( ) ) { if ( TraceComponent . isAnyTracingEnab...
public class TypeMappings { /** * Get the input user display name mapping for the UserRegistry . * @ param inputVirtualRealm Virtual realm to find the mappings . * @ return The input user display name property . * @ pre inputVirtualRealm ! = null * @ pre inputVirtualRealm ! = " " * @ post $ return ! = " " *...
// initialize the return value String returnValue = getInputMapping ( inputVirtualRealm , Service . CONFIG_DO_USER_DISPLAY_NAME_MAPPING , USER_DISPLAY_NAME_DEFAULT ) ; return returnValue ;
public class Message { /** * Returns a copy of the array returned by { @ link Message # unsafeBitcoinSerialize ( ) } , which is safe to mutate . * If you need extra performance and can guarantee you won ' t write to the array , you can use the unsafe version . * @ return a freshly allocated serialized byte array */...
byte [ ] bytes = unsafeBitcoinSerialize ( ) ; byte [ ] copy = new byte [ bytes . length ] ; System . arraycopy ( bytes , 0 , copy , 0 , bytes . length ) ; return copy ;
public class ConfigFactory { /** * Parses a file with a flexible extension . If the < code > fileBasename < / code > * already ends in a known extension , this method parses it according to * that extension ( the file ' s syntax must match its extension ) . If the * < code > fileBasename < / code > does not end i...
return ConfigImpl . parseFileAnySyntax ( fileBasename , options ) . toConfig ( ) ;
public class LoggingConfiguration { /** * Replace the default log handler with the given log handler . * This will remove all { @ link CLISmartHandler } found on the root logger . It * will leave any other handlers in place . * @ param handler Logging handler . */ public static void replaceDefaultHandler ( Handle...
Logger rootlogger = LogManager . getLogManager ( ) . getLogger ( "" ) ; for ( Handler h : rootlogger . getHandlers ( ) ) { if ( h instanceof CLISmartHandler ) { rootlogger . removeHandler ( h ) ; } } addHandler ( handler ) ;
public class CeylonUtil { /** * Extracts a single file from a zip archive . * @ param in Input zip stream * @ param outdir Output directory * @ param name File name * @ throws IOException In case of IO error */ public static void extractFile ( final ZipInputStream in , final File outdir , final String name ) th...
byte [ ] buffer = new byte [ BUFFER_SIZE ] ; BufferedOutputStream out = new BufferedOutputStream ( new FileOutputStream ( new File ( outdir , name ) ) ) ; int count = - 1 ; while ( ( count = in . read ( buffer ) ) != - 1 ) { out . write ( buffer , 0 , count ) ; } out . close ( ) ;
public class ImpreciseDateTimeField { /** * Computes the difference between two instants , as measured in the units * of this field . Any fractional units are dropped from the result . Calling * getDifference reverses the effect of calling add . In the following code : * < pre > * long instant = . . . * long ...
if ( minuendInstant < subtrahendInstant ) { return - getDifferenceAsLong ( subtrahendInstant , minuendInstant ) ; } long difference = ( minuendInstant - subtrahendInstant ) / iUnitMillis ; if ( add ( subtrahendInstant , difference ) < minuendInstant ) { do { difference ++ ; } while ( add ( subtrahendInstant , differenc...
public class ExecuteCommandInstruction { /** * ( non - Javadoc ) * @ see net . roboconf . core . commands . AbstractCommandInstruction # doValidate ( ) */ @ Override public List < ParsingError > doValidate ( ) { } }
String fileName = this . commandName + Constants . FILE_EXT_COMMANDS ; File commandsDirectory = new File ( this . context . getApp ( ) . getDirectory ( ) , Constants . PROJECT_DIR_COMMANDS ) ; File commandFileToExecute ; List < ParsingError > result = new ArrayList < > ( ) ; if ( Utils . isEmptyOrWhitespaces ( this . c...
public class KeyManagerActor { /** * Fetching own private pre key by public key * @ param publicKey public key material for search */ private Promise < PrivateKey > fetchPreKey ( byte [ ] publicKey ) { } }
try { return Promise . success ( ManagedList . of ( ownKeys . getPreKeys ( ) ) . filter ( PrivateKey . PRE_KEY_EQUALS ( publicKey ) ) . first ( ) ) ; } catch ( Exception e ) { Log . d ( TAG , "Unable to find own pre key " + Crypto . keyHash ( publicKey ) ) ; for ( PrivateKey p : ownKeys . getPreKeys ( ) ) { Log . d ( T...
public class StatefulASActivationStrategy { /** * Overridden to enlist the bean in the current activity session , * if one exists . < p > * This method is called when a user transaction or user activity * session is beginning or ending . An activity session will only * be active for the case where beginSession ...
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "atEnlist (" + tx + ", " + bean + ")" ) ; // Get the current ContainerAS ContainerAS as = ContainerAS . getContainerAS ( tx ) ; // Allow the parent to properly enlist the bean in the transa...
public class FsItemFilterUtils { /** * returns a FsItemFilter according to given mimeFilters * @ param mimeFilters * An array of MIME types , if < code > null < / code > no filtering is * done * @ return A filter that only accepts the supplied MIME types . */ public static FsItemFilter createMimeFilter ( final ...
if ( mimeFilters == null || mimeFilters . length == 0 ) return FILTER_ALL ; return new FsItemFilter ( ) { @ Override public boolean accepts ( FsItemEx item ) { String mimeType = item . getMimeType ( ) . toUpperCase ( ) ; for ( String mf : mimeFilters ) { mf = mf . toUpperCase ( ) ; if ( mimeType . startsWith ( mf + "/"...
public class GVRPose { /** * Set the local matrix for this bone ( relative to parent bone ) . * All bones in the skeleton start out at the origin oriented along the bone axis ( usually 0,0,1 ) . * The pose orients and positions each bone in the skeleton with respect to this initial state . * The local bone matrix...
Bone bone = mBones [ boneindex ] ; int parentid = mSkeleton . getParentBoneIndex ( boneindex ) ; bone . LocalMatrix . set ( mtx ) ; bone . Changed = Bone . LOCAL_ROT ; if ( parentid < 0 ) { bone . WorldMatrix . set ( bone . LocalMatrix ) ; } else { mNeedSync = true ; } if ( sDebug ) { Log . d ( "BONE" , "setLocalMatrix...
public class PatientResourceProvider { /** * This is the " read " operation . The " @ Read " annotation indicates that this method supports the read and / or vread operation . * Read operations take a single parameter annotated with the { @ link IdParam } paramater , and should return a single resource instance . *...
Deque < Patient > retVal ; try { retVal = myIdToPatientVersions . get ( theId . getIdPartAsLong ( ) ) ; } catch ( NumberFormatException e ) { /* * If we can ' t parse the ID as a long , it ' s not valid so this is an unknown resource */ throw new ResourceNotFoundException ( theId ) ; } if ( theId . hasVersionIdPart ( )...
public class SqlLineOpts { /** * Builds and returns { @ link org . jline . builtins . Completers . RegexCompleter } for * < code > ! set < / code > command based on * ( in decreasing order of priority ) * < ul > * < li > Customizations via { @ code customCompletions } < / li > * < li > Available values define...
Map < String , Completer > comp = new HashMap < > ( ) ; final String start = "START" ; comp . put ( start , new StringsCompleter ( "!set" ) ) ; Collection < BuiltInProperty > booleanProperties = new ArrayList < > ( ) ; Collection < BuiltInProperty > withDefinedAvailableValues = new ArrayList < > ( ) ; StringBuilder sb ...
public class SecurityMarks { /** * Use { @ link # getMarksMap ( ) } instead . */ @ java . lang . Deprecated public java . util . Map < java . lang . String , java . lang . String > getMarks ( ) { } }
return getMarksMap ( ) ;
public class FilePath { /** * When this { @ link FilePath } represents a tar file , extracts that tar file . * @ param target * Target directory to expand files to . All the necessary directories will be created . * @ param compression * Compression mode of this tar file . * @ since 1.292 * @ see # untarFro...
// TODO : post release , re - unite two branches by introducing FileStreamCallable that resolves InputStream if ( this . channel != target . channel ) { // local - > remote or remote - > local final RemoteInputStream in = new RemoteInputStream ( read ( ) , Flag . GREEDY ) ; target . act ( new UntarRemote ( compression ...
public class BaseMonetaryConversionsSingletonSpi { /** * Allows to quickly check , if a { @ link javax . money . convert . CurrencyConversion } is accessible for the given * { @ link javax . money . convert . ConversionQuery } . * @ param termCurrency the terminating / target currency unit , not null . * @ param ...
return isConversionAvailable ( ConversionQueryBuilder . of ( ) . setTermCurrency ( termCurrency ) . setProviderNames ( providers ) . build ( ) ) ;
public class JoinObservable { /** * Joins the results from a pattern via its plan . * < img width = " 640 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / and _ then _ when . png " alt = " " > * @ param p1 * the plan to join , created by use of the { @ link # then }...
return from ( Observable . create ( OperatorJoinPatterns . when ( p1 ) ) ) ;
public class JmsConnectionImpl { /** * This method is called in order to mark that the clientID may now change . */ void unfixClientID ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unfixClientID" ) ; synchronized ( stateLock ) { clientIDFixed = false ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "unfixClientID" ) ;
public class URLCodec { /** * Convenience method for { @ link # decode ( CharSequence , OutputStream ) } . */ public static byte [ ] decodeToBytes ( CharSequence in ) throws IOException { } }
if ( in == null ) return null ; ByteArrayOutputStream baos = new ByteArrayOutputStream ( in . length ( ) ) ; decode ( in , baos ) ; return baos . toByteArray ( ) ;
public class UserTaskAdminServiceBase { /** * Helper methods */ protected OrganizationalEntity [ ] convert ( List < String > orgEntities , boolean isUser ) { } }
return orgEntities . stream ( ) . map ( isUser ? mapToUser : mapToGroup ) . toArray ( size -> new OrganizationalEntity [ size ] ) ;
public class GELFMessageChunk { /** * lol duplication */ private void extractSequenceCount ( ) { } }
if ( this . sequenceCount == - 1 ) { final int seqCnt = payload . getUnsignedByte ( HEADER_PART_SEQCNT_START ) ; if ( seqCnt >= 0 ) { this . sequenceCount = seqCnt ; } else { throw new IllegalStateException ( "Could not extract sequence count" ) ; } }
public class MainWindow { /** * Start the worker thread . */ private void startWorker ( ) { } }
JobServiceFactory serviceFactory = new JobServiceFactory ( ) { private boolean first = true ; public JobService connect ( ) { SwingUtilities . invokeLater ( new Runnable ( ) { public void run ( ) { setStatus ( "Connecting..." ) ; } } ) ; JobService service = first ? MainWindow . this . connect ( ) : reconnect ( ) ; if ...
public class StreamMetadataResourceImpl { /** * Implementation of deleteScope REST API . * @ param scopeName The scope name of stream . * @ param securityContext The security for API access . * @ param asyncResponse AsyncResponse provides means for asynchronous server side response processing . */ @ Override publ...
long traceId = LoggerHelpers . traceEnter ( log , "deleteScope" ) ; try { restAuthHelper . authenticateAuthorize ( getAuthorizationHeader ( ) , AuthResourceRepresentation . ofScopes ( ) , READ_UPDATE ) ; } catch ( AuthException e ) { log . warn ( "Delete scope for {} failed due to authentication failure." , scopeName )...
public class PolicyChecker { /** * Removes those nodes which do not intersect with the initial policies * specified by the user . * @ param rootNode the root node of the valid policy tree * @ param certIndex the index of the certificate being processed * @ param initPolicies the Set of policies required by the ...
List < PolicyInformation > policyInfo = null ; try { policyInfo = currCertPolicies . get ( CertificatePoliciesExtension . POLICIES ) ; } catch ( IOException ioe ) { throw new CertPathValidatorException ( "Exception while " + "retrieving policyOIDs" , ioe ) ; } boolean childDeleted = false ; for ( PolicyInformation curP...
public class PolynomialSolver { /** * Finds real and imaginary roots in a polynomial using the companion matrix and * Eigenvalue decomposition . The coefficients order is specified from smallest to largest . * Example , 5 + 6 * x + 7 * x ^ 2 + 8 * x ^ 3 = [ 5,6,7,8] * @ param coefficients Polynomial coefficients ...
PolynomialRoots alg = new RootFinderCompanion ( ) ; if ( ! alg . process ( Polynomial . wrap ( coefficients ) ) ) throw new IllegalArgumentException ( "Algorithm failed, was the input bad?" ) ; List < Complex_F64 > coefs = alg . getRoots ( ) ; return coefs . toArray ( new Complex_F64 [ 0 ] ) ;
public class ClusteringFeature { /** * Calculates the k - means costs of the ClusteringFeature and a point too a * center . * @ param center * the center too calculate the costs * @ param point * the point too calculate the costs * @ return the costs */ public double calcKMeansCosts ( double [ ] center , do...
assert ( this . sumPoints . length == center . length && this . sumPoints . length == point . length ) ; return ( this . sumSquaredLength + Metric . distanceSquared ( point ) ) - 2 * Metric . dotProductWithAddition ( this . sumPoints , point , center ) + ( this . numPoints + 1 ) * Metric . dotProduct ( center ) ;
public class DiscordApiImpl { /** * Gets a known custom emoji or creates a new ( unknown ) custom emoji object . * @ param id The id of the emoji . * @ param name The name of the emoji . * @ param animated Whether the emoji is animated or not . * @ return The emoji for the given json object . */ public CustomEm...
CustomEmoji emoji = customEmojis . get ( id ) ; return emoji == null ? new CustomEmojiImpl ( this , id , name , animated ) : emoji ;
public class Matrices { /** * Makes a maximum matrix accumulator that accumulates the maximum of matrix elements . * @ return a maximum vector accumulator */ public static MatrixAccumulator mkMaxAccumulator ( ) { } }
return new MatrixAccumulator ( ) { private double result = Double . NEGATIVE_INFINITY ; @ Override public void update ( int i , int j , double value ) { result = Math . max ( result , value ) ; } @ Override public double accumulate ( ) { double value = result ; result = Double . NEGATIVE_INFINITY ; return value ; } } ;
public class AbstractStrategy { /** * { @ inheritDoc } */ @ Override public void printGroundtruth ( final Long user , final PrintStream out , final OUTPUT_FORMAT format ) { } }
final Map < Long , Double > relItems = new HashMap < Long , Double > ( ) ; for ( Long i : test . getUserItems ( user ) ) { Double d = test . getUserItemPreference ( user , i ) ; if ( d >= threshold ) { relItems . put ( i , d ) ; } } printGroundtruth ( "" + user , relItems , out , format ) ;
public class ConcurrentLinkedDeque { /** * Unlinks non - null first node . */ private void unlinkFirst ( Node < E > first , Node < E > next ) { } }
// assert first ! = null ; // assert next ! = null ; // assert first . item = = null ; for ( Node < E > o = null , p = next , q ; ; ) { if ( p . item != null || ( q = p . next ) == null ) { if ( o != null && p . prev != p && first . casNext ( next , p ) ) { skipDeletedPredecessors ( p ) ; if ( first . prev == null && (...
public class Check { /** * Ensures that a passed map as a parameter of the calling method is not empty . * We recommend to use the overloaded method { @ link Check # notEmpty ( Collection , String ) } and pass as second argument * the name of the parameter to enhance the exception message . * @ param map * a ma...
IllegalNullArgumentException . class , IllegalEmptyArgumentException . class } ) public static < T extends Map < ? , ? > > T notEmpty ( @ Nonnull final T map ) { notNull ( map ) ; notEmpty ( map , map . isEmpty ( ) , EMPTY_ARGUMENT_NAME ) ; return map ;
public class TypeElementCatalog { /** * Return all of the classes specified on the command - line that belong to the given package . * @ param packageName the name of the package specified on the command - line . */ public SortedSet < TypeElement > allUnnamedClasses ( ) { } }
for ( PackageElement pkg : allClasses . keySet ( ) ) { if ( pkg . isUnnamed ( ) ) { return allClasses . get ( pkg ) ; } } return new TreeSet < > ( comparator ) ;
public class BasicRandomRoutingTable { /** * Internal helper method . * Implements the policy for removing multiple neighbors from the random * ordering . By default , this removes all the neighbors specified and * leaves the list otherwise in the same ordering . * This method assumes that any necessary locking...
final Set < TrustGraphNodeId > killSet = new HashSet < TrustGraphNodeId > ( neighbors ) ; ListIterator < TrustGraphNodeId > i = orderedNeighbors . listIterator ( ) ; while ( i . hasNext ( ) ) { if ( killSet . contains ( i . next ( ) ) ) { i . remove ( ) ; } }
public class PushNotificationPayload { /** * Create a custom alert ( if none exist ) and add sub - parameters for the title - loc - key parameter . * @ param args * @ throws JSONException */ public void addCustomAlertTitleLocArgs ( List args ) throws JSONException { } }
Object value = args != null && ! args . isEmpty ( ) ? args : new JSONNull ( ) ; put ( "title-loc-args" , value , getOrAddCustomAlert ( ) , false ) ;
public class InstanceHelpers { /** * Finds an instance by name . * @ param application the application * @ param instancePath the instance path * @ return an instance , or null if it was not found */ public static Instance findInstanceByPath ( AbstractApplication application , String instancePath ) { } }
Collection < Instance > currentList = new ArrayList < > ( ) ; if ( application != null ) currentList . addAll ( application . getRootInstances ( ) ) ; List < String > instanceNames = new ArrayList < > ( ) ; if ( instancePath != null ) instanceNames . addAll ( Arrays . asList ( instancePath . split ( "/" ) ) ) ; if ( in...
public class JsApiMessageImpl { /** * Return a boolean indicating whether a User Property with the given name * exists in the message . * Javadoc description supplied by JsApiMessage interface . */ @ Override public boolean userPropertyExists ( String name ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "userPropertyExists" , name ) ; boolean result = false ; /* If the name is null there is nothing to do . so only proceed if it is */ /* supplied . */ if ( name != null ) { /* Got to check Maelstrom ' s transportVersio...
public class CollectionLiteralsTypeComputer { /** * Creates a map type reference that comes as close as possible / necessary to its expected type . */ protected LightweightTypeReference createMapTypeReference ( JvmGenericType mapType , LightweightTypeReference pairType , LightweightTypeReference expectation , ITypeRefe...
List < LightweightTypeReference > leftAndRight = pairType . getTypeArguments ( ) ; LightweightTypeReference left = leftAndRight . get ( 0 ) . getInvariantBoundSubstitute ( ) ; LightweightTypeReference right = leftAndRight . get ( 1 ) . getInvariantBoundSubstitute ( ) ; LightweightTypeReference mapExpectation = getMapEx...
public class JCusparse { /** * Returns number of bytes */ public static int cusparseCsrmvEx_bufferSize ( cusparseHandle handle , int alg , int transA , int m , int n , int nnz , Pointer alpha , int alphatype , cusparseMatDescr descrA , Pointer csrValA , int csrValAtype , Pointer csrRowPtrA , Pointer csrColIndA , Pointe...
return checkResult ( cusparseCsrmvEx_bufferSizeNative ( handle , alg , transA , m , n , nnz , alpha , alphatype , descrA , csrValA , csrValAtype , csrRowPtrA , csrColIndA , x , xtype , beta , betatype , y , ytype , executiontype , bufferSizeInBytes ) ) ;
public class OutputUtil { /** * Appends all elements of < code > array < / code > to buffer , separated by delimiter * @ param < T > Type of elements stored in < code > array < / code > * @ param sb StringBuilder to be modified * @ param array Array of elements * @ param delimiter Delimiter to separate elements...
boolean firstRun = true ; for ( T elem : array ) { if ( ! firstRun ) sb . append ( delimiter ) ; else firstRun = false ; sb . append ( elem . toString ( ) ) ; } return sb ;
public class AWSCognitoIdentityProviderClient { /** * Signs out users from all devices . * @ param globalSignOutRequest * Represents the request to sign out all devices . * @ return Result of the GlobalSignOut operation returned by the service . * @ throws ResourceNotFoundException * This exception is thrown ...
request = beforeClientExecution ( request ) ; return executeGlobalSignOut ( request ) ;
public class GetBuiltinSlotTypesRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GetBuiltinSlotTypesRequest getBuiltinSlotTypesRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( getBuiltinSlotTypesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getBuiltinSlotTypesRequest . getLocale ( ) , LOCALE_BINDING ) ; protocolMarshaller . marshall ( getBuiltinSlotTypesRequest . getSignatureContains ( ) , SIGNAT...
public class Choice6 { /** * Static factory method for wrapping a value of type < code > A < / code > in a { @ link Choice6 } . * @ param a the value * @ param < A > the first possible type * @ param < B > the second possible type * @ param < C > the third possible type * @ param < D > the fourth possible typ...
return new _A < > ( a ) ;
public class CancelableSwap { /** * This method returns the value random variable of the product within the specified model , evaluated at a given evalutationTime . * Note : For a lattice this is often the value conditional to evalutationTime , for a Monte - Carlo simulation this is the ( sum of ) value discounted to...
// After the last period the product has value zero : Initialize values to zero . RandomVariableInterface values = new RandomVariable ( fixingDates [ fixingDates . length - 1 ] , 0.0 ) ; // Loop backward over the swap periods for ( int period = fixingDates . length - 1 ; period >= 0 ; period -- ) { double fixingDate = ...
public class DummyInternalTransaction { /** * ( non - Javadoc ) * @ see com . ibm . ws . objectManager . InternalTransaction # notifyFromCheckpoint ( com . ibm . ws . objectManager . Token , com . ibm . ws . objectManager . Transaction ) */ protected synchronized void notifyFromCheckpoint ( Token token , Transaction ...
throw new InvalidStateException ( this , InternalTransaction . stateTerminated , InternalTransaction . stateNames [ InternalTransaction . stateTerminated ] ) ;
public class Where { /** * Add a ' & gt ; ' clause so the column must be greater - than the value . */ public Where < T , ID > gt ( String columnName , Object value ) throws SQLException { } }
addClause ( new SimpleComparison ( columnName , findColumnFieldType ( columnName ) , value , SimpleComparison . GREATER_THAN_OPERATION ) ) ; return this ;
public class OfflineDownloadService { /** * Several actions can take place inside this service including starting and canceling a specific * region download . First , it is determined what action to take by using the { @ code intentAction } * parameter . This action is finally passed in to the correct map offline m...
if ( OfflineConstants . ACTION_START_DOWNLOAD . equals ( intentAction ) ) { createDownload ( offlineDownload ) ; } else if ( OfflineConstants . ACTION_CANCEL_DOWNLOAD . equals ( intentAction ) ) { cancelDownload ( offlineDownload ) ; }
public class FileSystemWatcher { /** * Watch the given path . * This will launch the thread if not yet launched . * The returned Runnable can be called to stop watching . */ public static Runnable watch ( Path path , PathEventListener listener , WatchEvent . Kind < ? > ... kinds ) throws IOException { } }
synchronized ( FileSystemWatcher . class ) { Application app = LCCore . getApplication ( ) ; Watcher watcher = app . getInstance ( Watcher . class ) ; if ( watcher == null || watcher . stop ) { watcher = new Watcher ( app ) ; app . setInstance ( Watcher . class , watcher ) ; } return watcher . watch ( path , listener ,...
public class CmsAttributeHandler { /** * Removes the attribute value ( and corresponding widget ) with the given index , and returns * the parent widget . < p > * @ param valueIndex the value index * @ param force < code > true < / code > if the widget should be removed even if it is the last one * @ return the...
if ( m_attributeValueViews . size ( ) > valueIndex ) { CmsAttributeValueView view = m_attributeValueViews . get ( valueIndex ) ; Panel result = ( Panel ) view . getParent ( ) ; removeAttributeValue ( view , force ) ; return result ; } return null ;
public class AmazonWorkspacesClient { /** * Modifies the properties of the specified Amazon WorkSpaces clients . * @ param modifyClientPropertiesRequest * @ return Result of the ModifyClientProperties operation returned by the service . * @ throws InvalidParameterValuesException * One or more parameter values a...
request = beforeClientExecution ( request ) ; return executeModifyClientProperties ( request ) ;
public class AddTagsRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( AddTagsRequest addTagsRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( addTagsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( addTagsRequest . getResourceArn ( ) , RESOURCEARN_BINDING ) ; protocolMarshaller . marshall ( addTagsRequest . getTags ( ) , TAGS_BINDING ) ; } catch ( Exception e ) { th...
public class DiagramBuilder { /** * crates a StencilSet object and add it to the current diagram * @ param modelJSON * @ param current * @ throws org . json . JSONException */ private static void parseStencilSet ( JSONObject modelJSON , Diagram current ) throws JSONException { } }
// get stencil type if ( modelJSON . has ( "stencilset" ) ) { JSONObject object = modelJSON . getJSONObject ( "stencilset" ) ; String url = null ; String namespace = null ; if ( object . has ( "url" ) ) { url = object . getString ( "url" ) ; } if ( object . has ( "namespace" ) ) { namespace = object . getString ( "name...
public class HttpServerConnection { /** * Pushes back the given data . This should only be used by transfer coding handlers that have read past * the end of the request when handling pipelined requests * @ param unget The buffer to push back */ public void ungetRequestBytes ( final PooledByteBuffer unget ) { } }
if ( getExtraBytes ( ) == null ) { setExtraBytes ( unget ) ; } else { PooledByteBuffer eb = getExtraBytes ( ) ; ByteBuffer buf = eb . getBuffer ( ) ; final ByteBuffer ugBuffer = unget . getBuffer ( ) ; if ( ugBuffer . limit ( ) - ugBuffer . remaining ( ) > buf . remaining ( ) ) { // stuff the existing data after the da...
public class ConvertKit { /** * byteArr转inputStream * @ param bytes 字节数组 * @ return 输入流 */ public static InputStream bytes2InputStream ( final byte [ ] bytes ) { } }
if ( bytes == null || bytes . length <= 0 ) return null ; return new ByteArrayInputStream ( bytes ) ;
public class PointPanel { /** * < / editor - fold > / / GEN - END : initComponents */ @ Override protected void paintComponent ( Graphics g ) { } }
if ( type == TYPE_PLAIN ) { point . updateWeight ( RunVisualizer . getCurrentTimestamp ( ) , decayRate ) ; if ( point . weight ( ) < decayThreshold ) { getParent ( ) . remove ( this ) ; return ; } } Color color = getColor ( ) ; // Color errcolor = getErrorColor ( ) ; // if ( errcolor = = null ) { // errcolor = color ; ...
public class TableIndexDao { /** * Delete all table indices * @ return rows deleted * @ throws SQLException * upon deletion failure * @ since 1.1.5 */ public int deleteAll ( ) throws SQLException { } }
int count = 0 ; if ( isTableExists ( ) ) { DeleteBuilder < TableIndex , String > db = deleteBuilder ( ) ; PreparedDelete < TableIndex > deleteQuery = db . prepare ( ) ; count = delete ( deleteQuery ) ; } return count ;