signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class DataExportUtility { /** * Process a single table . * @ param pw output print writer * @ param connection database connection * @ param name table name * @ throws Exception */ private void processTable ( PrintWriter pw , Connection connection , String name ) throws Exception { } }
System . out . println ( "Processing " + name ) ; // Prepare statement to retrieve all data PreparedStatement ps = connection . prepareStatement ( "select * from " + name ) ; // Execute the query ResultSet rs = ps . executeQuery ( ) ; // Retrieve column meta data ResultSetMetaData rmd = ps . getMetaData ( ) ; int index...
public class FSM { /** * Initiates a state transition with the named event . * The call takes a variable number of arguments * that will be passed to the callback , if defined . * It if the state change is ok or one of these errors : * - event X inappropriate because previous transition did not complete * - e...
if ( transition != null ) throw new InTrasistionException ( eventName ) ; String dst = transitions . get ( new EventKey ( eventName , current ) ) ; if ( dst == null ) { for ( EventKey key : transitions . keySet ( ) ) { if ( key . event . equals ( eventName ) ) { throw new InvalidEventException ( eventName , current ) ;...
public class EditOnlineDataExample { /** * Finds properties of datatype string on test . wikidata . org . Since the test * site changes all the time , we cannot hardcode a specific property here . * Instead , we just look through all properties starting from P1 to find the * first few properties of type string th...
WikibaseDataFetcher wbdf = new WikibaseDataFetcher ( connection , siteIri ) ; wbdf . getFilter ( ) . excludeAllProperties ( ) ; wbdf . getFilter ( ) . setLanguageFilter ( Collections . singleton ( "en" ) ) ; ArrayList < PropertyIdValue > stringProperties = new ArrayList < > ( ) ; System . out . println ( "*** Trying to...
public class A_CmsTreeTabDataPreloader { /** * Loads the ancestors of a resource . < p > * @ param resource the resource for which to load the ancestors * @ throws CmsException if something goes wrong */ private void loadAncestors ( CmsResource resource ) throws CmsException { } }
CmsResource currentResource = resource ; while ( ( currentResource != null ) && m_cms . existsResource ( currentResource . getStructureId ( ) , m_filter ) ) { if ( ! m_knownResources . add ( currentResource ) ) { break ; } if ( CmsStringUtil . comparePaths ( currentResource . getRootPath ( ) , m_commonRoot ) ) { break ...
public class KeyTransformationHandler { /** * Retrieves a { @ link org . infinispan . query . Transformer } instance for this key . If the key is not { @ link * org . infinispan . query . Transformable } and no transformer has been registered for the key ' s class , null is returned . * @ param keyClass key class t...
Class < ? extends Transformer > transformerClass = getTransformerClass ( keyClass ) ; if ( transformerClass != null ) { try { return transformerClass . newInstance ( ) ; } catch ( Exception e ) { log . couldNotInstantiaterTransformerClass ( transformerClass , e ) ; } } return null ;
public class StringUtil { /** * Generate a simple ( cryptographic insecure ) random string . * @ param _ length length of random string * @ return random string or empty string if _ length & lt ; = 0 */ public static String randomString ( int _length ) { } }
if ( _length <= 0 ) { return "" ; } Random random = new Random ( ) ; char [ ] buf = new char [ _length ] ; for ( int idx = 0 ; idx < buf . length ; ++ idx ) buf [ idx ] = SYMBOLS [ random . nextInt ( SYMBOLS . length ) ] ; return new String ( buf ) ;
public class PathResolver { /** * todo : path criteria need to check if separator is in the path */ private static PathCriteria parsePath ( File path ) { } }
int starIndex = path . toString ( ) . indexOf ( STAR ) ; int wildcardIndex = path . toString ( ) . indexOf ( WILDCARD ) ; int index = ( starIndex < wildcardIndex || wildcardIndex < 0 ) ? starIndex : wildcardIndex ; if ( index == 0 && path . toString ( ) . length ( ) == 1 ) return new PathCriteria ( String . valueOf ( S...
public class RedisClusterNode { /** * Create a new instance of { @ link RedisClusterNode } by passing the { @ code nodeId } * @ param nodeId the nodeId * @ return a new instance of { @ link RedisClusterNode } */ public static RedisClusterNode of ( String nodeId ) { } }
LettuceAssert . notNull ( nodeId , "NodeId must not be null" ) ; RedisClusterNode redisClusterNode = new RedisClusterNode ( ) ; redisClusterNode . setNodeId ( nodeId ) ; return redisClusterNode ;
public class ReleatePositionDrawTextItem { /** * / * ( non - Javadoc ) * @ see com . alibaba . simpleimage . render . DrawTextItem # drawText ( java . awt . Graphics2D , int , int ) */ @ Override public void drawText ( Graphics2D graphics , int width , int height ) { } }
int textLength = ( int ) ( width * textWidthPercent ) ; // 计算水印字体大小 int fontsize = textLength / text . length ( ) ; if ( fontsize < minFontSize ) { return ; } graphics . setFont ( new Font ( defaultFont . getFontName ( ) , Font . PLAIN , fontsize ) ) ; graphics . setColor ( fontColor ) ; graphics . drawString ( text , ...
public class AhoCorasickDoubleArrayTrie { /** * 匹配母文本 * @ param text 一些文本 * @ return 一个pair列表 */ public List < Hit < V > > parseText ( String text ) { } }
int position = 1 ; int currentState = 0 ; List < Hit < V > > collectedEmits = new LinkedList < Hit < V > > ( ) ; for ( int i = 0 ; i < text . length ( ) ; ++ i ) { currentState = getState ( currentState , text . charAt ( i ) ) ; storeEmits ( position , currentState , collectedEmits ) ; ++ position ; } return collectedE...
public class LogManager { /** * Shutdown the logging system if the logging system supports it . * This call is synchronous and will block until shut down is complete . * This may include flushing pending log events over network connections . * @ param context the LoggerContext . * @ since 2.6 */ public static v...
if ( context != null && context instanceof Terminable ) { ( ( Terminable ) context ) . terminate ( ) ; }
public class Iterables { /** * Gets the length of an iterable . * @ param iterable the iterable * @ return the length of the iterable */ @ SuppressWarnings ( "unchecked" ) public static int getLength ( Object iterable ) { } }
Assert . state ( isIterable ( iterable . getClass ( ) ) ) ; return iterable . getClass ( ) . isArray ( ) ? Array . getLength ( iterable ) : ( ( Collection < Object > ) iterable ) . size ( ) ;
public class RouteClient { /** * Deletes the specified Route resource . * < p > Sample code : * < pre > < code > * try ( RouteClient routeClient = RouteClient . create ( ) ) { * ProjectGlobalRouteName route = ProjectGlobalRouteName . of ( " [ PROJECT ] " , " [ ROUTE ] " ) ; * Operation response = routeClient ...
DeleteRouteHttpRequest request = DeleteRouteHttpRequest . newBuilder ( ) . setRoute ( route == null ? null : route . toString ( ) ) . build ( ) ; return deleteRoute ( request ) ;
public class AWSSimpleSystemsManagementClient { /** * Lists the commands requested by users of the AWS account . * @ param listCommandsRequest * @ return Result of the ListCommands operation returned by the service . * @ throws InternalServerErrorException * An error occurred on the server side . * @ throws I...
request = beforeClientExecution ( request ) ; return executeListCommands ( request ) ;
public class MyActivity { /** * Color transition method . */ public Object evaluate ( float fraction , Object startValue , Object endValue ) { } }
int startInt = ( Integer ) startValue ; int startA = ( startInt >> 24 ) & 0xff ; int startR = ( startInt >> 16 ) & 0xff ; int startG = ( startInt >> 8 ) & 0xff ; int startB = startInt & 0xff ; int endInt = ( Integer ) endValue ; int endA = ( endInt >> 24 ) & 0xff ; int endR = ( endInt >> 16 ) & 0xff ; int endG = ( endI...
public class XesXmlParser { /** * Parses a log from the given input stream , which is supposed to deliver an * XES log in XML representation . * @ param is * Input stream , which is supposed to deliver an XES log in XML * representation . * @ return The parsed log . */ public List < XLog > parse ( InputStream...
BufferedInputStream bis = new BufferedInputStream ( is ) ; // set up a specialized SAX2 handler to fill the container XesXmlHandler handler = new XesXmlHandler ( ) ; // set up SAX parser and parse provided log file into the container SAXParserFactory parserFactory = SAXParserFactory . newInstance ( ) ; parserFactory . ...
public class VirtualFile { /** * Get the { @ link CodeSigner } s for a the virtual file . * @ return the { @ link CodeSigner } s for the virtual file , or { @ code null } if not signed */ public CodeSigner [ ] getCodeSigners ( ) { } }
final SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { sm . checkPermission ( new VirtualFilePermission ( getPathName ( ) , "read" ) ) ; } final VFS . Mount mount = VFS . getMount ( this ) ; return mount . getFileSystem ( ) . getCodeSigners ( mount . getMountPoint ( ) , this ) ;
public class PropMaxDegVarTree { @ Override public void propagate ( int evtmask ) throws ContradictionException { } }
for ( int i = 0 ; i < n ; i ++ ) { dMax [ i ] = deg [ i ] . getUB ( ) ; } super . propagate ( evtmask ) ;
public class AbstractResultSetWrapper { /** * { @ inheritDoc } * @ see java . sql . ResultSet # updateFloat ( java . lang . String , float ) */ @ Override public void updateFloat ( final String columnLabel , final float x ) throws SQLException { } }
wrapped . updateFloat ( columnLabel , x ) ;
public class SystemInputs { /** * Returns the IConditional instances defined by the given variable definition . */ private static Stream < IConditional > conditionals ( IVarDef var ) { } }
return Stream . concat ( Stream . of ( var ) , Stream . concat ( Optional . ofNullable ( var . getMembers ( ) ) . map ( members -> toStream ( members ) . flatMap ( member -> conditionals ( member ) ) ) . orElse ( Stream . empty ( ) ) , Optional . ofNullable ( var . getValues ( ) ) . map ( values -> toStream ( values ) ...
public class InodeLockList { /** * Downgrades the last edge lock in the lock list from WRITE lock to READ lock . */ public void downgradeLastEdge ( ) { } }
Preconditions . checkNotNull ( ! endsInInode ( ) ) ; Preconditions . checkState ( ! mEntries . isEmpty ( ) ) ; Preconditions . checkState ( mLockMode == LockMode . WRITE ) ; downgradeEdge ( mEntries . size ( ) - 1 ) ; mLockMode = LockMode . READ ;
public class EndpointService { /** * Discovers all resources , puts them in the { @ link # resourceManager } , * and triggers any listeners listening for new inventory . * This will look for all root resources ( resources whose types are that of the root resource types * as defined by { @ link ResourceTypeManager...
status . assertRunning ( getClass ( ) , "discoverAll()" ) ; Runnable runnable = new Runnable ( ) { @ Override public void run ( ) { WriteLock lock = EndpointService . this . discoveryScanRWLock . writeLock ( ) ; lock . lock ( ) ; try { DiscoveryResults discoveryResults = new DiscoveryResults ( ) ; LOG . infoDiscoveryRe...
public class DataNode { /** * Instantiate a single datanode object . This must be run by invoking * { @ link DataNode # runDatanodeDaemon ( DataNode ) } subsequently . */ public static DataNode instantiateDataNode ( String args [ ] , Configuration conf ) throws IOException { } }
if ( conf == null ) conf = new Configuration ( ) ; if ( ! parseArguments ( args , conf ) ) { printUsage ( ) ; return null ; } if ( conf . get ( "dfs.network.script" ) != null ) { LOG . error ( "This configuration for rack identification is not supported" + " anymore. RackID resolution is handled by the NameNode." ) ; S...
public class AbstractInjectionEngine { /** * F50309.4 */ InjectionTarget [ ] getInjectionTargets ( Map < Class < ? > , List < InjectionTarget > > declaredTargets , Class < ? > instanceClass , boolean checkAppConfig ) throws InjectionException { } }
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getInjectionTargets: " + instanceClass + "/" + AccessController . doPrivileged ( new GetClassLoaderPrivileged ( instanceClass ) ) ) ; // d622258.1 - A field or method should only be inject...
public class Translation { /** * Translates Acid House { @ code AppEngineTransaction } entity to Google App * Engine Datastore entities with the specified { @ code Key } of parent . * @ param transaction Acid House { @ code Lock } entity . * @ param parent The { @ code Key } of parent . * @ return Google App En...
List < Entity > entities = new ArrayList < Entity > ( ) ; com . google . appengine . api . datastore . Key key = Keys . create ( parent , TRANSACTION_KIND , transaction . id ( ) ) ; entities . add ( new Entity ( key ) ) ; for ( Log log : transaction . logs ( ) ) { Entity entity = new Entity ( Keys . create ( key , LOG_...
public class ApnsPayloadBuilder { /** * Returns a JSON representation of a * < a href = " https : / / developer . apple . com / library / content / documentation / Miscellaneous / Reference / MobileDeviceManagementProtocolRef / 1 - Introduction / Introduction . html # / / apple _ ref / doc / uid / TP40017387 - CH1 - ...
return GSON . toJson ( java . util . Collections . singletonMap ( MDM_KEY , pushMagicValue ) ) ;
public class DeviceImpl { /** * read an attribute history . IDL 4 version . The history is filled only be * attribute polling * @ param attributeName The attribute to retrieve * @ param maxSize The history maximum size returned * @ throws DevFailed */ @ Override public DevAttrHistory_4 read_attribute_history_4 ...
MDC . setContextMap ( contextMap ) ; xlogger . entry ( ) ; checkInitialization ( ) ; deviceMonitoring . startRequest ( "read_attribute_history_4" ) ; DevAttrHistory_4 result = null ; try { final AttributeImpl attr = AttributeGetterSetter . getAttribute ( attributeName , attributeList ) ; if ( ! attr . isPolled ( ) ) { ...
public class WebSocketScope { /** * Message received from client and passed on to the listeners . * @ param message */ public void onMessage ( WSMessage message ) { } }
log . trace ( "Listeners: {}" , listeners . size ( ) ) ; for ( IWebSocketDataListener listener : listeners ) { try { listener . onWSMessage ( message ) ; } catch ( Exception e ) { log . warn ( "onMessage exception" , e ) ; } }
public class CmsSitemapController { /** * Checks if the given path and position indicate a changed position for the entry . < p > * @ param entry the sitemap entry to move * @ param toPath the destination path * @ param position the new position between its siblings * @ return < code > true < / code > if this i...
return ( ! entry . getSitePath ( ) . equals ( toPath ) || ( entry . getPosition ( ) != position ) ) ;
public class NlsBundleFactoryGenerator { /** * Generates the block that creates the { @ link NlsBundle } instance lazily via { @ link GWT # create ( Class ) } . * @ param sourceWriter is the { @ link SourceWriter } . * @ param logger is the { @ link TreeLogger } . * @ param context is the { @ link GeneratorContex...
// find all subclasses of NlsBundle TypeOracle typeOracle = context . getTypeOracle ( ) ; JClassType bundleClass = typeOracle . findType ( NlsBundle . class . getName ( ) ) ; JClassType bundleWithLookupClass = typeOracle . findType ( NlsBundleWithLookup . class . getName ( ) ) ; JClassType [ ] types = typeOracle . getT...
public class GroupService { /** * Update group * @ param groupRef group reference * @ param groupConfig group config * @ return OperationFuture wrapper for Group */ public OperationFuture < Group > modify ( Group groupRef , GroupConfig groupConfig ) { } }
checkNotNull ( groupConfig , "GroupConfig must be not null" ) ; checkNotNull ( groupRef , "Group reference must be not null" ) ; updateGroup ( idByRef ( groupRef ) , groupConfig ) ; return new OperationFuture < > ( groupRef , new NoWaitingJobFuture ( ) ) ;
public class Graph { /** * Runs a { @ link VertexCentricIteration } on the graph . * No configuration options are provided . * @ param computeFunction the vertex compute function * @ param combiner an optional message combiner * @ param maximumNumberOfIterations maximum number of iterations to perform * @ ret...
return this . runVertexCentricIteration ( computeFunction , combiner , maximumNumberOfIterations , null ) ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcFaceBasedSurfaceModel ( ) { } }
if ( ifcFaceBasedSurfaceModelEClass == null ) { ifcFaceBasedSurfaceModelEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 254 ) ; } return ifcFaceBasedSurfaceModelEClass ;
public class AppDefinedResourceFactory { /** * Destroy this application - defined resource by removing its configuration * and the configuration of all other services that were created for it . * @ throws Exception if an error occurs . */ @ Override public void destroy ( ) throws Exception { } }
final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "destroy" , id ) ; tracker . close ( ) ; StringBuilder filter = new StringBuilder ( FilterUtils . createPropertyFilter ( AbstractConnectionFactoryService . ID , id ) ) ; filter . insert ( fi...
public class AbstractSingleton { /** * Get all singleton objects registered in the respective sub - class of this * class . * @ param < T > * The singleton type to be retrieved * @ param aScope * The scope to use . May be < code > null < / code > to avoid creating a new * scope . * @ param aDesiredClass ...
ValueEnforcer . notNull ( aDesiredClass , "DesiredClass" ) ; final ICommonsList < T > ret = new CommonsArrayList < > ( ) ; if ( aScope != null ) for ( final Object aScopeValue : aScope . attrs ( ) . values ( ) ) if ( aScopeValue != null && aDesiredClass . isAssignableFrom ( aScopeValue . getClass ( ) ) ) ret . add ( aD...
public class CollectionContainer { /** * TX methods */ public Long reserveAdd ( String transactionId , Data value ) { } }
if ( value != null && getCollection ( ) . contains ( new CollectionItem ( INVALID_ITEM_ID , value ) ) ) { return null ; } final long itemId = nextId ( ) ; txMap . put ( itemId , new TxCollectionItem ( itemId , null , transactionId , false ) ) ; return itemId ;
public class DisasterRecoveryConfigurationsInner { /** * Gets a disaster recovery configuration . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server . * @ ...
return getWithServiceResponseAsync ( resourceGroupName , serverName , disasterRecoveryConfigurationName ) . map ( new Func1 < ServiceResponse < DisasterRecoveryConfigurationInner > , DisasterRecoveryConfigurationInner > ( ) { @ Override public DisasterRecoveryConfigurationInner call ( ServiceResponse < DisasterRecovery...
public class XMLEventParser { /** * call a user defined function * @ param udf * @ param arguments */ private void call ( UDF udf , Object [ ] arguments ) { } }
try { udf . call ( pc , arguments , false ) ; } catch ( PageException pe ) { error ( pe ) ; }
public class LocalDateTime { /** * Compares this partial with another returning an integer * indicating the order . * The fields are compared in order , from largest to smallest . * The first field that is non - equal is used to determine the result . * The specified object must be a partial instance whose fiel...
// override to perform faster if ( this == partial ) { return 0 ; } if ( partial instanceof LocalDateTime ) { LocalDateTime other = ( LocalDateTime ) partial ; if ( iChronology . equals ( other . iChronology ) ) { return ( iLocalMillis < other . iLocalMillis ? - 1 : ( iLocalMillis == other . iLocalMillis ? 0 : 1 ) ) ; ...
public class SecurityContext { /** * - - - - - private methods - - - - - */ private boolean isVisibleInBackend ( AccessControllable node ) { } }
if ( isVisibleInFrontend ( node ) ) { return true ; } // no node , nothing to see here . . if ( node == null ) { return false ; } // fetch user final Principal user = getUser ( false ) ; // anonymous users may not see any nodes in backend if ( user == null ) { return false ; } // SuperUser may always see the node if ( ...
public class NumberBindings { /** * An number binding of a division that won ' t throw an { @ link java . lang . ArithmeticException } * when a division by zero happens . See { @ link # divideSafe ( javafx . beans . value . ObservableIntegerValue , * javafx . beans . value . ObservableIntegerValue ) } * for more ...
return divideSafe ( dividend , divisor , new SimpleDoubleProperty ( 0 ) ) ;
public class V1BinaryAnnotation { /** * Creates a tag annotation , which is the same as { @ link Span # tags ( ) } except duplicating the * endpoint . * < p > A special case is when the key is " lc " and value is empty : This substitutes for the { @ link * Span # localEndpoint ( ) } . */ public static V1BinaryAnn...
if ( value == null ) throw new NullPointerException ( "value == null" ) ; return new V1BinaryAnnotation ( key , value , endpoint ) ;
public class MPdfWriter { /** * Ecrit le pdf . * @ param table * MBasicTable * @ param out * OutputStream * @ throws IOException */ protected void writePdf ( final MBasicTable table , final OutputStream out ) throws IOException { } }
try { // step 1 : creation of a document - object final Rectangle pageSize = landscape ? PageSize . A4 . rotate ( ) : PageSize . A4 ; final Document document = new Document ( pageSize , 50 , 50 , 50 , 50 ) ; // step 2 : we create a writer that listens to the document and directs a PDF - stream to out createWriter ( tab...
public class DefaultOptionParser { /** * Search for a prefix that is the long name of an option ( - Xmx512m ) . * @ param token the command line token to handle */ private String getLongPrefix ( String token ) { } }
String name = null ; for ( int i = token . length ( ) - 2 ; i > 1 ; i -- ) { String prefix = token . substring ( 0 , i ) ; if ( options . hasLongOption ( prefix ) ) { name = prefix ; break ; } } return name ;
public class SharedPreferencesItem { /** * Instantiates new fragment . * @ param bundle * : Any extra data to be passed to fragment , pass null if you don ' t want to pass anything . * @ return : Instance of current fragment . */ public static SharedPreferencesItem newInstance ( @ NonNull Bundle bundle ) { } }
SharedPreferencesItem sharedPreferencesItem = new SharedPreferencesItem ( ) ; sharedPreferencesItem . setArguments ( bundle ) ; return sharedPreferencesItem ;
public class LabelCountersForWorkteamMarshaller { /** * Marshall the given parameter object . */ public void marshall ( LabelCountersForWorkteam labelCountersForWorkteam , ProtocolMarshaller protocolMarshaller ) { } }
if ( labelCountersForWorkteam == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( labelCountersForWorkteam . getHumanLabeled ( ) , HUMANLABELED_BINDING ) ; protocolMarshaller . marshall ( labelCountersForWorkteam . getPendingHuman ( ) , PENDI...
public class TupleMRConfigBuilder { /** * Defines the fields used to group tuples by . Similar to the GROUP BY in SQL . * Tuples whose group - by fields are the same will be grouped and received in * the same { @ link TupleReducer # reduce } call . < p > * When multiple schemas are set then the groupBy fields are...
failIfEmpty ( groupByFields , "GroupBy fields can't be null or empty" ) ; failIfEmpty ( schemas , "No schemas defined" ) ; failIfNotNull ( this . groupByFields , "GroupBy fields already set : " + Arrays . toString ( groupByFields ) ) ; for ( String field : groupByFields ) { if ( ! fieldPresentInAllSchemas ( field ) ) {...
public class DatabaseInformationMain { /** * Retrieves a < code > Table < / code > object describing , in an extended * fashion , all of the system or formal specification SQL types known to * this database , including its level of support for them ( which may * be no support at all ) in various capacities . < p ...
Table t = sysTables [ SYSTEM_ALLTYPEINFO ] ; if ( t == null ) { t = createBlankTable ( sysTableHsqlNames [ SYSTEM_ALLTYPEINFO ] ) ; // same as SYSTEM _ TYPEINFO : addColumn ( t , "TYPE_NAME" , SQL_IDENTIFIER ) ; addColumn ( t , "DATA_TYPE" , Type . SQL_SMALLINT ) ; addColumn ( t , "PRECISION" , Type . SQL_INTEGER ) ; a...
public class SinglePosition { /** * Merge this SinglePosition with another { @ link Positions } instance . If the given { @ link Positions } is : * - a SinglePosition , it returns a { @ link LinearPositions } composed by this and the given positions , in order . * - any other { @ link Positions } , it delegates to ...
if ( other instanceof SinglePosition ) { SinglePosition that = ( SinglePosition ) other ; return LinearPositions . builder ( ) . addSinglePosition ( this ) . addSinglePosition ( that ) . build ( ) ; } else { return other . merge ( this ) ; }
public class SpannableStringInternal { /** * / * package */ void setSpan ( Object what , int start , int end , int flags ) { } }
int nstart = start ; int nend = end ; checkRange ( "setSpan" , start , end ) ; if ( ( flags & Spannable . SPAN_PARAGRAPH ) == Spannable . SPAN_PARAGRAPH ) { if ( start != 0 && start != length ( ) ) { char c = charAt ( start - 1 ) ; if ( c != '\n' ) throw new RuntimeException ( "PARAGRAPH span must start at paragraph bo...
public class SearchPortletController { /** * Create an actionUrl for the indicated portlet The resource URL is for the ajax typing search * results response . * @ param request render request * @ param response render response */ private String calculateSearchLaunchUrl ( RenderRequest request , RenderResponse res...
final HttpServletRequest httpRequest = this . portalRequestUtils . getPortletHttpRequest ( request ) ; final IPortalUrlBuilder portalUrlBuilder = this . portalUrlProvider . getPortalUrlBuilderByPortletFName ( httpRequest , "search" , UrlType . ACTION ) ; return portalUrlBuilder . getUrlString ( ) ;
public class CSSFactory { /** * Parses URL into StyleSheet * @ param url * URL of file to be parsed * @ param network * Network processor used for handling the URL connections * @ param encoding * Encoding of file * @ return Parsed StyleSheet * @ throws CSSException * When exception during parse occur...
return getCSSParserFactory ( ) . parse ( url , network , encoding , SourceType . URL , url ) ;
public class LexCharacterToken { /** * Creates a map of all field names and their value * @ param includeInheritedFields * if true all inherited fields are included * @ return a a map of names to values of all fields */ @ Override public Map < String , Object > getChildren ( Boolean includeInheritedFields ) { } }
Map < String , Object > fields = new HashMap < String , Object > ( ) ; if ( includeInheritedFields ) { fields . putAll ( super . getChildren ( includeInheritedFields ) ) ; } fields . put ( "unicode" , this . unicode ) ; return fields ;
public class SQLExecutor { /** * Remember to close the returned < code > Stream < / code > list to close the underlying < code > ResultSet < / code > list . * { @ code stream } operation won ' t be part of transaction or use the connection created by { @ code Transaction } even it ' s in transaction block / range . ...
final JdbcUtil . BiRecordGetter < T , RuntimeException > biRecordGetter = BiRecordGetter . to ( targetClass ) ; return streamAll ( sqls , statementSetter , biRecordGetter , jdbcSettings , parameters ) ;
public class Model { /** * Returns a mapping for given column according to given < code > modelDom < / code > . * In this case , < code > modelDom < / code > is * @ param colName name of column which is mapped , can be null . * @ param modelDom * @ param logNonExactMapping * @ return */ public static int [ ] ...
int emap [ ] = new int [ modelDom . length ] ; boolean bmap [ ] = new boolean [ modelDom . length ] ; HashMap < String , Integer > md = new HashMap < String , Integer > ( ( int ) ( ( colDom . length / 0.75f ) + 1 ) ) ; for ( int i = 0 ; i < colDom . length ; i ++ ) md . put ( colDom [ i ] , i ) ; for ( int i = 0 ; i < ...
public class ServiceDependencyBuilder { /** * Returns a builder instance that is initialized using a prototype ServiceDependency . * All values of the prototype are copied . * @ param prototype the prototype dependency * @ return ServiceDependencyBuilder */ public static ServiceDependencyBuilder copyOf ( final Se...
return new ServiceDependencyBuilder ( ) . withName ( prototype . getName ( ) ) . withDescription ( prototype . getDescription ( ) ) . withUrl ( prototype . getUrl ( ) ) . withType ( prototype . getType ( ) ) . withSubtype ( prototype . getSubtype ( ) ) . withMethods ( prototype . getMethods ( ) ) . withMediaTypes ( pro...
public class Icon { /** * Create an icon from a URL . * @ param url a URL . * @ return an icon as { @ link fr . jcgay . snp4j . Icon } . */ @ NonNull public static Icon url ( @ NonNull URL url ) { } }
return new Icon ( url . toString ( ) , false ) ;
public class BlockingBackChannel { /** * Called by iteration head after it has sent all input for the current superstep through the data channel * ( blocks iteration head ) . */ public DataInputView getReadEndAfterSuperstepEnded ( ) { } }
try { return queue . take ( ) . switchBuffers ( ) ; } catch ( InterruptedException e ) { throw new RuntimeException ( e ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; }
public class Strings { /** * escape Strings as in Java String literals */ public static String escape ( String str ) { } }
int i , max ; StringBuilder result ; char c ; max = str . length ( ) ; for ( i = 0 ; i < max ; i ++ ) { if ( str . charAt ( i ) < 32 ) { break ; } } if ( i == max ) { return str ; } result = new StringBuilder ( max + 10 ) ; for ( i = 0 ; i < max ; i ++ ) { c = str . charAt ( i ) ; switch ( c ) { case '\n' : result . ap...
public class AbstractViewQuery { /** * Gets the tag of the view . * @ return tag */ public Object getTag ( ) { } }
Object result = null ; if ( view != null ) { result = view . getTag ( ) ; } return result ;
public class JsonConvert { /** * 返回非null的值是由String 、 ArrayList 、 HashMap任意组合的对象 */ public < V > V convertFrom ( final ByteBuffer ... buffers ) { } }
if ( buffers == null || buffers . length == 0 ) return null ; return ( V ) new AnyDecoder ( factory ) . convertFrom ( new JsonByteBufferReader ( ( ConvertMask ) null , buffers ) ) ;
public class KeyValue { /** * Returns an empty { @ code KeyValue } instance with the { @ code key } set . No value is present for this instance . * @ param key the key , must not be { @ literal null } . * @ param < K > * @ param < V > * @ return the { @ link KeyValue } */ public static < K , V > KeyValue < K , ...
return new KeyValue < K , V > ( key , null ) ;
public class CxxVCppBuildLogParser { /** * Can be used to create a list of includes , defines and options for a single line If it follows the format of VC + + * @ param line * @ param projectPath * @ param compilationFile */ public void parseVCppLine ( String line , String projectPath , String compilationFile ) {...
this . parseVCppCompilerCLLine ( line , projectPath , compilationFile ) ;
public class Client { /** * Returns a list of authentication factors that are available for user enrollment * via API . * @ param userId * The id of the user . * @ return Array AuthFactor list * @ throws OAuthSystemException - if there is a IOException reading parameters of the httpURLConnection * @ throws ...
cleanError ( ) ; prepareToken ( ) ; URIBuilder url = new URIBuilder ( settings . getURL ( Constants . GET_FACTORS_URL , userId ) ) ; OneloginURLConnectionClient httpClient = new OneloginURLConnectionClient ( ) ; OAuthClient oAuthClient = new OAuthClient ( httpClient ) ; OAuthClientRequest bearerRequest = new OAuthBeare...
public class ShrinkWrapPath { /** * { @ inheritDoc } * @ see java . nio . file . Path # normalize ( ) */ @ Override public Path normalize ( ) { } }
final String normalizedString = normalize ( tokenize ( this ) , this . isAbsolute ( ) ) ; final Path normalized = new ShrinkWrapPath ( normalizedString , this . fileSystem ) ; return normalized ;
public class CorcInputFormat { /** * Gets the StructTypeInfo that declares the total schema of the file from the configuration */ static StructTypeInfo getSchemaTypeInfo ( Configuration conf ) { } }
String schemaTypeInfo = conf . get ( SCHEMA_TYPE_INFO ) ; if ( schemaTypeInfo != null && ! schemaTypeInfo . isEmpty ( ) ) { LOG . debug ( "Got schema typeInfo from conf: {}" , schemaTypeInfo ) ; return ( StructTypeInfo ) TypeInfoUtils . getTypeInfoFromTypeString ( conf . get ( SCHEMA_TYPE_INFO ) ) ; } return null ;
public class MapConstraints { /** * Returns a constrained view of the specified sorted - set multimap , using the * specified constraint . Any operations that add new mappings will call the * provided constraint . However , this method does not verify that existing * mappings satisfy the constraint . * < p > No...
return new ConstrainedSortedSetMultimap < K , V > ( multimap , constraint ) ;
public class TreeString { /** * Creates a { @ link TreeString } . Useful if you need to create one - off * { @ link TreeString } without { @ link TreeStringBuilder } . Memory consumption * is still about the same to { @ code new String ( s ) } . * @ return null if the parameter is null */ public static TreeString...
if ( s == null ) { return null ; } return new TreeString ( null , s ) ;
public class ResourceGroupsInner { /** * Captures the specified resource group as a template . * @ param resourceGroupName The name of the resource group to export as a template . * @ param parameters Parameters for exporting the template . * @ throws IllegalArgumentException thrown if parameters fail the validat...
return exportTemplateWithServiceResponseAsync ( resourceGroupName , parameters ) . map ( new Func1 < ServiceResponse < ResourceGroupExportResultInner > , ResourceGroupExportResultInner > ( ) { @ Override public ResourceGroupExportResultInner call ( ServiceResponse < ResourceGroupExportResultInner > response ) { return ...
public class CmsHtmlImport { /** * Tests if a filename is an external name , that is this name does not point into the OpenCms VFS . < p > * A filename is an external name if it contains the string " : / / " , e . g . " http : / / " or " ftp : / / " . < p > * @ param filename the filename to test * @ return true ...
boolean external = false ; if ( filename . indexOf ( "://" ) > 0 ) { external = true ; } return external ;
public class TaskDefinition { /** * The launch type to use with your task . For more information , see < a * href = " https : / / docs . aws . amazon . com / AmazonECS / latest / developerguide / launch _ types . html " > Amazon ECS Launch Types < / a > * in the < i > Amazon Elastic Container Service Developer Guid...
if ( compatibilities == null ) { this . compatibilities = null ; return ; } this . compatibilities = new com . amazonaws . internal . SdkInternalList < String > ( compatibilities ) ;
public class ImgUtil { /** * 给图片添加图片水印 < br > * 此方法并不关闭流 * @ param srcImage 源图像流 * @ param pressImg 水印图片 , 可以使用 { @ link ImageIO # read ( File ) } 方法读取文件 * @ param rectangle 矩形对象 , 表示矩形区域的x , y , width , height , x , y从背景图片中心计算 * @ param alpha 透明度 : alpha 必须是范围 [ 0.0 , 1.0 ] 之内 ( 包含边界值 ) 的一个浮点数字 * @ return ...
return Img . from ( srcImage ) . pressImage ( pressImg , rectangle , alpha ) . getImg ( ) ;
public class CreateUserPoolRequest { /** * Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setUsernameAttributes ( java . util . Collection ) } or { @ link...
if ( this . usernameAttributes == null ) { setUsernameAttributes ( new java . util . ArrayList < String > ( usernameAttributes . length ) ) ; } for ( String ele : usernameAttributes ) { this . usernameAttributes . add ( ele ) ; } return this ;
public class PrimaryWorkitem { /** * Collection of Tasks and Tests that belong to this primary workitem . * @ param filter How to filter the secondary workitems . To get only Tasks , * pass a TaskFilter . To get only Tests , pass a TestFilter . * @ return Collection of Tasks and Tests that belong to this primary ...
if ( filter == null ) { filter = new SecondaryWorkitemFilter ( ) ; } filter . parent . clear ( ) ; filter . parent . add ( this ) ; return getInstance ( ) . get ( ) . secondaryWorkitems ( filter ) ;
public class Monetary { /** * Access multiple { @ link MonetaryRounding } instances using a possibly complex query * @ param roundingQuery The { @ link javax . money . RoundingQuery } that may contains arbitrary parameters to be * evaluated . * @ return all { @ link javax . money . MonetaryRounding } instances ma...
return Optional . ofNullable ( monetaryRoundingsSingletonSpi ( ) ) . orElseThrow ( ( ) -> new MonetaryException ( "No MonetaryRoundingsSpi loaded, query functionality is not available." ) ) . getRoundings ( roundingQuery ) ;
public class MathMLConverter { /** * Converts from latex to full MathML that contains * pMML and cMML semantics . < br / > * This method relies on LaTeXMLo . * @ param latexContent latex formula * @ return well formatted mathml * @ throws MathConverterException conversion failed , simple info text included */...
LaTeXMLConverter converter = new LaTeXMLConverter ( config . getLatexml ( ) ) ; try { NativeResponse rep = converter . parseAsService ( latexContent ) ; if ( rep . getStatusCode ( ) == 0 ) { return rep . getResult ( ) ; } else { logger . error ( String . format ( "LaTeXMLServiceResponse follows:\n" + "statusCode: %s\nl...
public class TypeEqualitySpecializationUtils { /** * Removes all instances of { @ link Class } and { @ link ParameterizedType } for which a subtype is present in ' bounds ' */ private static List < Type > removeRedundantBounds ( final Type [ ] bounds ) { } }
if ( bounds . length == 1 ) { return Collections . singletonList ( bounds [ 0 ] ) ; } // if TypeVariable S has a bound T that is a TypeVariable , than S cannot have any other bounds , i . e . bounds . lenght = = 1 List < Type > result = new LinkedList < Type > ( ) ; for ( int i = 0 ; i < bounds . length ; i ++ ) { bool...
public class UserProperty { /** * Returns all the registered { @ link UserPropertyDescriptor } s . */ public static DescriptorExtensionList < UserProperty , UserPropertyDescriptor > all ( ) { } }
return Jenkins . getInstance ( ) . < UserProperty , UserPropertyDescriptor > getDescriptorList ( UserProperty . class ) ;
public class Serializer { /** * Writes Lists out as a data type * @ param out * Output write * @ param listType * List type * @ return boolean true if object was successfully serialized , false otherwise */ protected static boolean writeListType ( Output out , Object listType ) { } }
log . trace ( "writeListType" ) ; if ( listType instanceof List < ? > ) { writeList ( out , ( List < ? > ) listType ) ; } else { return false ; } return true ;
public class IsoRecurrence { /** * / * [ deutsch ] * < p > Erzeugt eine Sequenz von wiederkehrenden r & uuml ; ckw & auml ; rts laufenden * Moment - Intervallen mit der angegebenen Dauer . < / p > * @ param count the count of repeating intervals ( { @ code > = 0 } ) * @ param duration represents the negative du...
check ( count ) ; return new RecurrentMomentIntervals ( count , TYPE_DURATION_END , end . toZonalTimestamp ( offset ) , offset , duration ) ;
public class ModifierAdjustment { /** * Adjusts a field ' s modifiers if it fulfills the supplied matcher . * @ param matcher The matcher that determines if a field ' s modifiers should be adjusted . * @ param modifierContributor The modifier contributors to enforce . * @ return A new modifier adjustment that enf...
return withFieldModifiers ( matcher , Arrays . asList ( modifierContributor ) ) ;
public class SecretKeyFactory { /** * Generates a < code > SecretKey < / code > object from the provided key * specification ( key material ) . * @ param keySpec the specification ( key material ) of the secret key * @ return the secret key * @ exception InvalidKeySpecException if the given key specification ...
if ( serviceIterator == null ) { return spi . engineGenerateSecret ( keySpec ) ; } Exception failure = null ; SecretKeyFactorySpi mySpi = spi ; do { try { return mySpi . engineGenerateSecret ( keySpec ) ; } catch ( Exception e ) { if ( failure == null ) { failure = e ; } mySpi = nextSpi ( mySpi ) ; } } while ( mySpi !=...
public class SimpleArrayGrid { /** * Returns SimpleArrayGrid view to the same data with possibly different offset * and / or width * @ param offset * @ param width * @ return */ public SimpleArrayGrid view ( int offset , int width ) { } }
return new SimpleArrayGrid ( array , width , height , this . offset + offset , length , boxed ) ;
public class XmlUtils { /** * Escapes the characters in a < code > String < / code > . < / p > * For example , if you have called addEntity ( & quot ; foo & quot ; , 0xA1 ) , escape ( & quot ; \ u00A1 & quot ; ) will return * & quot ; & amp ; foo ; & quot ; < / p > * @ param str The < code > String < / code > to ...
StringBuffer buf = new StringBuffer ( str . length ( ) * 2 ) ; int i ; for ( i = 0 ; i < str . length ( ) ; ++ i ) { char ch = str . charAt ( i ) ; String entityName = SPECIAL_CHARS_NAMES_ARRAY . get ( ( int ) ch ) ; if ( entityName == null ) { if ( ch > 0x7F ) { int intValue = ch ; buf . append ( "&#" ) ; buf . append...
public class MetadataFinder { /** * Get the metadata cache files that are currently configured to be automatically attached when matching media is * mounted in a player on the network . * @ return the current auto - attache cache files , sorted by name */ public List < File > getAutoAttachCacheFiles ( ) { } }
ArrayList < File > currentFiles = new ArrayList < File > ( autoAttachCacheFiles ) ; Collections . sort ( currentFiles , new Comparator < File > ( ) { @ Override public int compare ( File o1 , File o2 ) { return o1 . getName ( ) . compareTo ( o2 . getName ( ) ) ; } } ) ; return Collections . unmodifiableList ( currentFi...
public class TransparentReplicaGetHelper { /** * Asynchronously fetch the document from the primary and if that operations fails try * all the replicas and return the first document that comes back from them ( using the * environments KV timeout for both primary and replica ) . * @ param id the document ID to fet...
return getFirstPrimaryOrReplica ( id , bucket , bucket . environment ( ) . kvTimeout ( ) ) ;
public class SpringApplication { /** * Set additional sources that will be used to create an ApplicationContext . A source * can be : a class name , package name , or an XML resource location . * Sources set here will be used in addition to any primary sources set in the * constructor . * @ param sources the ap...
Assert . notNull ( sources , "Sources must not be null" ) ; this . sources = new LinkedHashSet < > ( sources ) ;
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public PGPConstant createPGPConstantFromString ( EDataType eDataType , String initialValue ) { } }
PGPConstant result = PGPConstant . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ;
public class BackingStoreUtil { /** * Parses the String value as a primitive or a String , depending on its type . * @ param clazz the destination type * @ param value the value to parse * @ return the parsed value * @ throws Exception */ public static Object readPrimitive ( Class < ? > clazz , String value ) t...
if ( clazz == String . class ) { return value ; } else if ( clazz == Long . class ) { return Long . parseLong ( value ) ; } else if ( clazz == Integer . class ) { return Integer . parseInt ( value ) ; } else if ( clazz == Double . class ) { return Double . parseDouble ( value ) ; } else if ( clazz == Boolean . class ) ...
public class BitConverter { /** * For binary fields , set the current state . * Sets the target bit to the state . * @ param state The state to set this field . * @ param bDisplayOption Display changed fields if true . * @ param iMoveMode The move mode . * @ return The error code ( or NORMAL _ RETURN ) . */ p...
int iFieldValue = ( int ) this . getValue ( ) ; if ( ! m_bTrueIfMatch ) bState = ! bState ; // Do opposite operation if ( bState ) iFieldValue |= ( 1 << m_iBitNumber ) ; // Set the bit else iFieldValue &= ~ ( 1 << m_iBitNumber ) ; // Clear the bit return this . setValue ( iFieldValue , bDisplayOption , iMoveMode ) ;
public class MainProcessor { /** * Returns the < code > . class < / code > files to delete . As well the root - parameter as the rename ones * are taken in consideration , so that the concerned files are not listed in the result . * @ return the paths of the files in the jar - archive , including the < code > . cla...
Set < String > result = new HashSet < String > ( ) ; for ( String exclude : kp . getExcludes ( ) ) { String name = exclude + ".class" ; String renamed = renames . get ( name ) ; result . add ( ( renamed != null ) ? renamed : name ) ; } return result ;
public class PreferenceFragment { /** * Returns , whether icons should be shown next to items , depending on the app ' s settings , or * not . * @ return True , if icons should be shown next to items , false otherwise */ private boolean shouldItemIconsBeShown ( ) { } }
SharedPreferences sharedPreferences = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) ; String key = getString ( R . string . show_item_icons_preference_key ) ; boolean defaultValue = getResources ( ) . getBoolean ( R . bool . show_item_icons_preference_default_value ) ; return sharedPreferences . g...
public class SqlQueryStatement { /** * Append Join for non SQL92 Syntax */ private void appendJoin ( StringBuffer where , StringBuffer buf , Join join ) { } }
buf . append ( "," ) ; appendTableWithJoins ( join . right , where , buf ) ; if ( where . length ( ) > 0 ) { where . append ( " AND " ) ; } join . appendJoinEqualities ( where ) ;
public class ShapeAppearanceModel { /** * Sets the corner treatment for the top - right corner . * @ param cornerFamily the family to use to create the corner treatment * @ param cornerSize the size to use to create the corner treatment */ public void setTopRightCorner ( @ CornerFamily int cornerFamily , @ Dimensio...
setTopRightCorner ( MaterialShapeUtils . createCornerTreatment ( cornerFamily , cornerSize ) ) ;
public class OtpLocalNode { /** * Create an Erlang { @ link OtpErlangPort port } . Erlang ports are based upon * some node specific information ; this method creates a port using the * information in this node . Each call to this method produces a unique * port . It may not be meaningful to create a port in a non...
final OtpErlangPort p = new OtpErlangPort ( node , portCount , creation ) ; portCount ++ ; if ( portCount > 0xfffffff ) { /* 28 bits */ portCount = 0 ; } return p ;
public class MockKeyChain { /** * Build and configure an in - memory { @ link KeyChain } . * @ param name the name of the default identity to create * @ return an in - memory { @ link KeyChain } configured with the name as the * default identity * @ throws SecurityException if failed to create mock identity */ ...
PrivateKeyStorage keyStorage = new MemoryPrivateKeyStorage ( ) ; IdentityStorage identityStorage = new MemoryIdentityStorage ( ) ; KeyChain keyChain = new KeyChain ( new IdentityManager ( identityStorage , keyStorage ) , new SelfVerifyPolicyManager ( identityStorage ) ) ; // create keys , certs if necessary if ( ! iden...
public class HttpChannelConfig { /** * Take the user input size variable and make sure it is inside * the given range of min and max . If it is outside the range , * then set the value to the closest limit . * @ param size * @ param min * @ param max * @ return int */ private int rangeLimit ( int size , int...
if ( size < min ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Config: " + size + " too small" ) ; } return min ; } else if ( size > max ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Config: " + size + " too large...
public class HListLens { /** * Focus on the tail of an { @ link HList } . * @ param < Head > the head element type * @ param < Tail > the tail HList type * @ return a lens that focuses on the tail of an HList */ public static < Head , Tail extends HList > Lens . Simple < HCons < Head , ? extends Tail > , Tail > t...
return simpleLens ( HCons :: tail , ( hCons , newTail ) -> cons ( hCons . head ( ) , newTail ) ) ;
public class ResetUserPasswordRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ResetUserPasswordRequest resetUserPasswordRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( resetUserPasswordRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( resetUserPasswordRequest . getDirectoryId ( ) , DIRECTORYID_BINDING ) ; protocolMarshaller . marshall ( resetUserPasswordRequest . getUserName ( ) , USERNAME_BI...
public class FaxMediaReader { /** * Retrieve the previous page from the Twilio API . * @ param page current page * @ param client TwilioRestClient with which to make the request * @ return Previous Page */ @ Override public Page < FaxMedia > previousPage ( final Page < FaxMedia > page , final TwilioRestClient cli...
Request request = new Request ( HttpMethod . GET , page . getPreviousPageUrl ( Domains . FAX . toString ( ) , client . getRegion ( ) ) ) ; return pageForRequest ( client , request ) ;