signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class LocalizationMessageService { /** * Finds localized message template by code and current locale from config . If not found it * takes message from message bundle and replaces all the occurrences of variables with their * matching values from the substitute map . * @ param code the message code * @ p...
return getMessage ( code , substitutes , true , null ) ;
public class AttributeUpdateMessage { /** * The length of this message when encoded according to the Solver - World Model * protocol . * @ return the length , in bytes , of the encoded form of this message . */ public int getMessageLength ( ) { } }
// Message Type , createIdentifier int length = 1 + 1 ; // Number of solutions length += 4 ; // Each solution if ( this . attributes != null ) { for ( Attribute attr : this . attributes ) { length += attr . getSolverLength ( ) ; } } return length ;
public class DiGraph { /** * Returns a subgraph of < code > this < / code > directed graph * containing only the vertices from < code > verts < / code > . */ public DiGraph < Vertex > subDiGraph ( final Collection < Vertex > verts ) { } }
final BiDiNavigator < Vertex > origNav = this . getBiDiNavigator ( ) ; return DiGraph . diGraph ( verts , new BiDiNavigator < Vertex > ( ) { public List < Vertex > next ( Vertex v ) { return ( List < Vertex > ) diff ( origNav . next ( v ) , verts , new LinkedList < Vertex > ( ) ) ; } public List < Vertex > prev ( Verte...
public class JNDIObjectFactory { /** * / * ( non - Javadoc ) * @ see javax . naming . spi . ObjectFactory # getObjectInstance ( java . lang . Object , javax . naming . Name , javax . naming . Context , java . util . Hashtable ) */ @ Override public Object getObjectInstance ( Object obj , Name name , Context context ,...
if ( ! ( obj instanceof Reference ) ) throw new IllegalStateException ( "Object is not a reference : " + obj ) ; Reference reference = ( Reference ) obj ; String objClassName = reference . getClassName ( ) ; // Queue if ( objClassName . equals ( QueueRef . class . getName ( ) ) ) { String queueName = getRequiredAttribu...
public class ExampleLookupTable { /** * { @ inheritDoc } */ @ Override public String getCacheKeyForTable ( final Object table ) { } }
String tableName ; TableWithNullOption nullOptionTable = null ; if ( table instanceof TableWithNullOption ) { nullOptionTable = ( TableWithNullOption ) table ; tableName = nullOptionTable . getTableName ( ) ; } else { tableName = ( String ) table ; } // For the examples , we only cache the " icao " and " australian _ s...
public class TransformationSummary { /** * < code > repeated . google . privacy . dlp . v2 . TransformationSummary . SummaryResult results = 4 ; < / code > */ public java . util . List < com . google . privacy . dlp . v2 . TransformationSummary . SummaryResult > getResultsList ( ) { } }
return results_ ;
public class DecisionCriteria { /** * Returns the best option and the payoff under savage strategy * @ param payoffMatrix * @ return */ public static Map . Entry < Object , Object > savage ( DataTable2D payoffMatrix ) { } }
if ( payoffMatrix . isValid ( ) == false ) { throw new IllegalArgumentException ( "The payoff matrix does not have a rectangular format." ) ; } // Deep clone the payoffMatrix to avoid modifying its original values DataTable2D regretMatrix = new DataTable2D ( ) ; for ( Map . Entry < Object , AssociativeArray > entry : p...
public class ProxyClientConfig { /** * Create a Map instance with properties set up to use a proxy server that can be passed to the * GitLabAPi constructors and login methods to configure the GitLabApi instance to use a proxy server . * @ param proxyUri the URI of the proxy server * @ return a Map set up to allow...
return ( createProxyClientConfig ( proxyUri , null , null ) ) ;
public class AwsSecurityFindingFilters { /** * The IPv6 addresses associated with the instance . * @ param resourceAwsEc2InstanceIpV6Addresses * The IPv6 addresses associated with the instance . */ public void setResourceAwsEc2InstanceIpV6Addresses ( java . util . Collection < IpFilter > resourceAwsEc2InstanceIpV6A...
if ( resourceAwsEc2InstanceIpV6Addresses == null ) { this . resourceAwsEc2InstanceIpV6Addresses = null ; return ; } this . resourceAwsEc2InstanceIpV6Addresses = new java . util . ArrayList < IpFilter > ( resourceAwsEc2InstanceIpV6Addresses ) ;
public class XMLCaster { /** * Casts a XML Node to a HTML Presentation * @ param node * @ param pageContext * @ return html output */ public static DumpData toDumpData ( Node node , PageContext pageContext , int maxlevel , DumpProperties props ) { } }
if ( maxlevel <= 0 ) { return DumpUtil . MAX_LEVEL_REACHED ; } maxlevel -- ; // Document if ( node instanceof Document ) { DumpTable table = new DumpTable ( "xml" , "#cc9999" , "#ffffff" , "#000000" ) ; table . setTitle ( "XML Document" ) ; table . appendRow ( 1 , new SimpleDumpData ( "XmlComment" ) , new SimpleDumpDat...
public class MaxSATSolver { /** * Returns the model of the current result . * @ return the model of the current result * @ throws IllegalStateException if the formula is not yet solved */ public Assignment model ( ) { } }
if ( this . result == UNDEF ) throw new IllegalStateException ( "Cannot get a model as long as the formula is not solved. Call 'solve' first." ) ; return this . result != UNSATISFIABLE ? this . createAssignment ( this . solver . model ( ) ) : null ;
public class RepositoryException { /** * One strategy for resolving an optimistic lock failure is to try the * operation again , after waiting some bounded random amount of time . This * method is provided as a convenience , to support such a random wait . * A retry count is required as well , which is decremente...
if ( retryCount <= 0 ) { // Workaround apparent compiler bug . org . cojen . util . ThrowUnchecked . fire ( e ) ; } if ( milliseconds > 0 ) { Random rnd = cRandom ; if ( rnd == null ) { cRandom = rnd = new Random ( ) ; } if ( ( milliseconds = rnd . nextInt ( milliseconds ) ) > 0 ) { try { Thread . sleep ( milliseconds ...
public class LinkedProperties { /** * < p > create . < / p > * @ param resources a { @ link java . lang . String } object . * @ return a { @ link ameba . util . LinkedProperties } object . */ public static LinkedProperties create ( String ... resources ) { } }
LinkedProperties properties = create ( ) ; if ( resources != null ) { for ( String res : resources ) { if ( StringUtils . isNotBlank ( res ) ) { Enumeration < URL > enumeration = IOUtils . getResources ( res ) ; while ( enumeration . hasMoreElements ( ) ) { try ( InputStream in = enumeration . nextElement ( ) . openStr...
public class Field { /** * Writes a Java Field . * @ param out target to write to * @ param field Java Field to be written */ public static void write ( ObjectOutput out , java . lang . reflect . Field field ) throws IOException { } }
if ( field == null ) { ClassRef . write ( out , null ) ; } else { ClassRef . write ( out , field . getDeclaringClass ( ) ) ; out . writeUTF ( field . getName ( ) ) ; }
public class ServiceContext { /** * Sets the request object prior to calling the service ' s method . * @ param request the calling servlet request * @ param serviceId the service identifier * @ param objectId the object identifier */ public static void begin ( ServletRequest request , ServletResponse response , ...
ServiceContext context = ( ServiceContext ) _localContext . get ( ) ; if ( context == null ) { context = new ServiceContext ( ) ; _localContext . set ( context ) ; } context . _request = request ; context . _response = response ; context . _serviceName = serviceName ; context . _objectId = objectId ; context . _count +...
public class Parsers { /** * A { @ link Parser } that runs { @ code parsers } sequentially and discards the return values . */ public static Parser < Object > sequence ( final Parser < ? > ... parsers ) { } }
return new Parser < Object > ( ) { @ Override boolean apply ( ParseContext ctxt ) { for ( Parser < ? > p : parsers ) { if ( ! p . apply ( ctxt ) ) return false ; } return true ; } @ Override public String toString ( ) { return "sequence" ; } } ;
public class BeanDocDoclet { /** * Generates BeanInfo . java files for each of the ClassDocs in the * RootDoc . */ public void start ( ) { } }
ClassDoc [ ] classDocs = mRootDoc . getClasses ( ) ; for ( int i = 0 ; i < classDocs . length ; i ++ ) { ClassDoc classDoc = classDocs [ i ] ; if ( ! accept ( classDoc ) ) { continue ; } try { generateBeanInfo ( classDoc ) ; } catch ( RuntimeException e ) { throw e ; } catch ( Exception e ) { e . printStackTrace ( ) ; ...
public class TemplateRestEntity { /** * Returns the information of an specific template If the template it is not * in the database , it returns 404 with empty payload / * * Creates a new * template * < pre > * POST / templates * Request : * POST / templates HTTP / 1.1 * Accept : application / xml * Res...
logger . debug ( "StartOf createTemplate - Insert /templates" ) ; TemplateHelperE templateRestHelper = getTemplateHelper ( ) ; String id , location = null ; try { id = templateRestHelper . createTemplate ( templateParam . getTemplate ( ) , templateParam . getOriginalSerialzedTemplate ( ) ) ; location = buildResourceLoc...
public class ClassUtils { /** * Builds a class hierarchy that includes all super classes * and interfaces that the given class implements or extends from . * @ param type The class to start with * @ return The class hierarchy */ public static List < Class > resolveHierarchy ( Class < ? > type ) { } }
Class < ? > superclass = type . getSuperclass ( ) ; List < Class > hierarchy = new ArrayList < > ( ) ; if ( superclass != null ) { populateHierarchyInterfaces ( type , hierarchy ) ; while ( superclass != Object . class ) { populateHierarchyInterfaces ( superclass , hierarchy ) ; superclass = superclass . getSuperclass ...
public class Favorites { /** * Check if the item is favorited * @ param user to check * @ param item to check * @ return favorite state */ public static boolean isFavorite ( @ Nonnull User user , @ Nonnull Item item ) { } }
FavoriteUserProperty fup = user . getProperty ( FavoriteUserProperty . class ) ; return fup != null && fup . isJobFavorite ( item . getFullName ( ) ) ;
public class MaxiCodeReader { /** * This method detects a code in a " pure " image - - that is , pure monochrome image * which contains only an unrotated , unskewed , image of a code , with some white border * around it . This is a specialized method that works exceptionally fast in this special * case . */ priva...
int [ ] enclosingRectangle = image . getEnclosingRectangle ( ) ; if ( enclosingRectangle == null ) { throw NotFoundException . getNotFoundInstance ( ) ; } int left = enclosingRectangle [ 0 ] ; int top = enclosingRectangle [ 1 ] ; int width = enclosingRectangle [ 2 ] ; int height = enclosingRectangle [ 3 ] ; // Now just...
public class StringUtil { /** * Right justify the contents of the string , ensuring that the string ends at the last character . If the supplied string is * longer than the desired width , the leading characters are removed so that the last character in the supplied string at the * last position . If the supplied s...
assert width > 0 ; // Trim the leading and trailing whitespace . . . str = str != null ? str . trim ( ) : "" ; final int length = str . length ( ) ; int addChars = width - length ; if ( addChars < 0 ) { // truncate the first characters , keep the last return str . subSequence ( length - width , length ) . toString ( ) ...
public class MetamodelImpl { /** * Gets the entity name to class map . * @ return the entityNameToClassMap */ public Map < String , Class < ? > > getEntityNameToClassMap ( ) { } }
if ( entityNameToClassMap == null ) { entityNameToClassMap = new HashMap < String , Class < ? > > ( ) ; } return entityNameToClassMap ;
public class SearchParser { /** * PArses a search page results * @ param url the search url * @ return the results */ public List < SherdogBaseObject > parse ( String url ) throws IOException { } }
Document document = ParserUtils . parseDocument ( url ) ; Elements select = document . select ( ".fightfinder_result tr" ) ; // removing the first one as it ' s the header if ( select . size ( ) > 0 ) { select . remove ( 0 ) ; } return select . stream ( ) . map ( e -> Optional . ofNullable ( e . select ( "td" ) ) // se...
public class SQLiteConnectionPool { /** * Might throw . */ private SQLiteConnection openConnectionLocked ( com . couchbase . lite . internal . database . sqlite . SQLiteDatabaseConfiguration configuration , boolean primaryConnection ) { } }
final int connectionId = mNextConnectionId ++ ; return SQLiteConnection . open ( this , configuration , mConnectionListener , connectionId , primaryConnection ) ; // might throw
public class FileReader { /** * 将文件写入流中 * @ param out 流 * @ return File * @ throws IORuntimeException IO异常 */ public File writeToStream ( OutputStream out ) throws IORuntimeException { } }
FileInputStream in = null ; try { in = new FileInputStream ( file ) ; IoUtil . copy ( in , out ) ; } catch ( IOException e ) { throw new IORuntimeException ( e ) ; } finally { IoUtil . close ( in ) ; } return this . file ;
public class Assembler { /** * ! @ brief Emit single @ a opCode without operands . */ final void _emitOpCode ( int opCode ) { } }
// instruction prefix if ( ( opCode & 0xFF000000 ) != 0 ) { _emitByte ( ( byte ) ( ( opCode & 0xFF000000 ) >> 24 ) ) ; } // instruction opcodes if ( ( opCode & 0x00FF0000 ) != 0 ) { _emitByte ( ( byte ) ( ( opCode & 0x00FF0000 ) >> 16 ) ) ; } if ( ( opCode & 0x0000FF00 ) != 0 ) { _emitByte ( ( byte ) ( ( opCode & 0x000...
public class ExecHandler { /** * Extract the operation and type list from a given request * @ param pServer server from which obtain the MBean type info * @ param pRequest the exec request * @ return combined object containing the operation name and parameter classes */ private OperationAndParamType extractOperat...
if ( pRequest . getOperation ( ) == null ) { throw new IllegalArgumentException ( "No operation given for exec Request on MBean " + pRequest . getObjectName ( ) ) ; } List < String > opArgs = splitOperation ( pRequest . getOperation ( ) ) ; String operation = opArgs . get ( 0 ) ; List < String > types ; if ( opArgs . s...
public class ShellParser { /** * Find the first occurence ofa pattern in a piece of text * and return a specific group . * @ param strPattern the regular expression to match * @ param text the text to search * @ param grp the number of the matching group to return * @ return a String containing the matched gr...
Pattern pattern = Pattern . compile ( strPattern , Pattern . MULTILINE ) ; Matcher matcher = pattern . matcher ( text ) ; if ( matcher . find ( 0 ) ) return matcher . group ( grp ) ; return null ;
public class ReflectionUtils { /** * Retrieves the getter method of the given class for the specified field * name . The method first tries to find the getFieldName method of the class * and if it can not find that method it looks for the isFieldName method . * If this method also can not be found , null is retur...
StringBuilder sb = new StringBuilder ( "get" ) . append ( Character . toUpperCase ( fieldName . charAt ( 0 ) ) ) . append ( fieldName , 1 , fieldName . length ( ) ) ; final String internedGetName = sb . toString ( ) . intern ( ) ; final String internedIsName = sb . replace ( 0 , 3 , "is" ) . toString ( ) . intern ( ) ;...
public class ConstraintViolationImpl_CustomFieldSerializer { /** * Only a subset of fields are actually serialized . * There is no guarantee that the root bean is GWT - serializable or that it ' s appropriate for it to * be exposed on the client . Even if the root bean could be sent back , the lack of reflection on...
// streamWriter . writeString ( instance . getMessageTemplate ( ) ) ; streamWriter . writeString ( instance . getMessage ( ) ) ; // streamWriter . writeObject ( instance . getRootBeanClass ( ) ) ; // streamWriter . writeObject ( instance . getRootBean ( ) ) ; // streamWriter . writeObject ( instance . getLeafBean ( ) )...
public class KiteTicker { /** * Parses LTP data . */ private Tick getLtpQuote ( byte [ ] bin , int x , int dec1 ) { } }
Tick tick1 = new Tick ( ) ; tick1 . setMode ( modeLTP ) ; tick1 . setTradable ( true ) ; tick1 . setInstrumentToken ( x ) ; tick1 . setLastTradedPrice ( convertToDouble ( getBytes ( bin , 4 , 8 ) ) / dec1 ) ; return tick1 ;
public class CmsPublishProjectReport { /** * Performs the dialog actions depending on the initialized action . < p > * @ throws JspException if dialog actions fail */ public void displayReport ( ) throws JspException { } }
// save initialized instance of this class in request attribute for included sub - elements getJsp ( ) . getRequest ( ) . setAttribute ( SESSION_WORKPLACE_CLASS , this ) ; switch ( getAction ( ) ) { case ACTION_REPORT_END : actionCloseDialog ( ) ; break ; case ACTION_CANCEL : actionCloseDialog ( ) ; break ; case ACTION...
public class ScenarioParametersImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setBaseCurrencyUnit ( String newBaseCurrencyUnit ) { } }
String oldBaseCurrencyUnit = baseCurrencyUnit ; baseCurrencyUnit = newBaseCurrencyUnit ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , BpsimPackage . SCENARIO_PARAMETERS__BASE_CURRENCY_UNIT , oldBaseCurrencyUnit , baseCurrencyUnit ) ) ;
public class AiNodeAnim { /** * Returns the position as vector . < p > * This method is part of the wrapped API ( see { @ link AiWrapperProvider } * for details on wrappers ) . < p > * The built in behavior is to return an { @ link AiVector } . * @ param wrapperProvider the wrapper provider ( used for type infe...
return wrapperProvider . wrapVector3f ( m_posKeys , POS_KEY_SIZE * keyIndex + 8 , 3 ) ;
public class LottieCompositionFactory { /** * Return a LottieComposition for the given InputStream to json . */ @ WorkerThread public static LottieResult < LottieComposition > fromJsonInputStreamSync ( InputStream stream , @ Nullable String cacheKey ) { } }
return fromJsonInputStreamSync ( stream , cacheKey , true ) ;
public class OAuthSessionFactory { /** * When the browser hits the redirect URL , use the provided code to ask Slack for a session . */ @ Override public MockResponse dispatch ( RecordedRequest request ) { } }
HttpUrl requestUrl = mockWebServer . url ( request . getPath ( ) ) ; String code = requestUrl . queryParameter ( "code" ) ; String stateString = requestUrl . queryParameter ( "state" ) ; ByteString state = stateString != null ? ByteString . decodeBase64 ( stateString ) : null ; Listener listener ; synchronized ( this )...
public class RecordSet { /** * Make sure the passed item has been fetched from the server . * @ param index * Item index */ private void ensureAvailable ( int index ) { } }
if ( data . get ( index ) != null ) { // Already have this item . return ; } if ( client == null ) { throw new RuntimeException ( "no remoting client configured" ) ; } Object result ; int start = index ; int count ; if ( mode . equals ( MODE_ONDEMAND ) ) { // Only get requested item count = 1 ; } else if ( mode . equal...
public class MolaDbClient { /** * Creates a new item , or replaces an old item with a new item . If an * item that has the same primary key as the new item already exists in * the specified table , the new item completely replaces the existing * item . You can perform a conditional put operation ( add a new item ...
checkNotNull ( request , "request should not be null." ) ; InternalRequest httpRequest = createRequestUnderInstance ( HttpMethodName . PUT , MolaDbConstants . URI_TABLE , request . getTableName ( ) , MolaDbConstants . URI_ITEM ) ; fillInHeadAndBody ( request , httpRequest ) ; PutItemResponse ret = this . invokeHttpClie...
public class DefaultFeaturizerContextGenerator { /** * Returns the context for making a pos tag decision at the specified token * index given the specified tokens and previous tags . * @ param i * The index of the token for which the context is provided . * @ param toks * The tokens in the sentence . * @ pa...
List < String > e = new ArrayList < String > ( ) ; if ( isWiderContext ) createWindowFeats ( i , toks , tags , preds , e ) ; else create3WindowFeats ( i , toks , tags , preds , e ) ; if ( i > 0 ) wrappWindowFeatures ( "prev_" , i - 1 , toks , tags , preds , e ) ; wrappWindowFeatures ( "" , i , toks , tags , preds , e )...
public class EncodingUtils { /** * nope */ public static String encode ( String pathPart ) { } }
// jenkins doesn ' t like the + for space , use % 20 instead try { return URLEncoder . encode ( pathPart , StandardCharsets . UTF_8 . displayName ( ) ) ; } catch ( UnsupportedEncodingException e ) { // Should never happen , because that would imply that // the parameter StandardCharsets . UTF _ 8 is wrong . throw new I...
public class KiteTicker { /** * Each byte stream contains many packets . This method reads first two bits and calculates number of packets in the byte stream and split it . */ private ArrayList < byte [ ] > splitPackets ( byte [ ] bin ) { } }
ArrayList < byte [ ] > packets = new ArrayList < byte [ ] > ( ) ; int noOfPackets = getLengthFromByteArray ( getBytes ( bin , 0 , 2 ) ) ; // in . read ( bin , 0 , 2 ) ; int j = 2 ; for ( int i = 0 ; i < noOfPackets ; i ++ ) { int sizeOfPacket = getLengthFromByteArray ( getBytes ( bin , j , j + 2 ) ) ; // in . read ( bi...
public class UserHandlerImpl { /** * Notifying listeners after enabling / disabling a user . * @ param user * the user which is used in enabling / disabling operation * @ throws Exception * if any listener failed to handle the event */ private void postSetEnabled ( User user ) throws Exception { } }
for ( UserEventListener listener : listeners ) listener . postSetEnabled ( user ) ;
public class BaseServletContextResourceReader { /** * ( non - Javadoc ) * @ see * net . jawr . web . resource . handler . reader . ResourceBrowser # getResourceNames ( * java . lang . String ) */ @ SuppressWarnings ( "unchecked" ) @ Override public Set < String > getResourceNames ( String path ) { } }
Set < String > paths = context . getResourcePaths ( path ) ; Set < String > names = new HashSet < > ( ) ; int length = path . length ( ) ; if ( null != paths ) { for ( String resourcePath : paths ) { names . add ( resourcePath . substring ( length , resourcePath . length ( ) ) ) ; } } return names ;
public class DefaultExportationLinker { /** * Called by iPOJO when the configuration of the DefaultExportationLinker is updated . * Call # processProperties ( ) to get the updated filters ExporterServiceFilter and ExportDeclarationFilter . * Compute and apply the changes in the links relatives to the changes in the...
processProperties ( ) ; synchronized ( lock ) { exportersManager . applyFilterChanges ( exporterServiceFilter ) ; declarationsManager . applyFilterChanges ( exportDeclarationFilter ) ; }
public class AudioNatives { /** * Checks whether the opus binary was loaded , if not it will be initialized here . * < br > This is used by JDA to check at runtime whether the opus library is available or not . * @ return True , if the library could be loaded . */ public static synchronized boolean ensureOpus ( ) {...
if ( initialized ) return audioSupported ; initialized = true ; try { if ( OpusLibrary . isInitialized ( ) ) return audioSupported = true ; audioSupported = OpusLibrary . loadFromJar ( ) ; } catch ( Throwable e ) { handleException ( e ) ; } finally { if ( audioSupported ) LOG . info ( "Audio System successfully setup!"...
public class MapUtil { /** * 逆转Map的key和value * @ param < K > 键类型 , 目标的值类型 * @ param < V > 值类型 , 目标的键类型 * @ param map 被转换的Map * @ return 逆转后的Map * @ deprecated 请使用 { @ link MapUtil # reverse ( Map ) } 代替 */ @ Deprecated public static < K , V > Map < V , K > inverse ( Map < K , V > map ) { } }
Map < V , K > inverseMap ; if ( map instanceof LinkedHashMap ) { inverseMap = new LinkedHashMap < > ( map . size ( ) ) ; } else if ( map instanceof TreeMap ) { inverseMap = new TreeMap < > ( ) ; } else { inverseMap = new HashMap < > ( map . size ( ) ) ; } for ( Entry < K , V > entry : map . entrySet ( ) ) { inverseMap ...
public class AWSIoTAnalyticsClient { /** * Deletes the specified data store . * @ param deleteDatastoreRequest * @ return Result of the DeleteDatastore operation returned by the service . * @ throws InvalidRequestException * The request was not valid . * @ throws ResourceNotFoundException * A resource with ...
request = beforeClientExecution ( request ) ; return executeDeleteDatastore ( request ) ;
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getIfcExternallyDefinedTextFont ( ) { } }
if ( ifcExternallyDefinedTextFontEClass == null ) { ifcExternallyDefinedTextFontEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 218 ) ; } return ifcExternallyDefinedTextFontEClass ;
public class JobsInner { /** * Retrieve the runbook content of the job identified by job id . * @ param resourceGroupName Name of an Azure Resource group . * @ param automationAccountName The name of the automation account . * @ param jobId The job id . * @ throws IllegalArgumentException thrown if parameters f...
return getRunbookContentWithServiceResponseAsync ( resourceGroupName , automationAccountName , jobId ) . map ( new Func1 < ServiceResponse < InputStream > , InputStream > ( ) { @ Override public InputStream call ( ServiceResponse < InputStream > response ) { return response . body ( ) ; } } ) ;
public class FileDownloadNotificationHelper { /** * Cancel the notification by notification id . * @ param id The download id . */ public void cancel ( final int id ) { } }
final BaseNotificationItem notification = remove ( id ) ; if ( notification == null ) { return ; } notification . cancel ( ) ;
public class ExcelItemReader { /** * 取cell单元格中的数据 * @ param cell a { @ link org . apache . poi . hssf . usermodel . HSSFCell } object . * @ return a { @ link java . lang . Object } object . */ public static Object getCellValue ( HSSFCell cell ) { } }
if ( ( cell == null ) ) return null ; switch ( cell . getCellTypeEnum ( ) ) { case BLANK : return null ; case STRING : return Strings . trim ( cell . getRichStringCellValue ( ) . getString ( ) ) ; case NUMERIC : if ( DateUtil . isCellDateFormatted ( cell ) ) { return cell . getDateCellValue ( ) ; } else { return number...
public class ArrayUtil { /** * 包装类数组转为原始类型数组 * @ param values 包装类型数组 * @ return 原始类型数组 */ public static float [ ] unWrap ( Float ... values ) { } }
if ( null == values ) { return null ; } final int length = values . length ; if ( 0 == length ) { return new float [ 0 ] ; } final float [ ] array = new float [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { array [ i ] = values [ i ] . floatValue ( ) ; } return array ;
public class BuilderMethodClassifier { /** * Checks that the given setter method has a parameter type that is compatible with the return * type of the given getter . Compatible means either that it is the same , or that it is a type * that can be copied using a method like { @ code ImmutableList . copyOf } or { @ c...
TypeMirror targetType = getterToPropertyType . get ( valueGetter ) ; ExecutableType finalSetter = MoreTypes . asExecutable ( typeUtils . asMemberOf ( MoreTypes . asDeclared ( builderType . asType ( ) ) , setter ) ) ; TypeMirror parameterType = finalSetter . getParameterTypes ( ) . get ( 0 ) ; if ( typeUtils . isSameTyp...
public class MethodState { /** * Do not use - - for internal use only . * Get the name of the field that will be inserted into a class for some method id and version combination . * @ param methodId method id * @ param continuationPointId continuation point id * @ return field name * @ throws IllegalArgumentE...
if ( continuationPointId < 0 ) { throw new IllegalArgumentException ( ) ; } String methodIdStr = Integer . toString ( methodId ) . replace ( '-' , 'N' ) ; String continuationPointIdStr = Integer . toString ( continuationPointId ) . replace ( '-' , 'N' ) ; return "__COROUTINES_ID_" + methodIdStr + "_" + continuationPoin...
public class ContextInitializer { /** * This is finalizing method that actually scans and initiates the context . After this method invocation , context * initialized becomes unusable ; if - for some reason - you need to create multiple contexts , use separate * initializers . Make sure to add some class scanners a...
validateScanners ( ) ; // Making sure scanners are properly defined . final Context context = createContext ( ) ; // Creating new instance , applying user ' s settings . final ContextDestroyer contextDestroyer = new ContextDestroyer ( ) ; mapInContext ( context , processors ) ; // Now context contains default processor...
public class OStreamSerializerAnyRecord { /** * Re - Create any object if the class has a public constructor that accepts a String as unique parameter . */ public Object fromStream ( byte [ ] iStream ) throws IOException { } }
if ( iStream == null || iStream . length == 0 ) // NULL VALUE return null ; final String stream = OBinaryProtocol . bytes2string ( iStream ) ; Class < ? > cls = null ; try { final StringBuilder content = new StringBuilder ( ) ; cls = OStreamSerializerHelper . readRecordType ( stream , content ) ; // TRY WITH THE DATABA...
public class BoundedSortedMultiMap { /** * Adds the key - value mapping to this map , and if the total number of * mappings exceeds the bounds , removes either the currently lowest element , * or if reversed , the currently highest element . If this map is bound by * the number of keys , a { @ code put } operatio...
boolean added = super . put ( key , value ) ; if ( isKeyBound ) { if ( size ( ) > bound ) { remove ( firstKey ( ) ) ; } } else if ( range ( ) > bound ) { K first = firstKey ( ) ; Set < V > values = get ( first ) ; // Arbitrarily remove the first key in the set . Note that the set // is guaranteed to be non - empty , so...
public class Counters { /** * Saves a Counter as one key / count pair per line separated by white space to * the given OutputStream . Does not close the stream . */ public static < E > void saveCounter ( Counter < E > c , OutputStream stream ) { } }
PrintStream out = new PrintStream ( stream ) ; for ( E key : c . keySet ( ) ) { out . println ( key + " " + c . getCount ( key ) ) ; }
public class Ifc4FactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public IfcInterceptorTypeEnum createIfcInterceptorTypeEnumFromString ( EDataType eDataType , String initialValue ) { } }
IfcInterceptorTypeEnum result = IfcInterceptorTypeEnum . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ;
public class UriTemplate { /** * Expand the URI template using the supplied values * @ param vars The values that will be used in the expansion * @ return the expanded URI as a String * @ throw VariableExpansionException * @ since 1.0 */ public String expand ( Map < String , Object > vars ) throws VariableExpan...
this . values = vars ; return expand ( ) ;
public class SchemaParser { /** * special method to build directly a TypeDefinitionRegistry from a Document * useful for Introspection = & gt ; IDL ( Document ) = & gt ; TypeDefinitionRegistry * @ param document containing type definitions * @ return the TypeDefinitionRegistry containing all type definitions from...
List < GraphQLError > errors = new ArrayList < > ( ) ; TypeDefinitionRegistry typeRegistry = new TypeDefinitionRegistry ( ) ; List < Definition > definitions = document . getDefinitions ( ) ; for ( Definition definition : definitions ) { if ( definition instanceof SDLDefinition ) { typeRegistry . add ( ( SDLDefinition ...
public class IdRef { /** * Fetch from datastore and cast to given childClazz ( no cache is performed ) * @ param anotherClazz the clazz to cast to * @ param < TT > The generic parameter of the child clazz * @ return the fetched entity */ public < TT > TT fetch ( Class < TT > anotherClazz ) { } }
return r . query ( anotherClazz ) . fetch ( this ) ;
public class HTMLBoxFactory { /** * Creates the box according to the HTML element . * @ param parent The box in the main box tree to be used as a parent box for the new box . * @ param e The element to be processed . * @ param viewport The viewport to be used for the new box . * @ param style The style of the e...
String name = e . getNodeName ( ) . toLowerCase ( ) ; if ( name . equals ( "object" ) ) return createSubtreeObject ( parent , e , viewport , style ) ; else if ( name . equals ( "img" ) ) return createSubtreeImg ( parent , e , viewport , style ) ; else if ( name . equals ( "a" ) && e . hasAttribute ( "name" ) && ( e . g...
public class Compositions { /** * Composes a predicate with a function ( predicate ° function ) . * @ param < T > the function parameter type * @ param < R > the predicate parameter type , the function result type * @ param predicate the predicate to be composed * @ param function the function to be composed ...
dbc . precondition ( predicate != null , "cannot compose function with a null predicate" ) ; dbc . precondition ( function != null , "cannot compose predicate with a null function" ) ; return t -> predicate . test ( function . apply ( t ) ) ;
public class FileInStream { /** * Initializes the underlying block stream if necessary . This method must be called before * reading from mBlockInStream . */ private void updateStream ( ) throws IOException { } }
if ( mBlockInStream != null && mBlockInStream . remaining ( ) > 0 ) { // can still read from stream return ; } if ( mBlockInStream != null && mBlockInStream . remaining ( ) == 0 ) { // current stream is done closeBlockInStream ( mBlockInStream ) ; } /* Create a new stream to read from mPosition . */ // Calculate block ...
public class ServiceProviderFinder { /** * Finds any provider for a given service . * @ param klass service interface or class * @ return the first provider found , or null */ public static < T > T findAnyServiceProvider ( Class < T > klass ) { } }
ServiceLoader < T > loader = ServiceLoader . load ( klass ) ; Iterator < T > it = loader . iterator ( ) ; return it . hasNext ( ) ? it . next ( ) : null ;
public class AppServiceEnvironmentsInner { /** * Get metric definitions for a specific instance of a multi - role pool of an App Service Environment . * Get metric definitions for a specific instance of a multi - role pool of an App Service Environment . * ServiceResponse < PageImpl < ResourceMetricDefinitionInner ...
if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( name == null ) { throw new IllegalArgumentException ( "Parameter name is required and cannot be null." ) ; } if ( instance == null ) { throw new IllegalArgumentException ( "Pa...
public class Matrix4d { /** * Set the value of the matrix element at column 0 and row 2. * @ param m02 * the new value * @ return this */ public Matrix4d m02 ( double m02 ) { } }
this . m02 = m02 ; properties &= ~ PROPERTY_ORTHONORMAL ; if ( m02 != 0.0 ) properties &= ~ ( PROPERTY_IDENTITY | PROPERTY_PERSPECTIVE | PROPERTY_TRANSLATION ) ; return this ;
public class DateTime { /** * < code > . google . privacy . dlp . v2 . DateTime . TimeZone time _ zone = 4 ; < / code > */ public com . google . privacy . dlp . v2 . DateTime . TimeZone getTimeZone ( ) { } }
return timeZone_ == null ? com . google . privacy . dlp . v2 . DateTime . TimeZone . getDefaultInstance ( ) : timeZone_ ;
public class Utils { /** * Parse JDBC connection URL The only supported format of the URL is : * jdbc : tsfile : / / localhost : 6667/ */ public static TsfileConnectionParams parseURL ( String url , Properties info ) throws TsfileURLException { } }
TsfileConnectionParams params = new TsfileConnectionParams ( url ) ; if ( url . trim ( ) . equalsIgnoreCase ( TsfileJDBCConfig . TSFILE_URL_PREFIX ) ) { return params ; } Pattern pattern = Pattern . compile ( "([^;]*):([^;]*)/" ) ; Matcher matcher = pattern . matcher ( url . substring ( TsfileJDBCConfig . TSFILE_URL_PR...
public class SetValueRecord { /** * Replaces the specified data value with the new value saved in the log * record . The method pins a buffer to the specified block , calls setInt to * restore the saved value ( using a dummy LSN ) , and unpins the buffer . * @ see LogRecord # redo ( Transaction ) */ @ Override pu...
Buffer buff = tx . bufferMgr ( ) . pin ( blk ) ; buff . setVal ( offset , newVal , tx . getTransactionNumber ( ) , null ) ; tx . bufferMgr ( ) . unpin ( buff ) ;
public class DBCreationProperties { /** * { @ inheritDoc } */ public void writeExternal ( ObjectOutput out ) throws IOException { } }
byte [ ] buf = serverUrl . getBytes ( Constants . DEFAULT_ENCODING ) ; out . writeInt ( buf . length ) ; out . write ( buf ) ; buf = dbScriptPath . getBytes ( Constants . DEFAULT_ENCODING ) ; out . writeInt ( buf . length ) ; out . write ( buf ) ; buf = dbUserName . getBytes ( Constants . DEFAULT_ENCODING ) ; out . wri...
public class HttpChannelPool { /** * Attempts to acquire a { @ link Channel } which is matched by the specified condition immediately . * @ return { @ code null } is there ' s no match left in the pool and thus a new connection has to be * requested via { @ link # acquireLater ( SessionProtocol , PoolKey , ClientCo...
PooledChannel ch ; switch ( desiredProtocol ) { case HTTP : ch = acquireNowExact ( key , SessionProtocol . H2C ) ; if ( ch == null ) { ch = acquireNowExact ( key , SessionProtocol . H1C ) ; } break ; case HTTPS : ch = acquireNowExact ( key , SessionProtocol . H2 ) ; if ( ch == null ) { ch = acquireNowExact ( key , Sess...
public class CPDefinitionServiceBaseImpl { /** * Sets the trash entry local service . * @ param trashEntryLocalService the trash entry local service */ public void setTrashEntryLocalService ( com . liferay . trash . kernel . service . TrashEntryLocalService trashEntryLocalService ) { } }
this . trashEntryLocalService = trashEntryLocalService ;
public class XPath { /** * Attempts at decomposing the { @ code XPath } expression into the conjunction of a number of * property restrictions and ( optionally ) a remaining { @ code XPath } expression . More in * details , the method tries to transform the condition in the following form : * { @ code p1 in restr...
"rawtypes" , "unchecked" } ) @ Nullable public final XPath decompose ( final Map < URI , Set < Object > > restrictions ) { Preconditions . checkNotNull ( restrictions ) ; try { Expr remaining = null ; for ( final Expr node : toCNF ( this . support . expr ) ) { URI property = null ; Object valueOrRange = null ; if ( nod...
public class OWLObjectAllValuesFromImpl_CustomFieldSerializer { /** * Serializes the content of the object into the * { @ link com . google . gwt . user . client . rpc . SerializationStreamWriter } . * @ param streamWriter the { @ link com . google . gwt . user . client . rpc . SerializationStreamWriter } to write ...
serialize ( streamWriter , instance ) ;
public class JavaParser { /** * src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 518:1 : packageOrTypeName : Identifier ( ' . ' Identifier ) * ; */ public final void packageOrTypeName ( ) throws RecognitionException { } }
int packageOrTypeName_StartIndex = input . index ( ) ; try { if ( state . backtracking > 0 && alreadyParsedRule ( input , 47 ) ) { return ; } // src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 519:5 : ( Identifier ( ' . ' Identifier ) * ) // src / main / resources / org / drool...
public class EmailConverter { /** * Helpers */ private static void buildEmailFromMimeMessage ( @ Nonnull final EmailPopulatingBuilder builder , @ Nonnull final ParsedMimeMessageComponents parsed ) { } }
checkNonEmptyArgument ( builder , "emailBuilder" ) ; checkNonEmptyArgument ( parsed , "parsedMimeMessageComponents" ) ; if ( parsed . getFromAddress ( ) != null ) { builder . from ( parsed . getFromAddress ( ) . getPersonal ( ) , parsed . getFromAddress ( ) . getAddress ( ) ) ; } if ( parsed . getReplyToAddresses ( ) !...
public class MapWebOperation { /** * Parse request to make Map . Try application / json , url params , application / x - www - form - urlencoded , multipart / form - data * @ param request * @ return */ public static Map < String , Object > convertRequestToMap ( HttpServletRequest request ) throws IOException , Ser...
Map < String , Object > inParams = new HashMap < String , Object > ( ) ; // GET String q = request . getQueryString ( ) ; if ( ! org . s1 . objects . Objects . isNullOrEmpty ( q ) ) { String [ ] arr = q . split ( "&" ) ; for ( String it : arr ) { String nv [ ] = it . split ( "=" ) ; String n = nv [ 0 ] ; String v = nul...
public class CmsWorkplace { /** * Checks the lock state of the resource and locks it if the autolock feature is enabled . < p > * @ param resource the resource name which is checked * @ param type indicates the mode { @ link CmsLockType # EXCLUSIVE } or { @ link CmsLockType # TEMPORARY } * @ throws CmsException i...
CmsResource res = getCms ( ) . readResource ( resource , CmsResourceFilter . ALL ) ; CmsLock lock = getCms ( ) . getLock ( res ) ; boolean lockable = lock . isLockableBy ( getCms ( ) . getRequestContext ( ) . getCurrentUser ( ) ) ; if ( OpenCms . getWorkplaceManager ( ) . autoLockResources ( ) ) { // autolock is enable...
public class KeyVaultClientBaseImpl { /** * List certificate issuers for a specified key vault . * The GetCertificateIssuers operation returns the set of certificate issuer resources in the specified key vault . This operation requires the certificates / manageissuers / getissuers permission . * @ param nextPageLin...
if ( nextPageLink == null ) { throw new IllegalArgumentException ( "Parameter nextPageLink is required and cannot be null." ) ; } String nextUrl = String . format ( "%s" , nextPageLink ) ; return service . getCertificateIssuersNext ( nextUrl , this . acceptLanguage ( ) , this . userAgent ( ) ) . flatMap ( new Func1 < R...
public class JobExecutionsRolloutConfigMarshaller { /** * Marshall the given parameter object . */ public void marshall ( JobExecutionsRolloutConfig jobExecutionsRolloutConfig , ProtocolMarshaller protocolMarshaller ) { } }
if ( jobExecutionsRolloutConfig == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( jobExecutionsRolloutConfig . getMaximumPerMinute ( ) , MAXIMUMPERMINUTE_BINDING ) ; protocolMarshaller . marshall ( jobExecutionsRolloutConfig . getExponentia...
public class AbstractHttpQuery { /** * Sends an HTTP reply to the client . * @ param status The status of the request ( e . g . 200 OK or 404 Not Found ) . * @ param buf The content of the reply to send . */ public void sendBuffer ( final HttpResponseStatus status , final ChannelBuffer buf , final String contentTyp...
if ( ! chan . isConnected ( ) ) { if ( stats != null ) { stats . markSendFailed ( ) ; } done ( ) ; return ; } response . headers ( ) . set ( HttpHeaders . Names . CONTENT_TYPE , contentType ) ; // TODO ( tsuna ) : Server , X - Backend , etc . headers . // only reset the status if we have the default status , otherwise ...
public class AbstractClassHierarchyMap { /** * This method registers the given { @ code element } for the given { @ code type } . Unlike a regular { @ link Map } this * method will also recursively put the given { @ code element } for all { @ link Class # getSuperclass ( ) super - classes } and * { @ link Class # g...
E old = this . classMap . get ( type ) ; putRecursive ( type , element , type ) ; return old ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EEnum getIfcSIPrefix ( ) { } }
if ( ifcSIPrefixEEnum == null ) { ifcSIPrefixEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 1056 ) ; } return ifcSIPrefixEEnum ;
public class FeatureCallCompiler { /** * / * @ Nullable */ protected ILocationData getLocationWithTypeArguments ( XAbstractFeatureCall call ) { } }
final ICompositeNode startNode = NodeModelUtils . getNode ( call ) ; if ( startNode != null ) { List < INode > resultNodes = Lists . newArrayList ( ) ; if ( call instanceof XFeatureCall ) { for ( INode child : startNode . getChildren ( ) ) { resultNodes . add ( child ) ; } } else if ( call instanceof XMemberFeatureCall...
public class Device { /** * The explicit permissions to provide to the container for the device . By default , the container has permissions * for < code > read < / code > , < code > write < / code > , and < code > mknod < / code > for the device . * @ param permissions * The explicit permissions to provide to th...
com . amazonaws . internal . SdkInternalList < String > permissionsCopy = new com . amazonaws . internal . SdkInternalList < String > ( permissions . length ) ; for ( DeviceCgroupPermission value : permissions ) { permissionsCopy . add ( value . toString ( ) ) ; } if ( getPermissions ( ) == null ) { setPermissions ( pe...
public class PrimitiveUtils { /** * Write integer . * @ param value the value * @ return the string */ public static String writeInteger ( Integer value ) { } }
if ( value == null ) return null ; return Integer . toString ( value ) ;
public class RestHttpClient { /** * 获取response String类型响应数据 * @ param is * @ param charset * @ return * @ throws IOException */ private static String getResponseStringData ( InputStream is , String charset ) throws IOException { } }
ByteArrayOutputStream respDataStream = new ByteArrayOutputStream ( ) ; String result ; try { byte [ ] b = new byte [ 8192 ] ; int len ; while ( true ) { len = is . read ( b ) ; if ( len <= 0 ) { is . close ( ) ; break ; } respDataStream . write ( b , 0 , len ) ; } result = respDataStream . toString ( charset ) ; } fina...
public class AbstractCcgChart { /** * Decodes the CCG parse which is the { @ code beamIndex } ' th parse in * the beam for the given span . * @ param spanStart * @ param spanEnd * @ param beamIndex * @ param parser * @ return */ public CcgParse decodeParseFromSpan ( int spanStart , int spanEnd , int beamInd...
DiscreteVariable syntaxVarType = parser . getSyntaxVarType ( ) ; ChartEntry entry = getChartEntriesForSpan ( spanStart , spanEnd ) [ beamIndex ] ; HeadedSyntacticCategory syntax = ( HeadedSyntacticCategory ) syntaxVarType . getValue ( entry . getHeadedSyntax ( ) ) ; if ( entry . isTerminal ( ) ) { List < String > termi...
public class MinioClient { /** * Returns meta data information of given object in given bucket . * < / p > < b > Example : < / b > < br > * < pre > { @ code ObjectStat objectStat = minioClient . statObject ( " my - bucketname " , " my - objectname " ) ; * System . out . println ( objectStat ) ; } < / pre > * @ ...
HttpResponse response = executeHead ( bucketName , objectName ) ; ResponseHeader header = response . header ( ) ; Map < String , List < String > > httpHeaders = response . httpHeaders ( ) ; ObjectStat objectStat = new ObjectStat ( bucketName , objectName , header , httpHeaders ) ; return objectStat ;
public class CommonAnnotateWithClauseGenerator { /** * Get solution from a covered segmentation using a WITH clause . * @ param queryData * @ param annoQueryData * @ param alternative * @ param islandsPolicy * @ param coveredName * @ param indent * @ return */ protected String getSolutionFromNearestSegWit...
TableAccessStrategy tas = createTableAccessStrategy ( ) ; String indent2 = indent + TABSTOP ; String indent3 = indent2 + TABSTOP ; List < Long > corpusList = queryData . getCorpusList ( ) ; StringBuilder sb = new StringBuilder ( ) ; sb . append ( indent ) . append ( "solutions AS\n" ) ; sb . append ( indent ) . append ...
public class Locations { /** * Creates a new { @ link com . google . common . io . OutputSupplier } that can provides { @ link java . io . OutputStream } for * the given location . * @ param location Location for the output . * @ return A { @ link com . google . common . io . OutputSupplier } . */ public static O...
return new OutputSupplier < OutputStream > ( ) { @ Override public OutputStream getOutput ( ) throws IOException { return location . getOutputStream ( ) ; } } ;
public class DateTimeValue { /** * Time ( ( Hour * 64 ) + Minutes ) * 64 + seconds */ protected static int parseTime ( StringBuilder sb ) throws XMLParsingException { } }
// hour int hour = Integer . parseInt ( sb . substring ( 0 , 2 ) ) ; sb . delete ( 0 , 2 ) ; checkCharacter ( sb , ':' ) ; // colon // minute int minutes = Integer . parseInt ( sb . substring ( 0 , 2 ) ) ; sb . delete ( 0 , 2 ) ; checkCharacter ( sb , ':' ) ; // colon // second int seconds = Integer . parseInt ( sb . s...
public class DssatCulFileInput { /** * DSSAT Cultivar Data input method for only inputing Cultivar file * @ param brMap The holder for BufferReader objects for all files * @ return result data holder object * @ throws java . io . IOException */ @ Override protected HashMap readFile ( HashMap brMap ) throws IOExce...
HashMap ret = new HashMap ( ) ; HashMap metaData = new HashMap ( ) ; ArrayList < HashMap > culArr = readCultivarData ( brMap , metaData ) ; // compressData ( sites ) ; ArrayList < HashMap > expArr = new ArrayList ( ) ; HashMap tmp = new HashMap ( ) ; HashMap tmp2 = new HashMap ( ) ; tmp . put ( jsonKey , tmp2 ) ; tmp2 ...
public class Lifecycle { /** * Wait for a period of time until the service starts . */ public boolean waitForActive ( long timeout ) { } }
LifecycleState state = getState ( ) ; if ( state . isActive ( ) ) { return true ; } else if ( state . isAfterActive ( ) ) { return false ; } // server / 1d2j long waitEnd = CurrentTime . getCurrentTimeActual ( ) + timeout ; synchronized ( this ) { while ( ( state = _state ) . isBeforeActive ( ) && CurrentTime . getCurr...
public class MethodWriterImpl { /** * { @ inheritDoc } */ @ Override protected void addNavDetailLink ( boolean link , Content liNav ) { } }
if ( link ) { liNav . addContent ( writer . getHyperLink ( SectionName . METHOD_DETAIL , contents . navMethod ) ) ; } else { liNav . addContent ( contents . navMethod ) ; }
public class WriteChannelConfiguration { /** * Returns a BigQuery Load Configuration for the given destination table and format . */ public static WriteChannelConfiguration of ( TableId destinationTable , FormatOptions format ) { } }
return newBuilder ( destinationTable ) . setFormatOptions ( format ) . build ( ) ;
public class BooleanList { /** * Returns whether any elements of this List match the provided predicate . * @ param filter * @ return */ public < E extends Exception > boolean anyMatch ( Try . BooleanPredicate < E > filter ) throws E { } }
return anyMatch ( 0 , size ( ) , filter ) ;