signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class SourceReportService { /** * Find the SourceReportModel instance for this fileModel ( this is a 1:1 relationship ) . */ public SourceReportModel getSourceReportForFileModel ( FileModel fileModel ) { } }
GraphTraversal < Vertex , Vertex > pipeline = new GraphTraversalSource ( getGraphContext ( ) . getGraph ( ) ) . V ( fileModel . getElement ( ) ) ; pipeline . in ( SourceReportModel . SOURCE_REPORT_TO_SOURCE_FILE_MODEL ) ; SourceReportModel result = null ; if ( pipeline . hasNext ( ) ) { result = frame ( pipeline . next...
public class SiteConfigurationReader { /** * Reads the { @ value # SITE _ FILE } of the < code > templateFolder < / code > and merges with < code > templateFolder / controller < / code > , * if any exists . * flow : * < ol > * < li > look in < code > templateFolder / controller < / code > < / li > * < li > lo...
Path rootFolder = Paths . get ( templateFolder ) ; // find eventual extra configurations in the controller folder // we skip path . controller + ' / ' + path . method because we only look for other configurations on controller level SiteConfiguration controllerConf = readSiteFileWithCache ( rootFolder . resolve ( contr...
public class Stack { /** * The actions that are enabled or disabled for users during their streaming sessions . By default these actions are * enabled . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setUserSettings ( java . util . Collection ) } or { @ li...
if ( this . userSettings == null ) { setUserSettings ( new java . util . ArrayList < UserSetting > ( userSettings . length ) ) ; } for ( UserSetting ele : userSettings ) { this . userSettings . add ( ele ) ; } return this ;
public class JcrDocumentViewExporter { /** * Indicates whether the current node is an XML text node as per section 6.4.2.3 of the JCR 1.0 specification . XML text nodes * are nodes that have the name & quot ; jcr : xmltext & quot ; and only one property ( besides the mandatory * & quot ; jcr : primaryType & quot ; ...
// . / xmltext / xmlcharacters exception ( see JSR - 170 Spec 6.4.2.3) if ( getPrefixedName ( JcrLexicon . XMLTEXT ) . equals ( node . getName ( ) ) ) { if ( node . getNodes ( ) . getSize ( ) == 0 ) { PropertyIterator properties = node . getProperties ( ) ; boolean xmlCharactersFound = false ; while ( properties . hasN...
public class RamlHelper { /** * Returns authorization grant for provided action . It searches for * authorization grants defined for provided action , some of parent * resources or the root of the document . If authorization grants found is a * list - the method will return the first grant in the list . * @ par...
List < String > grants = getAuthorizationGrants ( action , document ) ; if ( grants . isEmpty ( ) ) { return null ; } return grants . get ( 0 ) ;
public class TreeTraverser { /** * Returns an unmodifiable iterable over the nodes in a tree structure , using pre - order * traversal . That is , each node ' s subtrees are traversed after the node itself is returned . * < p > No guarantees are made about the behavior of the traversal when nodes change while * i...
checkNotNull ( root ) ; return new FluentIterable < T > ( ) { @ Override public UnmodifiableIterator < T > iterator ( ) { return preOrderIterator ( root ) ; } } ;
public class FlexiantComputeClient { /** * Loads the vdc with the given uuid . * @ param vdcUUID the uuid of the vdc . * @ return the vdc identified by the uuid or null . * @ throws FlexiantException */ @ Nullable protected Vdc getVdc ( final String vdcUUID ) throws FlexiantException { } }
return this . getResource ( vdcUUID , ResourceType . VDC , Vdc . class ) ;
public class DwgAttrib { /** * Read an Attrib in the DWG format Version 15 * @ param data Array of unsigned bytes obtained from the DWG binary file * @ param offset The current bit offset where the value begins * @ throws Exception If an unexpected bit value is found in the DWG file . Occurs * when we are looki...
// System . out . println ( " readDwgAttdef ( ) executed . . . " ) ; int bitPos = offset ; bitPos = readObjectHeaderV15 ( data , bitPos ) ; Vector v = DwgUtil . getRawChar ( data , bitPos ) ; bitPos = ( ( Integer ) v . get ( 0 ) ) . intValue ( ) ; int dflag = ( ( Integer ) v . get ( 1 ) ) . intValue ( ) ; dataFlag = df...
public class ByteSequence { /** * Compares the two given byte sequences , byte by byte , returning a negative , * zero , or positive result if the first sequence is less than , equal to , or * greater than the second . The comparison is performed starting with the * first byte of each sequence , and proceeds unti...
int minLen = Math . min ( bs1 . length ( ) , bs2 . length ( ) ) ; for ( int i = 0 ; i < minLen ; i ++ ) { int a = ( bs1 . byteAt ( i ) & 0xff ) ; int b = ( bs2 . byteAt ( i ) & 0xff ) ; if ( a != b ) { return a - b ; } } return bs1 . length ( ) - bs2 . length ( ) ;
public class SliderLayout { /** * remove all the sliders . Notice : It ' s a not perfect method , a very small bug still exists . */ public void removeAllSliders ( ) { } }
if ( getRealAdapter ( ) != null ) { int count = getRealAdapter ( ) . getCount ( ) ; getRealAdapter ( ) . removeAllSliders ( ) ; // a small bug , but fixed by this trick . // bug : when remove adapter ' s all the sliders . some caching slider still alive . mViewPager . setCurrentItem ( mViewPager . getCurrentItem ( ) + ...
public class ConditionalCommentNodeProcessorMatcher { /** * Matches the specified { @ link Node } if it is an instance of { @ link Comment } * AND it conforms to { @ link ConditionalCommentUtils # isConditionalComment ( String ) } . * @ param node the node to be checked * @ param context the processor matching co...
if ( node == null || ! ( node instanceof Comment ) ) { // fail fast return false ; } final Comment comment = ( Comment ) node ; return ConditionalCommentUtils . isConditionalComment ( comment . getContent ( ) ) ;
public class LinearClassifier { /** * Returns a counter mapping from each class name to the probability of * that class for a certain example . * Looking at the the sum of each count v , should be 1.0. */ private Counter < L > probabilityOfRVFDatum ( RVFDatum < L , F > example ) { } }
// NB : this duplicate method is needed so it calls the scoresOf method // with a RVFDatum signature Counter < L > scores = logProbabilityOfRVFDatum ( example ) ; for ( L label : scores . keySet ( ) ) { scores . setCount ( label , Math . exp ( scores . getCount ( label ) ) ) ; } return scores ;
public class SpaceRepository { /** * Remove a remote space . * @ param id identifier of the space * @ param isLocalDestruction indicates if the destruction is initiated by the local kernel . */ protected void removeLocalSpaceDefinition ( SpaceID id , boolean isLocalDestruction ) { } }
final Space space ; synchronized ( getSpaceRepositoryMutex ( ) ) { space = this . spaces . remove ( id ) ; if ( space != null ) { this . spacesBySpec . remove ( id . getSpaceSpecification ( ) , id ) ; } } if ( space != null ) { fireSpaceRemoved ( space , isLocalDestruction ) ; }
public class LoggingSnippets { /** * [ VARIABLE " my _ sink _ name " ] */ public boolean deleteSinkAsync ( String sinkName ) throws ExecutionException , InterruptedException { } }
// [ START deleteSinkAsync ] Future < Boolean > future = logging . deleteSinkAsync ( sinkName ) ; boolean deleted = future . get ( ) ; if ( deleted ) { // the sink was deleted } else { // the sink was not found } // [ END deleteSinkAsync ] return deleted ;
public class PKCS9Attributes { /** * Decode this set of PKCS9 attributes from the contents of its * DER encoding . Ignores unsupported attributes when directed . * @ param in * the contents of the DER encoding of the attribute set . * @ exception IOException * on i / o error , encoding syntax error , unaccept...
DerValue val = in . getDerValue ( ) ; // save the DER encoding with its proper tag byte . byte [ ] derEncoding = val . toByteArray ( ) ; derEncoding [ 0 ] = DerValue . tag_SetOf ; DerInputStream derIn = new DerInputStream ( derEncoding ) ; DerValue [ ] derVals = derIn . getSet ( 3 , true ) ; PKCS9Attribute attrib ; Obj...
public class CloseableIterators { /** * Divides a closeableiterator into unmodifiable sublists of the given size ( the final * list may be smaller ) . For example , partitioning a closeableiterator containing * { @ code [ a , b , c , d , e ] } with a partition size of 3 yields { @ code * [ [ a , b , c ] , [ d , e...
return wrap ( Iterators . partition ( iterator , size ) , iterator ) ;
public class ExtensionLoader { /** * Notifies that the properties ( e . g . name , description ) of the current session were changed . * Should be called only by " core " classes . * @ param session the session changed . * @ since 2.7.0 */ public void sessionPropertiesChangedAllPlugin ( Session session ) { } }
logger . debug ( "sessionPropertiesChangedAllPlugin" ) ; for ( ExtensionHook hook : extensionHooks . values ( ) ) { for ( SessionChangedListener listener : hook . getSessionListenerList ( ) ) { try { if ( listener != null ) { listener . sessionPropertiesChanged ( session ) ; } } catch ( Exception e ) { logger . error (...
public class MpTransactionState { /** * Restart this fragment after the fragment is mis - routed from MigratePartitionLeader * If the masters have been updated , the fragment will be routed to its new master . The fragment will be routed to the old master . * until new master is updated . * @ param message The mi...
final int partionId = message . getPartitionId ( ) ; Long restartHsid = partitionMastersMap . get ( partionId ) ; Long hsid = message . getExecutorSiteId ( ) ; if ( ! hsid . equals ( restartHsid ) ) { m_masterMapForFragmentRestart . clear ( ) ; m_masterMapForFragmentRestart . put ( restartHsid , hsid ) ; // The very fi...
public class VoltCompiler { /** * Compile from a set of DDL files . * @ param jarOutputPath The location to put the finished JAR to . * @ param ddlFilePaths The array of DDL files to compile ( at least one is required ) . * @ return true if successful * @ throws VoltCompilerException */ public boolean compileFr...
if ( ddlFilePaths . length == 0 ) { compilerLog . error ( "At least one DDL file is required." ) ; return false ; } List < VoltCompilerReader > ddlReaderList ; try { ddlReaderList = DDLPathsToReaderList ( ddlFilePaths ) ; } catch ( VoltCompilerException e ) { compilerLog . error ( "Unable to open DDL file." , e ) ; ret...
public class BigFloat { /** * Returns the the maximum of two { @ link BigFloat } values . * @ param value1 the first { @ link BigFloat } value to compare * @ param value2 the second { @ link BigFloat } value to compare * @ return the maximum { @ link BigFloat } value */ public static BigFloat max ( BigFloat value...
return value1 . compareTo ( value2 ) >= 0 ? value1 : value2 ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EEnum getIfcRoleEnum ( ) { } }
if ( ifcRoleEnumEEnum == null ) { ifcRoleEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 1054 ) ; } return ifcRoleEnumEEnum ;
public class SQLiteDatabase { /** * Runs the provided SQL and returns a cursor over the result set . * @ param cursorFactory the cursor factory to use , or null for the default factory * @ param sql the SQL query . The SQL string must not be ; terminated * @ param selectionArgs You may include ? s in where clause...
acquireReference ( ) ; try { SQLiteCursorDriver driver = new SQLiteDirectCursorDriver ( this , sql , editTable , cancellationSignal ) ; return driver . query ( cursorFactory != null ? cursorFactory : mCursorFactory , selectionArgs ) ; } finally { releaseReference ( ) ; }
public class ProtocolUtils { /** * Formats a message opcode for logs and error messages . * < p > Note that the reason why we don ' t use enums is because the driver can be extended with * custom opcodes . */ public static String opcodeString ( int opcode ) { } }
switch ( opcode ) { case ProtocolConstants . Opcode . ERROR : return "ERROR" ; case ProtocolConstants . Opcode . STARTUP : return "STARTUP" ; case ProtocolConstants . Opcode . READY : return "READY" ; case ProtocolConstants . Opcode . AUTHENTICATE : return "AUTHENTICATE" ; case ProtocolConstants . Opcode . OPTIONS : re...
public class CoordinatorProxyService { /** * Create a @ SocketStoreClientFactory from the given configPops * @ param bootstrapURLs * @ param configProps * @ return */ private SocketStoreClientFactory getFatClientFactory ( String [ ] bootstrapURLs , Properties configProps ) { } }
ClientConfig fatClientConfig = new ClientConfig ( configProps ) ; logger . info ( "Using config: " + fatClientConfig ) ; fatClientConfig . setBootstrapUrls ( bootstrapURLs ) . setEnableCompressionLayer ( false ) . setEnableSerializationLayer ( false ) . enableDefaultClient ( true ) . setEnableLazy ( false ) ; return ne...
public class TagLibTag { /** * Setzt die Information , was fuer ein BodyContent das Tag haben kann . Diese Methode wird durch die * Klasse TagLibFactory verwendet . * @ param value BodyContent Information . */ public void setBodyContent ( String value ) { } }
// empty , free , must , tagdependent value = value . toLowerCase ( ) . trim ( ) ; // if ( value . equals ( " jsp " ) ) value = " free " ; this . hasBody = ! value . equals ( "empty" ) ; this . isBodyReq = ! value . equals ( "free" ) ; this . isTagDependent = value . equals ( "tagdependent" ) ; bodyFree = value . equal...
public class Conference { /** * Retrieves the conference information . * @ param client the client * @ param id the conference id . * @ return id the conference id . * @ throws IOException unexpected error . */ public static Conference getConference ( final BandwidthClient client , final String id ) throws Exce...
final String conferencesUri = client . getUserResourceUri ( BandwidthConstants . CONFERENCES_URI_PATH ) ; final String conferenceUri = StringUtils . join ( new String [ ] { conferencesUri , id } , '/' ) ; final JSONObject jsonObject = toJSONObject ( client . get ( conferenceUri , null ) ) ; return new Conference ( clie...
public class IfcDocumentInformationImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ SuppressWarnings ( "unchecked" ) public EList < IfcDocumentInformationRelationship > getIsPointer ( ) { } }
return ( EList < IfcDocumentInformationRelationship > ) eGet ( Ifc2x3tc1Package . Literals . IFC_DOCUMENT_INFORMATION__IS_POINTER , true ) ;
public class QueryDataUtils { /** * Exports single query page into CSV rows * @ param replierExportStrategy replier export strategy * @ param replies replies to be exported * @ param stamp stamp * @ param queryPage query page to be exported * @ return CSV rows */ private static List < String [ ] > exportQuery...
QueryPageHandler queryPageHandler = QueryPageHandlerFactory . getInstance ( ) . buildPageHandler ( queryPage . getPageType ( ) ) ; if ( queryPageHandler != null ) { ReportPageCommentProcessor processor = queryPageHandler . exportComments ( queryPage , stamp , replies ) ; if ( processor != null ) { return exportQueryPag...
public class ResourceGroupsInner { /** * Creates a resource group . * @ param resourceGroupName The name of the resource group to create or update . * @ param parameters Parameters supplied to the create or update a resource group . * @ throws IllegalArgumentException thrown if parameters fail the validation * ...
return createOrUpdateWithServiceResponseAsync ( resourceGroupName , parameters ) . map ( new Func1 < ServiceResponse < ResourceGroupInner > , ResourceGroupInner > ( ) { @ Override public ResourceGroupInner call ( ServiceResponse < ResourceGroupInner > response ) { return response . body ( ) ; } } ) ;
public class TrafficLight2 { /** * Enables / disables the green light * @ param GREEN _ ON */ public void setGreenOn ( final boolean GREEN_ON ) { } }
boolean oldGreenOn = greenOn ; greenOn = GREEN_ON ; propertySupport . firePropertyChange ( GREEN_PROPERTY , oldGreenOn , greenOn ) ; repaint ( getInnerBounds ( ) ) ;
public class ThrottledApiHandler { /** * Get a list of all summoner spells as Java Collection * This method does not count towards the rate limit and is not affected by the throttle * @ param data Additional information to retrieve * @ return The summoner spells * @ see < a href = https : / / developer . riotga...
return new DummyFuture < > ( handler . getSummonerSpells ( data ) ) ;
public class CmsNewResourceTypeDialog { /** * Locks the given resource temporarily . < p > * @ param resource the resource to lock * @ throws CmsException if locking fails */ private void lockTemporary ( CmsResource resource ) throws CmsException { } }
CmsUser user = m_cms . getRequestContext ( ) . getCurrentUser ( ) ; CmsLock lock = m_cms . getLock ( resource ) ; if ( ! lock . isOwnedBy ( user ) ) { m_cms . lockResourceTemporary ( resource ) ; } else if ( ! lock . isOwnedInProjectBy ( user , m_cms . getRequestContext ( ) . getCurrentProject ( ) ) ) { m_cms . changeL...
public class DfuServiceListenerHelper { /** * Registers the { @ link DfuProgressListener } . * Registered listener will receive the progress events from the DFU service . * @ param context the application context . * @ param listener the listener to register . */ public static void registerProgressListener ( @ No...
if ( mProgressBroadcastReceiver == null ) { mProgressBroadcastReceiver = new ProgressBroadcastsReceiver ( ) ; final IntentFilter filter = new IntentFilter ( ) ; filter . addAction ( DfuBaseService . BROADCAST_PROGRESS ) ; filter . addAction ( DfuBaseService . BROADCAST_ERROR ) ; LocalBroadcastManager . getInstance ( co...
public class DepthFirstSearch { /** * beginning with startNode add all following nodes to LIFO queue . If node has been already * explored before , skip reexploration . */ @ Override public void start ( EdgeExplorer explorer , int startNode ) { } }
IntArrayDeque stack = new IntArrayDeque ( ) ; GHBitSet explored = createBitSet ( ) ; stack . addLast ( startNode ) ; int current ; while ( stack . size ( ) > 0 ) { current = stack . removeLast ( ) ; if ( ! explored . contains ( current ) && goFurther ( current ) ) { EdgeIterator iter = explorer . setBaseNode ( current ...
public class SuppressionInfo { /** * Returns an instance of { @ code SuppressionInfo } that takes into account any suppression signals * present on { @ code sym } as well as those already stored in { @ code this } . * < p > Checks suppressions for any { @ code @ SuppressWarnings } , Android ' s { @ code SuppressLin...
boolean newInGeneratedCode = inGeneratedCode || isGenerated ( sym , state ) ; boolean anyModification = newInGeneratedCode != inGeneratedCode ; /* Handle custom suppression annotations . */ Set < Class < ? extends Annotation > > newCustomSuppressions = null ; for ( Class < ? extends Annotation > annotationType : custom...
public class MapKeyLoader { /** * Loads keys from the map loader and sends them to the partition owners in batches * for value loading . This method will return after all keys have been dispatched * to the partition owners for value loading and all partitions have been notified * that the key loading has complete...
if ( logger . isFinestEnabled ( ) ) { logger . finest ( "sendKeysInBatches invoked " + getStateMessage ( ) ) ; } int clusterSize = partitionService . getMemberPartitionsMap ( ) . size ( ) ; Iterator < Object > keys = null ; Throwable loadError = null ; try { Iterable < Object > allKeys = mapStoreContext . loadAllKeys (...
public class VasEventHandler { /** * Converts the opening times from the { @ link io . motown . domain . api . chargingstation . OpeningTime } to the { @ link io . motown . vas . viewmodel . persistence . entities . OpeningTime } format . * @ param input the opening times from the core . * @ return the new set of o...
Set < io . motown . vas . viewmodel . persistence . entities . OpeningTime > output = new HashSet < > ( ) ; for ( OpeningTime source : input ) { io . motown . vas . viewmodel . persistence . entities . OpeningTime openingTime = new io . motown . vas . viewmodel . persistence . entities . OpeningTime ( ) ; openingTime ....
public class JtaProcessEngineConfiguration { /** * provide custom command executor that uses NON - JTA transactions */ @ Override protected void initCommandExecutorDbSchemaOperations ( ) { } }
if ( commandExecutorSchemaOperations == null ) { List < CommandInterceptor > commandInterceptorsDbSchemaOperations = new ArrayList < CommandInterceptor > ( ) ; commandInterceptorsDbSchemaOperations . add ( new LogInterceptor ( ) ) ; commandInterceptorsDbSchemaOperations . add ( new CommandContextInterceptor ( dbSchemaO...
public class ThreadIdentityManager { /** * Set the server ' s identity as the thread identity . * @ return A token representing the identity previously on the thread . * This token must be passed to the subsequent reset call . */ public static Object runAsServer ( ) { } }
LinkedHashMap < ThreadIdentityService , Object > token = null ; if ( ! checkForRecursionAndSet ( ) ) { try { for ( int i = 0 , size = threadIdentityServices . size ( ) ; i < size ; ++ i ) { ThreadIdentityService tis = threadIdentityServices . get ( i ) ; if ( tis . isAppThreadIdentityEnabled ( ) ) { if ( token == null ...
public class FSABuilder { /** * Return < code > true < / code > if two regions in { @ link # serialized } are * identical . */ private boolean equivalent ( int start1 , int start2 , int len ) { } }
if ( start1 + len > size || start2 + len > size ) return false ; while ( len -- > 0 ) if ( serialized [ start1 ++ ] != serialized [ start2 ++ ] ) return false ; return true ;
public class AbstractIncrementalDFADAGBuilder { /** * Returns the canonical state for the given state ' s signature , or registers the state as canonical if no state with * that signature exists . * @ param state * the state * @ return the canonical state for the given state ' s signature */ protected State rep...
StateSignature sig = state . getSignature ( ) ; State other = register . get ( sig ) ; if ( other != null ) { if ( state != other ) { for ( int i = 0 ; i < sig . successors . array . length ; i ++ ) { State succ = sig . successors . array [ i ] ; if ( succ != null ) { succ . decreaseIncoming ( ) ; } } } return other ; ...
public class SPropertyOrQuery { /** * < div color = ' red ' style = " font - size : 24px ; color : red " > < b > < i > < u > JCYPHER < / u > < / i > < / b > < / div > * < div color = ' red ' style = " font - size : 18px ; color : red " > < i > select the property to be matched by the lookup < / i > < / div > * < di...
StartExpression sx = ( StartExpression ) this . astNode ; sx . setPropertyOrQuery ( new PropertyOrQuery ( name , null ) ) ; SPropertyValue ret = new SPropertyValue ( sx ) ; return ret ;
public class DecimalFormat { /** * Returns the length matched by the given affix , or - 1 if none . * @ param affixPat pattern string * @ param text input text * @ param pos offset into input at which to begin matching * @ param type parse against currency type , LONG _ NAME only or not . * @ param currency r...
int start = pos ; for ( int i = 0 ; i < affixPat . length ( ) && pos >= 0 ; ) { char c = affixPat . charAt ( i ++ ) ; if ( c == QUOTE ) { for ( ; ; ) { int j = affixPat . indexOf ( QUOTE , i ) ; if ( j == i ) { pos = match ( text , pos , QUOTE ) ; i = j + 1 ; break ; } else if ( j > i ) { pos = match ( text , pos , aff...
public class Flash { /** * Adds a value with a specific key to the flash overwriting an * existing value * @ param key The key * @ param value The value */ public void put ( String key , String value ) { } }
if ( validCharacters ( key ) && validCharacters ( value ) ) { this . values . put ( key , value ) ; }
public class MergedNsContext { /** * Method called by the matching start element class to * output all namespace declarations active in current namespace * scope , if any . */ @ Override public void outputNamespaceDeclarations ( XMLStreamWriter w ) throws XMLStreamException { } }
for ( int i = 0 , len = mNamespaces . size ( ) ; i < len ; ++ i ) { Namespace ns = mNamespaces . get ( i ) ; if ( ns . isDefaultNamespaceDeclaration ( ) ) { w . writeDefaultNamespace ( ns . getNamespaceURI ( ) ) ; } else { w . writeNamespace ( ns . getPrefix ( ) , ns . getNamespaceURI ( ) ) ; } }
public class SQLiteViewStore { /** * Returns the prefix of the key to use in the result row , at this groupLevel */ public static Object groupKey ( Object key , int groupLevel ) { } }
if ( groupLevel > 0 && ( key instanceof List ) && ( ( ( List < Object > ) key ) . size ( ) > groupLevel ) ) { return ( ( List < Object > ) key ) . subList ( 0 , groupLevel ) ; } else { return key ; }
public class URIUtils { /** * Append scheme , host and port URI prefix , handling IPv6 address encoding and default ports * @ param url StringBuilder to append to * @ param scheme the URI scheme * @ param server the URI server * @ param port the URI port */ public static void appendSchemeHostPort ( StringBuilde...
url . append ( scheme ) . append ( "://" ) . append ( HostPort . normalizeHost ( server ) ) ; if ( port > 0 ) { switch ( scheme ) { case "http" : if ( port != 80 ) url . append ( ':' ) . append ( port ) ; break ; case "https" : if ( port != 443 ) url . append ( ':' ) . append ( port ) ; break ; default : url . append (...
public class CSLUtils { /** * Reads a byte array from a stream . Closes the stream after reading . * @ param is the stream * @ return the byte array * @ throws IOException if the stream contents could not be read */ public static byte [ ] readStream ( InputStream is ) throws IOException { } }
try { ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; byte [ ] buf = new byte [ 1024 * 10 ] ; int read ; while ( ( read = is . read ( buf ) ) >= 0 ) { baos . write ( buf , 0 , read ) ; } return baos . toByteArray ( ) ; } finally { is . close ( ) ; }
public class PdfContentByte { /** * Changes the current color for filling paths ( device dependent colors ! ) . * Sets the color space to < B > DeviceCMYK < / B > ( or the < B > DefaultCMYK < / B > color space ) , * and sets the color to use for filling paths . < / P > * This method is described in the ' Portable...
content . append ( ( float ) ( cyan & 0xFF ) / 0xFF ) ; content . append ( ' ' ) ; content . append ( ( float ) ( magenta & 0xFF ) / 0xFF ) ; content . append ( ' ' ) ; content . append ( ( float ) ( yellow & 0xFF ) / 0xFF ) ; content . append ( ' ' ) ; content . append ( ( float ) ( black & 0xFF ) / 0xFF ) ; content ....
public class ReasonFlags { /** * Get the attribute value . */ public Object get ( String name ) throws IOException { } }
return Boolean . valueOf ( isSet ( name2Index ( name ) ) ) ;
public class Fraction { /** * < p > Gets a fraction that is the inverse ( 1 / fraction ) of this one . < / p > * < p > The returned fraction is not reduced . < / p > * @ return a new fraction instance with the numerator and denominator * inverted . * @ throws ArithmeticException if the fraction represents zero ...
if ( numerator == 0 ) { throw new ArithmeticException ( "Unable to invert zero." ) ; } if ( numerator == Integer . MIN_VALUE ) { throw new ArithmeticException ( "overflow: can't negate numerator" ) ; } if ( numerator < 0 ) { return new Fraction ( - denominator , - numerator ) ; } return new Fraction ( denominator , num...
public class MMCImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ SuppressWarnings ( "unchecked" ) @ Override public void eSet ( int featureID , Object newValue ) { } }
switch ( featureID ) { case AfplibPackage . MMC__MM_CID : setMMCid ( ( Integer ) newValue ) ; return ; case AfplibPackage . MMC__PARAMETER1 : setPARAMETER1 ( ( Integer ) newValue ) ; return ; case AfplibPackage . MMC__RG : getRg ( ) . clear ( ) ; getRg ( ) . addAll ( ( Collection < ? extends MMCRG > ) newValue ) ; retu...
public class EscapeUtils { /** * Escapes quotes and backslashes in a string . Double quotes are replaced * with a backslash followed by a double quote , and backslashes are replaced * with a double backslash . * @ param s * The string to be escaped * @ return The escaped string . */ @ Nonnull public static St...
// We replace double quotes with a back slash followed // by a double quote . We replace backslashes with a double // backslash if ( s . indexOf ( '\"' ) == - 1 && s . indexOf ( '\\' ) == - 1 ) { return s ; } StringBuilder sb = new StringBuilder ( s . length ( ) + 20 ) ; for ( int i = 0 ; i < s . length ( ) ; i ++ ) { ...
public class EditTextValidator { /** * name = " android : textColorPrimaryInverse " > @ android : color / primary _ text _ light < / item > */ public static String getText ( EditText editText , int minLen , int errMsgResId , Object ... errMsgFormatArgs ) throws ValidationException { } }
return getText ( editText , minLen , editText . getContext ( ) . getString ( errMsgResId , errMsgFormatArgs ) ) ;
public class EventEmitter { /** * Emits a < b > LOCAL < / b > event to < b > ALL < / b > listeners from ALL event groups , * who are listening this event . Sample code : < br > * < br > * Tree params = new Tree ( ) ; < br > * params . put ( " a " , true ) ; < br > * params . putList ( " b " ) . add ( 1 ) . ad...
eventbus . broadcast ( name , payload , null , true ) ;
public class RelationSumPermutationFunction { /** * { @ inheritDoc } */ public T permute ( T vector , DependencyPath path ) { } }
int bestRelationScore = 0 ; for ( DependencyRelation link : path ) vector = permFunc . permute ( vector , getRelationScore ( link . relation ( ) ) ) ; return vector ; } private static int getRelationScore ( String relation ) { if ( relation . length ( ) == 0 ) return 0 ; if ( relation . equals ( "SBJ" ) ) return 6 ; if...
public class PrimitiveWrapperPersistenceDelegate { /** * Two wrapper objects are regarded mutatable if they are equal . */ @ Override protected boolean mutatesTo ( Object o1 , Object o2 ) { } }
if ( null == o2 ) { return false ; } return o1 . equals ( o2 ) ;
public class CCTask { /** * Adds a target definition or reference ( Non - functional prototype ) . * @ param target * target * @ throws NullPointerException * if compiler is null */ public void addConfiguredTarget ( final TargetDef target ) { } }
if ( target == null ) { throw new NullPointerException ( "target" ) ; } target . setProject ( getProject ( ) ) ; this . targetPlatforms . addElement ( target ) ;
public class IconicsDrawable { /** * Set rounded corner from px * @ return The current IconicsDrawable for chaining . */ @ NonNull public IconicsDrawable roundedCornersRyPx ( @ Dimension ( unit = PX ) int sizePx ) { } }
mRoundedCornerRy = sizePx ; invalidateSelf ( ) ; return this ;
public class ShutdownSystem { /** * Start the server shutdown */ public static void shutdownActive ( ShutdownModeAmp mode , ExitCode exitCode , String msg , Result < String > result ) { } }
ShutdownSystem shutdown = _activeService . get ( ) ; if ( shutdown != null ) { shutdown . shutdown ( mode , exitCode , msg , result ) ; return ; } shutdown = getCurrent ( ) ; if ( shutdown != null ) { shutdown . shutdown ( mode , exitCode , msg , result ) ; return ; } msg = ShutdownSystem . class . getSimpleName ( ) + ...
public class ConsumerMonitorRegistrar { /** * Method addCallbackToConnectionIndex * Adds a new callback to the callback index . * @ param topicExpression * @ param isWildcarded * @ param callback * @ return */ public void addCallbackToConnectionIndex ( ConnectionImpl connection , String topicExpression , bool...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addCallbackToConnectionIndex" , new Object [ ] { connection , topicExpression , new Boolean ( isWildcarded ) , callback } ) ; // Map of callbacks - to - expressions for a connection Map connMap = null ; if ( _callbackIndex ...
public class RegxFunctionUtil { /** * 进行正则判断 * @ param str 判断的字符串 * @ param regex 正则表达式 * @ return 是否存在符合正则的字符串 */ public boolean match ( String str , String regex ) { } }
if ( str == null || regex == null ) return false ; if ( regex . trim ( ) . isEmpty ( ) ) return true ; return Pattern . compile ( regex . trim ( ) ) . matcher ( str ) . find ( ) ;
public class AdminToolLog4j2Util { /** * returns all logger names including custom loggers * @ since 1.1.1 * @ return */ public Collection < String > getAllLoggerNames ( ) { } }
Set < String > loggerNames = new TreeSet < > ( ) ; for ( Logger logger : getParentLoggers ( ) ) { loggerNames . add ( logger . getName ( ) ) ; } for ( Logger logger : getLoggers ( ) ) { loggerNames . add ( logger . getName ( ) ) ; } if ( ! customLoggers . isEmpty ( ) ) { for ( Entry < LoggerConfig , String > entry : cu...
public class SafeServiceLoader { /** * Parses a single line of a META - INF / services resources . If the line contains a class name , the * name is added to the given list . * @ param names list of class names * @ param line line to be parsed */ private void parseLine ( List < String > names , String line ) { } ...
int commentPos = line . indexOf ( '#' ) ; if ( commentPos >= 0 ) { line = line . substring ( 0 , commentPos ) ; } line = line . trim ( ) ; if ( ! line . isEmpty ( ) && ! names . contains ( line ) ) { names . add ( line ) ; }
public class BugProperty { /** * ( non - Javadoc ) * @ see * edu . umd . cs . findbugs . xml . XMLWriteable # writeXML ( edu . umd . cs . findbugs . xml * . XMLOutput ) */ @ Override public void writeXML ( XMLOutput xmlOutput ) throws IOException { } }
xmlOutput . openCloseTag ( "Property" , new XMLAttributeList ( ) . addAttribute ( "name" , getName ( ) ) . addAttribute ( "value" , getValue ( ) ) ) ;
public class Config { /** * Sets the policy to use for handling { @ link Connections # create ( ConnectionOptions , Config , ClassLoader ) * connection attempt } errors . Overrides the { @ link # withRetryPolicy ( RetryPolicy ) global retry * policy } . * @ see # withConnectRetryPolicy ( RetryPolicy ) * @ see #...
RetryPolicy result = connectRetryPolicy == null ? retryPolicy : connectRetryPolicy ; return result != null ? result : parent != null ? parent . getConnectRetryPolicy ( ) : null ;
public class ActivityChooserModel { /** * Command for reading the historical records from a file off the UI thread . */ private void readHistoricalDataImpl ( ) { } }
FileInputStream fis = null ; try { fis = mContext . openFileInput ( mHistoryFileName ) ; } catch ( FileNotFoundException fnfe ) { if ( DEBUG ) { Log . i ( LOG_TAG , "Could not open historical records file: " + mHistoryFileName ) ; } return ; } try { XmlPullParser parser = Xml . newPullParser ( ) ; parser . setInput ( f...
public class LocationDirector { /** * Called to test and set a time stamp that we use to determine if a pending moveTo request is * stale . */ public boolean checkRepeatMove ( ) { } }
long now = System . currentTimeMillis ( ) ; if ( now - _lastRequestTime < STALE_REQUEST_DURATION ) { return true ; } else { _lastRequestTime = now ; return false ; }
public class MyJustifiedTextView { /** * We want our text to be selectable , but we still want links to be clickable . */ @ Override public boolean onTouchEvent ( final @ NotNull MotionEvent event ) { } }
final Spannable text = ( Spannable ) getText ( ) ; if ( text != null ) { if ( event . getAction ( ) == MotionEvent . ACTION_DOWN ) { final Layout layout = getLayout ( ) ; if ( layout != null ) { // final int pos = getOffsetForPosition ( event . getX ( ) , event . getY ( ) ) ; / / API > = 14 only final int line = getLin...
public class ApiOvhOrder { /** * Create order * REST : POST / order / cdn / dedicated / { serviceName } / cacheRule / { duration } * @ param cacheRule [ required ] cache rule upgrade option to 100 or 1000 * @ param serviceName [ required ] The internal name of your CDN offer * @ param duration [ required ] Dura...
String qPath = "/order/cdn/dedicated/{serviceName}/cacheRule/{duration}" ; StringBuilder sb = path ( qPath , serviceName , duration ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "cacheRule" , cacheRule ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return c...
public class GtkSourceViewerGenerator2 { /** * Generate the metadata section . * @ param it the appendable */ protected void generateMetadata ( IXmlStyleAppendable it ) { } }
it . appendTagWithValue ( "property" , // $ NON - NLS - 1 $ Strings . concat ( ";" , getMimeTypes ( ) ) , // $ NON - NLS - 1 $ "name" , "mimetypes" ) ; // $ NON - NLS - 1 $ / / $ NON - NLS - 2 $ final StringBuilder buffer = new StringBuilder ( ) ; for ( final String fileExtension : getLanguage ( ) . getFileExtensions (...
public class OWLValueObject { /** * Builds an instance , from a given collection * @ param model * @ param col * @ return * @ throws NotYetImplementedException * @ throws OWLTranslationException */ public static OWLValueObject buildFromCollection ( OWLModel model , Collection col ) throws NotYetImplementedExc...
if ( col . isEmpty ( ) ) { return null ; } return buildFromClasAndCollection ( model , OWLURIClass . from ( col . iterator ( ) . next ( ) ) , col ) ;
public class RateThisApp { /** * Call this API when the launcher activity is launched . < br > * It is better to call this API in onCreate ( ) of the launcher activity . * @ param context Context */ public static void onCreate ( Context context ) { } }
SharedPreferences pref = context . getSharedPreferences ( PREF_NAME , Context . MODE_PRIVATE ) ; Editor editor = pref . edit ( ) ; // If it is the first launch , save the date in shared preference . if ( pref . getLong ( KEY_INSTALL_DATE , 0 ) == 0L ) { storeInstallDate ( context , editor ) ; } // Increment launch time...
public class GetBlockInfoPRequest { /** * < code > optional . alluxio . grpc . block . GetBlockInfoPOptions options = 2 ; < / code > */ public alluxio . grpc . GetBlockInfoPOptionsOrBuilder getOptionsOrBuilder ( ) { } }
return options_ == null ? alluxio . grpc . GetBlockInfoPOptions . getDefaultInstance ( ) : options_ ;
public class BaseProfile { /** * generate ant build . xml * @ param def Definition * @ param outputDir output directory */ void generateMavenXml ( Definition def , String outputDir ) { } }
try { FileWriter pomfw = Utils . createFile ( "pom.xml" , outputDir ) ; PomXmlGen pxGen = new PomXmlGen ( ) ; pxGen . generate ( def , pomfw ) ; pomfw . close ( ) ; } catch ( IOException ioe ) { ioe . printStackTrace ( ) ; }
public class DataSet { /** * Splits the dataset randomly into proportionally sized partitions . * @ param rand the source of randomness for moving data around * @ param splits any array , where the length is the number of datasets to * create and the value of in each index is the fraction of samples that * shou...
if ( splits . length < 1 ) throw new IllegalArgumentException ( "Input array of split fractions must be non-empty" ) ; IntList randOrder = new IntList ( size ( ) ) ; ListUtils . addRange ( randOrder , 0 , size ( ) , 1 ) ; Collections . shuffle ( randOrder , rand ) ; int [ ] stops = new int [ splits . length ] ; double ...
public class LeftTupleSinkNodeList { /** * Removes a < code > TupleSinkNode < / code > from the list . This works by attach the previous reference to the child reference . * When the node to be removed is the first node it calls < code > removeFirst ( ) < / code > . When the node to be removed is the last node * it...
if ( ( this . firstNode != node ) && ( this . lastNode != node ) ) { node . getPreviousLeftTupleSinkNode ( ) . setNextLeftTupleSinkNode ( node . getNextLeftTupleSinkNode ( ) ) ; node . getNextLeftTupleSinkNode ( ) . setPreviousLeftTupleSinkNode ( node . getPreviousLeftTupleSinkNode ( ) ) ; this . size -- ; node . setPr...
public class TaskServiceImpl { /** * Search for tasks based in payload and other parameters . Use sort options as ASC or DESC e . g . * sort = name or sort = workflowId . If order is not specified , defaults to ASC . * @ param start Start index of pagination * @ param size Number of entries * @ param sort Sorti...
return executionService . getSearchTasks ( query , freeText , start , size , sort ) ;
public class ResponseQueueReader { /** * { @ inheritDoc } */ @ Override public void onError ( Throwable t ) { } }
addEntry ( "adding an error ResultQueueEntry" , ResultQueueEntry . < FlatRow > fromThrowable ( t ) ) ; markerCounter . incrementAndGet ( ) ;
public class OracleCleaningScipts { /** * R { @ inheritDoc } */ protected Collection < String > getConstraintsAddingScripts ( ) { } }
Collection < String > scripts = new ArrayList < String > ( ) ; String constraintName = "JCR_PK_" + valueTableSuffix + " PRIMARY KEY(ID)" ; scripts . add ( "ALTER TABLE " + valueTableName + " ADD CONSTRAINT " + constraintName ) ; constraintName = "JCR_PK_" + itemTableSuffix + " PRIMARY KEY(ID)" ; scripts . add ( "ALTER ...
public class AmazonWorkDocsClient { /** * Adds the specified list of labels to the given resource ( a document or folder ) * @ param createLabelsRequest * @ return Result of the CreateLabels operation returned by the service . * @ throws EntityNotExistsException * The resource does not exist . * @ throws Unau...
request = beforeClientExecution ( request ) ; return executeCreateLabels ( request ) ;
public class CertificateCreator { /** * Utility method for generating a " standard " server certificate . Recognized by most * browsers as valid for SSL / TLS . These certificates are generated de novo , not from * a template , so they will not retain the structure of the original certificate and may * not be sui...
"deprecation" , "unused" } ) public static X509Certificate generateStdSSLServerCertificate ( final PublicKey newPubKey , final X509Certificate caCert , final PrivateKey caPrivateKey , final String subject ) throws CertificateParsingException , SignatureException , InvalidKeyException , CertificateExpiredException , Cer...
public class HandlerList { /** * Insert a handler to the beginning of the stack . * @ param restrictionClass restriction class * @ param handler handler */ public void insertHandler ( Class < ? > restrictionClass , H handler ) { } }
// note that the handlers list is kept in a list that is traversed in // backwards order . handlers . add ( new Pair < Class < ? > , H > ( restrictionClass , handler ) ) ;
public class DiffNode { /** * Retrieve a child that matches the given path element relative to this node . * @ param selectors The path element of the child node to get . * @ return The requested child node or < code > null < / code > . */ public DiffNode getChild ( final List < ElementSelector > selectors ) { } }
Assert . notEmpty ( selectors , "selectors" ) ; final ElementSelector selector = selectors . get ( 0 ) ; if ( selectors . size ( ) == 1 ) { if ( selector == RootElementSelector . getInstance ( ) ) { return isRootNode ( ) ? this : null ; } else { return getChild ( selector ) ; } } else if ( selectors . size ( ) > 1 ) { ...
public class StringGroovyMethods { /** * Expands all tabs into spaces . Assumes the CharSequence represents a single line of text . * @ param self A line to expand * @ param tabStop The number of spaces a tab represents * @ return The expanded toString ( ) of this CharSequence * @ see # expandLine ( String , in...
String s = self . toString ( ) ; int index ; while ( ( index = s . indexOf ( '\t' ) ) != - 1 ) { StringBuilder builder = new StringBuilder ( s ) ; int count = tabStop - index % tabStop ; builder . deleteCharAt ( index ) ; for ( int i = 0 ; i < count ; i ++ ) builder . insert ( index , " " ) ; s = builder . toString ( )...
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcQuantitySet ( ) { } }
if ( ifcQuantitySetEClass == null ) { ifcQuantitySetEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 490 ) ; } return ifcQuantitySetEClass ;
public class BottomSheet { /** * Adds the apps , which are able to handle a specific intent , as items to the bottom sheet . This * causes all previously added items to be removed . When an item is clicked , the corresponding * app is started . * @ param activity * The activity , the bottom sheet belongs to , a...
Condition . INSTANCE . ensureNotNull ( activity , "The activity may not be null" ) ; Condition . INSTANCE . ensureNotNull ( intent , "The intent may not be null" ) ; removeAllItems ( ) ; PackageManager packageManager = activity . getPackageManager ( ) ; List < ResolveInfo > resolveInfos = packageManager . queryIntentAc...
public class sslcertlink { /** * Use this API to fetch all the sslcertlink resources that are configured on netscaler . */ public static sslcertlink [ ] get ( nitro_service service ) throws Exception { } }
sslcertlink obj = new sslcertlink ( ) ; sslcertlink [ ] response = ( sslcertlink [ ] ) obj . get_resources ( service ) ; return response ;
public class DefaultClusterManager { /** * Locates the internal address of the node on which a deployment is deployed . */ private void findDeploymentAddress ( final String deploymentID , Handler < AsyncResult < String > > resultHandler ) { } }
context . execute ( new Action < String > ( ) { @ Override public String perform ( ) { synchronized ( deployments ) { JsonObject locatedInfo = null ; Collection < String > sdeploymentsInfo = deployments . get ( cluster ) ; for ( String sdeploymentInfo : sdeploymentsInfo ) { JsonObject deploymentInfo = new JsonObject ( ...
public class CriteriaMapper { /** * Maps the given API Predicate object to a JPA criteria Predicate . * @ param predicate the Predicate object * @ return a JPA criteria Predicate */ public Predicate create ( org . cdlflex . fruit . Predicate predicate ) { } }
Path < ? > attribute = resolvePath ( predicate . getKey ( ) ) ; Object value = predicate . getValue ( ) ; Predicate jpaPredicate = create ( predicate . getOp ( ) , attribute , value ) ; return ( predicate . isNot ( ) ) ? jpaPredicate . not ( ) : jpaPredicate ;
public class Results { /** * Creates a new result with the status { @ literal 200 - OK } with the content loaded from the * given byte array . The result is sent as chunked . * @ param bytes the byte array , must not be { @ code null } * @ return a new configured result */ public static Result ok ( byte [ ] bytes...
return status ( Result . OK ) . render ( new RenderableByteArray ( bytes , true ) ) ;
public class CmsWebdavServlet { /** * Propfind helper method . < p > * @ param req the servlet request * @ param elem the parent element where to add the generated subelements * @ param item the current item where to parse the properties * @ param type the propfind type * @ param propertiesVector if the propf...
String path = item . getName ( ) ; Element responseElem = addElement ( elem , TAG_RESPONSE ) ; String status = "HTTP/1.1 " + CmsWebdavStatus . SC_OK + " " + CmsWebdavStatus . getStatusText ( CmsWebdavStatus . SC_OK ) ; // Generating href element Element hrefElem = addElement ( responseElem , TAG_HREF ) ; String href = ...
public class RetryTemplateBuilder { /** * Finish configuration and build resulting { @ link RetryTemplate } . For default * behaviour and concurrency note see class - level doc of { @ link RetryTemplateBuilder } . * The { @ code retryPolicy } of the returned { @ link RetryTemplate } is always an instance * of { @...
RetryTemplate retryTemplate = new RetryTemplate ( ) ; // Exception classifier BinaryExceptionClassifier exceptionClassifier = this . classifierBuilder != null ? this . classifierBuilder . build ( ) : BinaryExceptionClassifier . defaultClassifier ( ) ; // Retry policy if ( this . baseRetryPolicy == null ) { this . baseR...
public class DeepLearningTask2 { /** * Do the local computation : Perform one DeepLearningTask ( with run _ local = true ) iteration . * Pass over all the data ( will be replicated in dfork ( ) here ) , and use _ sync _ fraction random rows . * This calls DeepLearningTask ' s reduce ( ) between worker threads that ...
super . setupLocal ( ) ; _res = new DeepLearningTask ( _jobKey , _sharedmodel , _sync_fraction , _iteration , this ) ; addToPendingCount ( 1 ) ; _res . dfork ( null , _fr , true /* run _ local */ ) ;
public class RouteFilterRulesInner { /** * Updates a route in the specified route filter . * @ param resourceGroupName The name of the resource group . * @ param routeFilterName The name of the route filter . * @ param ruleName The name of the route filter rule . * @ param routeFilterRuleParameters Parameters s...
return ServiceFuture . fromResponse ( updateWithServiceResponseAsync ( resourceGroupName , routeFilterName , ruleName , routeFilterRuleParameters ) , serviceCallback ) ;
public class ThymeleafRenderingProvider { protected ITemplateResolver createTemplateResolver ( ) { } }
final ServletContextTemplateResolver resolver = newServletContextTemplateResolver ( ) ; resolver . setPrefix ( getHtmlViewPrefix ( ) ) ; resolver . setTemplateMode ( getTemplateMode ( ) ) ; resolver . setCharacterEncoding ( getEncoding ( ) ) ; resolver . setCacheable ( isCacheable ( ) ) ; return resolver ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcSIUnit ( ) { } }
if ( ifcSIUnitEClass == null ) { ifcSIUnitEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 583 ) ; } return ifcSIUnitEClass ;
public class CLIQUESubspace { /** * Adds the specified dense unit to this subspace . * @ param unit the unit to be added . */ public void addDenseUnit ( CLIQUEUnit unit ) { } }
int numdim = unit . dimensionality ( ) ; for ( int i = 0 ; i < numdim ; i ++ ) { BitsUtil . setI ( getDimensions ( ) , unit . getDimension ( i ) ) ; } denseUnits . add ( unit ) ; coverage += unit . numberOfFeatureVectors ( ) ;
public class CmsContextMenu { /** * Hides this menu and all its parent menus . < p > */ public void hideAll ( ) { } }
CmsContextMenu currentMenu = this ; int i = 0 ; while ( ( currentMenu != null ) && ( i < 10 ) ) { currentMenu . hide ( ) ; currentMenu = currentMenu . getParentMenu ( ) ; i += 1 ; }
public class AdaptableModuleFactoryImpl { /** * { @ inheritDoc } */ @ Override public Container getContainer ( File overlayDir , File cacheDirForOverlayContent , ArtifactContainer container ) { } }
com . ibm . wsspi . artifact . overlay . OverlayContainer o = getOverlayContainerFactory ( ) . createOverlay ( OverlayContainer . class , container ) ; if ( o != null ) { o . setOverlayDirectory ( cacheDirForOverlayContent , overlayDir ) ; AdaptableContainerImpl a = new AdaptableContainerImpl ( o , this ) ; return a ; ...