signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class DescribeCacheSubnetGroupsResult { /** * A list of cache subnet groups . Each element in the list contains detailed information about one group .
* @ return A list of cache subnet groups . Each element in the list contains detailed information about one group . */
public java . util . List < CacheSubnetGr... | if ( cacheSubnetGroups == null ) { cacheSubnetGroups = new com . amazonaws . internal . SdkInternalList < CacheSubnetGroup > ( ) ; } return cacheSubnetGroups ; |
public class RepeatableInputStream { /** * This method can only be used while less data has been read from the input
* stream than fits into the buffer . The readLimit parameter is ignored
* entirely . */
public void mark ( int readlimit ) { } } | abortIfNeeded ( ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( "Input stream marked at " + bytesReadPastMark + " bytes" ) ; } if ( bytesReadPastMark <= bufferSize && buffer != null ) { /* * Clear buffer of already - read data to make more space . It ' s safe
* to cast bytesReadPastMark to an int because it is kn... |
public class Regex { /** * Checks whether the given string matches the regular expression .
* @ param string
* the string to be matched against the regular expression
* @ return
* < code > true < / code > if the string matches the regular expression ,
* < code > false < / code > otherwise . */
public boolean ... | Matcher matcher = pattern . matcher ( string ) ; boolean result = matcher . matches ( ) ; return result ; |
public class PatchHandler { /** * Update a resource with Sparql - Update and build an HTTP response
* @ param res the resource
* @ return the Response builder */
public ResponseBuilder updateResource ( final Resource res ) { } } | final String baseUrl = getBaseUrl ( ) ; final String identifier = baseUrl + req . getPartition ( ) + req . getPath ( ) + ( ACL . equals ( req . getExt ( ) ) ? "?ext=acl" : "" ) ; if ( isNull ( sparqlUpdate ) ) { throw new WebApplicationException ( "Missing Sparql-Update body" , BAD_REQUEST ) ; } final Session session =... |
public class JavacParser { /** * Return type tag of basic type represented by token ,
* NONE if token is not a basic type identifier . */
static TypeTag typetag ( TokenKind token ) { } } | switch ( token ) { case BYTE : return TypeTag . BYTE ; case CHAR : return TypeTag . CHAR ; case SHORT : return TypeTag . SHORT ; case INT : return TypeTag . INT ; case LONG : return TypeTag . LONG ; case FLOAT : return TypeTag . FLOAT ; case DOUBLE : return TypeTag . DOUBLE ; case BOOLEAN : return TypeTag . BOOLEAN ; d... |
public class ClientBuilder { /** * Returns a newly - created client which implements the specified { @ code clientType } , based on the
* properties of this builder .
* @ throws IllegalArgumentException if the scheme of the { @ code uri } specified in
* { @ link # ClientBuilder ( String ) } or the specified { @ c... | requireNonNull ( clientType , "clientType" ) ; return factory . newClient ( uri , clientType , buildOptions ( ) ) ; |
public class InternalXbaseParser { /** * InternalXbase . g : 1925:1 : ruleQualifiedNameInStaticImport : ( ( ( rule _ _ QualifiedNameInStaticImport _ _ Group _ _ 0 ) ) ( ( rule _ _ QualifiedNameInStaticImport _ _ Group _ _ 0 ) * ) ) ; */
public final void ruleQualifiedNameInStaticImport ( ) throws RecognitionException {... | int stackSize = keepStackSize ( ) ; try { // InternalXbase . g : 1929:2 : ( ( ( ( rule _ _ QualifiedNameInStaticImport _ _ Group _ _ 0 ) ) ( ( rule _ _ QualifiedNameInStaticImport _ _ Group _ _ 0 ) * ) ) )
// InternalXbase . g : 1930:2 : ( ( ( rule _ _ QualifiedNameInStaticImport _ _ Group _ _ 0 ) ) ( ( rule _ _ Qualif... |
public class CmsToolManager { /** * Sets the base tool path . < p >
* @ param wp the workplace object
* @ param baseToolPath the base tool path to set */
public void setBaseToolPath ( CmsWorkplace wp , String baseToolPath ) { } } | // use last used base if param empty
if ( CmsStringUtil . isEmpty ( baseToolPath ) || baseToolPath . trim ( ) . equals ( "null" ) ) { baseToolPath = getBaseToolPath ( wp ) ; } baseToolPath = repairPath ( wp , baseToolPath ) ; // set it
CmsToolUserData userData = getUserData ( wp ) ; userData . setBaseTool ( userData . ... |
public class ParamBuilder { /** * Called to generate code that writes the out params for array type */
protected void writeArrayOutParamsToProxy ( VariableElement param , MethodSpec . Builder methodBuilder ) { } } | methodBuilder . beginControlFlow ( "if (" + param . getSimpleName ( ) + " == null)" ) ; methodBuilder . addStatement ( "data.writeInt(-1)" ) ; methodBuilder . endControlFlow ( ) ; methodBuilder . beginControlFlow ( "else" ) ; methodBuilder . addStatement ( "data.writeInt(" + param . getSimpleName ( ) + ".length)" ) ; m... |
public class GitRepo { /** * Checks out a branch for a project .
* @ param project - a Git project
* @ param branch - branch to check out */
void checkout ( File project , String branch ) { } } | try { String currentBranch = currentBranch ( project ) ; if ( currentBranch . equals ( branch ) ) { log . info ( "Won't check out the same branch. Skipping" ) ; return ; } log . info ( "Checking out branch [" + branch + "]" ) ; checkoutBranch ( project , branch ) ; log . info ( "Successfully checked out the branch [" +... |
public class CreateDocumentationVersionRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateDocumentationVersionRequest createDocumentationVersionRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createDocumentationVersionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createDocumentationVersionRequest . getRestApiId ( ) , RESTAPIID_BINDING ) ; protocolMarshaller . marshall ( createDocumentationVersionRequest . getDoc... |
public class ContactsApi { /** * Get alliance contacts ( asynchronously ) Return contacts of an alliance - - -
* This route is cached for up to 300 seconds SSO Scope :
* esi - alliances . read _ contacts . v1
* @ param allianceId
* An EVE alliance ID ( required )
* @ param datasource
* The server name you w... | com . squareup . okhttp . Call call = getAlliancesAllianceIdContactsValidateBeforeCall ( allianceId , datasource , ifNoneMatch , page , token , callback ) ; Type localVarReturnType = new TypeToken < List < AllianceContactsResponse > > ( ) { } . getType ( ) ; apiClient . executeAsync ( call , localVarReturnType , callba... |
public class Spies { /** * Monitors calls to a ternary function .
* @ param < R > the function result type
* @ param < T1 > the function first parameter type
* @ param < T2 > the function second parameter type
* @ param < T3 > the function third parameter type
* @ param function the function that will be moni... | return new TernaryMonitoringFunction < T1 , T2 , T3 , R > ( function , calls ) ; |
public class Table { /** * Updates the provisioned throughput for this table . Setting the
* throughput for a table helps you manage performance and is part of the
* provisioned throughput feature of DynamoDB .
* The provisioned throughput values can be upgraded or downgraded based
* on the maximums and minimum... | UpdateTableRequest req = spec . getRequest ( ) ; req . setTableName ( getTableName ( ) ) ; UpdateTableResult result = client . updateTable ( req ) ; return this . tableDescription = result . getTableDescription ( ) ; |
public class OmsPitfiller { /** * Try to find a drainage direction for undefinite cell .
* < p > If the drainage direction is found
* then puts it in the dir matrix else keeps its index in is and js .
* < p > N . B . in the { @ link # setDirection ( double , int , int , int [ ] [ ] , double [ ] ) } method the dra... | int stillPitsCount ; currentPitsCount = pitsCount ; do { if ( pm . isCanceled ( ) ) { return - 1 ; } pitsCount = currentPitsCount ; currentPitsCount = 0 ; for ( int ip = 1 ; ip <= pitsCount ; ip ++ ) { dn [ ip ] = 0 ; } for ( int k = 1 ; k <= 8 ; k ++ ) { for ( int pitIndex = 1 ; pitIndex <= pitsCount ; pitIndex ++ ) {... |
public class IOUtils { /** * Writes the content provided by the given source input stream into the given destination output
* stream .
* < p > The input stream is guaranteed to be closed at the end of this method .
* < p > Sample use :
* < pre >
* static void copy ( InputStream inputStream , File file ) throw... | copy ( inputStream , outputStream , true ) ; |
public class Distance { /** * Estimates the weighted manhattan distance of two Associative Arrays .
* @ param a1
* @ param a2
* @ param columnWeights
* @ return */
public static double manhattanWeighted ( AssociativeArray a1 , AssociativeArray a2 , Map < Object , Double > columnWeights ) { } } | Map < Object , Double > columnDistances = columnDistances ( a1 , a2 , columnWeights . keySet ( ) ) ; double distance = 0.0 ; for ( Map . Entry < Object , Double > entry : columnDistances . entrySet ( ) ) { distance += Math . abs ( entry . getValue ( ) ) * columnWeights . get ( entry . getKey ( ) ) ; } return distance ; |
public class HttpUtil { /** * Parse given query string of the form < code > name1 = value1 & amp ; name2 = value2 < / code > and return it as { @ link Map }
* @ param queryQuery string
* @ returnParsed results
* @ throws UnsupportedEncodingException */
public static Map < String , String > queryToParams ( String ... | Map < String , String > query_pairs = new HashMap < String , String > ( ) ; String [ ] pairs = query . split ( "&" ) ; for ( String pair : pairs ) { int idx = pair . indexOf ( "=" ) ; query_pairs . put ( URLDecoder . decode ( pair . substring ( 0 , idx ) , "UTF-8" ) , URLDecoder . decode ( pair . substring ( idx + 1 ) ... |
public class GraphPath { /** * Remove the path ' s elements before the
* specified one which is starting
* at the specified point . The specified element will
* be removed .
* < p > This function removes until the < i > last occurence < / i >
* of the given object .
* @ param obj is the segment to remove
... | return removeUntil ( lastIndexOf ( obj , pt ) , true ) ; |
public class AnswerFunctionalInterfaces { /** * Construct an answer from a six parameter answer interface
* @ param answer answer interface
* @ param < T > return type
* @ param < A > input parameter 1 type
* @ param < B > input parameter 2 type
* @ param < C > input parameter 3 type
* @ param < D > input p... | return new Answer < T > ( ) { @ SuppressWarnings ( "unchecked" ) public T answer ( InvocationOnMock invocation ) throws Throwable { return answer . answer ( ( A ) invocation . getArgument ( 0 ) , ( B ) invocation . getArgument ( 1 ) , ( C ) invocation . getArgument ( 2 ) , ( D ) invocation . getArgument ( 3 ) , ( E ) i... |
public class CellModel { /** * Add a { @ link Formatter } which can be used to format an Object for rendering . Many
* { @ link Formatter } instances can be registered and will be executed in the order in
* which they were added . This method is provided as a service to CellModel subclasses ;
* the use of formatt... | if ( _formatters == null ) _formatters = new ArrayList /* < Formatter > */
( ) ; _formatters . add ( formatter ) ; |
public class PathClassLoader { /** * Helper for executing static methods on a Class
* @ param className String fully qualified class
* @ param methodName String method name
* @ param params List of method parameters
* @ return Object result
* @ throws ClassLoaderException exception */
public Object execStatic... | return execStaticMethod ( className , methodName , params , null ) ; |
public class Connection { /** * Getter for the Type of Connection
* @ return the connection Type . */
@ AuthType int getType ( ) { } } | switch ( strategy ) { case "auth0" : return AuthType . DATABASE ; case "sms" : case "email" : return AuthType . PASSWORDLESS ; case "ad" : case "adfs" : case "auth0-adldap" : case "custom" : case "google-apps" : case "google-openid" : case "ip" : case "mscrm" : case "office365" : case "pingfederate" : case "samlp" : ca... |
public class Example03_PatientResourceProvider { /** * Create / save a new resource */
@ Create public MethodOutcome create ( @ ResourceParam Patient thePatient ) { } } | // Give the resource the next sequential ID
long id = myNextId ++ ; thePatient . setId ( new IdDt ( id ) ) ; // Store the resource in memory
myPatients . put ( id , thePatient ) ; // Inform the server of the ID for the newly stored resource
return new MethodOutcome ( thePatient . getId ( ) ) ; |
public class CSTransformer { /** * Transform a Common Content CSNode entity into a Comment object that can be added to a Content Specification .
* @ param node The CSNode to be transformed .
* @ return The transformed Comment object . */
protected static CommonContent transformCommonContent ( CSNodeWrapper node ) {... | final CommonContent commonContent ; if ( node . getNodeType ( ) == CommonConstants . CS_NODE_COMMON_CONTENT ) { commonContent = new CommonContent ( node . getTitle ( ) ) ; } else { throw new IllegalArgumentException ( "The passed node is not a Comment" ) ; } commonContent . setUniqueId ( node . getId ( ) == null ? null... |
public class Dater { /** * Returns the given beginning clock and the given ending clock date array
* @ param beginClock
* @ param endClock
* @ return */
public Date [ ] asRange ( String beginClock , String endClock ) { } } | String thisDay = null ; return new Date [ ] { of ( ( thisDay = ( asDayText ( ) + " " ) ) + beginClock ) . get ( ) , of ( thisDay + endClock ) . get ( ) } ; |
public class BoxRequestUpdateSharedItem { /** * Gets the shared link access currently set for the item in the request .
* @ return shared link access for the item , or null if not set . */
public BoxSharedLink . Access getAccess ( ) { } } | return mBodyMap . containsKey ( BoxItem . FIELD_SHARED_LINK ) ? ( ( BoxSharedLink ) mBodyMap . get ( BoxItem . FIELD_SHARED_LINK ) ) . getAccess ( ) : null ; |
public class FileDownloader { /** * Set the location directory where files will be downloaded to
* @ param downloadDirectory The directory that the file will be downloaded to . */
private String localFilePath ( File downloadDirectory ) throws MojoFailureException { } } | if ( downloadDirectory . exists ( ) ) { if ( downloadDirectory . isDirectory ( ) ) { return downloadDirectory . getAbsolutePath ( ) ; } else { throw new MojoFailureException ( "'" + downloadDirectory . getAbsolutePath ( ) + "' is not a directory!" ) ; } } if ( downloadDirectory . mkdirs ( ) ) { return downloadDirectory... |
public class CookieUtils { /** * Build cookie generation context cookie .
* @ param cookie the cookie
* @ return the cookie generation context */
public static CookieGenerationContext buildCookieGenerationContext ( final TicketGrantingCookieProperties cookie ) { } } | val rememberMeMaxAge = ( int ) Beans . newDuration ( cookie . getRememberMeMaxAge ( ) ) . getSeconds ( ) ; val builder = buildCookieGenerationContextBuilder ( cookie ) ; return builder . rememberMeMaxAge ( rememberMeMaxAge ) . build ( ) ; |
public class Directory { /** * Unlinks the given name from the file it is linked to .
* @ throws IllegalArgumentException if { @ code name } is a reserved name such as " . " or no entry
* exists for the name */
public void unlink ( Name name ) { } } | DirectoryEntry entry = remove ( checkNotReserved ( name , "unlink" ) ) ; entry . file ( ) . unlinked ( ) ; |
public class LeaveOrganizationRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( LeaveOrganizationRequest leaveOrganizationRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( leaveOrganizationRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } |
public class JBBPDslBuilder { /** * Add named string field .
* @ return the builder instance , must not be null */
public JBBPDslBuilder String ( final String name ) { } } | final Item item = new Item ( BinType . STRING , name , this . byteOrder ) ; this . addItem ( item ) ; return this ; |
public class JShellTool { /** * Handle incoming snippet events - - return true on failure */
private boolean handleEvent ( SnippetEvent ste ) { } } | Snippet sn = ste . snippet ( ) ; if ( sn == null ) { debug ( "Event with null key: %s" , ste ) ; return false ; } List < Diag > diagnostics = state . diagnostics ( sn ) . collect ( toList ( ) ) ; String source = sn . source ( ) ; if ( ste . causeSnippet ( ) == null ) { // main event
for ( Diag d : diagnostics ) { hardm... |
public class TcpConnector { /** * Called when the new socket channel has successfully been registered
* with the nio dispatcher .
* @ param event the event
* @ throws InterruptedException the interrupted exception
* @ throws IOException Signals that an I / O exception has occurred . */
@ Handler ( channels = Se... | NioHandler handler = event . event ( ) . handler ( ) ; if ( ! ( handler instanceof TcpChannelImpl ) ) { return ; } if ( event . event ( ) . get ( ) == null ) { fire ( new Error ( event , "Registration failed, no NioDispatcher?" , new Throwable ( ) ) ) ; return ; } TcpChannelImpl channel = ( TcpChannelImpl ) handler ; c... |
public class DurationFormatUtils { /** * Parses a classic date format string into Tokens
* @ param format the format to parse , not null
* @ return array of Token [ ] */
static Token [ ] lexx ( final String format ) { } } | final ArrayList < Token > list = new ArrayList < > ( format . length ( ) ) ; boolean inLiteral = false ; // Although the buffer is stored in a Token , the Tokens are only
// used internally , so cannot be accessed by other threads
StringBuilder buffer = null ; Token previous = null ; for ( int i = 0 ; i < format . leng... |
public class BufferUtils { /** * Convert buffer to a Hex Summary String .
* @ param buffer the buffer to generate a hex byte summary from
* @ return A string showing a summary of the content in hex */
public static String toHexSummary ( ByteBuffer buffer ) { } } | if ( buffer == null ) return "null" ; StringBuilder buf = new StringBuilder ( ) ; buf . append ( "b[" ) . append ( buffer . remaining ( ) ) . append ( "]=" ) ; for ( int i = buffer . position ( ) ; i < buffer . limit ( ) ; i ++ ) { TypeUtils . toHex ( buffer . get ( i ) , buf ) ; if ( i == buffer . position ( ) + 24 &&... |
public class PackageDeclaration { /** * Sets the name of this package declaration .
* @ param name
* the name to set */
public void setName ( NameExpr name ) { } } | if ( this . name != null ) { updateReferences ( this . name ) ; } this . name = name ; setAsParentNodeOf ( name ) ; |
public class PortletFilterUtils { /** * Call doFilter and use the { @ link javax . portlet . PortletRequest # LIFECYCLE _ PHASE } attribute to figure out what
* type of request / response are in use and call the appropriate doFilter method on { @ link javax . portlet . filter . FilterChain }
* @ param request a { @... | final Object phase = request . getAttribute ( PortletRequest . LIFECYCLE_PHASE ) ; if ( PortletRequest . ACTION_PHASE . equals ( phase ) ) { chain . doFilter ( ( ActionRequest ) request , ( ActionResponse ) response ) ; } else if ( PortletRequest . EVENT_PHASE . equals ( phase ) ) { chain . doFilter ( ( EventRequest ) ... |
public class MathContext { /** * Get the smallest of the set of float values .
* @ param values the set of values
* @ return The greatest of the values */
public float min ( float ... values ) { } } | float min = Float . MAX_VALUE ; for ( int i = 0 ; i < values . length ; i ++ ) { if ( i == 0 || values [ i ] < min ) { min = values [ i ] ; } } return min ; |
public class EmbeddedLeaderService { /** * Callback from leader contenders when they stop their service . */
private void removeContender ( EmbeddedLeaderElectionService service ) { } } | synchronized ( lock ) { // if the service was not even started , simply do nothing
if ( ! service . running || shutdown ) { return ; } try { if ( ! allLeaderContenders . remove ( service ) ) { throw new IllegalStateException ( "leader election service does not belong to this service" ) ; } // stop the service
service .... |
public class Base64Utils { /** * Decode a base64 string into a byte array .
* @ param data the encoded data .
* @ return a byte array .
* @ see # fromBase64 ( String ) */
public static byte [ ] fromBase64 ( String data ) { } } | if ( data == null ) { return null ; } int len = data . length ( ) ; assert ( len % 4 ) == 0 ; if ( len == 0 ) { return new byte [ 0 ] ; } char [ ] chars = new char [ len ] ; data . getChars ( 0 , len , chars , 0 ) ; int olen = 3 * ( len / 4 ) ; if ( chars [ len - 2 ] == '=' ) { -- olen ; } if ( chars [ len - 1 ] == '='... |
public class PluginMonitoringFilter { /** * { @ inheritDoc } */
@ Override public void doFilter ( ServletRequest request , ServletResponse response , FilterChain chain ) throws IOException , ServletException { } } | if ( ! ( request instanceof HttpServletRequest ) ) { super . doFilter ( request , response , chain ) ; return ; } final HttpServletRequest httpRequest = ( HttpServletRequest ) request ; registerSessionIfNeeded ( httpRequest ) ; super . doFilter ( request , response , chain ) ; // si logout on prend en compte de suite l... |
public class AlertWindow { /** * Dismiss the */
public void dismiss ( ) { } } | if ( ! isShowing ) { Log . w ( "AlertWindow" , "AlertWindow is not displayed." ) ; } else if ( mContentView != null ) { isShowing = false ; mWindowManager . removeViewImmediate ( mContentView ) ; } |
public class AdminJoblogAction { private HtmlResponse asListHtml ( ) { } } | return asHtml ( path_AdminJoblog_AdminJoblogJsp ) . renderWith ( data -> { RenderDataUtil . register ( data , "jobLogItems" , jobLogService . getJobLogList ( jobLogPager ) ) ; // page navi
} ) . useForm ( SearchForm . class , setup -> { setup . setup ( form -> { copyBeanToBean ( jobLogPager , form , op -> op . include ... |
public class UIUtils { /** * to get nimbus client , we should reset ZK config */
public static Map resetZKConfig ( Map conf , String clusterName ) { } } | ClusterConfig nimbus = clusterConfig . get ( clusterName ) ; if ( nimbus == null ) return conf ; conf . put ( Config . STORM_ZOOKEEPER_ROOT , nimbus . getZkRoot ( ) ) ; conf . put ( Config . STORM_ZOOKEEPER_SERVERS , nimbus . getZkServers ( ) ) ; conf . put ( Config . STORM_ZOOKEEPER_PORT , nimbus . getZkPort ( ) ) ; r... |
public class ConfigValueHelper { /** * 检查字符串是否是正常值 , 不是则抛出异常
* @ param configKey 配置项
* @ param configValue 配置值
* @ throws SofaRpcRuntimeException 非法异常 */
protected static void checkNormal ( String configKey , String configValue ) throws SofaRpcRuntimeException { } } | checkPattern ( configKey , configValue , NORMAL , "only allow a-zA-Z0-9 '-' '_' '.'" ) ; |
public class DfState { /** * Primary match function , if this function returns true the algorithm
* has found a match . Calling it again will backtrack and find the next
* match .
* @ return a mapping was found */
boolean matchNext ( ) { } } | if ( numAtoms == 0 ) return false ; if ( sptr > 1 ) backtrack ( ) ; main : while ( sptr != 0 ) { final int bidx = currBondIdx ( ) ; if ( bidx == numBonds ) { // done
if ( numMapped == numAtoms ) return true ; // handle disconnected atoms
for ( IAtom qatom : query . atoms ( ) ) { if ( amap [ qatom . getIndex ( ) ] == UN... |
public class MongoServer { /** * Closes the server socket . No new clients are accepted afterwards . */
public void stopListenting ( ) { } } | if ( channel != null ) { log . info ( "closing server channel" ) ; channel . close ( ) . syncUninterruptibly ( ) ; channel = null ; } |
public class JsonServiceDocumentWriter { /** * Writes the name of the entity
* It is a MUST element .
* @ param jsonGenerator jsonGenerator
* @ param entity entity from the container */
private void writeName ( JsonGenerator jsonGenerator , Object entity ) throws IOException { } } | jsonGenerator . writeFieldName ( NAME ) ; if ( entity instanceof EntitySet ) { jsonGenerator . writeObject ( ( ( EntitySet ) entity ) . getName ( ) ) ; } else { jsonGenerator . writeObject ( ( ( Singleton ) entity ) . getName ( ) ) ; } |
public class DivOpAxis { /** * { @ inheritDoc } */
@ Override protected Type getReturnType ( final int mOp1 , final int mOp2 ) throws TTXPathException { } } | Type type1 ; Type type2 ; try { type1 = Type . getType ( mOp1 ) . getPrimitiveBaseType ( ) ; type2 = Type . getType ( mOp2 ) . getPrimitiveBaseType ( ) ; } catch ( final IllegalStateException e ) { throw new XPathError ( ErrorType . XPTY0004 ) ; } if ( type1 . isNumericType ( ) && type2 . isNumericType ( ) ) { // if bo... |
public class AnalysisJobBuilder { /** * Creates a filter job builder like the incoming filter job . Note that
* input ( columns and requirements ) will not be mapped since these depend on
* the context of the { @ link FilterJob } and may not be matched in the
* { @ link AnalysisJobBuilder } .
* @ param filterJo... | final AbstractBeanJobBuilder < ? , ? , ? > builder ; if ( componentJob instanceof FilterJob ) { builder = addFilter ( ( FilterBeanDescriptor < ? , ? > ) componentJob . getDescriptor ( ) ) ; } else if ( componentJob instanceof TransformerJob ) { builder = addTransformer ( ( TransformerBeanDescriptor < ? > ) componentJob... |
public class PluginConfigSupport { /** * Returns an array of all of the Plugins .
* @ return the array of Plugins . */
public Plugin [ ] getPlugins ( ) { } } | if ( mPluginContext != null ) { Collection c = mPluginContext . getPlugins ( ) . values ( ) ; if ( c != null ) { return ( Plugin [ ] ) c . toArray ( new Plugin [ c . size ( ) ] ) ; } } return new Plugin [ 0 ] ; |
public class MapStoredSessionProviderService { /** * ( non - Javadoc )
* @ see
* org . exoplatform . services . jcr . ext . app . SessionProviderService # getSessionProvider ( java . lang . Object */
public SessionProvider getSessionProvider ( Object key ) { } } | if ( providers . containsKey ( key ) ) { return providers . get ( key ) ; } else { throw new IllegalArgumentException ( "SessionProvider is not initialized" ) ; } |
public class MetricsSystem { /** * Resets all the counters to 0 for testing . */
public static void resetAllCounters ( ) { } } | for ( Map . Entry < String , Counter > entry : METRIC_REGISTRY . getCounters ( ) . entrySet ( ) ) { entry . getValue ( ) . dec ( entry . getValue ( ) . getCount ( ) ) ; } |
public class GoogleMapShape { /** * Set the z index
* @ param zIndex z index
* @ since 2.0.1 */
public void setZIndex ( float zIndex ) { } } | switch ( shapeType ) { case MARKER_OPTIONS : ( ( MarkerOptions ) shape ) . zIndex ( zIndex ) ; break ; case POLYLINE_OPTIONS : ( ( PolylineOptions ) shape ) . zIndex ( zIndex ) ; break ; case POLYGON_OPTIONS : ( ( PolygonOptions ) shape ) . zIndex ( zIndex ) ; break ; case MULTI_POLYLINE_OPTIONS : ( ( MultiPolylineOpti... |
public class CPDefinitionSpecificationOptionValueLocalServiceBaseImpl { /** * Returns the cp definition specification option value matching the UUID and group .
* @ param uuid the cp definition specification option value ' s UUID
* @ param groupId the primary key of the group
* @ return the matching cp definition... | return cpDefinitionSpecificationOptionValuePersistence . findByUUID_G ( uuid , groupId ) ; |
public class TextBox { /** * Create a new box from the same DOM node in the same context
* @ return the new TextBox */
public TextBox copyTextBox ( ) { } } | TextBox ret = new TextBox ( textNode , g , ctx ) ; ret . copyValues ( this ) ; return ret ; |
public class MediaApi { /** * Switch to monitor
* Switch to the monitor mode for the specified chat . The supervisor can & # 39 ; t send messages in this mode and only another supervisor can see that the monitoring supervisor joined the chat .
* @ param mediatype The media channel . ( required )
* @ param id The ... | ApiResponse < ApiSuccessResponse > resp = mediaSwicthToMonitorWithHttpInfo ( mediatype , id , mediaSwicthToCoachData ) ; return resp . getData ( ) ; |
public class SecondaryStatusTransitionMarshaller { /** * Marshall the given parameter object . */
public void marshall ( SecondaryStatusTransition secondaryStatusTransition , ProtocolMarshaller protocolMarshaller ) { } } | if ( secondaryStatusTransition == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( secondaryStatusTransition . getStatus ( ) , STATUS_BINDING ) ; protocolMarshaller . marshall ( secondaryStatusTransition . getStartTime ( ) , STARTTIME_BINDING... |
public class Reflection { /** * Utility method kept for backwards compatibility . Annotation checking used to be problematic on GWT .
* @ param field might be annotated . Can be null .
* @ param annotationType class of the annotation that the field is checked against .
* @ return true if field is annotated with t... | return field != null && field . isAnnotationPresent ( annotationType ) ; |
public class AbstractBpmnModelElementBuilder { /** * Finishes the building of an embedded sub - process .
* @ return the parent sub - process builder
* @ throws BpmnModelException if no parent sub - process can be found */
public SubProcessBuilder subProcessDone ( ) { } } | BpmnModelElementInstance lastSubProcess = element . getScope ( ) ; if ( lastSubProcess != null && lastSubProcess instanceof SubProcess ) { return ( ( SubProcess ) lastSubProcess ) . builder ( ) ; } else { throw new BpmnModelException ( "Unable to find a parent subProcess." ) ; } |
public class DividedDateTimeField { /** * Get the amount of scaled units from the specified time instant .
* @ param instant the time instant in millis to query .
* @ return the amount of scaled units extracted from the input . */
public int get ( long instant ) { } } | int value = getWrappedField ( ) . get ( instant ) ; if ( value >= 0 ) { return value / iDivisor ; } else { return ( ( value + 1 ) / iDivisor ) - 1 ; } |
public class CommandSupport { /** * Scans classpath to find commands and register them .
* Commands are instantiated using default constructor , but { @ link io . dropwizard . cli . EnvironmentCommand }
* must have constructor with { @ link io . dropwizard . Application } argument .
* @ param bootstrap bootstrap ... | final Stopwatch timer = context . stat ( ) . timer ( CommandTime ) ; final CommandClassVisitor visitor = new CommandClassVisitor ( bootstrap ) ; scanner . scan ( visitor ) ; context . registerCommands ( visitor . getCommands ( ) ) ; timer . stop ( ) ; return visitor . getCommandList ( ) ; |
public class ShowHelpDialogAction { /** * { @ inheritDoc } */
@ Override public void actionPerformed ( final ActionEvent e ) { } } | helpWindow . setLocationRelativeTo ( null ) ; try { UIManager . setLookAndFeel ( this . lookAndFeels . getLookAndFeelName ( ) ) ; } catch ( final Exception ex ) { log . log ( Level . SEVERE , ex . getLocalizedMessage ( ) , ex ) ; } SwingUtilities . updateComponentTreeUI ( helpWindow ) ; |
public class AzureAsyncOperation { /** * Creates AzureAsyncOperation from the given HTTP response .
* @ param serializerAdapter the adapter to use for deserialization
* @ param response the response
* @ return the async operation object
* @ throws CloudException if the deserialization fails or response contains... | AzureAsyncOperation asyncOperation = null ; String rawString = null ; if ( response . body ( ) != null ) { try { rawString = response . body ( ) . string ( ) ; asyncOperation = serializerAdapter . deserialize ( rawString , AzureAsyncOperation . class ) ; } catch ( IOException exception ) { // Exception will be handled ... |
public class RedisJobStore { /** * Store the given < code > { @ link org . quartz . Calendar } < / code > .
* @ param name The name of the calendar
* @ param calendar The < code > Calendar < / code > to be stored .
* @ param replaceExisting If < code > true < / code > , any < code > Calendar < / code > existing
... | doWithLock ( new LockCallbackWithoutResult ( ) { @ Override public Void doWithLock ( JedisCommands jedis ) throws JobPersistenceException { storage . storeCalendar ( name , calendar , replaceExisting , updateTriggers , jedis ) ; return null ; } } , "Could not store calendar." ) ; |
public class HashtableOnDisk { /** * This preps the reusable input buffer for reading object headers to reduce
* the number of physical reads necessary to read an object from disk . */
private void initReadBuffer ( long seek ) throws IOException { } } | if ( headerinbuf == null ) { int buflen = DWORDSIZE + // room for next
SWORDSIZE + // room for hash
DWORDSIZE + // room for old format : last update
// new format : validator expiration time ( VET )
DWORDSIZE + // room for old format : last reference
// new format : H - WORD - unused ; L - WORD - hashcode for cache val... |
public class Main { /** * Main entry point . Creates a debugger attached to a Rhino
* { @ link org . mozilla . javascript . tools . shell . Main } shell session . */
public static void main ( String [ ] args ) { } } | Main main = new Main ( "Rhino JavaScript Debugger" ) ; main . doBreak ( ) ; main . setExitAction ( new IProxy ( IProxy . EXIT_ACTION ) ) ; System . setIn ( main . getIn ( ) ) ; System . setOut ( main . getOut ( ) ) ; System . setErr ( main . getErr ( ) ) ; Global global = org . mozilla . javascript . tools . shell . Ma... |
public class DBCleanerTool { /** * Executes SQL scripts for finishing clean operations if needed .
* It can be adding indexes , constraints , removing temporary objects etc
* ( related to specific database ) or does nothing .
* < br >
* This method does not invoke commit or rollback on { @ link Connection } but... | try { execute ( committingScripts ) ; } catch ( SQLException e ) { throw new DBCleanException ( JDBCUtils . getFullMessage ( e ) , e ) ; } |
public class CommandRunner { /** * Executes < code > command < / code > and returns an execution wrapper that
* provides safe access to and management of the underlying streams of data .
* @ param command
* The command to execute
* @ return An execution wrapper that allows you to process the streams
* @ throw... | logger . debug ( "executing {} on {}" , command , sessionManager ) ; return new ChannelExecWrapper ( sessionManager . getSession ( ) , command , null , null , null ) ; |
public class HighLevelEncoder { /** * the " result " list . */
private void updateStateForChar ( State state , int index , Collection < State > result ) { } } | char ch = ( char ) ( text [ index ] & 0xFF ) ; boolean charInCurrentTable = CHAR_MAP [ state . getMode ( ) ] [ ch ] > 0 ; State stateNoBinary = null ; for ( int mode = 0 ; mode <= MODE_PUNCT ; mode ++ ) { int charInMode = CHAR_MAP [ mode ] [ ch ] ; if ( charInMode > 0 ) { if ( stateNoBinary == null ) { // Only create s... |
public class ThriftServer { /** * Runs the example with given { @ code args } .
* @ param args the argument list */
public static void main ( String [ ] args ) throws TimeoutException , InterruptedException { } } | // # thriftserverapi
Hello . FutureIface impl = new HelloImpl ( ) ; ListeningServer server = Thrift . server ( ) . serveIface ( "localhost:8080" , impl ) ; Await . ready ( server ) ; // # thriftserverapi |
public class AbstractGelfTransport { /** * { @ inheritDoc }
* < p > This implementation is backed by a { @ link java . util . concurrent . BlockingQueue } . When this method returns the
* message has been added to the { @ link java . util . concurrent . BlockingQueue } but has not been sent to the remote
* host y... | LOG . debug ( "Trying to send message: {}" , message ) ; return queue . offer ( message ) ; |
public class FileUtilities { /** * Save the data , represented as a byte array to a file
* @ param file The location / name of the file to be saved .
* @ param fileContents The data that is to be written to the file .
* @ throws IOException */
public static void saveFile ( final File file , byte [ ] fileContents ... | if ( file . isDirectory ( ) ) { throw new IOException ( "Unable to save file contents as a directory." ) ; } final FileOutputStream fos = new FileOutputStream ( file ) ; fos . write ( fileContents ) ; fos . flush ( ) ; fos . close ( ) ; |
public class DescribeNetworkInterfacesAction { /** * Describes one or more of your network interfaces .
* @ param endpoint Optional - Endpoint to which request will be sent .
* Default : " https : / / ec2 . amazonaws . com "
* @ param identity ID of the secret access key associated with your Amazon AWS or
* IAM... | @ Output ( RETURN_CODE ) , @ Output ( RETURN_RESULT ) , @ Output ( EXCEPTION ) } , responses = { @ Response ( text = SUCCESS , field = RETURN_CODE , value = ReturnCodes . SUCCESS , matchType = MatchType . COMPARE_EQUAL , responseType = ResponseType . RESOLVED ) , @ Response ( text = FAILURE , field = RETURN_CODE , valu... |
public class ESQuery { /** * Gets the aggregation .
* @ param expression
* the expression
* @ param entityMetadata
* the entity metadata
* @ return the aggregation */
private MetricsAggregationBuilder getMetricsAggregation ( Expression expression , EntityMetadata entityMetadata ) { } } | AggregateFunction function = ( AggregateFunction ) expression ; MetamodelImpl metaModel = ( MetamodelImpl ) kunderaMetadata . getApplicationMetadata ( ) . getMetamodel ( entityMetadata . getPersistenceUnit ( ) ) ; String jPAColumnName = KunderaCoreUtils . getJPAColumnName ( function . toParsedText ( ) , entityMetadata ... |
public class ConfigurationMetadataBuilder { /** * Visit a { @ link io . micronaut . context . annotation . ConfigurationProperties } class .
* @ param type The type of the { @ link io . micronaut . context . annotation . ConfigurationProperties }
* @ param description A description
* @ return This { @ link Config... | String path = buildTypePath ( type , type ) ; ConfigurationMetadata configurationMetadata = new ConfigurationMetadata ( ) ; configurationMetadata . name = NameUtils . hyphenate ( path , true ) ; configurationMetadata . type = getTypeString ( type ) ; configurationMetadata . description = description ; this . configurat... |
public class HelpFormatter { /** * Finds the next text wrap position after < code > startPos < / code > for the text
* in < code > text < / code > with the column width < code > width < / code > . The wrap
* point is the last position before startPos + width having a whitespace
* character ( space , \ n , \ r ) .... | // the line ends before the max wrap pos or a new line char found
int pos = sText . indexOf ( '\n' , nStartPos ) ; if ( pos != - 1 && pos <= nWidth ) { return pos + 1 ; } pos = sText . indexOf ( '\t' , nStartPos ) ; if ( pos != - 1 && pos <= nWidth ) { return pos + 1 ; } if ( nStartPos + nWidth >= sText . length ( ) ) ... |
public class StreamConduit { /** * Create the pump to handle process output .
* @ param is the < code > InputStream < / code > .
* @ param os the < code > OutputStream < / code > . */
private void createProcessOutputPump ( InputStream is , OutputStream os ) { } } | outputThread = createPump ( is , os , CLOSE_STDOUT_AND_STDERR_INSTREAMS_WHEN_EXHAUSTED ) ; |
public class PageableParameterBuilderPlugin { /** * Create a sort parameter .
* Override it if needed . Set a default value or further description for example .
* @ param context { @ link Pageable } parameter context
* @ return The sort parameter */
protected Parameter createSortParameter ( ParameterContext conte... | ModelReference stringModel = createModelRefFactory ( context ) . apply ( resolver . resolve ( List . class , String . class ) ) ; return new ParameterBuilder ( ) . name ( getSortName ( ) ) . parameterType ( SORT_TYPE ) . modelRef ( stringModel ) . allowMultiple ( true ) . description ( SORT_DESCRIPTION ) . build ( ) ; |
public class JRDF { /** * Tells whether the given resources are equivalent , with one given as a URI
* string .
* @ param u1
* first resource .
* @ param u2
* second resource , given as a URI string .
* @ return true if equivalent , false otherwise . */
public static boolean sameResource ( URIReference u1 ,... | return u1 . getURI ( ) . toString ( ) . equals ( u2 ) ; |
public class XmlUtil { /** * Convert XML { @ link Document } to its string representation .
* @ param document for conversion
* @ return - string representation of XML { @ link Document }
* @ throws Exception - if { @ link DocumentBuilder } is not initialized */
public static String xmlToString ( Document documen... | if ( transformer == null ) { throw new Exception ( "Transformer is null" ) ; } Source xmlSource = new DOMSource ( document ) ; StringWriter stringWriter = new StringWriter ( ) ; Result result = new StreamResult ( stringWriter ) ; transformer . transform ( xmlSource , result ) ; return stringWriter . toString ( ) ; |
public class MemorySegment { /** * Bulk copy method . Copies { @ code numBytes } bytes from this memory segment , starting at position
* { @ code offset } to the target memory segment . The bytes will be put into the target segment
* starting at position { @ code targetOffset } .
* @ param offset The position whe... | final byte [ ] thisHeapRef = this . heapMemory ; final byte [ ] otherHeapRef = target . heapMemory ; final long thisPointer = this . address + offset ; final long otherPointer = target . address + targetOffset ; if ( ( numBytes | offset | targetOffset ) >= 0 && thisPointer <= this . addressLimit - numBytes && otherPoin... |
public class HttpFields { /** * / * Write Extra HTTP headers . */
public void write ( Writer writer ) throws IOException { } } | synchronized ( writer ) { for ( int i = 0 ; i < _fields . size ( ) ; i ++ ) { Field field = ( Field ) _fields . get ( i ) ; if ( field != null ) field . write ( writer , _version ) ; } writer . write ( __CRLF ) ; } |
public class LSrtIntConsumerBuilder { /** * One of ways of creating builder . This is possibly the least verbose way where compiler should be able to guess the generic parameters . */
@ Nonnull public static LSrtIntConsumer srtIntConsumerFrom ( Consumer < LSrtIntConsumerBuilder > buildingFunction ) { } } | LSrtIntConsumerBuilder builder = new LSrtIntConsumerBuilder ( ) ; buildingFunction . accept ( builder ) ; return builder . build ( ) ; |
public class KuduDBDataHandler { /** * Checks for column .
* @ param schema
* the schema
* @ param columnName
* the column name
* @ return true , if successful */
public static boolean hasColumn ( Schema schema , String columnName ) { } } | try { schema . getColumn ( columnName ) ; return true ; } catch ( IllegalArgumentException e ) { return false ; } |
public class MultiVertexCentricQueryBuilder { /** * Query Construction */
@ Override public TitanMultiVertexQuery addVertex ( Vertex vertex ) { } } | assert vertex != null ; assert vertex instanceof InternalVertex ; vertices . add ( ( ( InternalVertex ) vertex ) . it ( ) ) ; return this ; |
public class ProjectAnalysisTaskContainerPopulator { /** * List of all objects to be injected in the picocontainer dedicated to computation stack .
* Does not contain the steps declared in { @ link ReportComputationSteps # orderedStepClasses ( ) } . */
private static List < Object > componentClasses ( ) { } } | return Arrays . asList ( PostProjectAnalysisTasksExecutor . class , ComputationStepExecutor . class , // messages / warnings
CeTaskMessagesImpl . class , FileSourceDataWarnings . class , // File System
new ComputationTempFolderProvider ( ) , DbMigrationModule . class , ReportModulesPath . class , MetricModule . class ,... |
public class HttpsHealthCheckClient { /** * Returns the specified HttpsHealthCheck resource . Gets a list of available HTTPS health checks
* by making a list ( ) request .
* < p > Sample code :
* < pre > < code >
* try ( HttpsHealthCheckClient httpsHealthCheckClient = HttpsHealthCheckClient . create ( ) ) {
*... | GetHttpsHealthCheckHttpRequest request = GetHttpsHealthCheckHttpRequest . newBuilder ( ) . setHttpsHealthCheck ( httpsHealthCheck ) . build ( ) ; return getHttpsHealthCheck ( request ) ; |
public class GenerateSubsystemsDefinition { /** * arg [ 0 ] - subsystems definition spec ( e . g logging : osgi , osgi : eager , deployment - scanner )
* arg [ 1 ] - subsytem profiles ( e . g . default , ha , full , full - ha )
* arg [ 2 ] - subsystem path prefix ( e . g . configuration / subsystems )
* arg [ 4 ]... | if ( args == null ) throw new IllegalArgumentException ( "Null args" ) ; if ( args . length < 4 ) throw new IllegalArgumentException ( "Invalid args: " + Arrays . asList ( args ) ) ; // spec : = subsystem : supplement
// definitions : = definitions , spec
int index = 0 ; if ( args [ index ] == null || args [ index ] . ... |
public class Connection { /** * Called when there is a failure reading or writing to this connection . We notify the
* connection manager and close ourselves down . */
public void networkFailure ( IOException ioe ) { } } | // if we ' re already closed , then something is seriously funny
if ( isClosed ( ) ) { log . warning ( "Failure reported on closed connection " + this + "." , new Exception ( ) ) ; return ; } // let the connection manager know we ' re hosed
_cmgr . connectionFailed ( this , ioe ) ; // and close our socket
closeSocket (... |
public class MessagingTransportFactory { /** * Creates a transport .
* @ param hostAddress a host address
* @ param port a listening port
* @ param clientStage a client stage
* @ param serverStage a server stage
* @ param numberOfTries a number of tries
* @ param retryTimeout a timeout for retry */
@ Overri... | try { TcpPortProvider tcpPortProvider = Tang . Factory . getTang ( ) . newInjector ( ) . getInstance ( TcpPortProvider . class ) ; return newInstance ( hostAddress , port , clientStage , serverStage , numberOfTries , retryTimeout , tcpPortProvider ) ; } catch ( final InjectionException e ) { throw new RuntimeException ... |
public class ZooKeeper { /** * The Asynchronous version of exists . The request doesn ' t actually until
* the asynchronous callback is called .
* @ see # exists ( String , boolean ) */
public void exists ( String path , boolean watch , StatCallback cb , Object ctx ) { } } | exists ( path , watch ? watchManager . defaultWatcher : null , cb , ctx ) ; |
public class ScoreBasedEvictionComparatorSupplier { /** * Calculates an eviction score .
* Entries with a higher eviction score should be evicted first . */
@ VisibleForTesting float calculateScore ( DiskStorage . Entry entry , long now ) { } } | long ageMs = now - entry . getTimestamp ( ) ; long bytes = entry . getSize ( ) ; return mAgeWeight * ageMs + mSizeWeight * bytes ; |
public class SimpleDOReader { /** * { @ inheritDoc } */
@ Override public boolean hasRelationship ( SubjectNode subject , PredicateNode predicate , ObjectNode object ) { } } | return m_obj . hasRelationship ( subject , predicate , object ) ; |
public class DisconfAspectJ { /** * 获取配置文件数据 , 只有开启disconf远程才会进行切面
* @ throws Throwable */
@ Around ( "anyPublicMethod() && @annotation(disconfFileItem)" ) public Object decideAccess ( ProceedingJoinPoint pjp , DisconfFileItem disconfFileItem ) throws Throwable { } } | if ( DisClientConfig . getInstance ( ) . ENABLE_DISCONF ) { MethodSignature ms = ( MethodSignature ) pjp . getSignature ( ) ; Method method = ms . getMethod ( ) ; // 文件名
Class < ? > cls = method . getDeclaringClass ( ) ; DisconfFile disconfFile = cls . getAnnotation ( DisconfFile . class ) ; // Field名
Field field = Met... |
public class WidgetsUtils { /** * This method detach a widget of its parent without doing a physical
* detach ( DOM manipulation ) . */
public static void doLogicalDetachFromHtmlPanel ( Widget w ) { } } | Widget parent = w . getParent ( ) ; if ( parent instanceof HTMLPanel ) { complexPanelGetChildren ( ( HTMLPanel ) parent ) . remove ( w ) ; widgetSetParent ( w , null ) ; } else { throw new IllegalStateException ( "You can only use this method to detach a child from an HTMLPanel" ) ; } |
public class appfwpolicy_lbvserver_binding { /** * Use this API to fetch appfwpolicy _ lbvserver _ binding resources of given name . */
public static appfwpolicy_lbvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { } } | appfwpolicy_lbvserver_binding obj = new appfwpolicy_lbvserver_binding ( ) ; obj . set_name ( name ) ; appfwpolicy_lbvserver_binding response [ ] = ( appfwpolicy_lbvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; |
public class Samples { /** * Starts the { @ code Samples } .
* @ param args command line args : expects the map files as multiple parameters
* with possible SRTM hgt folder as 1st argument . */
public static void main ( String [ ] args ) { } } | // Multithreaded map rendering
Parameters . NUMBER_OF_THREADS = 2 ; // Square frame buffer
Parameters . SQUARE_FRAME_BUFFER = false ; HillsRenderConfig hillsCfg = null ; File demFolder = getDemFolder ( args ) ; if ( demFolder != null ) { MemoryCachingHgtReaderTileSource tileSource = new MemoryCachingHgtReaderTileSource... |
public class RasterTilePainter { /** * The actual painting function . Draws the groups .
* @ param paintable
* A { @ link RasterTile } object .
* @ param group
* The group where the object resides in ( optional ) .
* @ param context
* A MapContext object , responsible for actual drawing . */
public void pai... | RasterTile tile = ( RasterTile ) paintable ; context . getRasterContext ( ) . drawImage ( tile . getStore ( ) . getLayer ( ) , tile . getCode ( ) . toString ( ) , tile . getUrl ( ) , tile . getBounds ( ) , new PictureStyle ( 1.0 ) ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.