signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class MAPServiceLsmImpl { /** * ( non - Javadoc ) * @ see org . restcomm . protocols . ss7 . map . MAPServiceBaseImpl # createNewDialogIncoming * ( org . restcomm . protocols . ss7 . map . api . MAPApplicationContext , org . restcomm . protocols . ss7 . tcap . api . tc . dialog . Dialog ) */ @ Override prote...
return new MAPDialogLsmImpl ( appCntx , tcapDialog , this . mapProviderImpl , this , null , null ) ;
public class Reflect { /** * Call the method . * @ param instance the instance to call on . * @ param type the type . * @ param methodName the name of the method . * @ param types the types of the parameters . * @ param args the values of the arguments . */ public static void callProc ( Object instance , Clas...
try { final Method method = type . getDeclaredMethod ( methodName , types ) ; method . setAccessible ( true ) ; method . invoke ( instance , args ) ; } catch ( Exception exception ) { throw new Error ( exception ) ; }
public class br_currentconfig { /** * < pre > * Performs generic data validation for the operation to be performed * < / pre > */ protected void validate ( String operationType ) throws Exception { } }
super . validate ( operationType ) ; MPSString response_validator = new MPSString ( ) ; response_validator . validate ( operationType , response , "\"response\"" ) ; MPSIPAddress br_ip_address_validator = new MPSIPAddress ( ) ; br_ip_address_validator . validate ( operationType , br_ip_address , "\"br_ip_address\"" ) ;
public class Bytes { /** * Convert a short value to a byte array of { @ link # SIZEOF _ SHORT } bytes long . * @ param val value * @ return the byte array */ public static byte [ ] toBytes ( short val ) { } }
byte [ ] b = new byte [ SIZEOF_SHORT ] ; b [ 1 ] = ( byte ) val ; val >>= 8 ; b [ 0 ] = ( byte ) val ; return b ;
public class UserExecutorConfiguration { /** * Construct a { @ link UserExecutorConfiguration } for the given { @ link io . micronaut . scheduling . executor . ExecutorType } . * @ param type The type * @ param num The number of threads for { @ link io . micronaut . scheduling . executor . ExecutorType # FIXED } or...
ArgumentUtils . check ( "type" , type ) . notNull ( ) ; UserExecutorConfiguration configuration = of ( type ) ; configuration . type = type ; switch ( type ) { case FIXED : configuration . nThreads = num ; break ; case SCHEDULED : configuration . corePoolSize = num ; break ; case WORK_STEALING : configuration . paralle...
public class FormulaFactory { /** * Creates a new disjunction from an array of formulas . * @ param operands the list of formulas * @ return a new disjunction */ public Formula or ( final Formula ... operands ) { } }
final LinkedHashSet < Formula > ops = new LinkedHashSet < > ( operands . length ) ; Collections . addAll ( ops , operands ) ; return this . constructOr ( ops ) ;
public class Bucket { /** * @ param element * the element to look for * @ return true , if this bucket , contains the given element */ public boolean contains ( Data element ) { } }
boolean contains = false ; byte [ ] dst = new byte [ gp . getElementSize ( ) ] ; for ( int m = 0 ; m < memory . length ; m ++ ) { ByteBuffer bb = ByteBuffer . wrap ( memory [ m ] ) ; if ( m == memory . length - 1 ) { bb . limit ( position_in_chunk ) ; } while ( bb . remaining ( ) > 0 ) { bb . get ( dst ) ; if ( KeyUtil...
public class TargetStreamSetControl { /** * / * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . runtime . SIMPPtoPInboundReceiverControllable # requestFlushAtSource ( byte ) */ public void requestFlushAtSource ( boolean indoubtDiscard ) throws SIMPRuntimeOperationFailedException , SIMPControllableNotFoun...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "requestFlushAtSource" , new Boolean ( indoubtDiscard ) ) ; assertValidControllable ( ) ; SIBUuid8 source = streamSet . getRemoteMEUuid ( ) ; SIBUuid12 destID = streamSet . getDestUuid ( ) ; SIBUuid8 busID = streamSet . getB...
public class BatchDetectSentimentItemResultMarshaller { /** * Marshall the given parameter object . */ public void marshall ( BatchDetectSentimentItemResult batchDetectSentimentItemResult , ProtocolMarshaller protocolMarshaller ) { } }
if ( batchDetectSentimentItemResult == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( batchDetectSentimentItemResult . getIndex ( ) , INDEX_BINDING ) ; protocolMarshaller . marshall ( batchDetectSentimentItemResult . getSentiment ( ) , SENT...
public class XmlResponsesSaxParser { /** * Safely parses the specified string as a long and returns the value . If a * NumberFormatException occurs while parsing the long , an error is logged * and - 1 is returned . * @ param s * The string to parse and return as a long . * @ return The long value of the spec...
try { return Long . parseLong ( s ) ; } catch ( NumberFormatException nfe ) { log . error ( "Unable to parse long value '" + s + "'" , nfe ) ; } return - 1 ;
public class DateHelper { /** * Given a date represented by a Calendar instance , set the time * component of the date based on the hours and minutes of the * time supplied by the Date instance . * @ param cal Calendar instance representing the date * @ param time Date instance representing the time of day */ p...
if ( time != null ) { Calendar startCalendar = popCalendar ( time ) ; cal . set ( Calendar . HOUR_OF_DAY , startCalendar . get ( Calendar . HOUR_OF_DAY ) ) ; cal . set ( Calendar . MINUTE , startCalendar . get ( Calendar . MINUTE ) ) ; cal . set ( Calendar . SECOND , startCalendar . get ( Calendar . SECOND ) ) ; pushCa...
public class ContainerDefinition { /** * A list of DNS servers that are presented to the container . This parameter maps to < code > Dns < / code > in the < a * href = " https : / / docs . docker . com / engine / api / v1.35 / # operation / ContainerCreate " > Create a container < / a > section of the * < a href = ...
if ( dnsServers == null ) { this . dnsServers = null ; return ; } this . dnsServers = new com . amazonaws . internal . SdkInternalList < String > ( dnsServers ) ;
public class SearchOptions { /** * Set offset and limit according to page approach . If pageSize is negative , then * { @ link # MAX _ LIMIT } is used . */ public SearchOptions setPage ( int page , int pageSize ) { } }
checkArgument ( page >= 1 , "Page must be greater or equal to 1 (got " + page + ")" ) ; int lastResultIndex = page * pageSize ; checkArgument ( lastResultIndex <= MAX_RETURNABLE_RESULTS , "Can return only the first %s results. %sth result asked." , MAX_RETURNABLE_RESULTS , lastResultIndex ) ; setLimit ( pageSize ) ; se...
public class S3RecoverableFsDataOutputStream { public static S3RecoverableFsDataOutputStream newStream ( final RecoverableMultiPartUpload upload , final FunctionWithException < File , RefCountedFile , IOException > tmpFileCreator , final long userDefinedMinPartSize ) throws IOException { } }
checkArgument ( userDefinedMinPartSize >= S3_MULTIPART_MIN_PART_SIZE ) ; final RefCountedBufferingFileStream fileStream = boundedBufferingFileStream ( tmpFileCreator , Optional . empty ( ) ) ; return new S3RecoverableFsDataOutputStream ( upload , tmpFileCreator , fileStream , userDefinedMinPartSize , 0L ) ;
public class ConfigurationUtil { /** * Gets value for the given key or throws if value is not found . */ public static String getMandatoryConfig ( Configuration config , String key ) throws IOException { } }
String value = config . get ( key ) ; if ( Strings . isNullOrEmpty ( value ) ) { throw new IOException ( "Must supply a value for configuration setting: " + key ) ; } return value ;
public class ResourceParametersImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public NotificationChain eInverseRemove ( InternalEObject otherEnd , int featureID , NotificationChain msgs ) { } }
switch ( featureID ) { case BpsimPackage . RESOURCE_PARAMETERS__SELECTION : return basicSetSelection ( null , msgs ) ; case BpsimPackage . RESOURCE_PARAMETERS__AVAILABILITY : return basicSetAvailability ( null , msgs ) ; case BpsimPackage . RESOURCE_PARAMETERS__QUANTITY : return basicSetQuantity ( null , msgs ) ; case ...
public class Node { /** * Returns the Viewport that this Node is on . */ @ Override public Viewport getViewport ( ) { } }
final Node < ? > parent = getParent ( ) ; // change , no iteration , no testing , no casting , recurses upwards to a Viewport , and Viewport returns itself , CYCLES ! ! ! if ( null != parent ) { return parent . getViewport ( ) ; } return null ;
public class SigmaElectronegativityDescriptor { /** * Sets the parameters attribute of the SigmaElectronegativityDescriptor * object * @ param params 1 : max iterations ( optional , defaults to 20) * @ exception CDKException Description of the Exception */ @ Override public void setParameters ( Object [ ] params ...
if ( params . length > 1 ) { throw new CDKException ( "SigmaElectronegativityDescriptor only expects one parameter" ) ; } if ( ! ( params [ 0 ] instanceof Integer ) ) { throw new CDKException ( "The parameter must be of type Integer" ) ; } if ( params . length == 0 ) return ; maxIterations = ( Integer ) params [ 0 ] ;
public class AccessControlInterceptor { @ Override public boolean onFlushDirty ( Object entity , Serializable id , Object [ ] currentState , Object [ ] previousState , String [ ] propertyNames , Type [ ] types ) { } }
if ( entity . getClass ( ) . isAssignableFrom ( AccessControlEntry . class ) ) { return false ; } AccessControlContext accessControlContext = AccessControlContextOverride . exists ( ) ? AccessControlContextOverride . get ( ) : accessControlContextProvider . getCurrent ( ) ; accessControlHelper . validateContextAllowsWr...
public class ERiC { /** * Performs the ERiC algorithm on the given database . * @ param relation Relation to process * @ return Clustering result */ public Clustering < CorrelationModel > run ( Database database , Relation < V > relation ) { } }
final int dim = RelationUtil . dimensionality ( relation ) ; StepProgress stepprog = LOG . isVerbose ( ) ? new StepProgress ( 3 ) : null ; // Run Generalized DBSCAN LOG . beginStep ( stepprog , 1 , "Preprocessing local correlation dimensionalities and partitioning data" ) ; // FIXME : how to ensure we are running on th...
public class InMemoryPushPushPipe { /** * { @ inheritDoc } */ @ Override public boolean subscribe ( IProvider provider , Map < String , Object > paramMap ) { } }
boolean success = super . subscribe ( provider , paramMap ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( "Provider subscribe{} {} params: {}" , new Object [ ] { ( success ? "d" : " failed" ) , provider , paramMap } ) ; } if ( success ) { fireProviderConnectionEvent ( provider , PipeConnectionEvent . EventType . PR...
public class OgmCollectionPersister { /** * Creates an association row representing the given entry and adds it to the association managed by the given * persister . */ private RowKeyAndTuple createAndPutAssociationRowForInsert ( Serializable key , PersistentCollection collection , AssociationPersister associationPer...
RowKeyBuilder rowKeyBuilder = initializeRowKeyBuilder ( ) ; Tuple associationRow = new Tuple ( ) ; // the collection has a surrogate key ( see @ CollectionId ) if ( hasIdentifier ) { final Object identifier = collection . getIdentifier ( entry , i ) ; String [ ] names = { getIdentifierColumnName ( ) } ; identifierGridT...
public class DevicesStatusApi { /** * Get Device Status ( asynchronously ) * Get Device Status * @ param deviceId Device ID . ( required ) * @ param includeSnapshot Include device snapshot into the response ( optional ) * @ param includeSnapshotTimestamp Include device snapshot timestamp into the response ( opt...
ProgressResponseBody . ProgressListener progressListener = null ; ProgressRequestBody . ProgressRequestListener progressRequestListener = null ; if ( callback != null ) { progressListener = new ProgressResponseBody . ProgressListener ( ) { @ Override public void update ( long bytesRead , long contentLength , boolean do...
public class AccountsInner { /** * Gets the first page of Data Lake Analytics accounts , if any , within the current subscription . This includes a link to the next page , if any . * @ param filter OData filter . Optional . * @ param top The number of items to return . Optional . * @ param skip The number of item...
return AzureServiceFuture . fromPageResponse ( listSinglePageAsync ( filter , top , skip , expand , select , orderby , count , search , format ) , new Func1 < String , Observable < ServiceResponse < Page < DataLakeAnalyticsAccountInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < DataLakeAnalyt...
public class CmsStaticExportManager { /** * Implements the CmsEvent interface , * the static export properties uses the events to clear * the list of cached keys in case a project is published . < p > * @ param event CmsEvent that has occurred */ public void cmsEvent ( CmsEvent event ) { } }
if ( ! isStaticExportEnabled ( ) ) { if ( LOG . isWarnEnabled ( ) ) { LOG . warn ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_STATIC_EXPORT_DISABLED_0 ) ) ; } return ; } I_CmsReport report = null ; Map < String , Object > data = event . getData ( ) ; if ( data != null ) { report = ( I_CmsReport ) data . ...
public class FlexFlow { /** * Create a FlexFlowCreator to execute create . * @ param friendlyName Human readable description of this FlexFlow * @ param chatServiceSid Service Sid . * @ param channelType Channel type * @ return FlexFlowCreator capable of executing the create */ public static FlexFlowCreator crea...
return new FlexFlowCreator ( friendlyName , chatServiceSid , channelType ) ;
public class XsdAsmInterfaces { /** * Generates all the required interfaces , based on the information gathered while creating the other classes . * It creates both types of interfaces : * ElementGroupInterfaces - Interfaces that serve as a base to adding child elements to the current element ; * AttributeGroupIn...
attributeGroupInterfaces . keySet ( ) . forEach ( attributeGroupInterface -> generateAttributesGroupInterface ( createdAttributes , attributeGroupInterface , attributeGroupInterfaces . get ( attributeGroupInterface ) , apiName ) ) ; hierarchyInterfaces . values ( ) . forEach ( hierarchyInterface -> generateHierarchyAtt...
public class Uber { /** * Extract rel and url from every { @ link UberData } entry . * @ return */ @ JsonIgnore Links getLinks ( ) { } }
if ( data == null ) { return Links . NONE ; } return data . stream ( ) . flatMap ( uberData -> uberData . getLinks ( ) . stream ( ) ) . collect ( Links . collector ( ) ) ;
public class HttpExportClient { /** * Calculate the signature of the request using the specified secret key . * @ param params The parameters to send in the request . * @ return The parameters including the signature . */ private List < NameValuePair > sign ( URI uri , final List < NameValuePair > params ) { } }
Preconditions . checkNotNull ( m_secret ) ; final List < NameValuePair > sortedParams = Lists . newArrayList ( params ) ; Collections . sort ( sortedParams , new Comparator < NameValuePair > ( ) { @ Override public int compare ( NameValuePair left , NameValuePair right ) { return left . getName ( ) . compareTo ( right ...
public class Tuple3 { /** * Concatenate a tuple to this tuple . */ public final < T4 > Tuple4 < T1 , T2 , T3 , T4 > concat ( Tuple1 < T4 > tuple ) { } }
return new Tuple4 < > ( v1 , v2 , v3 , tuple . v1 ) ;
public class ELParser { /** * Skip until an EL expression ( ' $ { ' | | ' # { ' ) is reached , allowing escape * sequences ' \ \ ' and ' \ $ ' and ' \ # ' . * @ return The text string up to the EL expression */ private String skipUntilEL ( ) { } }
char prev = 0 ; StringBuffer buf = new StringBuffer ( ) ; while ( hasNextChar ( ) ) { char ch = nextChar ( ) ; if ( prev == '\\' ) { prev = 0 ; if ( ch == '\\' ) { buf . append ( '\\' ) ; if ( ! escapeBS ) prev = '\\' ; } else if ( ch == '$' || ch == '#' ) { buf . append ( ch ) ; } // else error ! } else if ( prev == '...
public class RouteLegProgress { /** * Get the next / upcoming step immediately after the current step . If the user is on the last step * on the last leg , this will return null since a next step doesn ' t exist . * @ return a { @ link LegStep } representing the next step the user will be on . * @ since 0.1.0 */ ...
if ( routeLeg ( ) . steps ( ) . size ( ) - 1 > stepIndex ( ) ) { return routeLeg ( ) . steps ( ) . get ( stepIndex ( ) + 1 ) ; } return null ;
public class ComponentFactory { /** * Factory method for create a new { @ link RadioGroup } . * @ param < T > * the generic type of the model * @ param id * the id * @ param model * the model * @ return the new { @ link RadioGroup } . */ public static < T > RadioGroup < T > newRadioGroup ( final String id...
final RadioGroup < T > radioGroup = new RadioGroup < > ( id , model ) ; radioGroup . setOutputMarkupId ( true ) ; return radioGroup ;
public class DefaultBeanDescriptor { /** * Extract informations form the bean . */ protected void extractBeanDescriptor ( ) { } }
Object defaultInstance = null ; try { defaultInstance = getBeanClass ( ) . newInstance ( ) ; } catch ( Exception e ) { LOGGER . debug ( "Failed to create a new default instance for class " + this . beanClass + ". The BeanDescriptor will not contains any default value information." , e ) ; } try { // Get public fields f...
public class RetrieveTokenApi { /** * Build form parameters * @ param refreshToken See [ Refresh Token ] ( https : / / tools . ietf . org / html / rfc6749 # section - 1.5 ) for details . * @ param scope The scope of the access request . The Authentication API supports only the & # x60 ; * & # x60 ; value . ( option...
if ( refreshToken == null ) { throw new IllegalArgumentException ( "Missing the required parameter 'refresh_token'" ) ; } Map < String , Object > formParams = new HashMap < > ( ) ; formParams . put ( "grant_type" , "refresh_token" ) ; formParams . put ( "refresh_token" , refreshToken ) ; if ( scope != null ) { formPara...
public class ApiOvhTelephony { /** * Alter this object properties * REST : PUT / telephony / { billingAccount } / offerTask / { taskId } * @ param body [ required ] New object properties * @ param billingAccount [ required ] The name of your billingAccount * @ param taskId [ required ] */ public void billingAcc...
String qPath = "/telephony/{billingAccount}/offerTask/{taskId}" ; StringBuilder sb = path ( qPath , billingAccount , taskId ) ; exec ( qPath , "PUT" , sb . toString ( ) , body ) ;
public class REWildcardStringParser { /** * Builds the regexp parser . */ private boolean buildRegexpParser ( ) { } }
// Convert wildcard string mask to regular expression String regexp = convertWildcardExpressionToRegularExpression ( mStringMask ) ; if ( regexp == null ) { out . println ( DebugUtil . getPrefixErrorMessage ( this ) + "irregularity in regexp conversion - now not able to parse any strings, all strings will be rejected!"...
public class GrouperEntityStoreFactory { /** * Creates an instance . * @ return The instance . * @ see IEntityStoreFactory # newEntityStore ( ) */ @ Override public IEntityStore newEntityStore ( ) throws GroupsException { } }
if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Creating new Grouper GrouperEntityGroupStoreFactory" ) ; } return ( IEntityStore ) new GrouperEntityGroupStoreFactory ( ) . newGroupStore ( ) ;
public class FileMgr { /** * Delete the specified file . * @ param fileName * the name of the target file */ public void delete ( String fileName ) { } }
try { synchronized ( prepareAnchor ( fileName ) ) { // Close file , if it was opened IoChannel fileChannel = openFiles . remove ( fileName ) ; if ( fileChannel != null ) fileChannel . close ( ) ; // Delete the file boolean hasDeleted = new File ( dbDirectory , fileName ) . delete ( ) ; if ( ! hasDeleted && logger . isL...
public class onlinkipv6prefix { /** * Use this API to update onlinkipv6prefix . */ public static base_response update ( nitro_service client , onlinkipv6prefix resource ) throws Exception { } }
onlinkipv6prefix updateresource = new onlinkipv6prefix ( ) ; updateresource . ipv6prefix = resource . ipv6prefix ; updateresource . onlinkprefix = resource . onlinkprefix ; updateresource . autonomusprefix = resource . autonomusprefix ; updateresource . depricateprefix = resource . depricateprefix ; updateresource . de...
public class ClassConverter { /** * { @ inheritDoc } */ @ Override public Class < ? > convert ( String rawString ) { } }
Class < ? > converted = null ; if ( rawString != null ) { try { converted = Class . forName ( rawString ) ; } catch ( ClassNotFoundException e ) { throw new IllegalArgumentException ( e ) ; } } return converted ;
public class ManifestDescriptorImporter { /** * { @ inheritDoc } * @ see org . jboss . shrinkwrap . descriptor . api . DescriptorImporter # fromString ( java . lang . String ) */ @ Override public ManifestDescriptor fromString ( String manifest ) throws IllegalArgumentException , DescriptorImportException { } }
if ( manifest == null ) throw new IllegalArgumentException ( "Manifest cannot be null" ) ; InputStream inputStream = new ByteArrayInputStream ( manifest . getBytes ( ) ) ; try { return new ManifestDescriptorImpl ( descriptorName , new ManifestModel ( inputStream ) ) ; } catch ( IOException e ) { throw new DescriptorImp...
public class Frame { /** * Get the < i > i < / i > th operand used by given instruction . * @ param ins * the instruction , which must be a StackConsumer * @ param cpg * the ConstantPoolGen * @ param i * index of operand to get : 0 for the first operand , etc . * @ return the < i > i < / i > th operand us...
int numOperands = ins . consumeStack ( cpg ) ; if ( numOperands == Const . UNPREDICTABLE ) { throw new DataflowAnalysisException ( "Unpredictable stack consumption in " + ins ) ; } return getStackValue ( ( numOperands - 1 ) - i ) ;
public class DrizzleConnection { /** * returns true if statements on this connection are auto commited . * @ return true if auto commit is on . * @ throws SQLException */ public boolean getAutoCommit ( ) throws SQLException { } }
Statement stmt = createStatement ( ) ; ResultSet rs = stmt . executeQuery ( "select @@autocommit" ) ; rs . next ( ) ; boolean autocommit = rs . getBoolean ( 1 ) ; rs . close ( ) ; stmt . close ( ) ; return autocommit ;
public class FMeasureCounts { /** * Creates an { @ link FMeasureCounts } from counts of true positives , false positives , and false * negatives . */ public static FMeasureCounts fromTPFPFN ( final double truePositives , final double falsePositives , final double falseNegatives ) { } }
return fromFPFNKeyCountSysCount ( falsePositives , falseNegatives , truePositives + falseNegatives , truePositives + falsePositives ) ;
public class HandlerManager { /** * Adds a handler . * @ param < H > The type of handler * @ param type the event type associated with this handler * @ param handler the handler * @ return the handler registration , can be stored in order to remove the handler later */ public < H extends EventHandler > HandlerR...
if ( type != null && handler != null ) { return new LegacyHandlerWrapper ( this . eventBus . addHandler ( type , handler ) ) ; } return null ;
public class Service { /** * Iterates over nested link relations . If they are valid filename is set and decription inherited ( if empty ) . * Invalid ones are removed . * @ param rel Link relations */ private void resolve ( LinkRelation rel ) { } }
Iterator < LinkRelationRef > refs = rel . getLinkRelationRefs ( ) . iterator ( ) ; while ( refs . hasNext ( ) ) { LinkRelationRef ref = refs . next ( ) ; LinkRelation referencedRel = linkRelations . stream ( ) . filter ( item -> StringUtils . equals ( item . getRel ( ) , ref . getRel ( ) ) ) . findFirst ( ) . orElse ( ...
public class JSONWriter { /** * Append a value . < p > * @ param s a string value * @ return this * @ throws JSONException if the value is out of sequence */ private JSONWriter append ( String s ) throws JSONException { } }
if ( s == null ) { throw new JSONException ( "Null pointer" ) ; } if ( ( m_mode == 'o' ) || ( m_mode == 'a' ) ) { try { if ( m_comma && ( m_mode == 'a' ) ) { m_writer . write ( ',' ) ; } m_writer . write ( s ) ; } catch ( IOException e ) { throw new JSONException ( e ) ; } if ( m_mode == 'o' ) { m_mode = 'k' ; } m_comm...
public class SarlBatchCompiler { /** * Replies the classpath . * @ return the classpath . */ @ Pure public List < File > getClassPath ( ) { } }
if ( this . classpath == null ) { return Collections . emptyList ( ) ; } return Collections . unmodifiableList ( this . classpath ) ;
public class BosClient { /** * Adds response headers parameters to the request given , if non - null . * @ param request The request to add the response header parameters to . * @ param responseHeaders The full set of response headers to add , or null for none . */ private void addResponseHeaderParameters ( Interna...
if ( responseHeaders != null ) { if ( responseHeaders . getCacheControl ( ) != null ) { request . addParameter ( ResponseHeaderOverrides . RESPONSE_HEADER_CACHE_CONTROL , responseHeaders . getCacheControl ( ) ) ; } if ( responseHeaders . getContentDisposition ( ) != null ) { request . addParameter ( ResponseHeaderOverr...
public class BitSet { /** * Returns a new bit set containing all the bits in the given long * buffer between its position and limit . * < p > More precisely , * < br > { @ code BitSet . valueOf ( lb ) . get ( n ) = = ( ( lb . get ( lb . position ( ) + n / 64 ) & ( 1L < < ( n % 64 ) ) ) ! = 0 ) } * < br > for al...
lb = lb . slice ( ) ; int n ; for ( n = lb . remaining ( ) ; n > 0 && lb . get ( n - 1 ) == 0 ; n -- ) ; long [ ] words = new long [ n ] ; lb . get ( words ) ; return new BitSet ( words ) ;
public class CmsGalleryDialog { /** * Displays the search result in the result tab . < p > * @ param searchObj the search object */ public void fillResultTab ( CmsGallerySearchBean searchObj ) { } }
if ( m_resultsTab == null ) { return ; } List < CmsSearchParamPanel > paramPanels = null ; if ( ! searchObj . isEmpty ( ) ) { enableSearchTab ( ) ; paramPanels = new ArrayList < CmsSearchParamPanel > ( ) ; Iterator < A_CmsTab > it = m_tabbedPanel . iterator ( ) ; while ( it . hasNext ( ) ) { A_CmsTab tab = it . next ( ...
public class SqlLine { /** * Output a progress indicator to the console . * @ param cur the current progress * @ param max the maximum progress , or - 1 if unknown */ void progress ( int cur , int max ) { } }
StringBuilder out = new StringBuilder ( ) ; if ( lastProgress != null ) { char [ ] back = new char [ lastProgress . length ( ) ] ; Arrays . fill ( back , '\b' ) ; out . append ( back ) ; } String progress = cur + "/" + ( max == - 1 ? "?" : "" + max ) + " " + ( max == - 1 ? "(??%)" : "(" + cur * 100 / ( max == 0 ? 1 : m...
public class Bessel { /** * Bessel function of order 0. * @ param x Value . * @ return J0 value . */ public static double J0 ( double x ) { } }
double ax ; if ( ( ax = Math . abs ( x ) ) < 8.0 ) { double y = x * x ; double ans1 = 57568490574.0 + y * ( - 13362590354.0 + y * ( 651619640.7 + y * ( - 11214424.18 + y * ( 77392.33017 + y * ( - 184.9052456 ) ) ) ) ) ; double ans2 = 57568490411.0 + y * ( 1029532985.0 + y * ( 9494680.718 + y * ( 59272.64853 + y * ( 267...
public class SingleThreadEventExecutor { /** * Poll all tasks from the task queue and run them via { @ link Runnable # run ( ) } method . * @ return { @ code true } if and only if at least one task was run */ protected boolean runAllTasks ( ) { } }
assert inEventLoop ( ) ; boolean fetchedAll ; boolean ranAtLeastOne = false ; do { fetchedAll = fetchFromScheduledTaskQueue ( ) ; if ( runAllTasksFrom ( taskQueue ) ) { ranAtLeastOne = true ; } } while ( ! fetchedAll ) ; // keep on processing until we fetched all scheduled tasks . if ( ranAtLeastOne ) { lastExecutionTi...
public class BinaryRowProtocol { /** * Get float from raw binary format . * @ param columnInfo column information * @ return float value * @ throws SQLException if column is not numeric or is not in Float bounds . */ public float getInternalFloat ( ColumnInformation columnInfo ) throws SQLException { } }
if ( lastValueWasNull ( ) ) { return 0 ; } long value ; switch ( columnInfo . getColumnType ( ) ) { case BIT : return parseBit ( ) ; case TINYINT : value = getInternalTinyInt ( columnInfo ) ; break ; case SMALLINT : case YEAR : value = getInternalSmallInt ( columnInfo ) ; break ; case INTEGER : case MEDIUMINT : value =...
public class HttpContextManagement { /** * Adds the URL to the list if it doesn ' t already exist . Or increment the hit count otherwise . * @ param url The URL requested . */ public void addReadUrl ( String url ) { } }
// Only cache the url data if logging is enabled . if ( readUrlLoggingEnabled == false ) { return ; } // Strip off the query parameters . int paramIndex = url . indexOf ( '?' ) ; String filteredUrl = url ; if ( paramIndex != - 1 ) { filteredUrl = url . substring ( 0 , paramIndex ) ; } // Because Cache doesn ' t take ad...
public class Sort { /** * Check if the float array is sorted . It loops through the entire float * array once , checking that the elements are sorted . * < br > * < br > * < i > Runtime : < / i > O ( n ) * @ param floatArray the float array to check * @ return < i > true < / i > if the float array is sorted...
for ( int i = 0 ; i < floatArray . length - 1 ; i ++ ) { if ( floatArray [ i ] > floatArray [ i + 1 ] ) { return false ; } } return true ;
public class Vector2i { /** * Read this vector from the supplied { @ link IntBuffer } starting at the * specified absolute buffer position / index . * This method will not increment the position of the given IntBuffer . * @ param index * the absolute position into the IntBuffer * @ param buffer * values wil...
MemUtil . INSTANCE . get ( this , index , buffer ) ; return this ;
public class ServletModel { /** * Transforms an alias into a url pattern . * @ param alias to transform * @ return url pattern */ private static String aliasAsUrlPattern ( final String alias ) { } }
String urlPattern = alias ; if ( urlPattern != null && ! urlPattern . equals ( "/" ) && ! urlPattern . contains ( "*" ) ) { if ( urlPattern . endsWith ( "/" ) ) { urlPattern = urlPattern + "*" ; } else { urlPattern = urlPattern + "/*" ; } } return urlPattern ;
public class BeanUtil { /** * ServletRequest 参数转Bean * @ param < T > Bean类型 * @ param beanClass Bean Class * @ param valueProvider 值提供者 * @ param copyOptions 拷贝选项 , 见 { @ link CopyOptions } * @ return Bean */ public static < T > T toBean ( Class < T > beanClass , ValueProvider < String > valueProvider , CopyO...
return fillBean ( ReflectUtil . newInstance ( beanClass ) , valueProvider , copyOptions ) ;
public class DcpConnectHandler { /** * Once we get a response from the connect request , check if it is successful and complete / fail the connect * phase accordingly . */ @ Override protected void channelRead0 ( final ChannelHandlerContext ctx , final ByteBuf msg ) throws Exception { } }
ResponseStatus status = MessageUtil . getResponseStatus ( msg ) ; if ( status . isSuccess ( ) ) { step ++ ; switch ( step ) { case HELLO : hello ( ctx , msg ) ; break ; case SELECT : select ( ctx ) ; break ; case OPEN : open ( ctx ) ; break ; case REMOVE : remove ( ctx ) ; break ; default : originalPromise ( ) . setFai...
public class SeleniumHelper { /** * Determines number displayed for item in ordered list . * @ param element ordered list item . * @ return number , if one could be determined . */ public Integer getNumberFor ( WebElement element ) { } }
Integer number = null ; if ( "li" . equalsIgnoreCase ( element . getTagName ( ) ) && element . isDisplayed ( ) ) { int num ; String ownVal = element . getAttribute ( "value" ) ; if ( ownVal != null && ! "0" . equals ( ownVal ) ) { num = toInt ( ownVal , 0 ) ; } else { String start = element . findElement ( By . xpath (...
public class TransactionableResourceManager { /** * Checks if a global Tx has been started if so the session and its change will be dynamically enrolled * @ param session the session to enlist in case a Global Tx has been started * @ param changes the changes to enlist in case a Global Tx has been started * @ ret...
try { int status ; if ( tm != null && ( status = tm . getStatus ( ) ) != Status . STATUS_NO_TRANSACTION ) { if ( status != Status . STATUS_ACTIVE && status != Status . STATUS_PREPARING ) { throw new IllegalStateException ( "The session cannot be enrolled in the current global transaction due " + "to an invalidate state...
public class TableMetadataBuilder { /** * Add an index . Must be called after including columns because columnMetadata is recovered from the tableMetadata . * Options in indexMetadata will be null . * @ param indType the index type . * @ param indexName the index name . * @ param fields the columns which define...
IndexName indName = new IndexName ( tableName . getName ( ) , tableName . getName ( ) , indexName ) ; Map < ColumnName , ColumnMetadata > columnsMetadata = new HashMap < ColumnName , ColumnMetadata > ( fields . length ) ; // recover the columns from the table metadata for ( String field : fields ) { ColumnMetadata cMet...
public class JavaParser { /** * src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 317:1 : enumDeclaration : ENUM Identifier ( ' implements ' typeList ) ? enumBody ; */ public final void enumDeclaration ( ) throws RecognitionException { } }
int enumDeclaration_StartIndex = input . index ( ) ; try { if ( state . backtracking > 0 && alreadyParsedRule ( input , 11 ) ) { return ; } // src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 318:5 : ( ENUM Identifier ( ' implements ' typeList ) ? enumBody ) // src / main / reso...
public class PropertySet { /** * Removes a set of properties from this set . */ public PropertySet removeAll ( Iterator < String > properties ) { } }
if ( properties != null ) { while ( properties . hasNext ( ) ) { remove ( properties . next ( ) ) ; } } return this ;
public class Dklu { /** * Solve Lx = b . Assumes L is unit lower triangular and where the unit diagonal * entry is NOT stored . Overwrites B with the solution X . B is n - by - nrhs * and is stored in ROW form with row dimension nrhs . nrhs must be in the * range 1 to 4. * @ param n * @ param Lip * @ param ...
double [ ] x = new double [ 4 ] ; double lik ; /* int [ ] */ double [ ] Li ; double [ ] Lx ; int k , p , i ; int [ ] len = new int [ 1 ] ; int [ ] Li_offset = new int [ 1 ] ; int [ ] Lx_offset = new int [ 1 ] ; switch ( nrhs ) { case 1 : for ( k = 0 ; k < n ; k ++ ) { x [ 0 ] = X [ X_offset + k ] ; Li = Lx = GET_POINTE...
public class Analytics { /** * Resets the analytics client by clearing any stored information about the user . Events queued on * disk are not cleared , and will be uploaded at a later time . */ public void reset ( ) { } }
Utils . getSegmentSharedPreferences ( application , tag ) . edit ( ) . clear ( ) . apply ( ) ; traitsCache . delete ( ) ; traitsCache . set ( Traits . create ( ) ) ; analyticsContext . setTraits ( traitsCache . get ( ) ) ; runOnMainThread ( IntegrationOperation . RESET ) ;
public class RedisHashMap { /** * 获取一个值 * @ param field * @ return */ @ SuppressWarnings ( "unchecked" ) public < T > T getOne ( String field ) { } }
return ( T ) get ( field ) . get ( field ) ;
public class ObjectSizes { /** * Memory a byte buffer consumes * @ param buffer ByteBuffer to calculate in memory size * @ return Total in - memory size of the byte buffer */ public static long sizeOnHeapOf ( ByteBuffer buffer ) { } }
if ( buffer . isDirect ( ) ) return BUFFER_EMPTY_SIZE ; // if we ' re only referencing a sub - portion of the ByteBuffer , don ' t count the array overhead ( assume it ' s slab // allocated , so amortized over all the allocations the overhead is negligible and better to undercount than over ) if ( buffer . capacity ( )...
public class EncodedElement { /** * This method adds a given number of bits of a long to a byte array . * @ param input long to store bits from * @ param count number of low - order bits to store * @ param startPos start bit location in array to begin writing * @ param dest array to store bits in . dest MUST ha...
if ( DEBUG_LEV > 30 ) System . err . println ( "EncodedElement::addLong : Begin" ) ; int currentByte = startPos / 8 ; int currentOffset = startPos % 8 ; int bitRoom ; // how many bits can be placed in current byte long upMask ; // to clear upper bits ( lower bits auto - cleared by L - shift int downShift ; // bits to s...
public class ARCRecord { /** * Get a record header line as list of tokens . * We keep reading till we find a LINE _ SEPARATOR or we reach the end * of file w / o finding a LINE _ SEPARATOR or the line length is crazy . * @ param stream InputStream to read from . * @ param list Empty list that gets filled w / st...
// Preallocate usual line size . StringBuilder buffer = new StringBuilder ( 2048 + 20 ) ; int read = 0 ; int previous = - 1 ; for ( int c = - 1 ; true ; ) { previous = c ; c = stream . read ( ) ; if ( c == - 1 ) { throw new RecoverableIOException ( "Hit EOF before header EOL." ) ; } c &= 0xff ; read ++ ; if ( read > MA...
public class MTable { /** * Init this object . * @ param database The raw data database for this raw data table . * @ param table The table this raw data table will supply data to . * @ param The unique lookup key for this raw data table . */ public void init ( MDatabase pDatabase , FieldList record , Object key ...
super . init ( pDatabase , record , key ) ; m_bDataIn = false ;
public class SwitchSubScreenHandler { /** * Build this sub - screen . * @ param parentScreen The parent screen . * @ param screenLocation The location to place the new sub - screen ( null = same as current sub - screen ) . * @ param iScreenNo The sub - screen to build . */ public BasePanel getSubScreen ( BasePane...
return null ; // Must override
public class HistoryCleanupHelper { /** * Creates next batch object for history cleanup . First searches for historic process instances ready for cleanup . If there is still some place left in batch ( configured batch * size was not reached ) , searches for historic decision instances and also adds them to the batch ...
final HistoryCleanupJobHandlerConfiguration configuration = historyCleanupBatch . getConfiguration ( ) ; final Integer batchSize = getHistoryCleanupBatchSize ( commandContext ) ; ProcessEngineConfigurationImpl processEngineConfiguration = commandContext . getProcessEngineConfiguration ( ) ; // add process instance ids ...
public class Distance { /** * Gets the Kumar - Johnson divergence . * @ param p P vector . * @ param q Q vector . * @ return The Kumar - Johnson divergence between p and q . */ public static double KumarJohnsonDivergence ( double [ ] p , double [ ] q ) { } }
double r = 0 ; for ( int i = 0 ; i < p . length ; i ++ ) { if ( p [ i ] != 0 && q [ i ] != 0 ) { r += Math . pow ( p [ i ] * p [ i ] - q [ i ] * q [ i ] , 2 ) / 2 * Math . pow ( p [ i ] * q [ i ] , 1.5 ) ; } } return r ;
public class ElemTemplateElement { /** * Tell if the result namespace decl should be excluded . Should be called before * namespace aliasing ( I think ) . * @ param prefix non - null reference to prefix . * @ param uri reference to namespace that prefix maps to , which is protected * for null , but should reall...
if ( uri != null ) { if ( uri . equals ( Constants . S_XSLNAMESPACEURL ) || getStylesheet ( ) . containsExtensionElementURI ( uri ) ) return true ; if ( containsExcludeResultPrefix ( prefix , uri ) ) return true ; } return false ;
public class FctBnEntitiesProcessors { /** * < p > Get PrcEntityFolSave ( create and put into map ) . < / p > * @ return requested PrcEntityFolSave * @ throws Exception - an exception */ protected final PrcEntityFolSave < RS , IHasId < Object > , Object > createPutPrcEntityFolSave ( ) throws Exception { } }
PrcEntityFolSave < RS , IHasId < Object > , Object > proc = new PrcEntityFolSave < RS , IHasId < Object > , Object > ( ) ; proc . setSrvOrm ( getSrvOrm ( ) ) ; proc . setGettersRapiHolder ( getGettersRapiHolder ( ) ) ; // assigning fully initialized object : this . processorsMap . put ( PrcEntityFolSave . class . getSi...
public class JSRemoteConsumerPoint { /** * This method is called by the parent to cancel a request . Note that it is possible that the * request has already been satisfied , and parent . satisfiedRequest ( ) is being called concurrently * with this method . * @ param tick The tick identifying the request */ publi...
Long objTick = Long . valueOf ( tick ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "cancelRequest" , objTick ) ; ArrayList < AORequestedTick > satisfiedTicks = null ; try { this . lock ( ) ; try { // it is possible that this event occurs after this object is closed ...
public class KeyTools { /** * 使用指定keySpec构建对称加密的key * @ param algorithm 算法名称 , 当前仅支持AES和DES * @ param keySpec keySpec , 多次调用该方法生成的key等效 * @ return 对称加密的key */ public static SecretKey buildKey ( AbstractCipher . Algorithms algorithm , byte [ ] keySpec ) { } }
SecretKeySpec key = new SecretKeySpec ( keySpec , algorithm . name ( ) ) ; return key ;
public class AtomicGrowingMatrix { /** * { @ inheritDoc } */ public void setRow ( int row , DoubleVector values ) { } }
checkIndices ( row , 0 ) ; AtomicVector rowEntry = getRow ( row , values . length ( ) - 1 , true ) ; denseArrayReadLock . lock ( ) ; Vectors . copy ( rowEntry , values ) ; denseArrayReadLock . unlock ( ) ;
public class DataReader { /** * Parse the locale identity header from a calendar JSON tree . */ private LocaleID parseIdentity ( String code , JsonObject root ) throws IOException { } }
JsonObject node = resolve ( root , "main" , code , "identity" ) ; return new LocaleID ( string ( node , "language" ) , string ( node , "script" ) , string ( node , "territory" ) , string ( node , "variant" ) ) ;
public class Span { /** * Compares the specified span to the current span . */ @ Override public int compareTo ( final Span s ) { } }
if ( getStart ( ) < s . getStart ( ) ) { return - 1 ; } else if ( getStart ( ) == s . getStart ( ) ) { if ( getEnd ( ) > s . getEnd ( ) ) { return - 1 ; } else if ( getEnd ( ) < s . getEnd ( ) ) { return 1 ; } else { // compare the type if ( getType ( ) == null && s . getType ( ) == null ) { return 0 ; } else if ( getT...
public class ZonedDateTime { /** * Obtains an instance of { @ code ZonedDateTime } from an { @ code Instant } . * This creates a zoned date - time with the same instant as that specified . * Calling { @ link # toInstant ( ) } will return an instant equal to the one used here . * Converting an instant to a zoned d...
Jdk8Methods . requireNonNull ( instant , "instant" ) ; Jdk8Methods . requireNonNull ( zone , "zone" ) ; return create ( instant . getEpochSecond ( ) , instant . getNano ( ) , zone ) ;
public class ReferenceOrLiteralImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } }
switch ( featureID ) { case SimpleAntlrPackage . REFERENCE_OR_LITERAL__NAME : return getName ( ) ; } return super . eGet ( featureID , resolve , coreType ) ;
public class OPTICSProjector { /** * Get or produce the actual OPTICS plot . * @ param context Context to use * @ return Plot */ public OPTICSPlot getOPTICSPlot ( VisualizerContext context ) { } }
if ( plot == null ) { plot = OPTICSPlot . plotForClusterOrder ( clusterOrder , context ) ; } return plot ;
public class ClassUtils { /** * get all the dex path * @ param context the application context * @ return all the dex path * @ throws PackageManager . NameNotFoundException * @ throws IOException */ public static List < String > getSourcePaths ( Context context ) throws PackageManager . NameNotFoundException , ...
ApplicationInfo applicationInfo = context . getPackageManager ( ) . getApplicationInfo ( context . getPackageName ( ) , 0 ) ; File sourceApk = new File ( applicationInfo . sourceDir ) ; List < String > sourcePaths = new ArrayList < > ( ) ; sourcePaths . add ( applicationInfo . sourceDir ) ; // add the default apk path ...
public class OperatingSystem { /** * Supported configuration manager name and versions for an AWS OpsWorks Stacks operating system . * @ return Supported configuration manager name and versions for an AWS OpsWorks Stacks operating system . */ public java . util . List < OperatingSystemConfigurationManager > getConfig...
if ( configurationManagers == null ) { configurationManagers = new com . amazonaws . internal . SdkInternalList < OperatingSystemConfigurationManager > ( ) ; } return configurationManagers ;
public class ImageUtil { /** * This method decodes a bitmap from a file , and does pixel combining in order to produce an in - memory bitmap that is * smaller than the original . It will create only the returned bitmap in memory . * From < a href = " http : / / developer . android . com / training / displaying - bi...
boolean bCreateFromUri ; Context context = ApptentiveInternal . getInstance ( ) . getApplicationContext ( ) ; if ( context != null && fileUri != null ) { bCreateFromUri = true ; } else if ( ! TextUtils . isEmpty ( fileAbsolutePath ) ) { bCreateFromUri = false ; } else { return null ; } BitmapFactory . Options options =...
public class ColorPalettePreference { /** * Obtains all attributes from a specific attribute set . * @ param attributeSet * The attribute set , the attributes should be obtained from , as an instance of the type * { @ link AttributeSet } or null , if no attributes should be obtained * @ param defaultStyle * T...
TypedArray typedArray = getContext ( ) . obtainStyledAttributes ( attributeSet , R . styleable . ColorPalettePreference , defaultStyle , defaultStyleResource ) ; try { obtainColorPalette ( typedArray ) ; obtainDialogPreviewSize ( typedArray ) ; obtainDialogPreviewShape ( typedArray ) ; obtainDialogPreviewBorderWidth ( ...
public class Th { /** * Gets the value of the headers property . * This accessor method returns a reference to the live list , * not a snapshot . Therefore any modification you make to the * returned list will be present inside the JAXB object . * This is why there is not a < CODE > set < / CODE > method for th...
if ( headers == null ) { headers = new ArrayList < Object > ( ) ; } return this . headers ;
public class CmsUserDriver { /** * Returns the folder for the given organizational units , or the base folder if < code > null < / code > . < p > * The base folder will be created if it does not exist . < p > * @ param dbc the current db context * @ param orgUnit the organizational unit to get the folder for * ...
if ( orgUnit != null ) { return m_driverManager . readResource ( dbc , ORGUNIT_BASE_FOLDER + orgUnit . getName ( ) , CmsResourceFilter . DEFAULT ) ; } else { return null ; }
public class MobileCommand { /** * This method forms a { @ link java . util . Map } of parameters for the * long key event invocation . * @ param key code for the long key pressed on the device . * @ return a key - value pair . The key is the command name . The value is a * { @ link java . util . Map } command ...
return new AbstractMap . SimpleEntry < > ( LONG_PRESS_KEY_CODE , prepareArguments ( "keycode" , key ) ) ;
public class Hierarchy { /** * Determine whether the given INVOKESTATIC instruction is an inner - class * field accessor method . * @ param inv * the INVOKESTATIC instruction * @ param cpg * the ConstantPoolGen for the method * @ return true if the instruction is an inner - class field accessor , false * ...
String methodName = inv . getName ( cpg ) ; return methodName . startsWith ( "access$" ) ;
public class Notification { /** * The list of job states that will trigger a notification for this job . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setJobStatesToNotify ( java . util . Collection ) } or { @ link # withJobStatesToNotify ( java . util . Co...
if ( this . jobStatesToNotify == null ) { setJobStatesToNotify ( new java . util . ArrayList < String > ( jobStatesToNotify . length ) ) ; } for ( String ele : jobStatesToNotify ) { this . jobStatesToNotify . add ( ele ) ; } return this ;
public class MeanVarianceMinMax { /** * Create and initialize a new array of MeanVarianceMinMax * @ param dimensionality Dimensionality * @ return New and initialized Array */ public static MeanVarianceMinMax [ ] newArray ( int dimensionality ) { } }
MeanVarianceMinMax [ ] arr = new MeanVarianceMinMax [ dimensionality ] ; for ( int i = 0 ; i < dimensionality ; i ++ ) { arr [ i ] = new MeanVarianceMinMax ( ) ; } return arr ;
public class PojoDataParser { /** * { @ inheritDoc } */ @ NonNull @ Override public List < BaseCell > parseComponent ( @ Nullable JSONArray data , Card parent , ServiceManager serviceManager ) { } }
if ( data == null ) { return new ArrayList < > ( ) ; } final int size = data . length ( ) ; final List < BaseCell > result = new ArrayList < > ( size ) ; // parse body JSONArray componentArray = data ; if ( componentArray != null ) { final int cellLength = componentArray . length ( ) ; for ( int i = 0 ; i < cellLength ...
public class PixelInfoStatusBar { /** * Sets the model dictating the pixel shown by this status bar . * @ param newModel the new model * @ throws NullPointerException if { @ code newModel } is { @ code null } */ public final void setModel ( PixelModel newModel ) { } }
if ( newModel == null ) throw new NullPointerException ( ) ; if ( model != newModel ) { if ( model != null ) model . removeChangeListener ( modelListener ) ; model = newModel ; model . addChangeListener ( modelListener ) ; update ( ) ; }
public class LocationJSONImpl { /** * / * package */ static ResponseList < Location > createLocationList ( JSONArray list , boolean storeJSON ) throws TwitterException { } }
try { int size = list . length ( ) ; ResponseList < Location > locations = new ResponseListImpl < Location > ( size , null ) ; for ( int i = 0 ; i < size ; i ++ ) { JSONObject json = list . getJSONObject ( i ) ; Location location = new LocationJSONImpl ( json ) ; locations . add ( location ) ; if ( storeJSON ) { Twitte...