signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class AsyncCompressedCubemapTexture { /** * The API */ static void loadTexture ( GVRContext gvrContext , CancelableCallback < GVRCompressedCubemapImage > callback , GVRAndroidResource resource , int priority , Map < String , Integer > map ) { } }
faceIndexMap = map ; AsyncManager . get ( ) . getScheduler ( ) . registerCallback ( gvrContext , TEXTURE_CLASS , callback , resource , priority ) ;
public class Assignment { /** * Creates an { @ code Assignment } mapping each variable in { @ code vars } to * the value at the corresponding index of { @ code values } . { @ code vars } * must be sorted in ascending order . This method does not copy either * { @ code vars } or { @ code values } ; the caller shou...
// Verify that the assignment is sorted and contains no duplicate values . for ( int i = 1 ; i < vars . length ; i ++ ) { Preconditions . checkArgument ( vars [ i - 1 ] < vars [ i ] , "Illegal assignment variable nums: %s %s" , vars [ i - 1 ] , vars [ i ] ) ; } return new Assignment ( vars , values ) ;
public class ST_Graph { /** * Create the nodes and edges tables from the input table containing * LINESTRINGs in the given column and using the given * tolerance , and potentially orienting edges by slope . * The tolerance value is used specify the side length of a square Envelope * around each node used to sna...
if ( tolerance < 0 ) { throw new IllegalArgumentException ( "Only positive tolerances are allowed." ) ; } final TableLocation tableName = TableUtilities . parseInputTable ( connection , inputTable ) ; final TableLocation nodesName = TableUtilities . suffixTableLocation ( tableName , NODES_SUFFIX ) ; final TableLocation...
public class ExclusiveGatewayActivityBehavior { /** * The default behaviour of BPMN , taking every outgoing sequence flow * ( where the condition evaluates to true ) , is not valid for an exclusive * gateway . * Hence , this behaviour is overriden and replaced by the correct behavior : * selecting the first seq...
LOG . leavingActivity ( execution . getActivity ( ) . getId ( ) ) ; PvmTransition outgoingSeqFlow = null ; String defaultSequenceFlow = ( String ) execution . getActivity ( ) . getProperty ( "default" ) ; Iterator < PvmTransition > transitionIterator = execution . getActivity ( ) . getOutgoingTransitions ( ) . iterator...
public class JsonConfig { /** * Registers exclusions for a target class . < br > * [ Java - & gt ; JSON ] * @ param target the class to use as key * @ param properties the properties to be excluded */ public void registerPropertyExclusions ( Class target , String [ ] properties ) { } }
if ( target != null && properties != null && properties . length > 0 ) { Set set = ( Set ) exclusionMap . get ( target ) ; if ( set == null ) { set = new HashSet ( ) ; exclusionMap . put ( target , set ) ; } for ( int i = 0 ; i < properties . length ; i ++ ) { if ( ! set . contains ( properties [ i ] ) ) { set . add ( ...
public class ForeignDestinationHandler { /** * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . impl . interfaces . DestinationHandler # getDefinition ( ) */ @ Override public BaseDestinationDefinition getDefinition ( ) { } }
if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getDefinition" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getDefinition" , _definition ) ; return _definition ;
public class IoTDiscoveryManager { /** * Try to find an XMPP IoT registry . * @ return the JID of a Thing Registry if one could be found , < code > null < / code > otherwise . * @ throws InterruptedException * @ throws NotConnectedException * @ throws XMPPErrorException * @ throws NoResponseException * @ se...
if ( preconfiguredRegistry != null ) { return preconfiguredRegistry ; } final XMPPConnection connection = connection ( ) ; ServiceDiscoveryManager sdm = ServiceDiscoveryManager . getInstanceFor ( connection ) ; List < DiscoverInfo > discoverInfos = sdm . findServicesDiscoverInfo ( Constants . IOT_DISCOVERY_NAMESPACE , ...
public class ByteBufUtil { /** * Writes the { @ link Xid } to the { @ link ByteBuf } . * @ param buf the buffer to write to . * @ param xid the { @ link Xid } to encode */ public static void writeXid ( ByteBuf buf , Xid xid ) { } }
if ( xid instanceof RemoteXid ) { ( ( RemoteXid ) xid ) . writeTo ( buf ) ; } else { ByteBufUtil . writeSignedVInt ( buf , xid . getFormatId ( ) ) ; writeArray ( buf , xid . getGlobalTransactionId ( ) ) ; writeArray ( buf , xid . getBranchQualifier ( ) ) ; }
public class DecoratingDynamicTypeBuilder { /** * { @ inheritDoc } */ public DynamicType . Builder < T > require ( Collection < DynamicType > auxiliaryTypes ) { } }
return new DecoratingDynamicTypeBuilder < T > ( instrumentedType , typeAttributeAppender , asmVisitorWrapper , classFileVersion , auxiliaryTypeNamingStrategy , annotationValueFilterFactory , annotationRetention , implementationContextFactory , methodGraphCompiler , typeValidation , classWriterStrategy , ignoredMethods ...
public class JarURLConnectionImpl { /** * Returns the Jar file referred by this { @ code URLConnection } * @ throws IOException * if an IO error occurs while connecting to the resource . */ private void findJarFile ( ) throws IOException { } }
if ( getUseCaches ( ) ) { synchronized ( jarCache ) { jarFile = jarCache . get ( jarFileURL ) ; } if ( jarFile == null ) { JarFile jar = openJarFile ( ) ; synchronized ( jarCache ) { jarFile = jarCache . get ( jarFileURL ) ; if ( jarFile == null ) { jarCache . put ( jarFileURL , jar ) ; jarFile = jar ; } else { jar . c...
public class ProductSegmentation { /** * Gets the operatingSystemVersionSegment value for this ProductSegmentation . * @ return operatingSystemVersionSegment * The operating system version segmentation . { @ link OperatingSystemVersionTargeting # isTargeted } * must be { @ code true } . * < p > This attribute is ...
return operatingSystemVersionSegment ;
public class StatusNotificationRequestHandler { /** * Gets the { @ code ComponentStatus } from a given { @ code ChargePointStatus } . * @ param status the { @ code ChargePointStatus } . * @ return the { @ code ComponentStatus } . */ private ComponentStatus getComponentStatusFromChargePointStatus ( Statusnotificatio...
String value = status . toString ( ) ; if ( Statusnotification . Status . UNAVAILABLE . toString ( ) . equalsIgnoreCase ( value ) ) { value = ComponentStatus . INOPERATIVE . value ( ) ; } return ComponentStatus . fromValue ( value ) ;
public class GeoLocation { /** * Returns true if field corresponding to fieldID is set ( has been assigned a value ) and false otherwise */ public boolean isSet ( _Fields field ) { } }
if ( field == null ) { throw new IllegalArgumentException ( ) ; } switch ( field ) { case ID : return isSetId ( ) ; case LATITUDE : return isSetLatitude ( ) ; case LONGITUDE : return isSetLongitude ( ) ; } throw new IllegalStateException ( ) ;
public class JSCSSMergeServlet { /** * / * ( non - Javadoc ) * @ see javax . servlet . http . HttpServlet # doGet ( javax . servlet . http . HttpServletRequest , javax . servlet . http . HttpServletResponse ) */ @ Override protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletExcept...
String url = this . getURL ( req ) ; LOGGER . debug ( "Started processing request : {}" , url ) ; List < String > resourcesToMerge = findResourcesToMerge ( req . getContextPath ( ) , url ) ; String extensionOrPath = detectExtension ( url ) ; // in case of non js / css files it null if ( extensionOrPath . isEmpty ( ) ) ...
public class AbstractComponentDependencyFactory { /** * Extract generic type from the list field . * @ param field the list field to inject * @ return the role of the components in the list * @ since 4.0M1 it ' s useless */ @ Deprecated protected Class < ? > getGenericRole ( Field field ) { } }
Type type = field . getGenericType ( ) ; if ( type instanceof ParameterizedType ) { ParameterizedType pType = ( ParameterizedType ) type ; Type [ ] types = pType . getActualTypeArguments ( ) ; if ( types . length > 0 && types [ types . length - 1 ] instanceof Class ) { return ( Class ) types [ types . length - 1 ] ; } ...
public class ComponentAPI { /** * 第三方平台对其所有API调用次数清零 * @ param component _ access _ token 调用接口凭据 * @ param component _ appid 第三方平台APPID * @ return result * @ since 2.8.2 */ public static BaseResult clear_quota ( String component_access_token , String component_appid ) { } }
String json = String . format ( "{\"component_appid\":\"%s\"}" , component_appid ) ; HttpUriRequest httpUriRequest = RequestBuilder . post ( ) . setHeader ( jsonHeader ) . setUri ( BASE_URI + "/cgi-bin/component/clear_quota" ) . addParameter ( "component_access_token" , API . componentAccessToken ( component_access_tok...
public class Futures { /** * Creates a new CompletableFuture that will timeout after the given amount of time . * @ param timeout The timeout for the future . * @ param executorService An ExecutorService that will be used to invoke the timeout on . * @ param < T > The Type argument for the CompletableFuture to cr...
return futureWithTimeout ( timeout , null , executorService ) ;
public class CmsAttributeHandler { /** * Adds a new choice option . < p > * @ param reference the reference view * @ param choicePath the choice attribute path */ private void addChoiceOption ( CmsAttributeValueView reference , List < String > choicePath ) { } }
String attributeChoice = choicePath . get ( 0 ) ; CmsType optionType = getAttributeType ( ) . getAttributeType ( attributeChoice ) ; int valueIndex = reference . getValueIndex ( ) + 1 ; CmsEntity choiceEntity = m_entityBackEnd . createEntity ( null , getAttributeType ( ) . getId ( ) ) ; CmsAttributeValueView valueWidge...
public class AddonManagerImpl { /** * Calculate the necessary request based in the list of installed addons for a given { @ link MutableAddonRepository } * @ param addonInfo * @ param repository * @ param installedAddons * @ return */ private AddonActionRequest createRequest ( final AddonInfo requestedAddonInfo...
final AddonActionRequest request ; AddonId addon = addonInfo . getAddon ( ) ; if ( installedAddons . containsKey ( addon ) ) { // Already contains the installed addon . Update ONLY if the version is SNAPSHOT and if it is the requested // addon if ( Versions . isSnapshot ( addon . getVersion ( ) ) && addonInfo . equals ...
public class StringHelper { /** * Get the last index of sSearch within sText . * @ param sText * The text to search in . May be < code > null < / code > . * @ param sSearch * The text to search for . May be < code > null < / code > . * @ return The last index of sSearch within sText or { @ value # STRING _ NO...
return sText != null && sSearch != null && sText . length ( ) >= sSearch . length ( ) ? sText . lastIndexOf ( sSearch ) : STRING_NOT_FOUND ;
public class CmsNewResourceTypeDialog { /** * Sets the module name . < p > * @ param moduleName to be set * @ param dialog dialog */ protected void setModule ( String moduleName , CmsBasicDialog dialog ) { } }
Window window = CmsVaadinUtils . getWindow ( dialog ) ; window . setContent ( this ) ; m_module = OpenCms . getModuleManager ( ) . getModule ( moduleName ) . clone ( ) ; CmsResourceInfo resInfo = new CmsResourceInfo ( m_module . getName ( ) , m_module . getNiceName ( ) , CmsModuleApp . Icons . RESINFO_ICON ) ; displayR...
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getIfcPhysicalComplexQuantity ( ) { } }
if ( ifcPhysicalComplexQuantityEClass == null ) { ifcPhysicalComplexQuantityEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 351 ) ; } return ifcPhysicalComplexQuantityEClass ;
public class HttpSupport { /** * Use to send raw data to HTTP client . * @ param contentType content type * @ param headers set of headers . * @ param status status . * @ return instance of output stream to send raw data directly to HTTP client . */ protected OutputStream outputStream ( String contentType , Map...
try { RequestContext . setControllerResponse ( new NopResponse ( contentType , status ) ) ; if ( headers != null ) { for ( Object key : headers . keySet ( ) ) { if ( headers . get ( key ) != null ) RequestContext . getHttpResponse ( ) . addHeader ( key . toString ( ) , headers . get ( key ) . toString ( ) ) ; } } retur...
public class ConcurrentBackgroundThetaPropagation { /** * Propagation protocol : * 1 ) validate propagation is executed at the context of the right epoch , otherwise abort * 2 ) handle propagation : either of a single hash or of a sketch * 3 ) complete propagation : ping local buffer */ @ Override public void run...
// 1 ) validate propagation is executed at the context of the right epoch , otherwise abort if ( ! sharedThetaSketch . validateEpoch ( epoch ) ) { // invalid epoch - should not propagate sharedThetaSketch . endPropagation ( null , false ) ; return ; } // 2 ) handle propagation : either of a single hash or of a sketch i...
public class Filter { /** * Running time - O ( N * 2 * C ) , where N - number of clones , which was found earlier and C - time of { @ link # containsIn ( CloneGroup , CloneGroup ) } . */ public void add ( CloneGroup current ) { } }
Iterator < CloneGroup > i = filtered . iterator ( ) ; while ( i . hasNext ( ) ) { CloneGroup earlier = i . next ( ) ; // Note that following two conditions cannot be true together - proof by contradiction : // let C be the current clone and A and B were found earlier // then since relation is transitive - ( A in C ) an...
public class CmsSecurityManager { /** * Destroys this security manager . < p > * @ throws Throwable if something goes wrong */ public synchronized void destroy ( ) throws Throwable { } }
try { if ( m_driverManager != null ) { if ( m_driverManager . getLockManager ( ) != null ) { try { writeLocks ( ) ; } catch ( Throwable t ) { if ( LOG . isErrorEnabled ( ) ) { LOG . error ( org . opencms . lock . Messages . get ( ) . getBundle ( ) . key ( org . opencms . lock . Messages . ERR_WRITE_LOCKS_FINAL_0 ) , t ...
public class CmsSessionManager { /** * Sends a broadcast to the specified user session . < p > * @ param cms the OpenCms user context of the user sending the broadcast * @ param message the message to broadcast * @ param sessionId the OpenCms session uuid target ( receiver ) of the broadcast * @ param repeat re...
if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( message ) ) { // don ' t broadcast empty messages return ; } // send the broadcast only to the selected session CmsSessionInfo sessionInfo = m_sessionStorageProvider . get ( new CmsUUID ( sessionId ) ) ; if ( sessionInfo != null ) { // double check for concurrent modificat...
public class Notifier { /** * Asynchronously reports an exception to Airbrake . */ public Future < Notice > report ( Throwable e ) { } }
Notice notice = this . buildNotice ( e ) ; return this . send ( notice ) ;
public class MonitorCenter { /** * Authenticates the user . * @ param username the username * @ param password the password * @ return the default page if the authentication succeed , the login page otherwise . */ @ Route ( method = HttpMethod . POST , uri = "/monitor/login" ) public Result authenticate ( @ FormP...
if ( ! configuration . getBooleanWithDefault ( "monitor.auth.enabled" , true ) ) { // If the authentication is disabled , just jump to the dashboard page . return dashboard ( ) ; } final String name = configuration . getOrDie ( "monitor.auth.username" ) ; final String pwd = configuration . getOrDie ( "monitor.auth.pass...
public class Normalize { /** * Remove duplicate VAR declarations . */ private void removeDuplicateDeclarations ( Node externs , Node root ) { } }
Callback tickler = new ScopeTicklingCallback ( ) ; ScopeCreator scopeCreator = new Es6SyntacticScopeCreator ( compiler , new DuplicateDeclarationHandler ( ) ) ; NodeTraversal t = new NodeTraversal ( compiler , tickler , scopeCreator ) ; t . traverseRoots ( externs , root ) ;
public class UrlStartWithMatcher { /** * Normalize matching definitions according to requirements of { @ link StartWithMatcher } . < br > * 根据 { @ link StartWithMatcher } 的需要来规范化匹配条件定义 。 * @ param matchingDefinitionsKey是匹配字符串 , Value是附件对象 。 * 当进行匹配检查的时候 , 返回附件对象来标识哪一个匹配字符串被匹配上了 。 * Key is the matching string , ...
// 先分成两个匹配步骤 Map < String , UrlStartWithMatcherStep2 > step1 = new HashMap < String , UrlStartWithMatcherStep2 > ( ) ; for ( Map . Entry < String , ? extends Object > e : matchingDefinitions . entrySet ( ) ) { String [ ] splited = splitURL ( e . getKey ( ) ) ; String reversedBeforePart = splited [ 0 ] ; String afterPar...
public class NumberUtil { /** * Return the specified value from the string . * @ param str string to parse ; assume it is either a single value or a range ( delimited by " - " ) * @ param getMaximumValue if true return the maximum value * @ return specified value from the string */ private static int getValue ( S...
int multiplier = 1 ; String upperOrLowerValue = null ; final String [ ] rangeUnit = splitRangeUnit ( str ) ; if ( rangeUnit . length == 2 ) { multiplier = getMultiplier ( rangeUnit [ 1 ] ) ; } String [ ] range = splitRange ( rangeUnit [ 0 ] ) ; upperOrLowerValue = range [ 0 ] ; if ( range . length == 2 ) { if ( getMaxi...
public class LogHandle { /** * Package access method to return the current service data . * @ return The current service data . * @ exception InternalLogException An unexpected error has occured . */ byte [ ] getServiceData ( ) throws InternalLogException { } }
if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getServiceData" , this ) ; // Check that the file is actually open if ( _activeFile == null ) { if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getServiceData" , "InternalLogException" ) ; throw new InternalLogException ( null ) ; } final byte [ ] serviceData = _active...
public class XmlEntities { /** * Escapes the characters in the < code > String < / code > passed and writes the result to the < code > StringBuilder < / code > * passed . * @ param sb * The < code > StringBuilder < / code > to write the results of the escaping to . Assumed to be a non - null value . * @ param s...
int len = str . length ( ) ; for ( int i = 0 ; i < len ; i ++ ) { char c = str . charAt ( i ) ; String entityName = this . entityName ( c ) ; if ( entityName == null ) { if ( c > 0x7F ) { sb . append ( "&#" ) ; sb . append ( Integer . toString ( c , 10 ) ) ; sb . append ( ';' ) ; } else { sb . append ( c ) ; } } else {...
public class SVMLightClassifierFactory { /** * This method will cross validate on the given data and number of folds * to find the optimal C . The scorer is how you determine what to * optimize for ( F - score , accuracy , etc ) . The C is then saved , so that * if you train a classifier after calling this method...
System . out . println ( "in Cross Validate" ) ; useAlphaFile = true ; boolean oldUseSigmoid = useSigmoid ; useSigmoid = false ; final CrossValidator < L , F > crossValidator = new CrossValidator < L , F > ( dataset , numFolds ) ; final Function < Triple < GeneralDataset < L , F > , GeneralDataset < L , F > , CrossVali...
public class DerInputStream { /** * Private helper routine to read an encoded string from the input * stream . * @ param stringTag the tag for the type of string to read * @ param stringName a name to display in error messages * @ param enc the encoder to use to interpret the data . Should * correspond to the...
if ( buffer . read ( ) != stringTag ) throw new IOException ( "DER input not a " + stringName + " string" ) ; int length = getLength ( buffer ) ; byte [ ] retval = new byte [ length ] ; if ( ( length != 0 ) && ( buffer . read ( retval ) != length ) ) throw new IOException ( "short read of DER " + stringName + " string"...
public class AmazonRoute53Client { /** * Retrieves a list of the public and private hosted zones that are associated with the current AWS account . The * response includes a < code > HostedZones < / code > child element for each hosted zone . * Amazon Route 53 returns a maximum of 100 items in each response . If yo...
request = beforeClientExecution ( request ) ; return executeListHostedZones ( request ) ;
public class SnorocketReasoner { /** * Identifies any equivalent concepts and retains only one of them . * @ param concepts * @ return */ private IConceptSet filterEquivalents ( final IConceptSet concepts ) { } }
int [ ] cArray = concepts . toArray ( ) ; boolean [ ] toExclude = new boolean [ cArray . length ] ; for ( int i = 0 ; i < cArray . length ; i ++ ) { if ( toExclude [ i ] ) continue ; final IConceptSet iAncestors = IConceptSet . FACTORY . createConceptSet ( getAncestors ( no , cArray [ i ] ) ) ; for ( int j = i + 1 ; j ...
public class Record { /** * Get the current status ( enabled / disabled ) for all the listeners . * @ return a array of all the listener statuses . * @ see setEnableListener . */ public boolean [ ] setEnableListeners ( boolean flag ) { } }
int iPosition = 0 ; boolean rgbEnabled [ ] = ALL_TRUE ; FileListener fileBehavior = this . getListener ( ) ; while ( fileBehavior != null ) { if ( ! fileBehavior . isEnabledListener ( ) ) { // This one was disabled , set it . if ( iPosition >= rgbEnabled . length ) { // Increase the size boolean [ ] rgbEnabledNew = new...
public class XMLOutputter { /** * Writes the XML declaration . This method always prints the name of the * encoding . The case of the encoding is as it was specified during * initialization ( or re - initialization ) . * If the encoding is set to < code > " ISO - 8859-1 " < / code > , then this method will produc...
// Check state if ( _state != XMLEventListenerStates . BEFORE_XML_DECLARATION ) { throw new IllegalStateException ( "getState() == " + _state ) ; } // Temporarily set the state to ERROR _ STATE . Unless an exception is // thrown in the write methods , it will be reset to a valid state . _state = XMLEventListenerStates ...
public class CmsWorkplaceManager { /** * Sets the gallery default scope . < p > * @ param galleryDefaultScope the gallery default scope */ public void setGalleryDefaultScope ( String galleryDefaultScope ) { } }
m_galleryDefaultScope = galleryDefaultScope ; try { CmsGallerySearchScope . valueOf ( galleryDefaultScope ) ; } catch ( Throwable t ) { LOG . warn ( t . getLocalizedMessage ( ) , t ) ; }
public class AbstractSelection { /** * Utility method to add an { @ link IChemObject } to an { @ link IAtomContainer } . * @ param ac the { @ link IAtomContainer } to add to * @ param item the { @ link IChemObject } to add */ protected void addToAtomContainer ( IAtomContainer ac , IChemObject item ) { } }
if ( item instanceof IAtomContainer ) { ac . add ( ( IAtomContainer ) item ) ; } else if ( item instanceof IAtom ) { ac . addAtom ( ( IAtom ) item ) ; } else if ( item instanceof IBond ) { ac . addBond ( ( IBond ) item ) ; }
public class SingleListBox { /** * Utility function to get the current value . */ public static final String getSelectedValue ( ListBox list ) { } }
int index = list . getSelectedIndex ( ) ; return ( index >= 0 ) ? list . getValue ( index ) : null ;
public class Version { /** * parses version string in the form version [ . revision [ . subrevision [ extension ] ] ] * into this instance . */ public void parse ( String version_string ) { } }
_version = 0 ; _revision = 0 ; _subrevision = 0 ; _suffix = "" ; int pos = 0 ; int startpos = 0 ; int endpos = version_string . length ( ) ; while ( ( pos < endpos ) && Character . isDigit ( version_string . charAt ( pos ) ) ) { pos ++ ; } _version = Integer . parseInt ( version_string . substring ( startpos , pos ) ) ...
public class ContainerInfo { /** * < pre > * URI to the hosted container image in a Docker repository . The URI must be * fully qualified and include a tag or digest . * Examples : " gcr . io / my - project / image : tag " or " gcr . io / my - project / image & # 64 ; digest " * < / pre > * < code > string im...
java . lang . Object ref = image_ ; if ( ref instanceof java . lang . String ) { com . google . protobuf . ByteString b = com . google . protobuf . ByteString . copyFromUtf8 ( ( java . lang . String ) ref ) ; image_ = b ; return b ; } else { return ( com . google . protobuf . ByteString ) ref ; }
public class FeatureList { /** * Create a list of all features that include the specified key in their userMap ( ) . * @ param key The key to consider . * @ return A list of features that include the key . */ public FeatureList selectByUserData ( String key ) { } }
FeatureList list = new FeatureList ( ) ; for ( FeatureI f : this ) { if ( f . userData ( ) . containsKey ( key ) ) { list . add ( f ) ; } } return list ;
public class Utils { /** * - - - - - java . lang . reflect */ static Field field ( final Class < ? > klass , final String name ) throws NoSuchFieldException { } }
try { return klass . getDeclaredField ( name ) ; } catch ( final NoSuchFieldException nsfe ) { final Class < ? > superclass = klass . getSuperclass ( ) ; if ( superclass == null ) { throw nsfe ; } return field ( superclass , name ) ; }
public class GeneratingExpression { /** * Returns a string whose length is always exactly in the middle of the allowed range * @ param bad * if 0 , only allowed characters are generated , if 1 , 1 - ( all - 1 ) characters are * generated false , if 2 all characters are generated false . * @ return a string */ p...
int [ ] sizes = new int [ nodes . size ( ) ] ; for ( int i = 0 ; i < sizes . length ; i ++ ) { Range r = nodes . get ( i ) . getRange ( ) ; sizes [ i ] = r . getMin ( ) + r . getRange ( ) / 2 ; } return generate ( sizes , bad ) ;
public class A_CmsResourceCategoriesList { /** * Returns a list of a categories related to the current request resource . < p > * @ return a list of a categories related to the current request resource * @ throws CmsException if something goes wrong */ protected List < CmsCategory > getResourceCategories ( ) throws...
if ( m_resCats == null ) { m_resCats = m_categoryService . readResourceCategories ( getJsp ( ) . getCmsObject ( ) , getParamResource ( ) ) ; } return m_resCats ;
public class AbstractJaxRsBundleProvider { /** * Create all resources in one transaction * @ param resource the body of the post method containing the bundle of the resources being created in a xml / json form * @ return the response * @ see < a href = " https : / / www . hl7 . org / fhir / http . html # create "...
return execute ( getRequest ( RequestTypeEnum . POST , RestOperationTypeEnum . TRANSACTION ) . resource ( resource ) ) ;
public class DirContextAdapter { /** * { @ inheritDoc } */ @ Override public void modifyAttributes ( Name name , int modOp , Attributes attrs ) throws NamingException { } }
throw new UnsupportedOperationException ( NOT_IMPLEMENTED ) ;
public class ConverterInitializerFactory { /** * Provides WriterInitializer based on the writer . Mostly writer is decided by the Writer builder ( and destination ) that user passes . * If there ' s more than one branch , it will instantiate same number of WriterInitializer instance as number of branches and combine ...
int branches = state . getPropAsInt ( ConfigurationKeys . FORK_BRANCHES_KEY , 1 ) ; if ( branches == 1 ) { return newInstance ( state , workUnits , branches , 0 ) ; } List < ConverterInitializer > cis = Lists . newArrayList ( ) ; for ( int branchId = 0 ; branchId < branches ; branchId ++ ) { cis . add ( newInstance ( s...
public class JcrNodeTypeManager { /** * Determine if the child node definitions of the supplied primary type and mixin types of a parent node allow all of the * children with the supplied name to be removed . * @ param primaryTypeNameOfParent the name of the primary type for the parent node ; may not be null * @ ...
return nodeTypes ( ) . canRemoveAllChildren ( primaryTypeNameOfParent , mixinTypeNamesOfParent , childName , skipProtected ) ;
public class CommercePriceListModelImpl { /** * Converts the soap model instances into normal model instances . * @ param soapModels the soap model instances to convert * @ return the normal model instances */ public static List < CommercePriceList > toModels ( CommercePriceListSoap [ ] soapModels ) { } }
if ( soapModels == null ) { return null ; } List < CommercePriceList > models = new ArrayList < CommercePriceList > ( soapModels . length ) ; for ( CommercePriceListSoap soapModel : soapModels ) { models . add ( toModel ( soapModel ) ) ; } return models ;
public class Hud { /** * Get all actions in common . * @ param actioner The current selectable . * @ param actions The collected actions in common . */ private static void checkActionsInCommon ( Actioner actioner , Collection < ActionRef > actions ) { } }
if ( actions . isEmpty ( ) ) { actions . addAll ( actioner . getActions ( ) ) ; } else { actions . retainAll ( actioner . getActions ( ) ) ; }
public class NodeWrapper { /** * Filter text nodes . * @ return concatenated String of text treeData values . */ private String expandString ( ) { } }
final FastStringBuffer fsb = new FastStringBuffer ( FastStringBuffer . SMALL ) ; try { final INodeReadTrx rtx = createRtxAndMove ( ) ; final FilterAxis axis = new FilterAxis ( new DescendantAxis ( rtx ) , rtx , new TextFilter ( rtx ) ) ; while ( axis . hasNext ( ) ) { if ( rtx . getNode ( ) . getKind ( ) == TEXT ) { fs...
public class ByteBuffer { /** * Adds one byte to the buffer and throws an exception if the buffer is * full . * @ param b Byte to add to the buffer . * @ throws BufferIsFullException If the buffer is full and the byte cannot * be stored . */ public void add ( byte b ) throws BufferIsFullException { } }
if ( isFull ( ) ) { throw new BufferIsFullException ( "Buffer is full and has reached maximum capacity (" + capacity ( ) + ")" ) ; } // buffer is not full this . buffer [ this . currentWritePosition ] = b ; this . currentWritePosition = ( this . currentWritePosition + 1 ) % this . buffer . length ; this . currentBuffer...
public class JDefaultNumber { /** * generate a random number between 2 numbers - inclusive * @ param min lowest number to generate * @ param max max number to generate * @ return random number string */ public static int randomIntBetweenTwoNumbers ( int min , int max ) { } }
int number = RandomUtils . nextInt ( max - min ) ; return number + min ;
public class Stages { /** * Schedules a stage for hiding * @ param stage The stage to shcedule hiding of . * @ return A { @ link CompletionStage } to have monitoring over the state of the asynchronous operation */ public static CompletionStage < Stage > scheduleHiding ( final Stage stage ) { } }
LOG . debug ( "Requested hiding of stage {} with title : \"{}\"" , stage , stage . getTitle ( ) ) ; return FxAsync . doOnFxThread ( stage , Stage :: hide ) ;
public class CoreJBossASClient { /** * This returns the system properties that are set in the AS JVM . This is not the system properties * in the JVM of this client object - it is actually the system properties in the remote * JVM of the AS instance that the client is talking to . * @ return the AS JVM ' s system...
final String [ ] address = { CORE_SERVICE , PLATFORM_MBEAN , "type" , "runtime" } ; final ModelNode op = createReadAttributeRequest ( true , "system-properties" , Address . root ( ) . add ( address ) ) ; final ModelNode results = execute ( op ) ; if ( isSuccess ( results ) ) { // extract the DMR representation into a j...
public class AsynchronousRequest { /** * For more info on titles API go < a href = " https : / / wiki . guildwars2 . com / wiki / API : 2 / titles " > here < / a > < br / > * Give user the access to { @ link Callback # onResponse ( Call , Response ) } and { @ link Callback # onFailure ( Call , Throwable ) } methods f...
gw2API . getAllTitleIDs ( ) . enqueue ( callback ) ;
public class StringGroovyMethods { /** * This method is called by the - - operator for the class CharSequence . * It decrements the last character in the given CharSequence . If the * last character in the CharSequence is Character . MIN _ VALUE it will be deleted . * The empty CharSequence can ' t be decremented...
StringBuilder buffer = new StringBuilder ( self ) ; if ( buffer . length ( ) == 0 ) throw new IllegalArgumentException ( "the string is empty" ) ; char last = buffer . charAt ( buffer . length ( ) - 1 ) ; if ( last == Character . MIN_VALUE ) { buffer . deleteCharAt ( buffer . length ( ) - 1 ) ; } else { char next = las...
public class Router { /** * Returns the hosted Controller with the given instance id or { @ code null } if no such * Controller exists in this Router . * @ param instanceId The instance ID being searched for */ @ Nullable public Controller getControllerWithInstanceId ( @ NonNull String instanceId ) { } }
for ( RouterTransaction transaction : backstack ) { Controller controllerWithId = transaction . controller . findController ( instanceId ) ; if ( controllerWithId != null ) { return controllerWithId ; } } return null ;
public class Log { /** * Send an INFO log message with { @ link SUBSYSTEM # MAIN } as default one and log the exception . * @ param tag Used to identify the source of a log message . It usually identifies the class or * activity where the log call occurs . * @ param msg The message you would like logged . * @ p...
return i ( SUBSYSTEM . MAIN , tag , msg , tr ) ;
public class Humanize { /** * For decimal digits [ 0-9 ] , returns the number spelled out . Otherwise , * returns the number as string . * < table border = " 0 " cellspacing = " 0 " cellpadding = " 3 " width = " 100 % " > * < tr > * < th class = " colFirst " > Input < / th > * < th class = " colLast " > Outpu...
int v = value . intValue ( ) ; if ( v < 0 || v > 9 ) return value . toString ( ) ; return context . get ( ) . digitStrings ( v ) ;
public class BookKeeperLog { /** * Write Processor main loop . This method is not thread safe and should only be invoked as part of the Write Processor . */ private void processWritesSync ( ) { } }
if ( this . closed . get ( ) ) { // BookKeeperLog is closed . No point in trying anything else . return ; } if ( getWriteLedger ( ) . ledger . isClosed ( ) ) { // Current ledger is closed . Execute the rollover processor to safely create a new ledger . This will reinvoke // the write processor upon finish , so the writ...
public class TreeTranslator { /** * Visitor method : translate a list of nodes . */ public < T extends JCTree > List < T > translate ( List < T > trees ) { } }
if ( trees == null ) return null ; for ( List < T > l = trees ; l . nonEmpty ( ) ; l = l . tail ) l . head = translate ( l . head ) ; return trees ;
public class BaseMessagingEngineImpl { /** * ( non - Javadoc ) * @ see com . ibm . ws . sib . admin . JsMessagingEngine # getSIBDestination ( java . lang . String , * java . lang . String , com . ibm . ws . sib . admin . DestinationDefinition ) */ public void getSIBDestination ( String busName , String name , Desti...
String thisMethodName = "getSIBDestination" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , new Object [ ] { busName , name , dd . getName ( ) } ) ; } if ( oldDestCache == null ) { _bus . getDestinationCache ( ) . getSIBDestination ( busName , name , ...
public class GrayImageOps { /** * Brightens the image ' s intensity : < br > * O < sub > x , y < / sub > = I < sub > x , y < / sub > + beta < br > * The image ' s intensity is clamped at 0 and max ; * @ param input Input image . Not modified . * @ param beta How much the image is brightened by . * @ param out...
output = InputSanityCheck . checkDeclare ( input , output ) ; ImplGrayImageOps . brighten ( input , beta , max , output ) ; return output ;
public class CmsPreferences { /** * Sets the " explorer number of entries per page " setting . < p > * @ param value a String representation of an int value to set the " number of entries per page " setting */ public void setParamTabExFileEntries ( String value ) { } }
try { m_userSettings . setExplorerFileEntries ( Integer . parseInt ( value ) ) ; } catch ( Throwable t ) { // should usually never happen }
public class ArrayFile { /** * Loads this ArrayFile into a memory - based short array . * @ throws IOException */ public void load ( MemoryShortArray shortArray ) throws IOException { } }
if ( ! _file . exists ( ) || _file . length ( ) == 0 ) { return ; } Chronos c = new Chronos ( ) ; DataReader r = IOFactory . createDataReader ( _file , _type ) ; try { r . open ( ) ; r . position ( DATA_START_POSITION ) ; for ( int i = 0 ; i < _arrayLength ; i ++ ) { shortArray . set ( i , r . readShort ( ) ) ; } _log ...
public class WebSiteManagementClientImpl { /** * List all SKUs . * List all SKUs . * @ param serviceCallback the async ServiceCallback to handle successful and failed responses . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the { @ link ServiceFuture } object */ public...
return ServiceFuture . fromResponse ( listSkusWithServiceResponseAsync ( ) , serviceCallback ) ;
public class DomainsInner { /** * Delete ownership identifier for domain . * Delete ownership identifier for domain . * @ param resourceGroupName Name of the resource group to which the resource belongs . * @ param domainName Name of domain . * @ param name Name of identifier . * @ param serviceCallback the a...
return ServiceFuture . fromResponse ( deleteOwnershipIdentifierWithServiceResponseAsync ( resourceGroupName , domainName , name ) , serviceCallback ) ;
public class Parser { /** * vsch : # 186 add isSetext flag to header node to distinguish header types */ public Rule SetextHeading1 ( ) { } }
return Sequence ( SetextInline ( ) , push ( new HeaderNode ( 1 , popAsNode ( ) , true ) ) , ZeroOrMore ( SetextInline ( ) , addAsChild ( ) ) , wrapInAnchor ( ) , Sp ( ) , Newline ( ) , NOrMore ( '=' , 3 ) , Sp ( ) , Newline ( ) ) ;
public class Main { /** * Create a new Dropbox client using the given authentication * information and HTTP client config . * @ param auth Authentication information * @ param config HTTP request configuration * @ return new Dropbox V2 client */ private static DbxClientV2 createClient ( DbxAuthInfo auth , Stand...
String clientUserAgentId = "examples-longpoll" ; StandardHttpRequestor requestor = new StandardHttpRequestor ( config ) ; DbxRequestConfig requestConfig = DbxRequestConfig . newBuilder ( clientUserAgentId ) . withHttpRequestor ( requestor ) . build ( ) ; return new DbxClientV2 ( requestConfig , auth . getAccessToken ( ...
public class XmlIO { /** * XMLを読み込み 、 { @ link AnnotationMappingInfo } として取得する 。 * @ param in * @ return * @ throws XmlOperateException XMLの読み込みに失敗した場合 。 * @ throws IllegalArgumentException in is null . */ public static AnnotationMappingInfo load ( final InputStream in ) throws XmlOperateException { } }
ArgUtils . notNull ( in , "in" ) ; final AnnotationMappingInfo xmlInfo ; try { xmlInfo = JAXB . unmarshal ( in , AnnotationMappingInfo . class ) ; } catch ( DataBindingException e ) { throw new XmlOperateException ( "fail load xml with JAXB." , e ) ; } return xmlInfo ;
public class ConcurrentHeapThetaBuffer { /** * Updates buffer with given hash value . * Triggers propagation to shared sketch if buffer is full . * @ param hash the given input hash value . A hash of zero or Long . MAX _ VALUE is ignored . * A negative hash value will throw an exception . * @ return * < a hre...
if ( isExactMode ) { isExactMode = ! shared . isEstimationMode ( ) ; } HashOperations . checkHashCorruption ( hash ) ; if ( ( getHashTableThreshold ( ) == 0 ) || isExactMode ) { // The over - theta and zero test if ( HashOperations . continueCondition ( getThetaLong ( ) , hash ) ) { return RejectedOverTheta ; // signal...
public class CycleAnalyzer { /** * This method searches a given { @ link Graph } for cycles . This method is * different to { @ link # hasCycles ( Graph , boolean ) } , because here it is * started at a dedicated vertex and only vertices are checked for cycles * which are connected to this start vertex . If disco...
requireNonNull ( graph , "The given start vertex is null" ) ; requireNonNull ( startVertex , "The given start vertex is null" ) ; if ( ! graph . getVertices ( ) . contains ( startVertex ) ) { throw new IllegalArgumentException ( "The given start vertex '" + startVertex + "' is not part of the given graph '" + graph + "...
public class AcceptMatchRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( AcceptMatchRequest acceptMatchRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( acceptMatchRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( acceptMatchRequest . getTicketId ( ) , TICKETID_BINDING ) ; protocolMarshaller . marshall ( acceptMatchRequest . getPlayerIds ( ) , PLAYERIDS_BINDING ) ; protocolMars...
public class AmazonComprehendClient { /** * Inspects the text of a batch of documents for the syntax and part of speech of the words in the document and * returns information about them . For more information , see < a > how - syntax < / a > . * @ param batchDetectSyntaxRequest * @ return Result of the BatchDetec...
request = beforeClientExecution ( request ) ; return executeBatchDetectSyntax ( request ) ;
public class MaterializeKNNPreprocessor { /** * The actual preprocessing step . */ @ Override protected void preprocess ( ) { } }
final Logging log = getLogger ( ) ; // Could be subclass createStorage ( ) ; ArrayDBIDs ids = DBIDUtil . ensureArray ( relation . getDBIDs ( ) ) ; if ( log . isStatistics ( ) ) { log . statistics ( new LongStatistic ( this . getClass ( ) . getName ( ) + ".k" , k ) ) ; } Duration duration = log . isStatistics ( ) ? log ...
public class CommerceShipmentItemPersistenceImpl { /** * Returns the last commerce shipment item in the ordered set where groupId = & # 63 ; . * @ param groupId the group ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the last matching commerce...
CommerceShipmentItem commerceShipmentItem = fetchByGroupId_Last ( groupId , orderByComparator ) ; if ( commerceShipmentItem != null ) { return commerceShipmentItem ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg ....
public class ToSAXHandler { /** * This method flushes any pending events , which can be startDocument ( ) * closing the opening tag of an element , or closing an open CDATA section . */ public void flushPending ( ) throws SAXException { } }
if ( m_needToCallStartDocument ) { startDocumentInternal ( ) ; m_needToCallStartDocument = false ; } if ( m_elemContext . m_startTagOpen ) { closeStartTag ( ) ; m_elemContext . m_startTagOpen = false ; } if ( m_cdataTagOpen ) { closeCDATA ( ) ; m_cdataTagOpen = false ; }
public class SourceMapConsumerV3 { /** * Returns the mapping entry that proceeds the supplied line or null if no * such entry exists . */ private OriginalMapping getPreviousMapping ( int lineNumber ) { } }
do { if ( lineNumber == 0 ) { return null ; } lineNumber -- ; } while ( lines . get ( lineNumber ) == null ) ; ArrayList < Entry > entries = lines . get ( lineNumber ) ; return getOriginalMappingForEntry ( Iterables . getLast ( entries ) ) ;
public class Client { /** * Returns true if there is RoboRemoteServer currently listening * @ return * @ throws Exception */ public boolean isListening ( ) throws Exception { } }
try { JSONObject resp = new JSONObject ( Get . get ( API_BASE_URL + ":" + API_PORT , Constants . REQUEST_HEARTBEAT , "" ) ) ; return true ; } catch ( Exception e ) { return false ; }
public class LasCellsTable { /** * Query the las cell table . * @ param db the db to use . * @ param envelope an optional { @ link Envelope } to query spatially . * @ param exactGeometry an optional exact geometry . If available it is used instead of the envelope . * @ param doPosition if < code > true < / code...
List < LasCell > lasCells = new ArrayList < > ( ) ; String sql = "SELECT " + COLUMN_GEOM + "," + COLUMN_ID + "," + COLUMN_SOURCE_ID + "," + COLUMN_POINTS_COUNT ; if ( doPosition ) sql += "," + COLUMN_AVG_ELEV + "," + COLUMN_MIN_ELEV + "," + COLUMN_MAX_ELEV + "," + COLUMN_POSITION_BLOB ; if ( doIntensity ) sql += "," + ...
public class KeyspaceCache { /** * Reads the SchemaConcept labels currently in the transaction cache * into the keyspace cache . This happens when a commit occurs and allows us to track schema * mutations without having to read the graph . * @ param transactionCache The transaction cache */ void readTxCache ( Tra...
// Check if the schema has been changed and should be flushed into this cache if ( ! cachedLabels . equals ( transactionCache . getLabelCache ( ) ) ) { try { lock . writeLock ( ) . lock ( ) ; cachedLabels . clear ( ) ; cachedLabels . putAll ( transactionCache . getLabelCache ( ) ) ; } finally { lock . writeLock ( ) . u...
public class Base64 { /** * base64解码 * @ param source 被解码的base64字符串 * @ param charset 字符集 * @ return 被加密后的字符串 */ public static String decodeStr ( String source , String charset ) { } }
return Base64Decoder . decodeStr ( source , charset ) ;
public class UriTemplate { /** * Given the Map of variables , expands this template into a URI . The Map keys represent variable names , * the Map values variable values . The order of variables is not significant . * < p > Example : * < pre class = " code " > * UriTemplate template = new UriTemplate ( " https ...
UriComponents expandedComponents = this . uriComponents . expand ( uriVariables ) ; UriComponents encodedComponents = expandedComponents . encode ( ) ; return encodedComponents . toUri ( ) ;
public class ListInstanceProfilesResult { /** * A list of instance profiles . * @ param instanceProfiles * A list of instance profiles . */ public void setInstanceProfiles ( java . util . Collection < InstanceProfile > instanceProfiles ) { } }
if ( instanceProfiles == null ) { this . instanceProfiles = null ; return ; } this . instanceProfiles = new com . amazonaws . internal . SdkInternalList < InstanceProfile > ( instanceProfiles ) ;
public class TransformationDescription { /** * Adds a split transformation step to the transformation description . The value of the source field is split based * on the split string into parts . Based on the given index , the result will be set to the target field . The index * needs to be an integer value . All f...
TransformationStep step = new TransformationStep ( ) ; step . setTargetField ( targetField ) ; step . setSourceFields ( sourceField ) ; step . setOperationParameter ( TransformationConstants . SPLIT_PARAM , splitString ) ; step . setOperationParameter ( TransformationConstants . INDEX_PARAM , index ) ; step . setOperat...
public class DiagnosticsInner { /** * Get Detector . * Get Detector . * @ param nextPageLink The NextLink from the previous successful call to List operation . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the PagedList & lt ; DetectorDefinitionInner &...
return getSiteDetectorNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < DetectorDefinitionInner > > , Page < DetectorDefinitionInner > > ( ) { @ Override public Page < DetectorDefinitionInner > call ( ServiceResponse < Page < DetectorDefinitionInner > > response ) { return respo...
public class RequestHttpBase { /** * Returns true if some data has been sent to the browser . */ public final boolean isOutCommitted ( ) { } }
OutHttpApp stream = out ( ) ; if ( stream . isCommitted ( ) ) { return true ; } // server / 05a7 if ( _contentLengthOut > 0 && _contentLengthOut <= stream . contentLength ( ) ) { return true ; } return false ;
public class UriTemplateParser { /** * Called when the end of an expression has been encountered . */ private void endExpression ( int position ) throws MalformedUriTemplateException { } }
// an expression close brace is found without a start if ( startedTemplate ) { if ( ! expressionCaptureOn ) { throw new MalformedUriTemplateException ( "Expression close brace was found at position " + position + " yet there was no start brace." , position ) ; } expressionCaptureOn = false ; components . add ( new Expr...
public class Assert { /** * 取得带参数的消息 。 */ private static String getMessage ( String message , Object [ ] args , String defaultMessage ) { } }
if ( message == null ) { message = defaultMessage ; } if ( args == null || args . length == 0 ) { return message ; } return String . format ( message , args ) ;
public class PlannerReader { /** * This method extracts assignment data from a Planner file . * @ param plannerProject Root node of the Planner file */ private void readAssignments ( Project plannerProject ) { } }
Allocations allocations = plannerProject . getAllocations ( ) ; List < Allocation > allocationList = allocations . getAllocation ( ) ; Set < Task > tasksWithAssignments = new HashSet < Task > ( ) ; for ( Allocation allocation : allocationList ) { Integer taskID = getInteger ( allocation . getTaskId ( ) ) ; Integer reso...
public class SelendroidCapabilities { /** * the latest version of the app . */ private String getDefaultVersion ( Set < String > keys , String appName ) { } }
SortedSet < String > listOfApps = new TreeSet < String > ( ) ; for ( String key : keys ) { if ( key . split ( ":" ) [ 0 ] . contentEquals ( appName ) ) { listOfApps . add ( key ) ; } } return listOfApps . size ( ) > 0 ? listOfApps . last ( ) : null ;
public class DOMHelper { /** * Obtain the XPath - model parent of a DOM node - - ownerElement for Attrs , * parent for other nodes . * Background : The DOM believes that you must be your Parent ' s * Child , and thus Attrs don ' t have parents . XPath said that Attrs * do have their owning Element as their pare...
Node parent ; short nodeType = node . getNodeType ( ) ; if ( Node . ATTRIBUTE_NODE == nodeType ) { Document doc = node . getOwnerDocument ( ) ; /* TBD : if ( null = = doc ) throw new RuntimeException ( XSLMessages . createXPATHMessage ( XPATHErrorResources . ER _ CHILD _ HAS _ NO _ OWNER _ DOCUMENT , null ) ) ; / /...
public class Viewport { /** * Change the viewport ' s transform so that the specified area ( in local or world coordinates ) * is visible . * @ param x * @ param y * @ param width * @ param height */ public final void viewLocalArea ( final double x , final double y , final double width , final double height )...
final Transform t = Transform . createViewportTransform ( x , y , width , height , m_wide , m_high ) ; if ( t != null ) { setTransform ( t ) ; }
public class SkipWaitTimeForInstanceTerminationRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( SkipWaitTimeForInstanceTerminationRequest skipWaitTimeForInstanceTerminationRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( skipWaitTimeForInstanceTerminationRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( skipWaitTimeForInstanceTerminationRequest . getDeploymentId ( ) , DEPLOYMENTID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientExcepti...