signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class RespondDecisionTaskCompletedRequest { /** * The list of decisions ( possibly empty ) made by the decider while processing this decision task . See the docs for * the < a > Decision < / a > structure for details . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Us...
if ( this . decisions == null ) { setDecisions ( new java . util . ArrayList < Decision > ( decisions . length ) ) ; } for ( Decision ele : decisions ) { this . decisions . add ( ele ) ; } return this ;
public class ExchangeRate { /** * Retrieves the exchange rates from the given currency to every supported currency . */ public static ExchangeRate retrieve ( String currency ) throws StripeException { } }
return retrieve ( currency , ( Map < String , Object > ) null , ( RequestOptions ) null ) ;
public class VirtualNetworkTapsInner { /** * Updates an VirtualNetworkTap tags . * @ param resourceGroupName The name of the resource group . * @ param tapName The name of the tap . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable for the request */ public O...
return updateTagsWithServiceResponseAsync ( resourceGroupName , tapName ) . map ( new Func1 < ServiceResponse < VirtualNetworkTapInner > , VirtualNetworkTapInner > ( ) { @ Override public VirtualNetworkTapInner call ( ServiceResponse < VirtualNetworkTapInner > response ) { return response . body ( ) ; } } ) ;
public class DocBookBuildUtilities { /** * Convert a DOM Document to a Formatted String representation . * @ param doc The DOM Document to be converted and formatted . * @ param xmlFormatProperties The XML Formatting Properties . * @ return The converted XML String representation . */ public static String convert...
return convertDocumentToFormattedString ( doc , xmlFormatProperties , true ) ;
public class ExtensionLoader { /** * 得到实例 * @ param alias 别名 * @ return 扩展实例 ( 已判断是否单例 ) */ public T getExtension ( String alias ) { } }
ExtensionClass < T > extensionClass = getExtensionClass ( alias ) ; if ( extensionClass == null ) { throw new SofaRpcRuntimeException ( "Not found extension of " + interfaceName + " named: \"" + alias + "\"!" ) ; } else { if ( extensible . singleton ( ) && factory != null ) { T t = factory . get ( alias ) ; if ( t == n...
public class GitFlowHotfixFinishMojo { /** * { @ inheritDoc } */ @ Override public void execute ( ) throws MojoExecutionException , MojoFailureException { } }
validateConfiguration ( preHotfixGoals , postHotfixGoals ) ; try { // check uncommitted changes checkUncommittedChanges ( ) ; String hotfixBranchName = null ; if ( settings . isInteractiveMode ( ) ) { hotfixBranchName = promptBranchName ( ) ; } else if ( StringUtils . isNotBlank ( hotfixVersion ) ) { final String branc...
public class CommerceDiscountLocalServiceBaseImpl { /** * Performs a dynamic query on the database and returns the matching rows . * @ param dynamicQuery the dynamic query * @ return the matching rows */ @ Override public < T > List < T > dynamicQuery ( DynamicQuery dynamicQuery ) { } }
return commerceDiscountPersistence . findWithDynamicQuery ( dynamicQuery ) ;
public class BitsUtil { /** * Compute the Hamming distance ( Size of symmetric difference ) , i . e . * { @ code cardinality ( a ^ b ) } . * @ param x First vector * @ param y Second vector * @ return Cardinality of symmetric difference */ public static int hammingDistance ( long [ ] x , long [ ] y ) { } }
final int lx = x . length , ly = y . length ; final int min = ( lx < ly ) ? lx : ly ; int i = 0 , h = 0 ; for ( ; i < min ; i ++ ) { h += Long . bitCount ( x [ i ] ^ y [ i ] ) ; } for ( ; i < lx ; i ++ ) { h += Long . bitCount ( x [ i ] ) ; } for ( ; i < ly ; i ++ ) { h += Long . bitCount ( y [ i ] ) ; } return h ;
public class FrameworkMethod { /** * Adds to { @ code errors } if this method : * < ul > * < li > is not public , or * < li > returns something other than void , or * < li > is static ( given { @ code isStatic is false } ) , or * < li > is not static ( given { @ code isStatic is true } ) . * < / ul > */ pub...
if ( isStatic ( ) != isStatic ) { String state = isStatic ? "should" : "should not" ; errors . add ( new Exception ( "Method " + method . getName ( ) + "() " + state + " be static" ) ) ; } if ( ! isPublic ( ) ) { errors . add ( new Exception ( "Method " + method . getName ( ) + "() should be public" ) ) ; } if ( method...
public class Animation { /** * Start the animation . * Changing properties once the animation is running can have unpredictable * results . * @ param engine * The global animation engine . * @ return { @ code this } , so you can save the instance at the end of a chain * of calls . */ public Animation start ...
( ( GVRAnimation ) getAnimation ( ) ) . start ( engine ) ; mIsRunning = true ; return this ;
public class EllipseClustersIntoHexagonalGrid { /** * Selects the closest node with the assumption that it ' s along the side of the grid . */ static NodeInfo selectClosestSide ( NodeInfo a , NodeInfo b ) { } }
double ratio = 1.7321 ; NodeInfo best = null ; double bestDistance = Double . MAX_VALUE ; Edge bestEdgeA = null ; Edge bestEdgeB = null ; for ( int i = 0 ; i < a . edges . size ; i ++ ) { NodeInfo aa = a . edges . get ( i ) . target ; if ( aa . marked ) continue ; for ( int j = 0 ; j < b . edges . size ; j ++ ) { NodeI...
public class TagMagix { /** * get ( and cache ) a regex Pattern for locating an HTML attribute value * within a particular tag . if found , the pattern will have the attribute * value in group 1 . Note that the attribute value may contain surrounding * apostrophe ( ' ) or quote ( " ) characters . * @ param tagN...
String key = tagName + " " + attrName ; Pattern pc = pcPatterns . get ( key ) ; if ( pc == null ) { String tagPatString = "<\\s*" + tagName + "\\s+[^>]*\\b" + attrName + "\\s*=\\s*(" + ANY_ATTR_VALUE + ")(?:\\s|>)?" ; pc = Pattern . compile ( tagPatString , Pattern . CASE_INSENSITIVE ) ; pcPatterns . put ( key , pc ...
public class BaseRichMediaStudioCreative { /** * Gets the artworkType value for this BaseRichMediaStudioCreative . * @ return artworkType * The type of artwork used in this creative . This attribute is * readonly . */ public com . google . api . ads . admanager . axis . v201902 . RichMediaStudioCreativeArtworkType ...
return artworkType ;
public class MapTileCollisionComputer { /** * CHECKSTYLE IGNORE LINE : ExecutableStatementCount | CyclomaticComplexity | NPathComplexity */ private CollisionResult computeCollision ( CollisionCategory category , double sh , double sv , double sx , double sy , int max ) { } }
double x = sh ; double y = sv ; double ox = x ; double oy = y ; boolean collX = false ; boolean collY = false ; CollisionResult last = null ; for ( int cur = 0 ; cur < max ; cur ++ ) { CollisionResult current = computeCollision ( category , ox , oy , x , y ) ; if ( current != null ) { last = current ; if ( current . ge...
public class JsonWriter { /** * Write a UTF escape sequence using either an one or two - byte seqience . * @ param out the output * @ param charToEscape the character to escape . */ private static void escape ( OutputAccessor out , int charToEscape ) { } }
out . write ( '\\' ) ; out . write ( 'u' ) ; if ( charToEscape > 0xFF ) { int hi = ( charToEscape >> 8 ) & 0xFF ; out . write ( HEX_BYTES [ hi >> 4 ] ) ; out . write ( HEX_BYTES [ hi & 0xF ] ) ; charToEscape &= 0xFF ; } else { out . write ( ( byte ) '0' ) ; out . write ( ( byte ) '0' ) ; } // We know it ' s a control c...
public class DefaultContentHandler { /** * Sets the base directory . If the new base directory is different from * the current one and < code > autoDelete < / code > is true , the current * base directory ' s will be deleted . The new base directory need not exist * yet . If it doesn ' t exist , it and all parent...
if ( this . baseDir != null && this . baseDir != baseDir && autoDelete ) { rmDir ( this . baseDir ) ; } this . baseDir = baseDir ;
public class BranchFilterModule { /** * Get all topicrefs */ private List < Element > getTopicrefs ( final Element root ) { } }
final List < Element > res = new ArrayList < > ( ) ; final NodeList all = root . getElementsByTagName ( "*" ) ; for ( int i = 0 ; i < all . getLength ( ) ; i ++ ) { final Element elem = ( Element ) all . item ( i ) ; if ( MAP_TOPICREF . matches ( elem ) && isDitaFormat ( elem . getAttributeNode ( ATTRIBUTE_NAME_FORMAT ...
public class Metrics { /** * Measures the time taken for short tasks and the count of these tasks . * @ param name The base metric name * @ param tags MUST be an even number of arguments representing key / value pairs of tags . * @ return A new or existing timer . */ public static Timer timer ( String name , Stri...
return globalRegistry . timer ( name , tags ) ;
public class DescribeConfigurationAggregatorsRequest { /** * The name of the configuration aggregators . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setConfigurationAggregatorNames ( java . util . Collection ) } or * { @ link # withConfigurationAggregat...
if ( this . configurationAggregatorNames == null ) { setConfigurationAggregatorNames ( new com . amazonaws . internal . SdkInternalList < String > ( configurationAggregatorNames . length ) ) ; } for ( String ele : configurationAggregatorNames ) { this . configurationAggregatorNames . add ( ele ) ; } return this ;
public class AWSShieldClient { /** * Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period . * @ param listAttacksRequest * @ return Result of the ListAttacks operation returned by the service . * @ throws InternalErrorException * Exception that indicates that a problem occurred wi...
request = beforeClientExecution ( request ) ; return executeListAttacks ( request ) ;
public class MatrixVectorReader { /** * Reads in the size of an array matrix . Skips initial comments */ public MatrixSize readArraySize ( ) throws IOException { } }
int numRows = getInt ( ) , numColumns = getInt ( ) ; return new MatrixSize ( numRows , numColumns , numRows * numColumns ) ;
public class JMSService { /** * Creates a message . * @ param text text data * @ param sender Sender client ID . * @ param recipients Comma - delimited list of recipient client IDs * @ return Message * @ throws JMSException if error thrown from creation of object message */ public Message createTextMessage ( ...
return decorateMessage ( getSession ( ) . createTextMessage ( text ) , sender , recipients ) ;
public class BaseFunction { /** * Returns a { @ link DoubleVector } that is equal to { @ code c - v } . This * method is used instead of the one in { @ link VectorMath } so that a { @ link * DenseDynamicMagnitudeVector } can be used to represent the difference . * This vector type is optimized for when many calls...
DoubleVector newCentroid = new DenseDynamicMagnitudeVector ( c . length ( ) ) ; // Special case sparse double vectors so that we don ' t incure a possibly // log n get operation for each zero value , as that ' s the common case // for CompactSparseVector . if ( v instanceof SparseDoubleVector ) { SparseDoubleVector sv ...
public class ResetSnapshotAttributeRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional * parameters to enable operation dry - run . */ @ Override public Request < ResetSnapshotAttributeRequest > getDryRunRequest ( ) { } }
Request < ResetSnapshotAttributeRequest > request = new ResetSnapshotAttributeRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ;
public class UsersModule { /** * Actions */ public Promise < Void > editName ( final int uid , final String name ) { } }
return getUsersStorage ( ) . getValueAsync ( uid ) . map ( User :: getAccessHash ) . flatMap ( aLong -> api ( new RequestEditUserLocalName ( uid , aLong , name ) ) ) . flatMap ( responseSeq -> updates ( ) . applyUpdate ( responseSeq . getSeq ( ) , responseSeq . getState ( ) , new UpdateUserLocalNameChanged ( uid , name...
public class CmsHtmlImportDialog { /** * This function fills the < code > { @ link CmsHtmlImport } < / code > Object based on * the values in the import / export configuration file . < p > */ protected void fillHtmlImport ( ) { } }
CmsExtendedHtmlImportDefault extimport = OpenCms . getImportExportManager ( ) . getExtendedHtmlImportDefault ( ) ; m_htmlimport . setDestinationDir ( extimport . getDestinationDir ( ) ) ; m_htmlimport . setInputDir ( extimport . getInputDir ( ) ) ; m_htmlimport . setDownloadGallery ( extimport . getDownloadGallery ( ) ...
public class SearchPlaces { /** * Usage : java twitter4j . examples . geo . SearchPlaces [ ip address ] or [ latitude ] [ longitude ] * @ param args message */ public static void main ( String [ ] args ) { } }
if ( args . length < 1 ) { System . out . println ( "Usage: java twitter4j.examples.geo.SearchPlaces [ip address] or [latitude] [longitude]" ) ; System . exit ( - 1 ) ; } try { Twitter twitter = new TwitterFactory ( ) . getInstance ( ) ; GeoQuery query ; if ( args . length == 2 ) { query = new GeoQuery ( new GeoLocatio...
public class PmiModuleConfig { /** * Add PmiDataInfo for a statistic ( WebSphere internal use only ) */ public synchronized void addData ( PmiDataInfo info ) { } }
if ( info != null ) perfData . put ( new Integer ( info . getId ( ) ) , info ) ; // System . out . println ( " & & & & & Adding " + info . getName ( ) + " to " + this . getShortName ( ) ) ; // System . out . println ( " perfData . values ( ) = " + perfData . values ( ) ) ;
public class LookoutSubscriber { /** * create RpcServerLookoutModel * @ param request * @ param response * @ return */ private RpcServerLookoutModel createServerMetricsModel ( SofaRequest request , SofaResponse response ) { } }
RpcServerLookoutModel rpcServerMetricsModel = new RpcServerLookoutModel ( ) ; RpcInternalContext context = RpcInternalContext . getContext ( ) ; String app = request . getTargetAppName ( ) ; String service = request . getTargetServiceUniqueName ( ) ; String method = request . getMethodName ( ) ; String protocol = getSt...
public class Favicon { /** * Loads the icon from the file system once we get a reference to Vert . x * @ param yoke * @ param mount */ @ Override public Middleware init ( @ NotNull final Yoke yoke , @ NotNull final String mount ) { } }
try { super . init ( yoke , mount ) ; if ( path == null ) { icon = new Icon ( Utils . readResourceToBuffer ( getClass ( ) , "favicon.ico" ) ) ; } else { icon = new Icon ( fileSystem ( ) . readFileBlocking ( path ) ) ; } } catch ( Exception e ) { throw new RuntimeException ( e ) ; } return this ;
public class JSONConverter { /** * serialize a Map ( as Struct ) * @ param map Map to serialize * @ param sb * @ param serializeQueryByColumns * @ param done * @ throws ConverterException */ private void _serializeMap ( PageContext pc , Set test , Map map , StringBuilder sb , boolean serializeQueryByColumns ,...
sb . append ( goIn ( ) ) ; sb . append ( "{" ) ; Iterator it = map . keySet ( ) . iterator ( ) ; boolean doIt = false ; while ( it . hasNext ( ) ) { Object key = it . next ( ) ; if ( doIt ) sb . append ( ',' ) ; doIt = true ; sb . append ( StringUtil . escapeJS ( key . toString ( ) , '"' , charsetEncoder ) ) ; sb . app...
public class ClassStats { /** * 参考 sun . jvm . hotspot . oops . ObjectHistogramElement */ private String getInternalName ( Klass k ) { } }
ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; klass . printValueOn ( new PrintStream ( bos ) ) ; // ' * ' is used to denote VM internal klasses . return "* " + bos . toString ( ) ;
public class Message { /** * Removes the subject with the given language from the message . * @ param language the language of the subject which is to be removed * @ return true if a subject was removed and false if it was not . */ public boolean removeSubject ( String language ) { } }
language = determineLanguage ( language ) ; for ( Subject subject : subjects ) { if ( language . equals ( subject . language ) ) { return subjects . remove ( subject ) ; } } return false ;
public class Node { /** * Frees all the slots for a topology . * @ param topId the topology to free slots for * @ param cluster the cluster to update */ public void freeTopology ( String topId , Cluster cluster ) { } }
Set < WorkerSlot > slots = _topIdToUsedSlots . get ( topId ) ; if ( slots == null || slots . isEmpty ( ) ) return ; for ( WorkerSlot ws : slots ) { cluster . freeSlot ( ws ) ; if ( _isAlive ) { _freeSlots . add ( ws ) ; } } _topIdToUsedSlots . remove ( topId ) ;
public class Document { void replaceC4Document ( C4Document c4doc ) { } }
synchronized ( lock ) { final C4Document oldDoc = this . c4doc ; this . c4doc = c4doc ; if ( oldDoc != this . c4doc ) { if ( this . c4doc != null ) { this . c4doc . retain ( ) ; } if ( oldDoc != null ) { oldDoc . release ( ) ; // oldDoc should be retained . } } }
public class RedisInner { /** * Export data from the redis cache to blobs in a container . * @ param resourceGroupName The name of the resource group . * @ param name The name of the Redis cache . * @ param parameters Parameters for Redis export operation . * @ param serviceCallback the async ServiceCallback to...
return ServiceFuture . fromResponse ( exportDataWithServiceResponseAsync ( resourceGroupName , name , parameters ) , serviceCallback ) ;
public class HarrisFast { /** * 是否为8邻域中的极大值 * @ param hmap * @ param x * @ param y * @ return */ private boolean isSpatialMaxima ( float [ ] [ ] hmap , int x , int y ) { } }
int n = 8 ; int [ ] dx = new int [ ] { - 1 , 0 , 1 , 1 , 1 , 0 , - 1 , - 1 } ; int [ ] dy = new int [ ] { - 1 , - 1 , - 1 , 0 , 1 , 1 , 1 , 0 } ; double w = hmap [ x ] [ y ] ; for ( int i = 0 ; i < n ; i ++ ) { double wk = hmap [ x + dx [ i ] ] [ y + dy [ i ] ] ; if ( wk >= w ) return false ; } return true ;
public class ProjectManager { /** * DEPRECATED . use membership . delete ( ) instead . */ @ Deprecated public void deleteProjectMembership ( Membership membership ) throws RedmineException { } }
transport . deleteObject ( Membership . class , membership . getId ( ) . toString ( ) ) ;
public class Utils { /** * assignable index ; */ private static void quickSort ( /* @ non _ null @ */ double [ ] array , /* @ non _ null @ */ int [ ] index , int left , int right ) { } }
if ( left < right ) { int middle = partition ( array , index , left , right ) ; quickSort ( array , index , left , middle ) ; quickSort ( array , index , middle + 1 , right ) ; }
public class GetLifecyclePolicyPreviewResult { /** * The results of the lifecycle policy preview request . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setPreviewResults ( java . util . Collection ) } or { @ link # withPreviewResults ( java . util . Collec...
if ( this . previewResults == null ) { setPreviewResults ( new java . util . ArrayList < LifecyclePolicyPreviewResult > ( previewResults . length ) ) ; } for ( LifecyclePolicyPreviewResult ele : previewResults ) { this . previewResults . add ( ele ) ; } return this ;
public class ResourceadapterImpl { /** * Returns all < code > authentication - mechanism < / code > elements * @ return list of < code > authentication - mechanism < / code > */ public List < AuthenticationMechanism < Resourceadapter < T > > > getAllAuthenticationMechanism ( ) { } }
List < AuthenticationMechanism < Resourceadapter < T > > > list = new ArrayList < AuthenticationMechanism < Resourceadapter < T > > > ( ) ; List < Node > nodeList = childNode . get ( "authentication-mechanism" ) ; for ( Node node : nodeList ) { AuthenticationMechanism < Resourceadapter < T > > type = new Authentication...
public class Year { /** * Obtains an instance of { @ code Year } from a temporal object . * This obtains a year based on the specified temporal . * A { @ code TemporalAccessor } represents an arbitrary set of date and time information , * which this factory converts to an instance of { @ code Year } . * The con...
if ( temporal instanceof Year ) { return ( Year ) temporal ; } Objects . requireNonNull ( temporal , "temporal" ) ; try { if ( IsoChronology . INSTANCE . equals ( Chronology . from ( temporal ) ) == false ) { temporal = LocalDate . from ( temporal ) ; } return of ( temporal . get ( YEAR ) ) ; } catch ( DateTimeExceptio...
public class InterceptorTypeImpl { /** * Returns all < code > administered - object < / code > elements * @ return list of < code > administered - object < / code > */ public List < AdministeredObjectType < InterceptorType < T > > > getAllAdministeredObject ( ) { } }
List < AdministeredObjectType < InterceptorType < T > > > list = new ArrayList < AdministeredObjectType < InterceptorType < T > > > ( ) ; List < Node > nodeList = childNode . get ( "administered-object" ) ; for ( Node node : nodeList ) { AdministeredObjectType < InterceptorType < T > > type = new AdministeredObjectType...
public class Predicates { /** * Inverts the sense of the given child predicate . In SQL terms , this * surrounds the given predicate with " not ( . . . ) " . * @ param childPredicate * Predicate whose sense is to be inverted . */ public static Predicate not ( final Predicate childPredicate ) { } }
return new Predicate ( ) { public void init ( AbstractSqlCreator creator ) { childPredicate . init ( creator ) ; } public String toSql ( ) { return "not (" + childPredicate . toSql ( ) + ")" ; } } ;
public class ServiceLocator { /** * will get the ejb Remote home factory . clients need to cast to the type of * EJBHome they desire * @ return the EJB Home corresponding to the homeName */ public EJBHome getRemoteHome ( String jndiHomeName , Class className ) throws ServiceLocatorException { } }
EJBHome home = null ; try { Object objref = ic . lookup ( jndiHomeName ) ; Object obj = PortableRemoteObject . narrow ( objref , className ) ; home = ( EJBHome ) obj ; } catch ( NamingException ne ) { throw new ServiceLocatorException ( ne ) ; } catch ( Exception e ) { throw new ServiceLocatorException ( e ) ; } return...
public class AsyncWork { /** * Forward the result , error , or cancellation to the given AsyncWork . */ public final void listenInlineGenericError ( AsyncWork < T , Exception > sp ) { } }
listenInline ( new AsyncWorkListener < T , TError > ( ) { @ Override public void ready ( T result ) { sp . unblockSuccess ( result ) ; } @ Override public void error ( TError error ) { sp . unblockError ( error ) ; } @ Override public void cancelled ( CancelException event ) { sp . unblockCancel ( event ) ; } } ) ;
public class TypeSignature { /** * Returns internal signature of a parameter . */ private String getParamJVMSignature ( String paramsig ) throws SignatureException { } }
String paramJVMSig = "" ; String componentType = "" ; if ( paramsig != null ) { if ( paramsig . contains ( "[]" ) ) { // Gets array dimension . int endindex = paramsig . indexOf ( "[]" ) ; componentType = paramsig . substring ( 0 , endindex ) ; String dimensionString = paramsig . substring ( endindex ) ; if ( dimension...
public class URLExtensions { /** * Gets the filename from the given url object . * @ param url * the url * @ return the filename * @ throws UnsupportedEncodingException * the unsupported encoding exception */ public static String getFilename ( final URL url ) throws UnsupportedEncodingException { } }
if ( isJar ( url ) || isEar ( url ) ) { String fileName = URLDecoder . decode ( url . getFile ( ) , "UTF-8" ) ; fileName = fileName . substring ( 5 , fileName . indexOf ( "!" ) ) ; return fileName ; } return URLDecoder . decode ( url . getFile ( ) , "UTF-8" ) ;
public class ProtoParser { /** * com / dyuproject / protostuff / parser / ProtoParser . g : 641:1 : ignore _ block : LEFTCURLY ( ignore _ block _ body ) * RIGHTCURLY ; */ public final ProtoParser . ignore_block_return ignore_block ( ) throws RecognitionException { } }
ProtoParser . ignore_block_return retval = new ProtoParser . ignore_block_return ( ) ; retval . start = input . LT ( 1 ) ; Object root_0 = null ; Token LEFTCURLY166 = null ; Token RIGHTCURLY168 = null ; ProtoParser . ignore_block_body_return ignore_block_body167 = null ; Object LEFTCURLY166_tree = null ; Object RIGHTCU...
public class RaidNode { /** * check if the file is already raided by high priority codec */ public static boolean raidedByOtherHighPriCodec ( Configuration conf , FileStatus stat , Codec codec ) throws IOException { } }
for ( Codec tcodec : Codec . getCodecs ( ) ) { if ( tcodec . priority > codec . priority ) { if ( stat . isDir ( ) && ! tcodec . isDirRaid ) { // A directory could not be raided by a file level codec . continue ; } // check if high priority parity file exists . if ( ParityFilePair . parityExists ( stat , tcodec , conf ...
public class SpannerClient { /** * Commits a transaction . The request includes the mutations to be applied to rows in the * database . * < p > ` Commit ` might return an ` ABORTED ` error . This can occur at any time ; commonly , the cause is * conflicts with concurrent transactions . However , it can also happe...
CommitRequest request = CommitRequest . newBuilder ( ) . setSession ( session == null ? null : session . toString ( ) ) . setSingleUseTransaction ( singleUseTransaction ) . addAllMutations ( mutations ) . build ( ) ; return commit ( request ) ;
public class CommandLine { /** * Retrieve the first argument , if any , of this option . * @ param opt the name of the option * @ return Value of the argument if option is set , and has an argument , * otherwise null . */ public String getOptionValue ( String opt ) { } }
String [ ] values = getOptionValues ( opt ) ; return ( values == null ) ? null : values [ 0 ] ;
public class ImageSizeImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setVRESOL ( Integer newVRESOL ) { } }
Integer oldVRESOL = vresol ; vresol = newVRESOL ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . IMAGE_SIZE__VRESOL , oldVRESOL , vresol ) ) ;
public class AbstractErrorWebExceptionHandler { /** * Render a default HTML " Whitelabel Error Page " . * Useful when no other error view is available in the application . * @ param responseBody the error response being built * @ param error the error data as a map * @ return a Publisher of the { @ link ServerR...
StringBuilder builder = new StringBuilder ( ) ; Date timestamp = ( Date ) error . get ( "timestamp" ) ; Object message = error . get ( "message" ) ; Object trace = error . get ( "trace" ) ; Object requestId = error . get ( "requestId" ) ; builder . append ( "<html><body><h1>Whitelabel Error Page</h1>" ) . append ( "<p>...
public class Assert { /** * Asserts that two doubles are equal to within a positive delta . * If they are not , an { @ link AssertionError } is thrown with the given * message . If the expected value is infinity then the delta value is * ignored . NaNs are considered equal : * < code > assertEquals ( Double . N...
if ( doubleIsDifferent ( expected , actual , delta ) ) { failNotEquals ( message , Double . valueOf ( expected ) , Double . valueOf ( actual ) ) ; }
public class CredentialsRestConnection { /** * Gets the cookie for the Authorized connection to the Hub server . Returns the response code from the connection . */ @ Override public void authenticateWithBlackduck ( ) throws IntegrationException { } }
final URL securityUrl ; try { securityUrl = new URL ( getBaseUrl ( ) , "j_spring_security_check" ) ; } catch ( final MalformedURLException e ) { throw new IntegrationException ( "Error constructing the login URL: " + e . getMessage ( ) , e ) ; } if ( StringUtils . isNotBlank ( hubUsername ) && StringUtils . isNotBlank ...
public class BeanRepository { /** * Returns a new { @ code prototype } Bean , created by the given Function . It is possible to pass Parameter * to the Constructor of the Bean , and determine Dependencies with the { @ link BeanAccessor } . The Method * { @ link PostConstructible # onPostConstruct ( BeanRepository )...
final PrototypeProvider provider = new PrototypeProvider ( name , beans -> creator . create ( beans , param1 ) ) ; return provider . getBean ( this , dryRun ) ;
public class LargeList { /** * Delete values from list . * @ param values A list of values to delete */ public void remove ( List < Value > values ) { } }
Key [ ] keys = makeSubKeys ( values ) ; List < byte [ ] > digestList = getDigestList ( ) ; // int startIndex = digestList . IndexOf ( subKey . digest ) ; // int count = values . Count ; // foreach ( Key key in keys ) { // client . Delete ( this . policy , key ) ; // client . Operate ( this . policy , this . key , ListO...
public class I18nObject { /** * Gets the internationalized value for the supplied message key , using a file as additional information . * @ param aMessageKey A message key * @ param aFile Additional details for the message * @ return The internationalized message */ protected String getI18n ( final String aMessa...
return StringUtils . normalizeWS ( myBundle . get ( aMessageKey , aFile . getAbsolutePath ( ) ) ) ;
public class MeshArbiter { /** * Convenience wrapper for tests that don ' t care about unknown sites */ Map < Long , Long > reconfigureOnFault ( Set < Long > hsIds , FaultMessage fm ) { } }
return reconfigureOnFault ( hsIds , fm , new HashSet < Long > ( ) ) ;
public class CouchbaseClient { /** * ( non - Javadoc ) * @ see com . impetus . kundera . client . ClientBase # onPersist ( com . impetus . kundera . * metadata . model . EntityMetadata , java . lang . Object , java . lang . Object , * java . util . List ) */ @ Override protected void onPersist ( EntityMetadata en...
JsonDocument doc = handler . getDocumentFromEntity ( entityMetadata , entity , kunderaMetadata ) ; if ( ! isUpdate ) { bucket . insert ( doc ) ; LOGGER . debug ( "Inserted document with ID : " + doc . id ( ) + " in the " + bucket . name ( ) + " Bucket" ) ; } else { bucket . upsert ( doc ) ; LOGGER . debug ( "Updated do...
public class EthiopicDate { /** * Obtains a { @ code EthiopicDate } representing a date in the Ethiopic calendar * system from the epoch - day . * @ param epochDay the epoch day to convert based on 1970-01-01 ( ISO ) * @ return the date in Ethiopic calendar system , not null * @ throws DateTimeException if the ...
EPOCH_DAY . range ( ) . checkValidValue ( epochDay , EPOCH_DAY ) ; // validate outer bounds long ethiopicED = epochDay + EPOCH_DAY_DIFFERENCE ; int adjustment = 0 ; if ( ethiopicED < 0 ) { ethiopicED = ethiopicED + ( 1461L * ( 1_000_000L / 4 ) ) ; adjustment = - 1_000_000 ; } int prolepticYear = ( int ) ( ( ( ethiopicE...
public class Consortium { /** * Returns for given parameter < i > _ name < / i > the instance of class * { @ link Consortium } . * @ param _ name name to search in the cache * @ return instance of class { @ link Consortium } * @ throws CacheReloadException on error * @ see # getCache */ public static Consorti...
final Cache < String , Consortium > cache = InfinispanCache . get ( ) . < String , Consortium > getCache ( Consortium . IDCACHE ) ; if ( ! cache . containsKey ( _name ) && ! Consortium . getConsortiumFromDB ( Consortium . SQL_NAME , _name ) ) { cache . put ( _name , Consortium . NULL , 100 , TimeUnit . SECONDS ) ; } fi...
public class QueueListenerFactory { /** * Shut down the { @ link QueueListenerFactory } and close all open connections . Shared clients are not shut down by this * method . The instance should be discarded after calling shutdown . * @ param quietPeriod the quiet period as described in the documentation * @ param ...
// disable all resources to benefit from concurrent shutdowns for ( QueueListener < K , V > resource : resources ) { resource . disable ( ) ; } for ( QueueListener < K , V > resource : resources ) { resource . close ( timeout , timeUnit ) ; } resources . clear ( ) ; if ( ! sharedClient ) { disqueClient . shutdown ( qui...
public class ParsedPath { /** * Create a path that is expected to represent a path to any entry . * This is different from { @ link # toDirectory ( String ) } in that if the path ends with a delimiter ' / ' , * it is < b > not < / b > considered the same as if it didn ' t . * i . e . path / to would be a path wit...
final String path = rawPath . trim ( ) ; final boolean startsWithDelimiter = path . startsWith ( "/" ) ; // Keep the trailing delimiter . // This allows us to treat paths that end with a delimiter differently from paths that don ' t . // i . e . path / to would be a path with 2 elements : ' path ' and ' to ' , but // b...
public class PolicyTaskFutureImpl { /** * Invoked to indicate the task was successfully submitted . * @ param runOnSubmitter true if accepted to run immediately on the submitter ' s thread . False if accepted to the queue . */ @ Trivial final void accept ( boolean runOnSubmitter ) { } }
long time ; nsAcceptEnd = time = System . nanoTime ( ) ; if ( runOnSubmitter ) nsQueueEnd = time ; state . setSubmitted ( ) ;
public class ApiOvhDbaaslogs { /** * Returns details of specified archive * REST : GET / dbaas / logs / { serviceName } / output / graylog / stream / { streamId } / archive / { archiveId } * @ param serviceName [ required ] Service name * @ param streamId [ required ] Stream ID * @ param archiveId [ required ] ...
String qPath = "/dbaas/logs/{serviceName}/output/graylog/stream/{streamId}/archive/{archiveId}" ; StringBuilder sb = path ( qPath , serviceName , streamId , archiveId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhArchive . class ) ;
public class TableRef { /** * Adds a new item to the table . * < pre > * StorageRef storage = new StorageRef ( " your _ app _ key " , " your _ token " ) ; * TableRef tableRef = storage . table ( " your _ table " ) ; * LinkedHashMap & ltString , ItemAttribute > lhm = new LinkedHashMap & ltString , ItemAttribute ...
PostBodyBuilder pbb = new PostBodyBuilder ( context ) ; pbb . addObject ( "table" , this . name ) ; pbb . addObject ( "item" , item ) ; Rest r = new Rest ( context , RestType . PUTITEM , pbb , this ) ; r . onError = onError ; r . onItemSnapshot = onItemSnapshot ; context . processRest ( r ) ; return this ;
public class AWSCloudHSMClient { /** * This is documentation for < b > AWS CloudHSM Classic < / b > . For more information , see < a * href = " http : / / aws . amazon . com / cloudhsm / faqs - classic / " > AWS CloudHSM Classic FAQs < / a > , the < a * href = " http : / / docs . aws . amazon . com / cloudhsm / cla...
request = beforeClientExecution ( request ) ; return executeCreateLunaClient ( request ) ;
public class Node { /** * Creates an absolute link dest pointing to this . The signature of this method resembles the copy method . * @ param dest link to be created * @ return dest ; */ public T link ( T dest ) throws LinkException { } }
if ( ! getClass ( ) . equals ( dest . getClass ( ) ) ) { throw new IllegalArgumentException ( this . getClass ( ) + " vs " + dest . getClass ( ) ) ; } try { checkExists ( ) ; } catch ( IOException e ) { throw new LinkException ( this , e ) ; } // TODO : getRoot ( ) for ssh root . . . dest . mklink ( Filesystem . SEPARA...
public class HookParams { /** * Returns an unmodifiable multimap of the params , where the * key is the param type and the value is the actual instance */ public ListMultimap < Class < ? > , Object > getParamsForType ( ) { } }
ArrayListMultimap < Class < ? > , Object > retVal = ArrayListMultimap . create ( ) ; myParams . entries ( ) . forEach ( entry -> retVal . put ( entry . getKey ( ) , unwrapValue ( entry . getValue ( ) ) ) ) ; return Multimaps . unmodifiableListMultimap ( retVal ) ;
public class AdHocCommandManager { /** * Creates a new instance of a command to be used by a new execution request * @ param commandNode the command node that identifies it . * @ param sessionID the session id of this execution . * @ return the command instance to execute . * @ throws XMPPErrorException if ther...
AdHocCommandInfo commandInfo = commands . get ( commandNode ) ; LocalCommand command = commandInfo . getCommandInstance ( ) ; command . setSessionID ( sessionID ) ; command . setName ( commandInfo . getName ( ) ) ; command . setNode ( commandInfo . getNode ( ) ) ; return command ;
public class RegexMatcher { /** * Add expression . * @ param expr * @ param attach * @ param options * @ return */ public RegexMatcher addExpression ( String expr , T attach , Option ... options ) { } }
if ( nfa == null ) { nfa = parser . createNFA ( nfaScope , expr , attach , options ) ; } else { NFA < T > nfa2 = parser . createNFA ( nfaScope , expr , attach , options ) ; nfa = new NFA < > ( nfaScope , nfa , nfa2 ) ; } return this ;
public class JsonSerializationContext { /** * Trace an error and returns a corresponding exception . * @ param value current value * @ param message error message * @ return a { @ link JsonSerializationException } with the given message */ public JsonSerializationException traceError ( Object value , String messa...
getLogger ( ) . log ( Level . SEVERE , message ) ; return new JsonSerializationException ( message ) ;
public class DaoUnit { /** * 打印sql语句 , 它不会将sql执行 , 只是打印sql语句 。 * 仅供内部测试使用 * @ param daoUnitClass unit class * @ param map parameter map */ public static void logSql ( Class daoUnitClass , Map < String , Object > map ) { } }
XianConnection connection = PoolFactory . getPool ( ) . getMasterDatasource ( ) . getConnection ( ) . blockingGet ( ) ; DaoUnit daoUnit ; try { daoUnit = ( DaoUnit ) daoUnitClass . newInstance ( ) ; for ( SqlAction action : daoUnit . getActions ( ) ) { ( ( AbstractSqlAction ) action ) . setConnection ( connection ) ; (...
public class MapType { /** * Create a map block directly without per element validations . * Internal use by com . facebook . presto . spi . Block only . */ public static Block createMapBlockInternal ( TypeManager typeManager , Type keyType , int startOffset , int positionCount , Optional < boolean [ ] > mapIsNull , ...
// TypeManager caches types . Therefore , it is important that we go through it instead of coming up with the MethodHandles directly . // BIGINT is chosen arbitrarily here . Any type will do . MapType mapType = ( MapType ) typeManager . getType ( new TypeSignature ( StandardTypes . MAP , TypeSignatureParameter . of ( k...
public class EMatrixUtils { /** * Returns the standard deviations of columns . * @ param matrix The matrix of which the standard deviations of columns to be computed * @ return A double array of column standard deviations . */ public static double [ ] columnStdDevs ( RealMatrix matrix ) { } }
double [ ] retval = new double [ matrix . getColumnDimension ( ) ] ; for ( int i = 0 ; i < retval . length ; i ++ ) { retval [ i ] = new DescriptiveStatistics ( matrix . getColumn ( i ) ) . getStandardDeviation ( ) ; } return retval ;
public class JettySetting { /** * 创建HttpConfiguration * @ return HttpConfiguration */ public static HttpConfiguration createHttpConfiguration ( ) { } }
HttpConfiguration httpConfig = new HttpConfiguration ( ) ; httpConfig . setSecurePort ( setting . getInt ( "secure-port" , "http" , 8443 ) ) ; httpConfig . setOutputBufferSize ( setting . getInt ( "output-buffersize" , "http" , 32768 ) ) ; httpConfig . setRequestHeaderSize ( setting . getInt ( "request-headersize" , "h...
public class AbstractDateCellConverterFactory { /** * 文字列をパースして対応するオブジェクトに変換する * @ param formatter フォーマッタ * @ param text パース対象の文字列 * @ return パースした結果 * @ throws ParseException */ protected T parseString ( final DateFormat formatter , final String text ) throws ParseException { } }
Date date = formatter . parse ( text ) ; return convertTypeValue ( date ) ;
public class Endpoint { /** * Convenience factory method to create a Endpoint object from a map of parameters * @ param client the bandwidth client configuration . * @ param domainId the domain id . * @ param params the request parameters . * @ return the created endpoint . * @ throws AppPlatformException API...
assert ( client != null && params != null ) ; final String endpointsUri = String . format ( client . getUserResourceUri ( BandwidthConstants . ENDPOINTS_URI_PATH ) , domainId ) ; final RestResponse response = client . post ( endpointsUri , params ) ; final JSONObject callObj = toJSONObject ( client . get ( response . g...
public class ApplicationsInner { /** * Lists all of the applications for the HDInsight cluster . * ServiceResponse < PageImpl < ApplicationInner > > * @ param resourceGroupName The name of the resource group . * ServiceResponse < PageImpl < ApplicationInner > > * @ param clusterName The name of the cluster . * @ ...
if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( cluster...
public class AmazonEC2Client { /** * Modifies the ID format for the specified resource on a per - region basis . You can specify that resources should * receive longer IDs ( 17 - character IDs ) when they are created . * This request can only be used to modify longer ID settings for resource types that are within t...
request = beforeClientExecution ( request ) ; return executeModifyIdFormat ( request ) ;
public class MeterRegistry { /** * Only used by { @ link Timer # builder ( String ) } . * @ param id The identifier for this timer . * @ param distributionStatisticConfig Configuration that governs how distribution statistics are computed . * @ return A new or existing timer . */ Timer timer ( Meter . Id id , Dis...
return registerMeterIfNecessary ( Timer . class , id , distributionStatisticConfig , ( id2 , filteredConfig ) -> { Meter . Id withUnit = id2 . withBaseUnit ( getBaseTimeUnitStr ( ) ) ; return newTimer ( withUnit , filteredConfig . merge ( defaultHistogramConfig ( ) ) , pauseDetectorOverride ) ; } , NoopTimer :: new ) ;
public class NodeSetDTM { /** * Deletes the component at the specified index . Each component in * this vector with an index greater or equal to the specified * index is shifted downward to have an index one smaller than * the value it had previously . * @ param i The index of the node to be removed . * @ thr...
if ( ! m_mutable ) throw new RuntimeException ( XSLMessages . createXPATHMessage ( XPATHErrorResources . ER_NODESETDTM_NOT_MUTABLE , null ) ) ; // " This NodeSetDTM is not mutable ! " ) ; super . removeElementAt ( i ) ;
public class Locale { /** * Returns a < code > Locale < / code > constructed from the given * < code > language < / code > , < code > country < / code > and * < code > variant < / code > . If the same < code > Locale < / code > instance * is available in the cache , then that instance is * returned . Otherwise ...
return getInstance ( language , "" , country , variant , null ) ;
public class EventServiceImpl { /** * Collects all non - local registrations and returns them as a { @ link OnJoinRegistrationOperation } . * @ return the on join operation containing all non - local registrations */ private OnJoinRegistrationOperation getOnJoinRegistrationOperation ( ) { } }
Collection < Registration > registrations = new LinkedList < Registration > ( ) ; for ( EventServiceSegment segment : segments . values ( ) ) { segment . collectRemoteRegistrations ( registrations ) ; } return registrations . isEmpty ( ) ? null : new OnJoinRegistrationOperation ( registrations ) ;
public class CommonOps_DSCC { /** * Computes the inverse permutation vector * @ param original Original permutation vector * @ param inverse It ' s inverse */ public static void permutationInverse ( int [ ] original , int [ ] inverse , int length ) { } }
for ( int i = 0 ; i < length ; i ++ ) { inverse [ original [ i ] ] = i ; }
public class AbstractEventSerializer { /** * Indicates whether the CloudTrail log has more events to read . * @ return < code > true < / code > if the log contains more events ; < code > false < / code > otherwise . * @ throws IOException if the log could not be opened or accessed . */ public boolean hasNextEvent (...
/* In Fasterxml parser , hasNextEvent will consume next token . So do not call it multiple times . */ JsonToken nextToken = jsonParser . nextToken ( ) ; return nextToken == JsonToken . START_OBJECT || nextToken == JsonToken . START_ARRAY ;
public class MercatorProjection { /** * Converts a latitude coordinate ( in degrees ) to a pixel Y coordinate at a certain map size . * @ param latitude the latitude coordinate that should be converted . * @ param mapSize precomputed size of map . * @ return the pixel Y coordinate of the latitude value . */ publi...
double sinLatitude = Math . sin ( latitude * ( Math . PI / 180 ) ) ; // FIXME improve this formula so that it works correctly without the clipping double pixelY = ( 0.5 - Math . log ( ( 1 + sinLatitude ) / ( 1 - sinLatitude ) ) / ( 4 * Math . PI ) ) * mapSize ; return Math . min ( Math . max ( 0 , pixelY ) , mapSize ) ...
public class DbLoadAction { /** * 执行ddl的调用 , 处理逻辑比较简单 : 串行调用 * @ param context * @ param eventDatas */ private void doDdl ( DbLoadContext context , List < EventData > eventDatas ) { } }
for ( final EventData data : eventDatas ) { DataMedia dataMedia = ConfigHelper . findDataMedia ( context . getPipeline ( ) , data . getTableId ( ) ) ; final DbDialect dbDialect = dbDialectFactory . getDbDialect ( context . getIdentity ( ) . getPipelineId ( ) , ( DbMediaSource ) dataMedia . getSource ( ) ) ; Boolean ski...
public class Database { /** * Alias for { findUniqueOrNull ( rowMapper , SqlQuery . query ( sql , args ) ) } . */ public @ Nullable < T > T findUniqueOrNull ( @ NotNull RowMapper < T > rowMapper , @ NotNull @ SQL String sql , Object ... args ) { } }
return findUniqueOrNull ( rowMapper , SqlQuery . query ( sql , args ) ) ;
public class AsynchronousRequest { /** * For more info on gliders API go < a href = " https : / / wiki . guildwars2 . com / wiki / API : 2 / gliders " > here < / a > < br / > * Give user the access to { @ link Callback # onResponse ( Call , Response ) } and { @ link Callback # onFailure ( Call , Throwable ) } methods...
gw2API . getAllGliderIDs ( ) . enqueue ( callback ) ;
public class CounterStorage { /** * Enregistre le counter . * @ return Taille sérialisée non compressée du counter ( estimation pessimiste de l ' occupation mémoire ) * @ throws IOException Exception d ' entrée / sortie */ int writeToFile ( ) throws IOException { } }
if ( storageDisabled ) { return - 1 ; } final File file = getFile ( ) ; if ( counter . getRequestsCount ( ) == 0 && counter . getErrorsCount ( ) == 0 && ! file . exists ( ) ) { // s ' il n ' y a pas de requête , inutile d ' écrire des fichiers de compteurs vides // ( par exemple pour le compteur ejb s ' il n ' y a pa...
public class JsonApiRequestProcessor { /** * Determines whether the supplied HTTP request is considered a JSON - API request . * @ param requestContext The HTTP request * @ param acceptPlainJson Whether a plain JSON request should also be considered a JSON - API request * @ return < code > true < / code > if it i...
String method = requestContext . getMethod ( ) . toUpperCase ( ) ; boolean isPatch = method . equals ( HttpMethod . PATCH . toString ( ) ) ; boolean isPost = method . equals ( HttpMethod . POST . toString ( ) ) ; if ( isPatch || isPost ) { String contentType = requestContext . getRequestHeader ( HttpHeaders . HTTP_CONT...
public class WordUtils { /** * < p > Wraps a single line of text , identifying words by < code > wrapOn < / code > . < / p > * < p > Leading spaces on a new line are stripped . * Trailing spaces are not stripped . < / p > * < table border = " 1 " summary = " Wrap Results " > * < tr > * < th > input < / th > ...
if ( str == null ) { return null ; } if ( newLineStr == null ) { newLineStr = "\n" ; } if ( wrapLength < 1 ) { wrapLength = 1 ; } if ( StringUtils . isBlank ( wrapOn ) ) { wrapOn = " " ; } final RegExp patternToWrapOn = RegExp . compile ( wrapOn ) ; final int inputLineLength = str . length ( ) ; int offset = 0 ; final ...
public class JvmInnerTypeReferenceImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setOuter ( JvmParameterizedTypeReference newOuter ) { } }
if ( newOuter != outer ) { NotificationChain msgs = null ; if ( outer != null ) msgs = ( ( InternalEObject ) outer ) . eInverseRemove ( this , EOPPOSITE_FEATURE_BASE - TypesPackage . JVM_INNER_TYPE_REFERENCE__OUTER , null , msgs ) ; if ( newOuter != null ) msgs = ( ( InternalEObject ) newOuter ) . eInverseAdd ( this , ...
public class BuryingLogic { /** * implements the visitor to reset the opcode stack , and initialize if tracking collections * @ param classContext * the currently parsed java class */ @ Override public void visitClassContext ( ClassContext classContext ) { } }
try { stack = new OpcodeStack ( ) ; ifBlocks = new IfBlocks ( ) ; gotoBranchPCs = new BitSet ( ) ; casePositions = new BitSet ( ) ; super . visitClassContext ( classContext ) ; } finally { stack = null ; ifBlocks = null ; catchPCs = null ; gotoBranchPCs = null ; casePositions = null ; }
public class MtasToken { /** * Adds the positions . * @ param positions the positions */ final public void addPositions ( int [ ] positions ) { } }
if ( positions != null && positions . length > 0 ) { if ( tokenPosition == null ) { tokenPosition = new MtasPosition ( positions ) ; } else { tokenPosition . add ( positions ) ; } }
public class FedoraTypesUtils { /** * Given an internal reference node property , get the original name * @ param refPropertyName the reference node property name * @ return original property name of the reference property */ public static String getReferencePropertyOriginalName ( final String refPropertyName ) { }...
final int i = refPropertyName . lastIndexOf ( REFERENCE_PROPERTY_SUFFIX ) ; return i < 0 ? refPropertyName : refPropertyName . substring ( 0 , i ) ;
public class PathBuilder { /** * Create a new Simple path * @ param < A > * @ param path existing path * @ return property path */ @ SuppressWarnings ( "unchecked" ) public < A > SimplePath < A > get ( Path < A > path ) { } }
SimplePath < A > newPath = getSimple ( toString ( path ) , ( Class < A > ) path . getType ( ) ) ; return addMetadataOf ( newPath , path ) ;