signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class RecycleManager { /** * Helper method to add the provided widgets with { @ link RecycleType } defined */ protected void add ( List < Widget > widgets ) { } }
switch ( type ) { case DETACH : for ( Widget widget : widgets ) { parent . add ( widget ) ; } break ; case DISPLAY : widgets . forEach ( widget -> widget . getElement ( ) . getStyle ( ) . setDisplay ( Style . Display . BLOCK ) ) ; break ; }
public class I18nUtilities { /** * Converts a message String and optional message arguments to a an appropriate format for internationalisation . * @ param text the message text . * @ param args the message arguments . * @ return a message in an appropriate format for internationalisation , may be null . */ publi...
if ( text == null ) { return null ; } else if ( args == null || args . length == 0 ) { return text ; } else { return new Message ( text , args ) ; }
public class PicocliRunner { /** * Obtains an instance of the specified { @ code Callable } command class from the specified context , * injecting any beans from the specified context as required , * then parses the specified command line arguments , populating fields and methods annotated * with picocli { @ link...
return CommandLine . call ( cls , new MicronautFactory ( ctx ) , args ) ;
public class SolrRepositoryConfigExtension { /** * ( non - Javadoc ) * @ see org . springframework . data . repository . config . RepositoryConfigurationExtensionSupport # registerBeansForRoot ( org . springframework . beans . factory . support . BeanDefinitionRegistry , org . springframework . data . repository . co...
super . registerBeansForRoot ( registry , configuration ) ; registeCustomConversionsIfNotPresent ( registry , configuration ) ; registerSolrMappingContextIfNotPresent ( registry , configuration ) ; registerSolrConverterIfNotPresent ( registry , configuration ) ; registerSolrTemplateIfNotPresent ( registry , configurati...
public class TransferManagerUtils { /** * Returns a new thread pool configured with the default settings . * @ return A new thread pool configured with the default settings . */ public static ThreadPoolExecutor createDefaultExecutorService ( ) { } }
ThreadFactory threadFactory = new ThreadFactory ( ) { private int threadCount = 1 ; public Thread newThread ( Runnable r ) { Thread thread = new Thread ( r ) ; thread . setName ( "s3-transfer-manager-worker-" + threadCount ++ ) ; return thread ; } } ; return ( ThreadPoolExecutor ) Executors . newFixedThreadPool ( 10 , ...
public class ConfigurationSupport { /** * Set the additional field types . * @ param spec field = String , field1 = Double , . . . See { @ link GelfMessage } for supported types . * @ param gelfMessageAssembler the Gelf message assembler to apply the configuration */ public static void setAdditionalFieldTypes ( Str...
if ( null != spec ) { String [ ] properties = spec . split ( MULTI_VALUE_DELIMITTER ) ; for ( String field : properties ) { final int index = field . indexOf ( EQ ) ; if ( - 1 != index ) { gelfMessageAssembler . setAdditionalFieldType ( field . substring ( 0 , index ) , field . substring ( index + 1 ) ) ; } } }
public class BinaryUtils { /** * Converts an array of bytes in to a String of hexadecimal characters ( 0 - F ) . * @ param data An array of bytes to convert to a String . * @ return A hexadecimal String representation of the data . */ public static String convertBytesToHexString ( byte [ ] data ) { } }
StringBuilder buffer = new StringBuilder ( data . length * 2 ) ; for ( byte b : data ) { buffer . append ( HEX_CHARS [ ( b >>> 4 ) & 0x0F ] ) ; buffer . append ( HEX_CHARS [ b & 0x0F ] ) ; } return buffer . toString ( ) ;
public class SVGAndroidRenderer { private void renderChildren ( SvgContainer obj , boolean isContainer ) { } }
if ( isContainer ) { parentPush ( obj ) ; } for ( SVG . SvgObject child : obj . getChildren ( ) ) { render ( child ) ; } if ( isContainer ) { parentPop ( ) ; }
public class ResultIterator { /** * ( non - Javadoc ) * @ see java . util . Iterator # next ( ) */ @ Override public E next ( ) { } }
if ( ! checkOnFetchSize ( ) || scrollComplete ) { throw new NoSuchElementException ( "Nothing to scroll further for:" + entityMetadata . getEntityClazz ( ) ) ; } E result = ( E ) handler . next ( entityMetadata , columns ) ; if ( ! entityMetadata . isRelationViaJoinTable ( ) && ( entityMetadata . getRelationNames ( ) =...
public class GerritQueryHandler { /** * Runs the query and returns the result as a list of Java JSONObjects . * @ param queryString the query . * @ return the query result as a List of JSONObjects . * @ throws GerritQueryException if Gerrit reports an error with the query . * @ throws SshException if there is a...
return queryJava ( queryString , false , true , false , false ) ;
public class SocketPool { /** * Check the socket back into the pool . * @ param destination The socket destination of the socket * @ param socket The socket to check back in */ public void checkin ( SocketDestination destination , SocketAndStreams socket ) { } }
try { pool . checkin ( destination , socket ) ; } catch ( Exception e ) { throw new VoldemortException ( "Failure while checking in socket for " + destination + ": " , e ) ; }
public class GenericDataSinkBase { /** * Adds to the input the union of the given operators . * @ param inputs The operator ( s ) to be unioned with the input . * @ deprecated This method will be removed in future versions . Use the { @ link eu . stratosphere . api . common . operators . Union } operator instead . ...
Preconditions . checkNotNull ( inputs , "The input may not be null." ) ; this . input = Operator . createUnionCascade ( this . input , inputs ) ;
public class RolledUpMonitoredService { /** * Get the { @ link ServiceStatus } for the rolled up service . The * name for the ServiceStatus is the name of this rolled up service . * The { @ link Status } is computed based on the status of the critical * and non - critical subsystems . The { @ link List } of reaso...
List < String > reasons = new ArrayList < String > ( ) ; Status criticalStatus = Status . UP ; for ( MonitoredService m : criticals ) { ServiceStatus serviceStatus = m . getServiceStatus ( ) ; Status status = serviceStatus . getStatus ( ) ; if ( statusIsNotUp ( status ) ) { for ( String reason : serviceStatus . getReas...
public class OptionBuilder { /** * < p > withLongForm . < / p > * @ param longForm a { @ link java . lang . String } object . * @ return a { @ link com . greenpepper . util . cli . OptionBuilder } object . */ public OptionBuilder withLongForm ( String longForm ) { } }
if ( option . getLongForm ( ) != null ) throw new IllegalArgumentException ( "Long form given twice" ) ; option . setLongForm ( longForm ) ; return this ;
public class MetamodelConfiguration { /** * ( non - Javadoc ) * @ see com . impetus . kundera . configure . Configuration # configure ( ) */ @ Override public void configure ( ) { } }
log . debug ( "Loading Entity Metadata..." ) ; ApplicationMetadata appMetadata = kunderaMetadata . getApplicationMetadata ( ) ; for ( String persistenceUnit : persistenceUnits ) { if ( appMetadata . getMetamodelMap ( ) . get ( persistenceUnit . trim ( ) ) != null ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "Met...
public class Configuration { /** * Gets property for a given property key * @ param key the key whose associated property to be returned * @ return the property to which the specified key is mapped , or null if this property with given key not found */ public Property get ( String key ) { } }
for ( Property property : properties ) { if ( property . getKey ( ) . equals ( key ) ) { return property ; } } return null ;
public class HtmlDocletWriter { /** * Replace { & # 064 ; docRoot } tag used in options that accept HTML text , such * as - header , - footer , - top and - bottom , and when converting a relative * HREF where commentTagsToString inserts a { & # 064 ; docRoot } where one was * missing . ( Also see DocRootTaglet fo...
// Return if no inline tags exist int index = htmlstr . indexOf ( "{@" ) ; if ( index < 0 ) { return htmlstr ; } Matcher docrootMatcher = docrootPattern . matcher ( htmlstr ) ; if ( ! docrootMatcher . find ( ) ) { return htmlstr ; } StringBuilder buf = new StringBuilder ( ) ; int prevEnd = 0 ; do { int match = docrootM...
public class Less { /** * Compile the less data from a string . * @ param baseURL * the baseURL for import of external less data . * @ param lessData * the input less data * @ param options * some optional options , see constants for details * @ return the resulting less data * @ throws LessException ...
return compile ( baseURL , lessData , options , new ReaderFactory ( ) ) ;
public class UpdateTagsForDomainRequest { /** * A list of the tag keys and values that you want to add or update . If you specify a key that already exists , the * corresponding value will be replaced . * @ return A list of the tag keys and values that you want to add or update . If you specify a key that already ...
if ( tagsToUpdate == null ) { tagsToUpdate = new com . amazonaws . internal . SdkInternalList < Tag > ( ) ; } return tagsToUpdate ;
public class FastMathCalc { /** * Build the sine and cosine tables . * @ param SINE _ TABLE _ A table of the most significant part of the sines * @ param SINE _ TABLE _ B table of the least significant part of the sines * @ param COSINE _ TABLE _ A table of the most significant part of the cosines * @ param COS...
final double result [ ] = new double [ 2 ] ; /* Use taylor series for 0 < = x < = 6/8 */ for ( int i = 0 ; i < 7 ; i ++ ) { double x = i / 8.0 ; slowSin ( x , result ) ; SINE_TABLE_A [ i ] = result [ 0 ] ; SINE_TABLE_B [ i ] = result [ 1 ] ; slowCos ( x , result ) ; COSINE_TABLE_A [ i ] = result [ 0 ] ; COSINE_TABLE_B ...
public class StreamT { /** * / * ( non - Javadoc ) * @ see cyclops2 . monads . transformers . values . ListT # sorted ( java . util . Comparator ) */ @ Override public StreamT < W , T > sorted ( final Comparator < ? super T > c ) { } }
return ( StreamT < W , T > ) FoldableTransformerSeq . super . sorted ( c ) ;
public class BufferUtils { /** * Convert buffer to a Hex String . * @ param buffer the buffer to generate a hex byte summary from * @ return A hex string */ public static String toHexString ( ByteBuffer buffer ) { } }
if ( buffer == null ) return "null" ; return TypeUtils . toHexString ( toArray ( buffer ) ) ;
public class FlowImpl { /** * If not already created , a new < code > next < / code > element will be created and returned . * Otherwise , the first existing < code > next < / code > element will be returned . * @ return the instance defined for the element < code > next < / code > */ public Next < Flow < T > > get...
List < Node > nodeList = childNode . get ( "next" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new NextImpl < Flow < T > > ( this , "next" , childNode , nodeList . get ( 0 ) ) ; } return createNext ( ) ;
public class SmartBinder { /** * Terminate this binder by invoking the given target handle . The signature * of this binder is not compared to the signature of the given * SmartHandle . * @ param target the handle to invoke * @ return a new SmartHandle with this binder ' s starting signature , bound * through...
return new SmartHandle ( start , binder . invoke ( target . handle ( ) ) ) ;
public class XmlUtil { /** * See if node matches tag * @ param nd * @ param tag * @ return boolean true for match */ public static boolean nodeMatches ( final Node nd , final QName tag ) { } }
if ( tag == null ) { return false ; } String ns = nd . getNamespaceURI ( ) ; if ( ns == null ) { /* It appears a node can have a NULL namespace but a QName has a zero length */ if ( ( tag . getNamespaceURI ( ) != null ) && ( ! "" . equals ( tag . getNamespaceURI ( ) ) ) ) { return false ; } } else if ( ! ns . equals ( ...
public class XML { /** * Enrich configuredField with get and set define in xml configuration . * @ param configuredClass class of field * @ param configuredField configured field * @ return this */ public XML fillMappedField ( Class < ? > configuredClass , MappedField configuredField ) { } }
Attribute attribute = getGlobalAttribute ( configuredField , configuredClass ) ; if ( isNull ( attribute ) ) attribute = getAttribute ( configuredField , configuredClass ) ; if ( ! isNull ( attribute ) ) { if ( isEmpty ( configuredField . getMethod ( ) ) ) configuredField . getMethod ( attribute . getGet ( ) ) ; if ( i...
public class CommandLine { /** * ParseException constructor does not accept a cause Exception , hence */ @ SuppressWarnings ( "checkstyle:avoidhidingcauseexception" ) public static ConfigurationBuilder parseToConfigurationBuilder ( final String [ ] args , final Class < ? extends Name < ? > > ... argClasses ) throws Par...
final CommandLine commandLine ; try { commandLine = new CommandLine ( ) . processCommandLine ( args , argClasses ) ; } catch ( final IOException e ) { // processCommandLine ( ) converts ParseException into IOException . This reverts that to make exception handling // more straight forward . throw new ParseException ( e...
public class VdmDropAdapterAssistent { /** * Returns the resource selection from the LocalSelectionTransfer . * @ return the resource selection from the LocalSelectionTransfer */ @ SuppressWarnings ( "unchecked" ) private IResource [ ] getSelectedResources ( IStructuredSelection selection ) { } }
ArrayList < Object > selectedResources = new ArrayList < Object > ( ) ; for ( Iterator < Object > i = selection . iterator ( ) ; i . hasNext ( ) ; ) { Object o = i . next ( ) ; if ( o instanceof IResource ) { selectedResources . add ( o ) ; } else if ( o instanceof IAdaptable ) { IAdaptable a = ( IAdaptable ) o ; IReso...
public class FeatureSerializer { /** * Method that can be called to ask implementation to serialize values of type this serializer handles . * @ param value Value to serialize ; can not be null . * @ param jgen Generator used to output resulting Json content * @ param provider Provider that can be used to get ser...
jgen . writeStartObject ( ) ; jgen . writeStringField ( "type" , "Feature" ) ; if ( value != null ) { Geometry geom = value . getGeometry ( ) ; if ( geom == null ) { jgen . writeNullField ( "geometry" ) ; } else { // set beanproperty to null since we are not serializing a real property JsonSerializer ser = provider . f...
public class SubsRegistry { /** * simple subscribe / query with filter string */ public void subscribe ( int subsId , String tableName , String filter , String reducedFields [ ] , Callback < ChangeMessage > changeReceiver ) { } }
if ( filter == null || filter . trim ( ) . length ( ) == 0 || filter . trim ( ) . equals ( "true" ) ) filter = "1" ; ChangeStream table = tableFactory . apply ( tableName ) ; if ( table == null ) { changeReceiver . complete ( null , "unknown table" ) ; } else { Subscriber subscriber ; try { subscriber = table . subscri...
public class SecondaryNameNode { /** * main ( ) has some simple utility methods . * @ param argv Command line parameters . * @ exception Exception if the filesystem does not exist . */ public static void main ( String [ ] argv ) throws Exception { } }
org . apache . hadoop . hdfs . DnsMonitorSecurityManager . setTheManager ( ) ; StringUtils . startupShutdownMessage ( SecondaryNameNode . class , argv , LOG ) ; Configuration tconf = new Configuration ( ) ; try { argv = DFSUtil . setGenericConf ( argv , tconf ) ; } catch ( IllegalArgumentException e ) { System . err . ...
public class Headers { /** * Extracts a token from a header that has a given key . For instance if the header is * content - type = multipart / form - data boundary = myboundary * and the key is boundary the myboundary will be returned . * @ param header The header * @ param key The key that identifies the toke...
int pos = header . indexOf ( ' ' + key + '=' ) ; if ( pos == - 1 ) { if ( ! header . startsWith ( key + '=' ) ) { return null ; } pos = 0 ; } else { pos ++ ; } int end ; int start = pos + key . length ( ) + 1 ; for ( end = start ; end < header . length ( ) ; ++ end ) { char c = header . charAt ( end ) ; if ( c == ' ' |...
public class SpiLoadUtil { /** * This method will find the @ { code T } in { @ code public class Foo extends BaseType < T > } . * It returns an annotation type because it is used exclusively to figure out which annotations are * being handled by { @ link lombok . eclipse . EclipseAnnotationHandler } and { @ link lo...
if ( c == Object . class || c == null ) return null ; Class < ? extends Annotation > answer = null ; answer = findAnnotationHelper ( base , c . getGenericSuperclass ( ) ) ; if ( answer != null ) return answer ; for ( Type iface : c . getGenericInterfaces ( ) ) { answer = findAnnotationHelper ( base , iface ) ; if ( ans...
public class ThreadLocal { /** * Returns the value in the current thread ' s copy of this * thread - local variable . If the variable has no value for the * current thread , it is first initialized to the value returned * by an invocation of the { @ link # initialValue } method . * @ return the current thread '...
Thread t = Thread . currentThread ( ) ; ThreadLocalMap map = getMap ( t ) ; if ( map != null ) { ThreadLocalMap . Entry e = map . getEntry ( this ) ; if ( e != null ) { @ SuppressWarnings ( "unchecked" ) T result = ( T ) e . value ; return result ; } } return setInitialValue ( ) ;
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public String convertRenderingIntentIOCARIToString ( EDataType eDataType , Object instanceValue ) { } }
return instanceValue == null ? null : instanceValue . toString ( ) ;
public class JavascriptEngine { /** * Returns the JSON object from a string * @ param strJson * the json to evaluate * @ return the JSON object from a string * @ throws ScriptException * if a script exception occurs * @ throws NoSuchMethodException * if a NoSuchMethodException occurs */ public Object pars...
Object json = scriptEngine . eval ( "JSON" ) ; Object data = invokeMethod ( json , "parse" , strJson ) ; return data ;
public class ApplicationHostCache { /** * Adds the application host list to the application hosts for the account . * @ param applicationHosts The application hosts to add */ public void add ( Collection < ApplicationHost > applicationHosts ) { } }
for ( ApplicationHost applicationHost : applicationHosts ) this . applicationHosts . put ( applicationHost . getId ( ) , applicationHost ) ;
public class LongPacker { /** * Unpack positive int value from the input stream . * @ param is The input stream . * @ return the long value * @ throws IOException if an error occurs with the stream */ static public int unpackInt ( DataInput is ) throws IOException { } }
for ( int offset = 0 , result = 0 ; offset < 32 ; offset += 7 ) { int b = is . readUnsignedByte ( ) ; result |= ( b & 0x7F ) << offset ; if ( ( b & 0x80 ) == 0 ) { return result ; } } throw new Error ( "Malformed integer." ) ;
public class BooleanOperation { /** * < 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 > less than < / i > < / div > * < div color = ' red ' style = " font - siz...
getBooleanOp ( ) . setOperator ( Operator . LT ) ; return this . operateOn ( value ) ;
public class ReverseMap { /** * Creates a reverse map name corresponding to an address contained in * a String . * @ param addr The address from which to build a name . * @ return The name corresponding to the address in the reverse map . * @ throws UnknownHostException The string does not contain a valid addre...
byte [ ] array = Address . toByteArray ( addr , Address . IPv4 ) ; if ( array == null ) array = Address . toByteArray ( addr , Address . IPv6 ) ; if ( array == null ) throw new UnknownHostException ( "Invalid IP address" ) ; return fromAddress ( array ) ;
public class DrawerBuilder { /** * Build and add the DrawerBuilder to your activity * @ return */ public Drawer buildForFragment ( ) { } }
if ( mUsed ) { throw new RuntimeException ( "you must not reuse a DrawerBuilder builder" ) ; } if ( mActivity == null ) { throw new RuntimeException ( "please pass an activity" ) ; } if ( mRootView == null ) { throw new RuntimeException ( "please pass the view which should host the DrawerLayout" ) ; } // set that this ...
public class AggregationReader { /** * ( non - Javadoc ) * @ see java . io . Reader # read ( char [ ] , int , int ) */ @ Override public int read ( char [ ] cbuf , int off , int len ) throws IOException { } }
try { if ( closed ) { throw new IOException ( "Attempt to read from a closed stream" ) ; // $ NON - NLS - 1 $ } if ( eof ) { return - 1 ; } if ( curr == null ) { curr = getNextInputReader ( ) ; if ( curr == null ) { eof = true ; return - 1 ; } } int size , bytesRead = 0 , bytesToRead = len ; while ( ! eof && bytesRead ...
public class SOAPMessageTransport { /** * Get the element . * @ param strElementName The element to return ( if null , return the first element ) . */ public SOAPElement getElement ( SOAPElement element , String strElementName ) { } }
Iterator < ? > iterator = element . getChildElements ( ) ; while ( iterator . hasNext ( ) ) { javax . xml . soap . Node elMessageType = ( javax . xml . soap . Node ) iterator . next ( ) ; if ( elMessageType instanceof SOAPElement ) { if ( strElementName == null ) return ( SOAPElement ) elMessageType ; // The message ty...
public class ApiOvhHostingweb { /** * Request a password change * REST : POST / hosting / web / { serviceName } / ownLogs / { id } / userLogs / { login } / changePassword * @ param password [ required ] The new userLogs password * @ param serviceName [ required ] The internal name of your hosting * @ param id [...
String qPath = "/hosting/web/{serviceName}/ownLogs/{id}/userLogs/{login}/changePassword" ; StringBuilder sb = path ( qPath , serviceName , id , login ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "password" , password ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) ...
public class ReadOnlyFloatPropertyAssert { /** * Verifies that the actual observable number has a value that is close to the given one by less then the given offset . * @ param expectedValue the given value to compare the actual observables value to . * @ param offset the given positive offset . * @ return { @ co...
new ObservableNumberValueAssertions ( actual ) . hasValue ( expectedValue , offset ) ; return this ;
public class RestoreAgent { /** * Picks a snapshot info for restore . A single snapshot might have different * files scattered across multiple machines . All nodes must pick the same * SnapshotInfo or different nodes will pick different catalogs to restore . * Pick one SnapshotInfo and consolidate the per - node ...
SnapshotInfo chosen = null ; if ( lastSnapshot != null ) { Iterator < SnapshotInfo > i = lastSnapshot . iterator ( ) ; while ( i . hasNext ( ) ) { SnapshotInfo next = i . next ( ) ; if ( chosen == null ) { chosen = next ; } else if ( next . hostId < chosen . hostId ) { next . partitionToTxnId . putAll ( chosen . partit...
public class DataAnalysis { /** * Deserialize a JSON DataAnalysis String that was previously serialized with { @ link # toJson ( ) } */ public static DataAnalysis fromJson ( String json ) { } }
try { return new JsonSerializer ( ) . getObjectMapper ( ) . readValue ( json , DataAnalysis . class ) ; } catch ( Exception e ) { // Legacy format ObjectMapper om = new JsonSerializer ( ) . getObjectMapper ( ) ; return fromMapper ( om , json ) ; }
public class ResolvableType { /** * Return a { @ link ResolvableType } for the specified nesting level . The nesting level refers to the specific generic * parameter that should be returned . A nesting level of 1 indicates this type ; 2 indicates the first nested generic ; 3 the * second ; and so on . For example ,...
ResolvableType result = this ; for ( int i = 2 ; i <= nestingLevel ; i ++ ) { if ( result . isArray ( ) ) { result = result . getComponentType ( ) ; } else { // Handle derived types while ( result != ResolvableType . NONE && ! result . hasGenerics ( ) ) { result = result . getSuperType ( ) ; } Integer index = ( typeInd...
public class LeakDetector { /** * Register a tracked object . When the tracked object is released , you must call the clear method of the LeakDetector . * @ param object The tracked object * @ param leakCallback When the garbage collector cleans up the tracked object , if the tracked object is not released , * th...
PhantomReference < T > ref = new PhantomReference < > ( object , referenceQueue ) ; registeredMap . put ( ref , leakCallback ) ; return ref ;
public class UserSettingRepository { /** * region > newInt */ @ Programmatic public UserSettingJdo newInt ( final String user , final String key , final String description , final Integer value ) { } }
return newSetting ( user , key , description , SettingType . INT , value . toString ( ) ) ;
public class A_CmsResourceTypeFolderBase { /** * Checks if there are at least one character in the folder name , * also ensures that it starts and ends with a ' / ' . < p > * @ param resourcename folder name to check ( complete path ) * @ return the validated folder name * @ throws CmsIllegalArgumentException i...
if ( CmsStringUtil . isEmpty ( resourcename ) ) { throw new CmsIllegalArgumentException ( org . opencms . db . Messages . get ( ) . container ( org . opencms . db . Messages . ERR_BAD_RESOURCENAME_1 , resourcename ) ) ; } if ( ! CmsResource . isFolder ( resourcename ) ) { resourcename = resourcename . concat ( "/" ) ; ...
public class ByteArrayDocument { /** * Creates a copy from a different { @ link ByteArrayDocument } , but changes the document ID and content . * @ param doc the original { @ link ByteArrayDocument } to copy . * @ param id the per - bucket unique document id . * @ param content the content of the document . * @...
return ByteArrayDocument . create ( id , doc . expiry ( ) , content , doc . cas ( ) , doc . mutationToken ( ) ) ;
public class Expirer { /** * Dump the XML representation of the expirer . * @ param writer The formatted writer to which the dump should be directed . * @ throws IOException */ public void xmlWriteOn ( FormattedWriter writer ) throws IOException { } }
DateFormat dateFormat = new SimpleDateFormat ( "yyyy-MM-dd @ HH:mm:ss.SSS" ) ; String timeNow = dateFormat . format ( new Date ( ) ) ; writer . newLine ( ) ; writer . startTag ( XML_EXPIRER ) ; writer . indent ( ) ; writer . newLine ( ) ; writer . taggedValue ( "timeNow" , timeNow ) ; writer . newLine ( ) ; writer . ta...
public class FitLinesToContour { /** * finds the intersection of a line and update the corner index */ boolean linesIntoCorners ( int numLines , GrowQueue_I32 contourCorners ) { } }
skippedCorners . reset ( ) ; // this is the index in the contour of the previous corner . When a new corner is found this is used // to see if the newly fit lines point to the same corner . If that happens a corner is " skipped " int contourIndexPrevious = contourCorners . get ( anchor0 ) ; for ( int i = 1 ; i < numLin...
public class MapTileCircuitModel { /** * Get the circuit , supporting over existing transition . * @ param circuit The initial circuit . * @ param neighbor The neighbor tile which can be a transition . * @ return The new circuit or original one . */ private Circuit getCircuitOverTransition ( Circuit circuit , Til...
final String group = getTransitiveGroup ( circuit , neighbor ) ; final Circuit newCircuit ; if ( TileGroupType . TRANSITION == mapGroup . getType ( circuit . getIn ( ) ) ) { newCircuit = new Circuit ( circuit . getType ( ) , group , circuit . getOut ( ) ) ; } else if ( TileGroupType . TRANSITION == mapGroup . getType (...
public class Counter { /** * Lecture du counter depuis son fichier . * @ throws IOException e */ void readFromFile ( ) throws IOException { } }
final Counter counter = new CounterStorage ( this ) . readFromFile ( ) ; if ( counter != null ) { final Counter newCounter = clone ( ) ; startDate = counter . getStartDate ( ) ; requests . clear ( ) ; for ( final CounterRequest request : counter . getRequests ( ) ) { requests . put ( request . getName ( ) , request ) ;...
public class Mockito { /** * Specifies mock name . Naming mocks can be helpful for debugging - the name is used in all verification errors . * Beware that naming mocks is not a solution for complex code which uses too many mocks or collaborators . * < b > If you have too many mocks then refactor the code < / b > so...
return mock ( classToMock , withSettings ( ) . name ( name ) . defaultAnswer ( RETURNS_DEFAULTS ) ) ;
public class NonWrappingTextPane { /** * to preserve the full width of the text */ @ Override public boolean getScrollableTracksViewportWidth ( ) { } }
Component parent = getParent ( ) ; ComponentUI myui = getUI ( ) ; return parent == null || ( myui . getPreferredSize ( this ) . width <= parent . getSize ( ) . width ) ;
public class HysteresisEdgeTraceMark { /** * Checks to see if the given coordinate is above the lower threshold . If it is the point will be * added to the current segment or be the start of a new segment . * @ param match Has a match to the current segment already been found ? * @ return true if a match was foun...
if ( intensity . isInBounds ( x , y ) ) { int index = intensity . getIndex ( x , y ) ; if ( intensity . data [ index ] >= lower ) { intensity . data [ index ] = MARK_TRAVERSED ; output . unsafe_set ( x , y , 1 ) ; if ( match ) { open . grow ( ) . set ( x , y ) ; } else { active . set ( x , y ) ; } return true ; } } ret...
public class CorporationApi { /** * Get corporation structures Get a list of corporation structures . This * route & # 39 ; s version includes the changes to structures detailed in this * blog : * https : / / www . eveonline . com / article / upwell - 2.0 - structures - changes - coming * - on - february - 13th...
com . squareup . okhttp . Call call = getCorporationsCorporationIdStructuresValidateBeforeCall ( corporationId , acceptLanguage , datasource , ifNoneMatch , language , page , token , null ) ; Type localVarReturnType = new TypeToken < List < CorporationStructuresResponse > > ( ) { } . getType ( ) ; return apiClient . ex...
public class MainFrame { /** * This method initializes paneContent * @ return JPanel */ private JPanel getPaneContent ( ) { } }
if ( paneContent == null ) { paneContent = new JPanel ( ) ; paneContent . setLayout ( new BoxLayout ( getPaneContent ( ) , BoxLayout . Y_AXIS ) ) ; paneContent . setEnabled ( true ) ; paneContent . add ( getMainToolbarPanel ( ) , null ) ; paneContent . add ( getPaneDisplay ( ) , null ) ; paneContent . add ( getMainFoot...
public class HashOrderMixing { /** * This strategy does not change the hash order of keys at all . This * is inherently unsafe with hash containers using linear conflict * addressing . The only use case when this can be useful is to count / collect * unique keys ( for which scatter tables should be used ) . * @...
return new HashOrderMixingStrategy ( ) { @ Override public int newKeyMixer ( int newContainerBufferSize ) { return 0 ; } @ Override public HashOrderMixingStrategy clone ( ) { return this ; } } ;
public class AbstractFaxClientSpi { /** * This function fires a new fax event . * @ param id * The fax event ID * @ param faxJob * The fax job * @ param faxJobStatus * The fax job status */ protected void fireFaxEvent ( FaxMonitorEventID id , FaxJob faxJob , FaxJobStatus faxJobStatus ) { } }
// create new fax event FaxMonitorEvent event = new FaxMonitorEvent ( id , faxJob , faxJobStatus ) ; // get listeners FaxMonitorEventListener [ ] listeners = null ; synchronized ( this . faxClientActionEventListeners ) { listeners = this . faxMonitorEventListeners . toArray ( new FaxMonitorEventListener [ this . faxMon...
public class ConstructorIntrospector { /** * Introspects the class and builds the metadata . */ private void process ( ) { } }
metadataBuilder = ConstructorMetadata . newBuilder ( ) . setClazz ( clazz ) ; MethodHandle mh = IntrospectionUtils . findDefaultConstructor ( clazz ) ; if ( mh != null ) { metadataBuilder . setConstructionStrategy ( ConstructorMetadata . ConstructionStrategy . CLASSIC ) . setConstructorMethodHandle ( mh ) ; // We have ...
public class CassandraCpoAdapter { /** * Executes an Object whose metadata will call an executable within the datasource . It is assumed that the executable * object exists in the metadatasource . If the executable does not exist , an exception will be thrown . * < pre > Example : * < code > * class SomeObject ...
throw new UnsupportedOperationException ( "Execute Functions not supported in Cassandra" ) ;
public class ViewBase { /** * Execute the selected tests */ protected void runSelected ( ) { } }
List < TestDescription > selectedTests = getSelectedTests ( ) ; if ( selectedTests != null ) { List < TestDescription > selectedTestsIncludedLeafs = new ArrayList < > ( ) ; for ( TestDescription desc : selectedTests ) { includeAllLeafs ( desc , selectedTestsIncludedLeafs ) ; } // run all tests in selectedTestsIncludedL...
public class JavaParser { /** * src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 974:1 : insertStatement : s = ' insert ' ' ( ' expression c = ' ) ' ; */ public final void insertStatement ( ) throws RecognitionException { } }
int insertStatement_StartIndex = input . index ( ) ; Token s = null ; Token c = null ; ParserRuleReturnScope expression11 = null ; try { if ( state . backtracking > 0 && alreadyParsedRule ( input , 93 ) ) { return ; } // src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 975:5 : (...
public class DocumentCursorTools { /** * Returns ParagraphCursor from TextCursor * Returns null if it fails */ @ Nullable private XParagraphCursor getParagraphCursor ( XComponentContext xContext ) { } }
try { XTextCursor xCursor = getCursor ( xContext ) ; if ( xCursor == null ) { return null ; } return UnoRuntime . queryInterface ( XParagraphCursor . class , xCursor ) ; } catch ( Throwable t ) { MessageHandler . printException ( t ) ; // all Exceptions thrown by UnoRuntime . queryInterface are caught return null ; // ...
public class MaterialOverlay { /** * Open the Overlay Panel with Path Animator applied */ public void open ( Element sourceElement ) { } }
this . sourceElement = sourceElement ; $ ( "body" ) . attr ( "style" , "overflow: hidden !important" ) ; animator . setSourceElement ( sourceElement ) ; animator . setTargetElement ( getElement ( ) ) ; animator . setCompletedCallback ( ( ) -> OpenEvent . fire ( MaterialOverlay . this , MaterialOverlay . this ) ) ; anim...
public class HttpFields { /** * Add to or set a field . If the field is allowed to have multiple values , * add will add multiple headers of the same name . * @ param name the name of the field * @ param value the value of the field . */ public void add ( String name , String value ) { } }
if ( value == null ) return ; HttpField field = new HttpField ( name , value ) ; add ( field ) ;
public class MavenProjectService { /** * Find all { @ link MavenProjectModel } s that match the given groupId , artifactId , and version . Note that this could potentially return multiple * projects if multiple projects are in the original application with the same GAV . */ public Iterable < MavenProjectModel > findB...
String key = generateMavenKey ( groupId , artifactId , version ) ; Iterable < MavenProjectModel > facet = this . findAllByProperty ( MavenProjectModel . MAVEN_IDENTIFIER , key ) ; return facet ;
public class Uris { /** * Encodes the specified URI string using the UTF - 8 charset . In the event that an exception is thrown , the specifed * URI string is returned unmodified . * @ param s a URI string * @ return an encoded URI string */ public static String encode ( final String s ) { } }
/* * try { return URLEncoder . encode ( s , ENCODING _ CHARSET ) ; } catch ( UnsupportedEncodingException use ) { * log . error ( " Error ocurred encoding URI [ " + s + " ] " , use ) ; } */ /* * Lotus Notes does not correctly strip angle brackets from cid uris . From RFC2392 : A " cid " URL is converted to * the co...
public class RequestAttributeServiceImpl { /** * Get the list of user attributes the portlet expects . * @ param request The current request . * @ param portletWindow The window to get the expected user attributes for . * @ return The List of expected user attributes for the portlet */ protected List < ? extends ...
final IPortletEntity portletEntity = portletWindow . getPortletEntity ( ) ; final IPortletDefinition portletDefinition = portletEntity . getPortletDefinition ( ) ; final PortletApplicationDefinition portletApplicationDescriptor = this . portletDefinitionRegistry . getParentPortletApplicationDescriptor ( portletDefiniti...
public class WindowedStream { /** * Applies the given window function to each window . The window function is called for each * evaluation of the window for each key individually . The output of the window function is * interpreted as a regular non - windowed stream . * < p > Note that this function requires that...
TypeInformation < R > resultType = getWindowFunctionReturnType ( function , getInputType ( ) ) ; return apply ( function , resultType ) ;
public class RXTXPort { /** * Extension to CommAPI This is an extension to CommAPI . It may not be * supported on all operating systems . * Set the SerialPort parameters 1.5 stop bits requires 5 databits * @ param f filename * @ param b baudrate * @ param d databits * @ param s stopbits * @ param p parity...
logger . fine ( "RXTXPort:staticSetSerialPortParams( " + f + " " + b + " " + d + " " + s + " " + p ) ; nativeStaticSetSerialPortParams ( f , b , d , s , p ) ;
public class MonochromeRectangleDetector { /** * < p > Detects a rectangular region of black and white - - mostly black - - with a region of mostly * white , in an image . < / p > * @ return { @ link ResultPoint } [ ] describing the corners of the rectangular region . The first and * last points are opposed on th...
int height = image . getHeight ( ) ; int width = image . getWidth ( ) ; int halfHeight = height / 2 ; int halfWidth = width / 2 ; int deltaY = Math . max ( 1 , height / ( MAX_MODULES * 8 ) ) ; int deltaX = Math . max ( 1 , width / ( MAX_MODULES * 8 ) ) ; int top = 0 ; int bottom = height ; int left = 0 ; int right = wi...
public class BshClassPath { /** * Search jrt file system for module classes . * @ param the jrt : file system url * @ return array of class names found * @ throws IOException */ static String [ ] searchJrtFSForClasses ( URL url ) throws IOException { } }
try { Path path = FileSystems . getFileSystem ( new URI ( "jrt:/" ) ) . getPath ( "modules" , url . getPath ( ) ) ; return Files . walk ( path ) . map ( Path :: toString ) . filter ( BshClassPath :: isClassFileName ) . map ( BshClassPath :: canonicalizeClassName ) . toArray ( String [ ] :: new ) ; } catch ( URISyntaxEx...
public class WellRestedRequestBuilder { /** * Use this method to add some global headers to the WellRestedRequest object . * These headers are going to be added on every request you make . < br / > * A good use for this method is setting a global authentication header or a content type header . */ public WellRested...
this . globalHeaders = WellRestedUtil . buildHeaders ( globalHeaders ) ; return this ;
public class MalisisInventoryContainer { /** * Drops itemStack from hovering slot . * @ param hoveredSlot the slot * @ param fullStack the full stack * @ return the item stack */ private ItemStack handleDropSlot ( MalisisSlot hoveredSlot , boolean fullStack ) { } }
ItemStack itemStack = hoveredSlot . getItemStack ( ) ; if ( itemStack . isEmpty ( ) || ! hoveredSlot . isState ( PLAYER_EXTRACT ) ) return itemStack ; ItemUtils . ItemStackSplitter iss = new ItemUtils . ItemStackSplitter ( hoveredSlot . getItemStack ( ) ) ; iss . split ( fullStack ? ItemUtils . FULL_STACK : 1 ) ; hover...
public class PercentileTimer { /** * Only create a new instance of the counter if there is not a cached copy . The array for * keeping track of the counter per bucket is quite large ( 1-2k depending on pointer size ) * and can lead to a high allocation rate if the timer is not reused in a high volume call * site ...
Object timer = Utils . computeIfAbsent ( registry . state ( ) , id , i -> new PercentileTimer ( registry , id , min , max ) ) ; return ( timer instanceof PercentileTimer ) ? ( ( PercentileTimer ) timer ) . withRange ( min , max ) : new PercentileTimer ( registry , id , min , max ) ;
public class ABITrace { /** * Get the maximum height of any of the traces . The data is persisted for performance * in the event of multiple calls , but it initialized lazily . * @ return - maximum height of any of the traces */ private int getMaximum ( ) { } }
int max = 0 ; for ( int x = 0 ; x <= T . length - 1 ; x ++ ) { if ( T [ x ] > max ) max = T [ x ] ; if ( A [ x ] > max ) max = A [ x ] ; if ( C [ x ] > max ) max = C [ x ] ; if ( G [ x ] > max ) max = G [ x ] ; } return max ;
public class AtsUtils { /** * 解压gzip文件到指定的目录 , 目前只能解压gzip包里面只包含一个文件的压缩包 。 * @ param gzip 需要解压的gzip文件 * @ param toDir 需要解压到的目录 * @ return 解压后的文件 * @ throws IOException */ public static File ungzip ( File gzip , File toDir ) throws IOException { } }
toDir . mkdirs ( ) ; File out = new File ( toDir , gzip . getName ( ) ) ; GZIPInputStream gin = null ; FileOutputStream fout = null ; try { FileInputStream fin = new FileInputStream ( gzip ) ; gin = new GZIPInputStream ( fin ) ; fout = new FileOutputStream ( out ) ; copy ( gin , fout ) ; gin . close ( ) ; fout . close ...
public class Nfs3 { /** * / * ( non - Javadoc ) * @ see com . emc . ecs . nfsclient . nfs . Nfs # wrapped _ sendSymlink ( com . emc . ecs . nfsclient . nfs . NfsSymlinkRequest ) */ public Nfs3SymlinkResponse wrapped_sendSymlink ( NfsSymlinkRequest request ) throws IOException { } }
RpcResponseHandler < Nfs3SymlinkResponse > responseHandler = new NfsResponseHandler < Nfs3SymlinkResponse > ( ) { /* ( non - Javadoc ) * @ see com . emc . ecs . nfsclient . rpc . RpcResponseHandler # makeNewResponse ( ) */ protected Nfs3SymlinkResponse makeNewResponse ( ) { return new Nfs3SymlinkResponse ( ) ; } } ; ...
public class Connector { /** * The capabilities of the connector . * @ param capabilityList * The capabilities of the connector . * @ see ConnectorCapability */ public void setCapabilityList ( java . util . Collection < String > capabilityList ) { } }
if ( capabilityList == null ) { this . capabilityList = null ; return ; } this . capabilityList = new java . util . ArrayList < String > ( capabilityList ) ;
public class Transition { /** * Match start / end values by Adapter view ID . Adds matched values to mStartValuesList * and mEndValuesList and removes them from unmatchedStart and unmatchedEnd , using * startIds and endIds as a guide for which Views have unique IDs . */ private void matchIds ( @ NonNull ArrayMap < ...
int numStartIds = startIds . size ( ) ; for ( int i = 0 ; i < numStartIds ; i ++ ) { View startView = startIds . valueAt ( i ) ; if ( startView != null && isValidTarget ( startView ) ) { View endView = endIds . get ( startIds . keyAt ( i ) ) ; if ( endView != null && isValidTarget ( endView ) ) { TransitionValues start...
public class ImageMiscOps { /** * Inserts a single band into a multi - band image overwriting the original band * @ param input Single band image * @ param band Which band the image is to be inserted into * @ param output The multi - band image which the input image is to be inserted into */ public static void in...
final int numBands = output . numBands ; for ( int y = 0 ; y < input . height ; y ++ ) { int indexIn = input . getStartIndex ( ) + y * input . getStride ( ) ; int indexOut = output . getStartIndex ( ) + y * output . getStride ( ) + band ; int end = indexOut + output . width * numBands - band ; for ( ; indexOut < end ; ...
public class ExampleStepPlugin { /** * Overriding this method gives the plugin a chance to take part in building the { @ link * com . dtolabs . rundeck . core . plugins . configuration . Description } presented by this plugin . This subclass can use the * { @ link DescriptionBuilder } to modify all aspects of the d...
return DescriptionBuilder . builder ( ) . name ( SERVICE_PROVIDER_NAME ) . title ( "Example Step" ) . description ( "Does nothing" ) . property ( PropertyBuilder . builder ( ) . string ( "bunny" ) . title ( "Bunny" ) . description ( "Bunny name" ) . required ( true ) . build ( ) ) . property ( PropertyBuilder . builder...
public class CountedCompleter { /** * Returns the root of the current computation ; i . e . , this task if it has no completer , else its * completer ' s root . * @ return the root of the current computation */ public final CountedCompleter < ? > getRoot ( ) { } }
CountedCompleter < ? > a = this , p ; while ( ( p = a . completer ) != null ) a = p ; return a ;
import java . util . List ; class FindNearestTriplet { /** * Determines the closest elements from three sorted arrays . * Examples : * > > > findNearestTriplet ( [ 1 , 4 , 10 ] , [ 2 , 15 , 20 ] , [ 10 , 12 ] ) * ( 10 , 15 , 10) * > > > findNearestTriplet ( [ 20 , 24 , 100 ] , [ 2 , 19 , 22 , 79 , 800 ] , [ 10 ...
int diff = Integer . MAX_VALUE ; int index1 = 0 , index2 = 0 , index3 = 0 ; int result1 = 0 , result2 = 0 , result3 = 0 ; while ( index1 < array1 . size ( ) && index2 < array2 . size ( ) && index3 < array3 . size ( ) ) { int smallest = Math . min ( array1 . get ( index1 ) , Math . min ( array2 . get ( index2 ) , array3...
public class CmsShellCommands { /** * Deletes a resource together with its siblings . < p > * @ param name the name of the resource to delete * @ throws Exception if something goes wrong */ public void deleteResourceWithSiblings ( String name ) throws Exception { } }
m_cms . lockResource ( name ) ; m_cms . deleteResource ( name , CmsResource . DELETE_REMOVE_SIBLINGS ) ;
public class SectionNumber { /** * Change this version number by incrementing the number for the given level . * @ param level is the level at which the section number is visible ( 1 for the top level , 2 for subsections . . . ) */ public void increment ( int level ) { } }
assert level >= 1 ; if ( this . numbers . size ( ) < level ) { do { this . numbers . addLast ( 0 ) ; } while ( this . numbers . size ( ) < level ) ; } else if ( this . numbers . size ( ) > level ) { do { this . numbers . removeLast ( ) ; } while ( this . numbers . size ( ) > level ) ; } assert this . numbers . size ( )...
public class ESFilterBuilder { /** * Populate between filter . * @ param betweenExpression * the between expression * @ param m * the m * @ param entity * the entity * @ return the filter builder */ private QueryBuilder populateBetweenFilter ( BetweenExpression betweenExpression , EntityMetadata m ) { } }
String lowerBoundExpression = getBetweenBoundaryValues ( betweenExpression . getLowerBoundExpression ( ) ) ; String upperBoundExpression = getBetweenBoundaryValues ( betweenExpression . getUpperBoundExpression ( ) ) ; String field = getField ( betweenExpression . getExpression ( ) . toParsedText ( ) ) ; log . debug ( "...
public class AuthorizeResult { /** * Checks if the received data is valid and can be parsed . * @ param expectedRequestCode the request code this activity is expecting to receive * @ return whether if the received uri data can be parsed or not . */ public boolean isValid ( int expectedRequestCode ) { } }
Uri uri = intent != null ? intent . getData ( ) : null ; if ( uri == null ) { Log . d ( TAG , "Result is invalid: Received Intent's Uri is null." ) ; return false ; } if ( requestCode == MISSING_REQUEST_CODE ) { return true ; } boolean fromRequest = getRequestCode ( ) == expectedRequestCode ; if ( ! fromRequest ) { Log...
public class ElasticsearchUpsertTableSinkFactoryBase { private DescriptorProperties getValidatedProperties ( Map < String , String > properties ) { } }
final DescriptorProperties descriptorProperties = new DescriptorProperties ( true ) ; descriptorProperties . putProperties ( properties ) ; new StreamTableDescriptorValidator ( true , false , true ) . validate ( descriptorProperties ) ; new SchemaValidator ( true , false , false ) . validate ( descriptorProperties ) ; ...
public class JingleSession { /** * Generate a unique session ID . */ protected static String generateSessionId ( ) { } }
return String . valueOf ( randomGenerator . nextInt ( Integer . MAX_VALUE ) + randomGenerator . nextInt ( Integer . MAX_VALUE ) ) ;
public class BigMoney { /** * Returns a copy of this monetary value with the specified currency . * The returned instance will have the specified currency and the amount * from this instance . No currency conversion or alteration to the scale occurs . * This instance is immutable and unaffected by this method . ...
MoneyUtils . checkNotNull ( currency , "CurrencyUnit must not be null" ) ; if ( this . currency == currency ) { return this ; } return new BigMoney ( currency , amount ) ;
public class DescribeActivitiesResult { /** * The list of activities for the specified user and time period . * @ param userActivities * The list of activities for the specified user and time period . */ public void setUserActivities ( java . util . Collection < Activity > userActivities ) { } }
if ( userActivities == null ) { this . userActivities = null ; return ; } this . userActivities = new java . util . ArrayList < Activity > ( userActivities ) ;
public class SarlPackageImpl { /** * Complete the initialization of the package and its meta - model . This * method is guarded to have no affect on any invocation but its first . * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void initializePackageContents ( ) { } }
if ( isInitialized ) return ; isInitialized = true ; // Initialize package setName ( eNAME ) ; setNsPrefix ( eNS_PREFIX ) ; setNsURI ( eNS_URI ) ; // Obtain other dependent packages XtendPackage theXtendPackage = ( XtendPackage ) EPackage . Registry . INSTANCE . getEPackage ( XtendPackage . eNS_URI ) ; XbasePackage the...
public class DenyPostServiceImpl { /** * We check whether the resource path matches a configurable set of paths ( configured via regex ) . If it matches , this request is forbidden , and * we throw an exception . */ @ Override public void process ( SlingHttpServletRequest request , List < Modification > changes ) thr...
if ( ! deniedPathList . isEmpty ( ) ) { Resource resource = request . getResource ( ) ; String path = resource != null ? resource . getPath ( ) : null ; if ( path != null ) { for ( Pattern pat : deniedPathList ) { if ( pat . matcher ( path ) . matches ( ) ) { LOG . warn ( "POST to {} reached default SlingPostServlet, b...
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EEnum getIfcAudioVisualApplianceTypeEnum ( ) { } }
if ( ifcAudioVisualApplianceTypeEnumEEnum == null ) { ifcAudioVisualApplianceTypeEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 917 ) ; } return ifcAudioVisualApplianceTypeEnumEEnum ;