signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class LongColumn { /** * Returns a new numeric column initialized with the given name and size . The values in the column are * integers beginning at startsWith and continuing through size ( exclusive ) , monotonically increasing by 1 * TODO consider a generic fill function including steps or random samples ...
final LongColumn indexColumn = LongColumn . create ( columnName , size ) ; for ( int i = 0 ; i < size ; i ++ ) { indexColumn . append ( i + startsWith ) ; } return indexColumn ;
public class Ix { /** * Removes those elements via Iterator . remove ( ) from this sequence that match the * given predicate . * The result ' s iterator ( ) forwards the calls to remove ( ) to this ' Iterator . * @ param predicate the function called with the current element and returns true * if that particula...
return new IxRemove < T > ( this , nullCheck ( predicate , "predicate is null" ) ) ;
public class RelaxNGSchemaFactory { /** * Non - public methods */ @ Override protected XMLValidationSchema loadSchema ( InputSource src , Object sysRef ) throws XMLStreamException { } }
/* 26 - Oct - 2007 , TSa : Are sax parser factories safe to share ? * If not , should just create new instances for each * parsed schema . */ /* Another thing ; should we use a controller to get notified about * errors in parsing ? */ SAXParserFactory saxFactory = getSaxFactory ( ) ; MyGrammarController ctrl = ne...
public class TruncatedNormalDistribution { /** * { @ inheritDoc } * @ since 3.2 */ @ Override public double inverseCumulativeProbability ( final double p ) throws OutOfRangeException { } }
if ( p < 0.0 || p > 1.0 ) { throw new OutOfRangeException ( p , 0 , 1 ) ; } if ( means != null ) throw new IllegalStateException ( "Unable to sample from more than one mean" ) ; return mean + standardDeviation * SQRT2 * Erf . erfInv ( 2 * p - 1 ) ;
public class ObjectLiteral { /** * Adds an element to the list , and sets its parent to this node . * @ param element the property node to append to the end of the list * @ throws IllegalArgumentException } if element is { @ code null } */ public void addElement ( ObjectProperty element ) { } }
assertNotNull ( element ) ; if ( elements == null ) { elements = new ArrayList < ObjectProperty > ( ) ; } elements . add ( element ) ; element . setParent ( this ) ;
public class AbstractSerializer { /** * * * * Map * * * */ @ SuppressWarnings ( { } }
"rawtypes" , "unchecked" } ) protected ISynchronizationPoint < ? extends Exception > serializeMapValue ( SerializationContext context , Map < ? , ? > map , TypeDefinition typeDef , String path , List < SerializationRule > rules ) { TypeDefinition type = new TypeDefinition ( MapEntry . class , typeDef . getParameters ( ...
public class AggressiveInlineAliases { /** * Adds properties of ` name ` to the worklist if the following conditions hold : * < ol > * < li > 1 . The given property of ` name ` either meets condition ( a ) or is unsafely collapsible ( as * defined by { @ link Name # canCollapse ( ) } * < li > 2 . ` name ` meets...
if ( ! ( name . isObjectLiteral ( ) || name . isFunction ( ) || name . isClass ( ) ) ) { // Don ' t add properties for things like ` Foo ` in // const Foo = someMysteriousFunctionCall ( ) ; // Since ` Foo ` is not declared as an object , class , or function literal , assume its value // may be aliased somewhere and its...
public class PoolablePreparedStatement { /** * Method execute . * @ return boolean * @ throws SQLException * @ see java . sql . PreparedStatement # execute ( ) */ @ Override public boolean execute ( ) throws SQLException { } }
boolean isOk = false ; try { boolean result = internalStmt . execute ( ) ; isOk = true ; return result ; } finally { poolableConn . updateLastSQLExecutionTime ( isOk ) ; }
public class SimpleHostConnectionPool { /** * Try to open a new connection asynchronously . We don ' t actually return a * connection here . Instead , the connection will be added to idle queue when * it ' s ready . */ private boolean tryOpenAsync ( ) { } }
Connection < CL > connection = null ; // Try to open a new connection , as long as we haven ' t reached the max if ( activeCount . get ( ) < config . getMaxConnsPerHost ( ) ) { try { if ( activeCount . incrementAndGet ( ) <= config . getMaxConnsPerHost ( ) ) { // Don ' t try to open too many connections at the same tim...
public class AdGroupServiceLocator { /** * For the given interface , get the stub implementation . * If this service has no port for the given interface , * then ServiceException is thrown . */ public java . rmi . Remote getPort ( Class serviceEndpointInterface ) throws javax . xml . rpc . ServiceException { } }
try { if ( com . google . api . ads . adwords . axis . v201809 . cm . AdGroupServiceInterface . class . isAssignableFrom ( serviceEndpointInterface ) ) { com . google . api . ads . adwords . axis . v201809 . cm . AdGroupServiceSoapBindingStub _stub = new com . google . api . ads . adwords . axis . v201809 . cm . AdGrou...
public class MemoryConsumer { /** * Allocate a memory block with at least ` required ` bytes . * @ throws SparkOutOfMemoryError */ protected MemoryBlock allocatePage ( long required ) { } }
MemoryBlock page = taskMemoryManager . allocatePage ( Math . max ( pageSize , required ) , this ) ; if ( page == null || page . size ( ) < required ) { throwOom ( page , required ) ; } used += page . size ( ) ; return page ;
public class GlobalOperationClient { /** * Retrieves the specified Operations resource . Gets a list of operations by making a list ( ) * request . * < p > Sample code : * < pre > < code > * try ( GlobalOperationClient globalOperationClient = GlobalOperationClient . create ( ) ) { * ProjectGlobalOperationName...
GetGlobalOperationHttpRequest request = GetGlobalOperationHttpRequest . newBuilder ( ) . setOperation ( operation ) . build ( ) ; return getGlobalOperation ( request ) ;
public class VictimsRecord { /** * Processes a given { @ link Metadata } object for for Manifest keys to * determine vendor , version and name . * @ param md */ private void setFromMetadata ( Metadata md ) { } }
// TODO : add pom . properties support ? String vendorkey = Attributes . Name . IMPLEMENTATION_VENDOR . toString ( ) ; String versionkey = Attributes . Name . IMPLEMENTATION_VERSION . toString ( ) ; String namekey = Attributes . Name . IMPLEMENTATION_TITLE . toString ( ) ; if ( this . vendor . equals ( UNKNOWN ) && md ...
public class RuleScene { /** * / * - - - - - [ Antialiasing ] - - - - - */ public void paintChildren ( ) { } }
Graphics2D g = getGraphics ( ) ; Object anti = g . getRenderingHint ( RenderingHints . KEY_ANTIALIASING ) ; Object textAnti = g . getRenderingHint ( RenderingHints . KEY_TEXT_ANTIALIASING ) ; g . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; g . setRenderingHint ( Render...
public class rnat { /** * Use this API to update rnat resources . */ public static base_responses update ( nitro_service client , rnat resources [ ] ) throws Exception { } }
base_responses result = null ; if ( resources != null && resources . length > 0 ) { rnat updateresources [ ] = new rnat [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new rnat ( ) ; updateresources [ i ] . network = resources [ i ] . network ; updateresources [ i ] ...
public class Mail { /** * set the value bcc Indicates addresses to copy the e - mail message to , without listing them in the * message header . " bcc " stands for " blind carbon copy . " * @ param strBcc value to set * @ throws ApplicationException */ public void setBcc ( Object bcc ) throws ApplicationException...
if ( StringUtil . isEmpty ( bcc ) ) return ; try { smtp . addBCC ( bcc ) ; } catch ( Exception e ) { throw new ApplicationException ( "attribute [bcc] of the tag [mail] is invalid" , e . getMessage ( ) ) ; }
public class TableFactor { /** * Gets a { @ code TableFactor } over { @ code vars } which assigns unit weight to * { @ code assignment } and 0 to all other assignments . Requires * { @ code assignment } to contain all of { @ code vars } . The weights in the * returned factor are represented in logspace . * @ pa...
DenseTensorBuilder builder = new DenseTensorBuilder ( vars . getVariableNumsArray ( ) , vars . getVariableSizes ( ) , Double . NEGATIVE_INFINITY ) ; builder . put ( vars . assignmentToIntArray ( assignment ) , 0.0 ) ; return new TableFactor ( vars , new LogSpaceTensorAdapter ( builder . build ( ) ) ) ;
public class CommercePriceListAccountRelLocalServiceBaseImpl { /** * Deletes the commerce price list account rel from the database . Also notifies the appropriate model listeners . * @ param commercePriceListAccountRel the commerce price list account rel * @ return the commerce price list account rel that was remov...
return commercePriceListAccountRelPersistence . remove ( commercePriceListAccountRel ) ;
public class ZMsg { /** * Create a new ZMsg from one or more Strings * @ param strings * Strings to add as frames . * @ return * ZMsg object */ public static ZMsg newStringMsg ( String ... strings ) { } }
ZMsg msg = new ZMsg ( ) ; for ( String data : strings ) { msg . addString ( data ) ; } return msg ;
public class ConferenceProviderMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ConferenceProvider conferenceProvider , ProtocolMarshaller protocolMarshaller ) { } }
if ( conferenceProvider == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( conferenceProvider . getArn ( ) , ARN_BINDING ) ; protocolMarshaller . marshall ( conferenceProvider . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( ...
public class ExecutorBuilder { /** * 构建ThreadPoolExecutor * @ param builder { @ link ExecutorBuilder } * @ return { @ link ThreadPoolExecutor } */ private static ThreadPoolExecutor build ( ExecutorBuilder builder ) { } }
final int corePoolSize = builder . corePoolSize ; final int maxPoolSize = builder . maxPoolSize ; final long keepAliveTime = builder . keepAliveTime ; final BlockingQueue < Runnable > workQueue ; if ( null != builder . workQueue ) { workQueue = builder . workQueue ; } else { // corePoolSize为0则要使用SynchronousQueue避免无限阻塞 ...
public class StringGroovyMethods { /** * Convenience method to capitalize the first letter of a CharSequence * ( typically the first letter of a word ) . Example usage : * < pre class = " groovyTestCase " > * assert ' h ' . capitalize ( ) = = ' H ' * assert ' hello ' . capitalize ( ) = = ' Hello ' * assert ' ...
String s = self . toString ( ) ; if ( s == null || s . length ( ) == 0 ) return s ; return Character . toUpperCase ( s . charAt ( 0 ) ) + s . substring ( 1 ) ;
public class AbstractProxySessionManager { /** * Invalidates the given session . * No more heartbeats will be sent for the given session . */ public final void invalidateSession ( RaftGroupId groupId , long id ) { } }
SessionState session = sessions . get ( groupId ) ; if ( session != null && session . id == id ) { sessions . remove ( groupId , session ) ; }
public class ResultStreamer { /** * Return a stream over the given results . If the results are not inline , the * results will come from S3 * @ param resultValue result * @ return stream * @ throws Exception errors */ public Reader getResults ( ResultValue resultValue ) throws Exception { } }
if ( resultValue . isInline ( ) ) { return new StringReader ( resultValue . getResults ( ) ) ; } return readFromS3 ( resultValue . getResult_location ( ) ) ;
public class SameJSONAs { /** * Creates a matcher that compares { @ code JSONArray } s . * @ param expected the expected { @ code JSONArray } instance * @ return the { @ code Matcher } instance */ @ Factory public static SameJSONAs < JSONArray > sameJSONArrayAs ( JSONArray expected ) { } }
return new SameJSONAs < JSONArray > ( expected , modalComparatorFor ( jsonArrayComparison ( ) ) ) ;
public class ResolvingXMLConfiguration { /** * Resolve the IP address from the special " resolver " network interface * format . * @ param niSpec the special " resolver " network interface format * @ param name the name of the resolveIP item * @ return either UNKNOWN , the original string or the resolved IP add...
String result = "UNKNOWN" ; NetworkInterface ni = null ; String [ ] parts = niSpec . split ( ":" ) ; String niName = "eth0" ; // default NIC name Scheme scheme = Scheme . ipv4 ; int index = 0 ; // default index Scope scope = Scope . global ; // can be global , linklocal or sitelocal - is // global by default // Parse u...
public class DataCollectorList { /** * Adds a DataCollector to the given list . * @ param collectorName The collector that should be added */ protected final void addDataCollector ( final Class collectorName ) { } }
if ( ! DataCollector . class . isAssignableFrom ( collectorName ) ) { throw new RuntimeException ( "Class must be subclass of DataCollector!" ) ; } collectors . add ( collectorName ) ;
public class XMLUtil { /** * Replies the float value that corresponds to the specified attribute ' s path . * < p > The path is an ordered list of tag ' s names and ended by the name of * the attribute . * Be careful about the fact that the names are case sensitives . * @ param document is the XML document to e...
assert document != null : AssertMessages . notNullParameter ( 0 ) ; return getAttributeFloatWithDefault ( document , true , 0f , path ) ;
public class ServerRedirectService { /** * Delete a server group by id * @ param id server group ID */ public void deleteServerGroup ( int id ) { } }
try { sqlService . executeUpdate ( "DELETE FROM " + Constants . DB_TABLE_SERVER_GROUPS + " WHERE " + Constants . GENERIC_ID + " = " + id + ";" ) ; sqlService . executeUpdate ( "DELETE FROM " + Constants . DB_TABLE_SERVERS + " WHERE " + Constants . SERVER_REDIRECT_GROUP_ID + " = " + id ) ; } catch ( Exception e ) { e . ...
public class PodApp { /** * @ Override * public void preConfigInit ( ) throws Exception */ public void postClassLoaderInit ( ) { } }
// bartender . setLocalShard ( pod . getNode ( podNode ) ) ; ServiceManagerBuilderAmp builder = ServicesAmp . newManager ( ) ; builder . name ( EnvLoader . getEnvironmentName ( ) ) ; BartenderSystem bartender = BartenderSystem . current ( ) ; if ( bartender != null ) { PodBartender pod = bartender . findActivePod ( get...
public class OrchestrationMasterSlaveRule { /** * Get slave data source names . * @ return available slave data source names */ @ Override public Collection < String > getSlaveDataSourceNames ( ) { } }
if ( disabledDataSourceNames . isEmpty ( ) ) { return super . getSlaveDataSourceNames ( ) ; } Collection < String > result = new LinkedList < > ( super . getSlaveDataSourceNames ( ) ) ; result . removeAll ( disabledDataSourceNames ) ; return result ;
public class TokenIndex { /** * TODO : we do not have to store witnesses ! */ public void prepare ( ) { } }
this . token_array = this . prepareTokenArray ( ) ; SuffixData suffixData = SuffixArrays . createWithLCP ( token_array , new SAIS ( ) , comparator ) ; this . suffix_array = suffixData . getSuffixArray ( ) ; this . LCP_array = suffixData . getLCP ( ) ; this . blocks = splitLCP_ArrayIntoIntervals ( ) ; constructWitnessTo...
public class Asm { /** * Create pointer operand with not specified size . */ public static final Mem ptr ( Register base , Register index , int shift , long disp ) { } }
return _ptr_build ( base , index , shift , disp , 0 ) ;
public class ListRulesPackagesRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ListRulesPackagesRequest listRulesPackagesRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( listRulesPackagesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listRulesPackagesRequest . getNextToken ( ) , NEXTTOKEN_BINDING ) ; protocolMarshaller . marshall ( listRulesPackagesRequest . getMaxResults ( ) , MAXRESULTS_BI...
public class BatchAPIRequest { /** * Parses btch api response to create a list of BoxAPIResponse objects . * @ param batchResponse response of a batch api request * @ return list of BoxAPIResponses */ protected List < BoxAPIResponse > parseResponse ( BoxJSONResponse batchResponse ) { } }
JsonObject responseJSON = JsonObject . readFrom ( batchResponse . getJSON ( ) ) ; List < BoxAPIResponse > responses = new ArrayList < BoxAPIResponse > ( ) ; Iterator < JsonValue > responseIterator = responseJSON . get ( "responses" ) . asArray ( ) . iterator ( ) ; while ( responseIterator . hasNext ( ) ) { JsonObject j...
public class ClassRefTypeSignature { /** * Parse a class type signature . * @ param parser * The parser . * @ param definingClassName * The name of the defining class ( for resolving type variables ) . * @ return The class type signature . * @ throws ParseException * If the type signature could not be par...
if ( parser . peek ( ) == 'L' ) { parser . next ( ) ; if ( ! TypeUtils . getIdentifierToken ( parser , /* separator = */ '/' , /* separatorReplace = */ '.' ) ) { throw new ParseException ( parser , "Could not parse identifier token" ) ; } final String className = parser . currToken ( ) ; final List < TypeArgument > typ...
public class KNN { /** * 分类 , 返回标签 , 格式可自定义 * @ param instance * @ return */ public TPredict classify ( Instance instance , int n ) { } }
LinkedPredict < String > pred = new LinkedPredict < String > ( k ) ; for ( int i = 0 ; i < prototypes . size ( ) ; i ++ ) { Instance curInst = prototypes . get ( i ) ; // if ( ( ( String ) curInst . getSource ( ) ) . contains ( " 听 # per # 的歌 " ) ) // System . out . println ( " " ) ; float score ; try { score = sim . c...
public class RichDiagnosticFormatter { /** * Get the DiagnosticFormatter instance for this context . */ public static RichDiagnosticFormatter instance ( Context context ) { } }
RichDiagnosticFormatter instance = context . get ( RichDiagnosticFormatter . class ) ; if ( instance == null ) instance = new RichDiagnosticFormatter ( context ) ; return instance ;
public class TextReport { /** * Flush output streams . */ private void flushOutput ( ) throws IOException { } }
outStream . flush ( ) ; outWriter . completeLine ( ) ; errStream . flush ( ) ; errWriter . completeLine ( ) ;
public class CommercePriceEntryPersistenceImpl { /** * Returns a range of all the commerce price entries where companyId = & # 63 ; . * Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys , they ar...
return findByCompanyId ( companyId , start , end , null ) ;
public class State { /** * Splits state at new line character ( ' \ n ' ) , sorts the resulting array and * returns joined array . Array is joined using ' \ n ' as a delimiter between its * members . * @ return */ public static String sortAndGetState ( ) { } }
if ( _state . length ( ) == 0 ) { return _state ; } String [ ] states = _state . split ( "\\n" ) ; List < String > list = new ArrayList ( ) ; for ( int counter = 0 ; counter < states . length ; ++ counter ) { list . add ( states [ counter ] ) ; } Collections . sort ( list ) ; Iterator < String > iterator = list . itera...
public class Utils { /** * Copies the content from in into outputFile . * < i > in < / i > is not closed by this method . < br > * It must be explicitly closed after this method is called . * @ param in an input stream ( not null ) * @ param outputFile will be created if it does not exist * @ throws IOExcepti...
OutputStream os = new FileOutputStream ( outputFile ) ; try { copyStreamUnsafelyUseWithCaution ( in , os ) ; } finally { os . close ( ) ; }
public class ASMifier { @ Override public void visit ( final String name , final Object value ) { } }
buf . setLength ( 0 ) ; buf . append ( "av" ) . append ( id ) . append ( ".visit(" ) ; appendConstant ( buf , name ) ; buf . append ( ", " ) ; appendConstant ( buf , value ) ; buf . append ( ");\n" ) ; text . add ( buf . toString ( ) ) ;
public class DetectPolygonFromContour { /** * Specifies the image ' s intrinsic parameters and target size * @ param width Width of the input image * @ param height Height of the input image */ private void configure ( int width , int height ) { } }
this . imageWidth = width ; this . imageHeight = height ; // adjust size based parameters based on image size this . minimumContour = minimumContourConfig . computeI ( Math . min ( width , height ) ) ; this . minimumContour = Math . max ( 4 , minimumContour ) ; // This is needed to avoid processing zero or other imposs...
public class LocalProperties { /** * Filters these LocalProperties by the fields that are forwarded to the output * as described by the SemanticProperties . * @ param props The semantic properties holding information about forwarded fields . * @ param input The index of the input . * @ return The filtered Local...
if ( props == null ) { throw new NullPointerException ( "SemanticProperties may not be null." ) ; } LocalProperties returnProps = new LocalProperties ( ) ; // check if sorting is preserved if ( this . ordering != null ) { Ordering newOrdering = new Ordering ( ) ; for ( int i = 0 ; i < this . ordering . getInvolvedIndex...
public class DispatcherBase { /** * Obtains the value of an integer configuration parameter given its name , the default value * and ' reasonable ' minimum and maximum values . * @ param msi The Message Store instance to obtain the parameters ( may be null ) * @ param parameterName The parameter ' s name * @ pa...
int value = Integer . parseInt ( defaultValue ) ; if ( msi != null ) { String strValue = msi . getProperty ( parameterName , defaultValue ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { SibTr . debug ( tc , parameterName + "=" + strValue ) ; } ; // end if try { value = Integer . parseIn...
public class TransactionQueue { /** * Returns a snapshot of the statistics on this TransactionQueue . */ public synchronized TransactionQueueData getStatistics ( ) { } }
return new TransactionQueueData ( this , mTimeLapseStart , System . currentTimeMillis ( ) , mQueue . size ( ) , mThreadCount , mServicingCount , mPeakQueueSize , mPeakThreadCount , mPeakServicingCount , mTotalEnqueueAttempts , mTotalEnqueued , mTotalServiced , mTotalExpired , mTotalServiceExceptions , mTotalUncaughtExc...
public class ScenarioImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setVendor ( String newVendor ) { } }
String oldVendor = vendor ; vendor = newVendor ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , BpsimPackage . SCENARIO__VENDOR , oldVendor , vendor ) ) ;
public class RebootManager { /** * Schedules our next regularly scheduled reboot . * @ return true if a reboot was scheduled , false if regularly scheduled reboots are disabled . */ public boolean scheduleRegularReboot ( ) { } }
// maybe schedule an automatic reboot based on our configuration int freq = getDayFrequency ( ) ; int hour = getRebootHour ( ) ; if ( freq <= 0 ) { return false ; } Calendars . Builder cal = Calendars . now ( ) ; int curHour = cal . get ( Calendar . HOUR_OF_DAY ) ; cal = cal . zeroTime ( ) . addHours ( hour ) . addDays...
public class TargetFilterQuerySpecification { /** * { @ link Specification } for retrieving { @ link JpaTargetFilterQuery } s based * on is { @ link JpaTargetFilterQuery # getName ( ) } . * @ param distributionSet * of the filter * @ return the { @ link JpaTargetFilterQuery } { @ link Specification } */ public ...
return ( targetFilterQueryRoot , query , cb ) -> cb . equal ( targetFilterQueryRoot . get ( JpaTargetFilterQuery_ . autoAssignDistributionSet ) , distributionSet ) ;
public class Tile { /** * A convenient method to set the color of foreground elements like * title , description , unit , value , tickLabel and tickMark to the given * Color . * @ param COLOR */ public void setForegroundBaseColor ( final Color COLOR ) { } }
if ( null == titleColor ) { _titleColor = COLOR ; } else { titleColor . set ( COLOR ) ; } if ( null == descriptionColor ) { _descriptionColor = COLOR ; } else { descriptionColor . set ( COLOR ) ; } if ( null == unitColor ) { _unitColor = COLOR ; } else { unitColor . set ( COLOR ) ; } if ( null == valueColor ) { _valueC...
public class RomanticCron4jNativeTaskExecutor { protected void setupLinkedContextIfNeeds ( ) { } }
readyContextFieldIfNeeds ( ) ; if ( linkedContext == null ) { synchronized ( attributeLinkLock ) { if ( linkedContext == null ) { linkedContext = getFieldValue ( contextField ) ; } } }
public class MethodFinder { /** * Computes whether a type is equivalent to a GenericArrayType . * This method will check that { @ code typeToMatch } is either a { @ link GenericArrayType } or an array and then recursively compare the component types of both arguments using * { @ link # typesEquivalent ( Type , Type...
if ( typeToMatch instanceof GenericArrayType ) { GenericArrayType aGat = ( GenericArrayType ) typeToMatch ; return typesEquivalent ( aGat . getGenericComponentType ( ) , ctx . resolve ( type . getGenericComponentType ( ) ) , ctx ) ; } if ( typeToMatch instanceof Class ) { Class < ? > aClazz = ( Class < ? > ) typeToMatc...
public class JK { /** * Prints the . * @ param name the name * @ param list the list */ public static void print ( String name , List < ? > list ) { } }
JK . line ( ) ; print ( String . format ( "List (%s):" , name ) ) ; int index = 1 ; for ( Object object : list ) { JK . print ( String . format ( "\t%d) %s" , index ++ , object ) ) ; } JK . line ( ) ;
public class ArrayOfDoublesSketchBuildAggregator { /** * This method uses synchronization because it can be used during indexing , * and Druid can call aggregate ( ) and get ( ) concurrently * https : / / github . com / apache / incubator - druid / pull / 3956 */ @ Override public void aggregate ( ) { } }
final IndexedInts keys = keySelector . getRow ( ) ; for ( int i = 0 ; i < valueSelectors . length ; i ++ ) { values [ i ] = valueSelectors [ i ] . getDouble ( ) ; } synchronized ( this ) { for ( int i = 0 , keysSize = keys . size ( ) ; i < keysSize ; i ++ ) { final String key = keySelector . lookupName ( keys . get ( i...
public class Collecting { /** * Returns a { @ code Collector } that accumulates in reverse order the items into a new { @ code Deque } . * @ param < T > the type of the input elements * @ return the resulting { @ code Collector } */ public static < T > Collector < T , ? , Deque < T > > reverse ( ) { } }
return Collector . of ( LinkedList :: new , Deque :: addFirst , ( left , right ) -> { right . addAll ( left ) ; return right ; } ) ;
public class DonutChartTileSkin { /** * * * * * * Methods * * * * * */ @ Override protected void handleEvents ( final String EVENT_TYPE ) { } }
super . handleEvents ( EVENT_TYPE ) ; if ( "VISIBILITY" . equals ( EVENT_TYPE ) ) { Helper . enableNode ( titleText , ! tile . getTitle ( ) . isEmpty ( ) ) ; Helper . enableNode ( text , tile . isTextVisible ( ) ) ; double chartCanvasWidth = width - size * 0.1 ; double chartCanvasHeight = tile . isTextVisible ( ) ? hei...
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getIfcSectionalAreaIntegralMeasure ( ) { } }
if ( ifcSectionalAreaIntegralMeasureEClass == null ) { ifcSectionalAreaIntegralMeasureEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 735 ) ; } return ifcSectionalAreaIntegralMeasureEClass ;
public class DigestAuthenticator { /** * Generate a unique token . The token is generated according to the * following pattern . NOnceToken = Base64 ( MD5 ( client - IP " : " * time - stamp " : " private - key ) ) . * @ param request HTTP Servlet request */ protected String generateNOnce ( MobicentsSipServletRequ...
long currentTime = System . currentTimeMillis ( ) ; String nOnceValue = request . getRemoteAddr ( ) + ":" + currentTime + ":" + key ; byte [ ] buffer = null ; synchronized ( md5Helper ) { buffer = md5Helper . digest ( nOnceValue . getBytes ( ) ) ; } nOnceValue = MD5_ENCODER . encode ( buffer ) ; return nOnceValue ;
public class CmsStaticExportManager { /** * Substitutes the $ { CONTEXT _ NAME } and $ { SERVLET _ NAME } in a path with the real values . < p > * @ param path the path to substitute * @ return path with real context values */ protected String insertContextStrings ( String path ) { } }
// create a new macro resolver CmsMacroResolver resolver = CmsMacroResolver . newInstance ( ) ; // add special mappings for macros resolver . addMacro ( "CONTEXT_NAME" , OpenCms . getSystemInfo ( ) . getContextPath ( ) ) ; resolver . addMacro ( "SERVLET_NAME" , OpenCms . getSystemInfo ( ) . getServletPath ( ) ) ; // re...
public class ArabicShaping { /** * Name : calculateSize * Function : This function calculates the destSize to be used in preflighting * when the destSize is equal to 0 */ private int calculateSize ( char [ ] source , int sourceStart , int sourceLength ) { } }
int destSize = sourceLength ; switch ( options & LETTERS_MASK ) { case LETTERS_SHAPE : case LETTERS_SHAPE_TASHKEEL_ISOLATED : if ( isLogical ) { for ( int i = sourceStart , e = sourceStart + sourceLength - 1 ; i < e ; ++ i ) { if ( ( source [ i ] == LAM_CHAR && isAlefChar ( source [ i + 1 ] ) ) || isTashkeelCharFE ( so...
public class ProgramConverter { /** * Convert document model to declared document . * @ param path The program file path . * @ param program Program model to convert . * @ return The declared thrift document . */ public CProgram convert ( String path , ProgramType program ) { } }
ImmutableList . Builder < PDeclaredDescriptor < ? > > declaredTypes = ImmutableList . builder ( ) ; ImmutableList . Builder < CConst > constants = ImmutableList . builder ( ) ; ImmutableMap . Builder < String , String > typedefs = ImmutableMap . builder ( ) ; ImmutableList . Builder < CService > services = ImmutableLis...
public class FederatedBigQueryOutputCommitter { /** * Runs a federated import job on BigQuery for the data in the output path in addition to calling * the delegate ' s commitJob . */ @ Override public void commitJob ( JobContext context ) throws IOException { } }
super . commitJob ( context ) ; // Get the destination configuration information . Configuration conf = context . getConfiguration ( ) ; TableReference destTable = BigQueryOutputConfiguration . getTableReference ( conf ) ; String destProjectId = BigQueryOutputConfiguration . getProjectId ( conf ) ; Optional < BigQueryT...
public class AbstractPathFinder { /** * A placeholder configuration is one which is not defined or is set to { @ link DatasetDescriptorConfigKeys # DATASET _ DESCRIPTOR _ CONFIG _ ANY } . * @ param value to be examined for determining if it is a placeholder . * @ return true if the value is null or empty or equals ...
return Strings . isNullOrEmpty ( value ) || value . equals ( DatasetDescriptorConfigKeys . DATASET_DESCRIPTOR_CONFIG_ANY ) ;
public class Asm { /** * Create word ( 2 Bytes ) pointer operand . */ public static final Mem word_ptr_abs ( long target , long disp , SEGMENT segmentPrefix ) { } }
return _ptr_build_abs ( target , disp , segmentPrefix , SIZE_WORD ) ;
public class Client { /** * Change the password for the currently logged in user . You must supply the * old password and the new password . * @ param username * @ param oldPassword * @ param newPassword * @ return */ public ApiResponse changePassword ( String username , String oldPassword , String newPasswor...
Map < String , Object > data = new HashMap < String , Object > ( ) ; data . put ( "newpassword" , newPassword ) ; data . put ( "oldpassword" , oldPassword ) ; return apiRequest ( HttpMethod . POST , null , data , organizationId , applicationId , "users" , username , "password" ) ;
public class GenerateImplFastCorner { /** * TODO only be considered finished when that list is exhausted */ private String generateSamples ( ) { } }
String output = "" ; tabs = 2 ; Stack < Action > actions = new Stack < > ( ) ; actions . add ( selectNextSample ( ) ) ; while ( ! actions . empty ( ) ) { Action action = actions . peek ( ) ; System . out . println ( "Action bit=" + action . bit + " up=" + action . sampleUp + " n=" + action . consider + " TOTAL=" + acti...
public class CommerceSubscriptionEntryPersistenceImpl { /** * Returns the commerce subscription entries before and after the current commerce subscription entry in the ordered set where uuid = & # 63 ; . * @ param commerceSubscriptionEntryId the primary key of the current commerce subscription entry * @ param uuid ...
CommerceSubscriptionEntry commerceSubscriptionEntry = findByPrimaryKey ( commerceSubscriptionEntryId ) ; Session session = null ; try { session = openSession ( ) ; CommerceSubscriptionEntry [ ] array = new CommerceSubscriptionEntryImpl [ 3 ] ; array [ 0 ] = getByUuid_PrevAndNext ( session , commerceSubscriptionEntry , ...
public class Ifc4FactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public IfcReinforcingMeshTypeEnum createIfcReinforcingMeshTypeEnumFromString ( EDataType eDataType , String initialValue ) { } }
IfcReinforcingMeshTypeEnum result = IfcReinforcingMeshTypeEnum . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ;
public class RESTClient { /** * Performs GET request . * @ param path Request path . * @ throws IOException If error during HTTP connection or entity parsing occurs . * @ throws RESTException If HTTP response code is non OK . */ public Response get ( String path ) throws IOException , RESTException { } }
return get ( path , null , null ) ;
public class SecretKeyBackupHelper { /** * Decrypt a secret key backup and return the { @ link PGPSecretKeyRing } contained in it . * TODO : Return a PGPSecretKeyRingCollection instead ? * @ param backup encrypted { @ link SecretkeyElement } containing the backup * @ param backupCode passphrase for decrypting the...
byte [ ] encrypted = Base64 . decode ( backup . getB64Data ( ) ) ; byte [ ] decrypted ; try { decrypted = PGPainless . decryptWithPassword ( encrypted , new Passphrase ( backupCode . toCharArray ( ) ) ) ; } catch ( IOException | PGPException e ) { throw new InvalidBackupCodeException ( "Could not decrypt secret key bac...
public class Organization { /** * A list of policy types that are enabled for this organization . For example , if your organization has all features * enabled , then service control policies ( SCPs ) are included in the list . * < note > * Even if a policy type is shown as available in the organization , you can...
if ( this . availablePolicyTypes == null ) { setAvailablePolicyTypes ( new java . util . ArrayList < PolicyTypeSummary > ( availablePolicyTypes . length ) ) ; } for ( PolicyTypeSummary ele : availablePolicyTypes ) { this . availablePolicyTypes . add ( ele ) ; } return this ;
public class GetConnectionsResult { /** * A list of requested connection definitions . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setConnectionList ( java . util . Collection ) } or { @ link # withConnectionList ( java . util . Collection ) } if you want...
if ( this . connectionList == null ) { setConnectionList ( new java . util . ArrayList < Connection > ( connectionList . length ) ) ; } for ( Connection ele : connectionList ) { this . connectionList . add ( ele ) ; } return this ;
public class JKMessage { /** * Adds the lables . * @ param locale the locale * @ param fileName the file name */ public void addLables ( JKLocale locale , String fileName ) { } }
addLables ( locale , JKIOUtil . readPropertiesFile ( fileName ) ) ;
public class CmsGalleryService { /** * Returns the gallery search object containing the results for the current parameter . < p > * @ param searchObj the current search object * @ return the search result * @ throws CmsException if the search fails */ private CmsGallerySearchBean search ( CmsGallerySearchBean sea...
CmsGallerySearchBean searchObjBean = new CmsGallerySearchBean ( searchObj ) ; if ( searchObj == null ) { return searchObjBean ; } // store folder filter storeFolderFilter ( searchObj . getFolders ( ) ) ; // search CmsGallerySearchParameters params = prepareSearchParams ( searchObj ) ; org . opencms . search . galleries...
public class TypeConversion { /** * A utility method to convert the char from the byte array to a char . * @ param bytes * The byte array containing the char . * @ param offset * The index at which the char is located . * @ return The char value . */ public static char bytesToChar ( byte [ ] bytes , int offse...
char result = 0x0 ; for ( int i = offset ; i < offset + 2 ; ++ i ) { result = ( char ) ( ( result ) << 8 ) ; result |= ( bytes [ i ] & 0x00FF ) ; } return result ;
public class Cache { /** * Looks up credible Records in the Cache ( a wrapper around lookupRecords ) . * Unlike lookupRecords , this given no indication of why failure occurred . * @ param name The name to look up * @ param type The type to look up * @ return An array of RRsets , or null * @ see Credibility *...
return findRecords ( name , type , Credibility . NORMAL ) ;
public class ServersInner { /** * Updates an existing server . * @ 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 parameters The required param...
return updateWithServiceResponseAsync ( resourceGroupName , serverName , parameters ) . toBlocking ( ) . single ( ) . body ( ) ;
public class Expressions { /** * Create a new Template expression * @ param template template * @ param args template parameters * @ return template expression */ public static BooleanTemplate booleanTemplate ( Template template , Object ... args ) { } }
return booleanTemplate ( template , ImmutableList . copyOf ( args ) ) ;
public class UnparsedExtEntity { /** * Implementation of abstract base methods */ @ Override public void writeEnc ( Writer w ) throws IOException { } }
w . write ( "<!ENTITY " ) ; w . write ( mName ) ; String pubId = getPublicId ( ) ; if ( pubId != null ) { w . write ( "PUBLIC \"" ) ; w . write ( pubId ) ; w . write ( "\" " ) ; } else { w . write ( "SYSTEM " ) ; } w . write ( '"' ) ; w . write ( getSystemId ( ) ) ; w . write ( "\" NDATA " ) ; w . write ( mNotationId )...
public class CmsXsltUtil { /** * Applies a XSLT Transformation to the content . < p > * The method does not use DOM4J , because iso - 8859-1 code ist not transformed correctly . * @ param cms the cms object * @ param xsltFile the XSLT transformation file * @ param xmlContent the XML content to transform * @ r...
// JAXP reads data Source xmlSource = new StreamSource ( new StringReader ( xmlContent ) ) ; String xsltString = new String ( cms . readFile ( xsltFile ) . getContents ( ) ) ; Source xsltSource = new StreamSource ( new StringReader ( xsltString ) ) ; String result = null ; try { TransformerFactory transFact = Transform...
public class PNCounterProxy { /** * Updates the locally observed CRDT vector clock atomically . This method * is thread safe and can be called concurrently . The method will only * update the clock if the { @ code receivedLogicalTimestamps } is higher than * the currently observed vector clock . * @ param recei...
for ( ; ; ) { final VectorClock currentClock = this . observedClock ; if ( currentClock != null && currentClock . isAfter ( receivedVectorClock ) ) { break ; } if ( OBSERVED_TIMESTAMPS_UPDATER . compareAndSet ( this , currentClock , receivedVectorClock ) ) { break ; } }
public class RTMPConnManager { /** * { @ inheritDoc } */ @ Override public Collection < RTMPConnection > getAllConnections ( ) { } }
ArrayList < RTMPConnection > list = new ArrayList < RTMPConnection > ( connMap . size ( ) ) ; list . addAll ( connMap . values ( ) ) ; return list ;
public class PixelUtils { /** * Converts DP to Pixel < br > * @ param dp DP * @ return Pixel * @ see < a href = " http : / / developer . android . com / guide / practices / screens _ support . html # dips - pels " > http : / / developer . android . com / guide / practices / screens _ support . html # dips - pels ...
// Get the screen ' s density scale float scale = context . getResources ( ) . getDisplayMetrics ( ) . density ; // Convert the dps to pixels , based on density scale // because dp * scale is cast as an integer value , this will cause the result to be truncated . // Therefore , Adding ROUND _ FACTOR helps the result to...
public class SystemUtil { /** * Creates a new temporary directory in the given path . * @ param _ path path * @ param _ name directory name * @ param _ deleteOnExit delete directory on jvm shutdown * @ return created Directory , null if directory / file was already existing */ public static File createTempDirec...
File outputDir = new File ( concatFilePath ( _path , _name ) ) ; if ( ! outputDir . exists ( ) ) { try { Files . createDirectory ( Paths . get ( outputDir . toString ( ) ) ) ; } catch ( IOException _ex ) { LOGGER . error ( "Error while creating temp directory: " , _ex ) ; } } else { return null ; } if ( _deleteOnExit )...
public class CatalogUtil { /** * Get the auto generated DDL from the catalog jar . * @ param jarfile in - memory catalog jar file * @ return Auto generated DDL stored in catalog . jar * @ throws IOException If the catalog or the auto generated ddl cannot be loaded . */ public static String getAutoGenDDLFromJar ( ...
// Read the raw auto generated ddl bytes . byte [ ] ddlBytes = jarfile . get ( VoltCompiler . AUTOGEN_DDL_FILE_NAME ) ; if ( ddlBytes == null ) { throw new IOException ( "Auto generated schema DDL not found - please make sure the database is initialized with valid schema." ) ; } String ddl = new String ( ddlBytes , Sta...
public class DeleteTableVersionRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DeleteTableVersionRequest deleteTableVersionRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( deleteTableVersionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteTableVersionRequest . getCatalogId ( ) , CATALOGID_BINDING ) ; protocolMarshaller . marshall ( deleteTableVersionRequest . getDatabaseName ( ) , DATABASE...
public class PathResolvingComparator { /** * - - - - - private methods - - - - - */ private Comparable resolve ( final GraphObject obj , final String path ) { } }
final ConfigurationProvider config = StructrApp . getConfiguration ( ) ; final String [ ] parts = path . split ( "[\\.]+" ) ; GraphObject current = obj ; int pos = 0 ; for ( final String part : parts ) { final Class type = current . getEntityType ( ) ; final PropertyKey key = config . getPropertyKeyForJSONName ( type ,...
public class XLinkUtils { /** * Prepares the XLinkTemplate before it is transmitted to the remote tool . * < br / > < br / > * The baseUrl is prepared and the KeyNames are added . < br / > * The models are assigned to the views ( yet in an naive order ) . < br / > * The ConnectorId / value combination and the V...
baseUrl += "?" + XLinkConstants . XLINK_EXPIRATIONDATE_KEY + "=" + urlEncodeParameter ( getExpirationDate ( expirationDays ) ) ; String connectorIdParam = XLinkConstants . XLINK_CONNECTORID_KEY + "=" + urlEncodeParameter ( connectorId ) ; Map < String , ModelDescription > viewToModels = assigneModelsToViews ( modelsToV...
public class ArtifactResource { /** * Return all the artifacts that matches the filters . * This method is call via GET < grapes _ url > / artifact / < gavc > * Following filters can be used : artifactId , classifier , groupId , hasLicense , licenseId , type , uriInfo , version * @ param uriInfo UriInfo * @ ret...
if ( LOG . isInfoEnabled ( ) ) { LOG . info ( String . format ( "Got a get all artifact request [%s]" , uriInfo . getPath ( ) ) ) ; } final FiltersHolder filters = new FiltersHolder ( ) ; filters . init ( uriInfo . getQueryParameters ( ) ) ; if ( filters . getArtifactFieldsFilters ( ) . size ( ) == 0 ) { LOG . warn ( "...
public class ESRIFileUtil { /** * Translate a floating point value into ESRI standard . * < p > This function translate the Java NaN and infinites values * into the ESRI equivalent value . * @ param value the value . * @ return the ESRI value */ @ Pure public static double toESRI ( double value ) { } }
return ( Double . isInfinite ( value ) || Double . isNaN ( value ) ) ? ESRI_NAN : value ;
public class ValoSideBar { /** * Specifies whether the side bar should use large icons or not . * @ see ValoTheme # MENU _ PART _ LARGE _ ICONS */ public void setLargeIcons ( boolean largeIcons ) { } }
this . largeIcons = largeIcons ; if ( getCompositionRoot ( ) != null ) { if ( largeIcons ) { getCompositionRoot ( ) . addStyleName ( ValoTheme . MENU_PART_LARGE_ICONS ) ; } else { getCompositionRoot ( ) . removeStyleName ( ValoTheme . MENU_PART_LARGE_ICONS ) ; } }
public class JobHistoryFileParserBase { /** * calculates the cost of a job in current units * jobCost = thisJobMbMillis * computeTco / mbMillisInOneday * @ param mb millis , compute tco , memory of the machine */ public static double calculateJobCost ( long mbMillis , double computeTco , long machineMemory ) { } }
if ( ( machineMemory == 0L ) || ( computeTco == 0.0 ) ) { LOG . error ( "Unable to calculate job cost since machineMemory " + machineMemory + " or computeTco " + computeTco + " is 0; returning jobCost as 0" ) ; return 0.0 ; } double jobCost = ( mbMillis * computeTco ) / ( Constants . MILLIS_ONE_DAY * machineMemory ) ; ...
public class JSLocalConsumerPoint { /** * Checks that the maxBatchSize is > 0 * Checks that messasgeLockExpiry > = 0 * Checks that maxActiveMessages > = 0 * @ param maxBatchSize * @ param max */ private void checkParams ( int maxActiveMessages , long messageLockExpiry , int maxBatchSize ) throws SIIncorrectCall...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkParams" , new Object [ ] { Integer . valueOf ( maxActiveMessages ) , Long . valueOf ( messageLockExpiry ) , Integer . valueOf ( maxBatchSize ) } ) ; if ( maxActiveMessages < 0 ) { if ( TraceComponent . isAnyTracingEnab...
public class ByteCodeParser { /** * Parses the . class file . */ public JavaClass parse ( InputStream is ) throws IOException { } }
_is = is ; if ( _loader == null ) _loader = new JavaClassLoader ( ) ; if ( _class == null ) _class = new JavaClass ( _loader ) ; _cp = _class . getConstantPool ( ) ; parseClass ( ) ; return _class ;
public class CmsGalleryActionElement { /** * Returns the serialized initial data for gallery dialog depending on the given mode . < p > * @ param galleryMode the gallery mode * @ return the data * @ throws Exception if something goes wrong */ private String export ( GalleryMode galleryMode ) throws Exception { } ...
CmsGalleryConfiguration conf = createGalleryConfigurationFromRequest ( galleryMode ) ; CmsGalleryDataBean data = CmsGalleryService . getInitialSettings ( getRequest ( ) , conf ) ; CmsGallerySearchBean search = null ; if ( GalleryTabId . cms_tab_results . equals ( data . getStartTab ( ) ) ) { search = CmsGalleryService ...
public class FileProxyRNASequenceCreator { /** * Even though we are passing in the sequence we really only care about the length of the sequence and the offset * index in the fasta file . * @ param sequence * @ param index * @ return * @ throws CompoundNotFoundException * @ throws IOException */ @ Override ...
SequenceFileProxyLoader < NucleotideCompound > sequenceFileProxyLoader = new SequenceFileProxyLoader < NucleotideCompound > ( file , sequenceParser , index , sequence . length ( ) , compoundSet ) ; return new RNASequence ( sequenceFileProxyLoader , compoundSet ) ;
public class MetricValue { /** * If the < code > comparisonOperator < / code > calls for a set of CIDRs , use this to specify that set to be compared with * the < code > metric < / code > . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setCidrs ( java . u...
if ( this . cidrs == null ) { setCidrs ( new java . util . ArrayList < String > ( cidrs . length ) ) ; } for ( String ele : cidrs ) { this . cidrs . add ( ele ) ; } return this ;
public class HttpUtil { /** * Extract headers from { @ link HttpServletRequest } * @ param request { @ link HttpServletRequest } to extract headers from * @ return Array with { @ link Header } s */ public static Header [ ] getHeadersFromRequest ( HttpServletRequest request ) { } }
List < Header > returnHeaderList = new ArrayList < > ( ) ; Enumeration < String > headerNames = request . getHeaderNames ( ) ; while ( headerNames . hasMoreElements ( ) ) { String headerName = headerNames . nextElement ( ) ; Enumeration < String > headerValues = request . getHeaders ( headerName ) ; while ( headerValue...
public class Settings { /** * Set a view setting * @ param viewId the view to which add the setting * @ param item the item name * @ param value the item value */ public void setViewSetting ( final String viewId , final String item , final String value ) { } }
final ConfigItemMapEntrySet view = this . viewById . get ( viewId ) ; if ( view == null ) return ; view . set ( item , value ) ;