signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class AcceptVpcPeeringConnectionRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional * parameters to enable operation dry - run . */ @ Override public Request < AcceptVpcPeeringConnectionRequest > getDryRunRequest ( ) { } }
Request < AcceptVpcPeeringConnectionRequest > request = new AcceptVpcPeeringConnectionRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ;
public class Gauge { /** * Defines if custom ticklabels should be used instead of the * automatically calculated ones . This could be useful for gauges * like a compass where you need " N " , " E " , " S " and " W " instead of * numbers . * @ param ENABLED */ public void setCustomTickLabelsEnabled ( final boole...
if ( null == customTickLabelsEnabled ) { _customTickLabelsEnabled = ENABLED ; fireUpdateEvent ( REDRAW_EVENT ) ; } else { customTickLabelsEnabled . set ( ENABLED ) ; }
public class ExecutionList { /** * Submits the given runnable to the given { @ link Executor } catching and logging all { @ linkplain * RuntimeException runtime exceptions } thrown by the executor . */ private static void executeListener ( Runnable runnable , Executor executor ) { } }
try { executor . execute ( runnable ) ; } catch ( RuntimeException e ) { // Log it and keep going - - bad runnable and / or executor . Don ' t punish the other runnables if // we ' re given a bad one . We only catch RuntimeException because we want Errors to propagate // up . log . fatal ( "RuntimeException while execu...
public class Base64 { /** * Decodes data from Base64 notation . * @ param s the string to decode * @ return the decoded data * @ throws NullPointerException if < code > s < / code > is null */ public static byte [ ] decode ( String s ) { } }
if ( s == null ) { throw new NullPointerException ( "Input string was null." ) ; } byte [ ] bytes = s . getBytes ( UTF_8 ) ; return decode ( bytes , 0 , bytes . length ) ;
public class GroupCombineChainedDriver { @ Override public void close ( ) { } }
try { sortAndReduce ( ) ; } catch ( Exception e ) { throw new ExceptionInChainedStubException ( this . taskName , e ) ; } this . outputCollector . close ( ) ;
public class TokenKeyEndpoint { /** * Get the verification key for the token signatures wrapped into keys array . * Wrapping done for compatibility with some clients expecting this even for single key , like mod _ auth _ openidc . * The principal has to be provided only if the key is secret * ( shared not public ...
boolean includeSymmetric = includeSymmetricalKeys ( principal ) ; Map < String , KeyInfo > keys = keyInfoService . getKeys ( ) ; List < VerificationKeyResponse > keyResponses = keys . values ( ) . stream ( ) . filter ( k -> includeSymmetric || RSA . name ( ) . equals ( k . type ( ) ) ) . map ( TokenKeyEndpoint :: getVe...
public class DefaultEntityResolve { /** * 处理 KeySql 注解 * @ param entityTable * @ param entityColumn * @ param keySql */ protected void processKeySql ( EntityTable entityTable , EntityColumn entityColumn , KeySql keySql ) { } }
if ( keySql . useGeneratedKeys ( ) ) { entityColumn . setIdentity ( true ) ; entityColumn . setGenerator ( "JDBC" ) ; entityTable . setKeyProperties ( entityColumn . getProperty ( ) ) ; entityTable . setKeyColumns ( entityColumn . getColumn ( ) ) ; } else if ( keySql . dialect ( ) == IdentityDialect . DEFAULT ) { entit...
public class UpdateSwaggerJson { /** * Creates a JSon object from a serialization result . * @ param serialization the serialization result * @ param className a class or type name * @ param newDef the new definition object to update */ public static void convertToTypes ( String serialization , String className ,...
JsonParser jsonParser = new JsonParser ( ) ; JsonElement jsonTree = jsonParser . parse ( serialization ) ; // Creating the swagger definition JsonObject innerObject = new JsonObject ( ) ; // Start adding basic properties innerObject . addProperty ( "title" , className ) ; innerObject . addProperty ( "definition" , "" )...
public class ConnectionValues { /** * Find the enumerated object that matchs the input name using the given * offset and length into that name . If none exist , then a null value is * returned . * @ param name * @ param offset * - starting point in that name * @ param length * - length to use from that of...
if ( null == name ) return null ; return ( ConnectionValues ) myMatcher . match ( name , offset , length ) ;
public class CmsSitesWebserverThread { /** * Updates LetsEncrypt configuration . */ private void updateLetsEncrypt ( ) { } }
getReport ( ) . println ( Messages . get ( ) . container ( Messages . RPT_STARTING_LETSENCRYPT_UPDATE_0 ) ) ; CmsLetsEncryptConfiguration config = OpenCms . getLetsEncryptConfig ( ) ; if ( ( config == null ) || ! config . isValidAndEnabled ( ) ) { return ; } CmsSiteConfigToLetsEncryptConfigConverter converter = new Cms...
public class TunnelResource { /** * Intercepts and returns the entire contents of a specific stream . * @ param streamIndex * The index of the stream to intercept . * @ param mediaType * The media type ( mimetype ) of the data within the stream . * @ param filename * The filename to use for the sake of iden...
return new StreamResource ( tunnel , streamIndex , mediaType ) ;
public class JournalConsumer { /** * Reject API calls from outside while we are in recovery mode . */ public String ingest ( Context context , InputStream serialization , String logMessage , String format , String encoding , String pid ) throws ServerException { } }
throw rejectCallsFromOutsideWhileInRecoveryMode ( ) ;
public class CommerceOrderLocalServiceUtil { /** * Returns the commerce order matching the UUID and group . * @ param uuid the commerce order ' s UUID * @ param groupId the primary key of the group * @ return the matching commerce order , or < code > null < / code > if a matching commerce order could not be found...
return getService ( ) . fetchCommerceOrderByUuidAndGroupId ( uuid , groupId ) ;
public class TaskInProgress { /** * Save diagnostic information for a given task . * @ param taskId id of the task * @ param diagInfo diagnostic information for the task */ public void addDiagnosticInfo ( TaskAttemptID taskId , String diagInfo ) { } }
List < String > diagHistory = taskDiagnosticData . get ( taskId ) ; if ( diagHistory == null ) { diagHistory = new ArrayList < String > ( ) ; taskDiagnosticData . put ( taskId , diagHistory ) ; } diagHistory . add ( diagInfo ) ;
public class FontFilter { /** * { @ inheritDoc } * < p > The { @ link FontFilter } does not use any cleaningParameters passed in . < / p > */ @ Override public void filter ( Document document , Map < String , String > cleaningParameters ) { } }
List < Element > fontTags = filterDescendants ( document . getDocumentElement ( ) , new String [ ] { TAG_FONT } ) ; for ( Element fontTag : fontTags ) { Element span = document . createElement ( TAG_SPAN ) ; moveChildren ( fontTag , span ) ; StringBuffer buffer = new StringBuffer ( ) ; if ( fontTag . hasAttribute ( ATT...
public class DescribeNetworkInterfacePermissionsRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional * parameters to enable operation dry - run . */ @ Override public Request < DescribeNetworkInterfacePermissionsRequest > getDryRunRequest ( ) { } }
Request < DescribeNetworkInterfacePermissionsRequest > request = new DescribeNetworkInterfacePermissionsRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ;
public class CompoundPainter { /** * Set a transform to be applied to all painters contained in this CompoundPainter * @ param transform a new AffineTransform */ public void setTransform ( AffineTransform transform ) { } }
AffineTransform old = getTransform ( ) ; this . transform = transform ; setDirty ( true ) ; firePropertyChange ( "transform" , old , transform ) ;
public class JawrScssStylesheet { /** * ( non - Javadoc ) * @ see com . vaadin . sass . internal . ScssStylesheet # resolveStylesheet ( java . lang . * String , com . vaadin . sass . internal . ScssStylesheet ) */ @ Override public InputSource resolveStylesheet ( String identifier , ScssStylesheet parentStylesheet ...
return resolver . resolve ( parentStylesheet , identifier ) ;
public class ClassNodeResolver { /** * Search for classes using ASM decompiler */ private LookupResult findDecompiled ( String name , CompilationUnit compilationUnit , GroovyClassLoader loader ) { } }
ClassNode node = ClassHelper . make ( name ) ; if ( node . isResolved ( ) ) { return new LookupResult ( null , node ) ; } DecompiledClassNode asmClass = null ; String fileName = name . replace ( '.' , '/' ) + ".class" ; URL resource = loader . getResource ( fileName ) ; if ( resource != null ) { try { asmClass = new De...
public class ReactionManipulator { /** * < p > Converts a reaction to an ' inlined ' reaction stored as a molecule . All * reactants , agents , products are added to the molecule as disconnected * components with atoms flagged as to their role { @ link ReactionRole } and * component group . < / p > * The inline...
if ( rxn == null ) throw new IllegalArgumentException ( "Null reaction provided" ) ; final IChemObjectBuilder bldr = rxn . getBuilder ( ) ; final IAtomContainer mol = bldr . newInstance ( IAtomContainer . class ) ; mol . setProperties ( rxn . getProperties ( ) ) ; mol . setID ( rxn . getID ( ) ) ; int grpId = 0 ; for (...
public class TileTOCRGImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public boolean eIsSet ( int featureID ) { } }
switch ( featureID ) { case AfplibPackage . TILE_TOCRG__XOFFSET : return XOFFSET_EDEFAULT == null ? xoffset != null : ! XOFFSET_EDEFAULT . equals ( xoffset ) ; case AfplibPackage . TILE_TOCRG__YOFFSET : return YOFFSET_EDEFAULT == null ? yoffset != null : ! YOFFSET_EDEFAULT . equals ( yoffset ) ; case AfplibPackage . TI...
public class HpelPlainFormatter { /** * Gets the file header information . Implementations of the HpelPlainFormatter class * will have a non - XML - based header . * @ return the formatter ' s header as a String */ @ Override public String [ ] getHeader ( ) { } }
ArrayList < String > result = new ArrayList < String > ( ) ; if ( customHeader . length > 0 ) { for ( CustomHeaderLine line : customHeader ) { String formattedLine = line . formatLine ( headerProps ) ; if ( formattedLine != null ) { result . add ( formattedLine ) ; } } } else { for ( String prop : headerProps . stringP...
public class BMOImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setOvlyName ( String newOvlyName ) { } }
String oldOvlyName = ovlyName ; ovlyName = newOvlyName ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . BMO__OVLY_NAME , oldOvlyName , ovlyName ) ) ;
public class Stream { /** * Creates a new Stream over the elements returned by the supplied Iterator . * @ param iterator * an Iterator returning non - null elements * @ param < T > * the type of elements * @ return a Stream over the elements returned by the supplied Iterator */ public static < T > Stream < T...
if ( iterator . hasNext ( ) ) { return new IteratorStream < T > ( iterator ) ; } else { return new EmptyStream < T > ( ) ; }
public class PuiSpanRenderer { /** * private static final Logger LOGGER = Logger . getLogger ( " de . beyondjava . angularFaces . components . puiSpan . PuiSpanRenderer " ) ; */ @ Override public void encodeBegin ( FacesContext context , UIComponent component ) throws IOException { } }
ResponseWriter writer = context . getResponseWriter ( ) ; writer . startElement ( "span" , component ) ; String keys = ( String ) component . getAttributes ( ) . get ( "attributeNames" ) ; if ( null != keys ) { String [ ] keyArray = keys . split ( "," ) ; for ( String key : keyArray ) { writer . writeAttribute ( key , ...
public class ScriptHandler { /** * < pre > * Path to the script from the application root directory . * < / pre > * < code > string script _ path = 1 ; < / code > */ public com . google . protobuf . ByteString getScriptPathBytes ( ) { } }
java . lang . Object ref = scriptPath_ ; if ( ref instanceof java . lang . String ) { com . google . protobuf . ByteString b = com . google . protobuf . ByteString . copyFromUtf8 ( ( java . lang . String ) ref ) ; scriptPath_ = b ; return b ; } else { return ( com . google . protobuf . ByteString ) ref ; }
public class Utils { /** * / * @ pure @ */ public static boolean report ( String name , boolean res , Object ... params ) { } }
if ( res ) { return true ; } StringBuilder sb = new StringBuilder ( ) ; sb . append ( name ) ; sb . append ( '(' ) ; if ( params . length > 1 ) { String del = ", " ; String eq = " = " ; sb . append ( params [ 0 ] ) ; sb . append ( eq ) ; sb . append ( Utils . toString ( params [ 1 ] ) ) ; for ( int i = 2 ; i < params ....
public class Neo4JClient { /** * ( non - Javadoc ) * @ see com . impetus . kundera . client . Client # findAll ( java . lang . Class , * java . lang . String [ ] , java . lang . Object [ ] ) */ @ Override public < E > List < E > findAll ( Class < E > entityClass , String [ ] columnsToSelect , Object ... keys ) { } ...
List entities = new ArrayList < E > ( ) ; for ( Object key : keys ) { entities . add ( find ( entityClass , key ) ) ; } return entities ;
public class DatabaseSpec { /** * Connect to cluster . * @ param clusterType DB type ( Cassandra | Mongo | Elasticsearch ) * @ param url url where is started Cassandra cluster */ @ Given ( "^I( securely)? connect to '(Cassandra|Mongo|Elasticsearch)' cluster at '(.+)'$" ) public void connect ( String secured , Strin...
switch ( clusterType ) { case "Cassandra" : commonspec . getCassandraClient ( ) . setHost ( url ) ; commonspec . getCassandraClient ( ) . connect ( secured ) ; break ; case "Mongo" : commonspec . getMongoDBClient ( ) . connect ( ) ; break ; case "Elasticsearch" : LinkedHashMap < String , Object > settings_map = new Lin...
public class route { /** * Use this API to delete route . */ public static base_response delete ( nitro_service client , route resource ) throws Exception { } }
route deleteresource = new route ( ) ; deleteresource . network = resource . network ; deleteresource . netmask = resource . netmask ; deleteresource . gateway = resource . gateway ; deleteresource . td = resource . td ; return deleteresource . delete_resource ( client ) ;
public class FSDirectory { /** * Return the byte array representing the given inode ' s full path name * @ param inode an inode * @ return the byte array representation of the full path of the inode * @ throws IOException if the inode is invalid */ static byte [ ] [ ] getINodeByteArray ( INode inode ) throws IOEx...
// calculate the depth of this inode from root int depth = getPathDepth ( inode ) ; byte [ ] [ ] names = new byte [ depth ] [ ] ; // fill up the inodes in the path from this inode to root for ( int i = 0 ; i < depth ; i ++ ) { names [ depth - i - 1 ] = inode . getLocalNameBytes ( ) ; inode = inode . parent ; } return n...
public class HttpMessage { /** * Get Attribute names . * @ return Enumeration of Strings */ public Enumeration getAttributeNames ( ) { } }
if ( _attributes == null ) return Collections . enumeration ( Collections . EMPTY_LIST ) ; return Collections . enumeration ( _attributes . keySet ( ) ) ;
public class KeystoreManager { /** * Make sure that the provided keystore will be reusable . * @ param server the server the keystore is intended for * @ param keystore a keystore containing your private key and the certificate signed by Apple ( File , InputStream , byte [ ] , KeyStore or String for a file path ) ...
if ( keystore instanceof InputStream ) keystore = loadKeystore ( server , keystore , false ) ; return keystore ;
public class AmazonEC2Client { /** * Describes the specified conversion tasks or all your conversion tasks . For more information , see the < a * href = " https : / / docs . aws . amazon . com / vm - import / latest / userguide / " > VM Import / Export User Guide < / a > . * For information about the import manifes...
request = beforeClientExecution ( request ) ; return executeDescribeConversionTasks ( request ) ;
public class N { /** * Returns a new array with removes all the occurrences of specified elements from < code > a < / code > * @ param a * @ param elements * @ return * @ see Collection # removeAll ( Collection ) */ @ SafeVarargs public static long [ ] removeAll ( final long [ ] a , final long ... elements ) { ...
if ( N . isNullOrEmpty ( a ) ) { return N . EMPTY_LONG_ARRAY ; } else if ( N . isNullOrEmpty ( elements ) ) { return a . clone ( ) ; } else if ( elements . length == 1 ) { return removeAllOccurrences ( a , elements [ 0 ] ) ; } final LongList list = LongList . of ( a . clone ( ) ) ; list . removeAll ( LongList . of ( el...
public class LibertyTracePreprocessInstrumentation { /** * Find the described field in the list of { @ code FieldNode } s . * @ param desc the field type descriptor * @ param fields the list of fields * @ return the fields the match the provided descriptor */ private List < FieldNode > getFieldsByDesc ( String de...
List < FieldNode > result = new ArrayList < FieldNode > ( ) ; for ( FieldNode fn : fields ) { if ( desc . equals ( fn . desc ) ) { result . add ( fn ) ; } } return result ;
public class IonReaderTextRawTokensX { /** * peeks into the input stream to see if the next token * would be a double colon . If indeed this is the case * it skips the two colons and returns true . If not * it unreads the 1 or 2 real characters it read and * return false . * It always consumes any preceding w...
int c = skip_over_whitespace ( ) ; if ( c != ':' ) { unread_char ( c ) ; return false ; } c = read_char ( ) ; if ( c != ':' ) { unread_char ( c ) ; unread_char ( ':' ) ; return false ; } return true ;
public class SibRaMessagingEngineConnection { /** * Closes this connection and any associated listeners and dispatchers . */ void close ( boolean alreadyClosed ) { } }
final String methodName = "close" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , alreadyClosed ) ; } _closed = true ; /* * 238811: * Stop all of the listeners - do not close them as the dispatchers * might still be using them . Close the...
public class HikariPool { /** * Log the current pool state at debug level . * @ param prefix an optional prefix to prepend the log message */ void logPoolState ( String ... prefix ) { } }
if ( logger . isDebugEnabled ( ) ) { logger . debug ( "{} - {}stats (total={}, active={}, idle={}, waiting={})" , poolName , ( prefix . length > 0 ? prefix [ 0 ] : "" ) , getTotalConnections ( ) , getActiveConnections ( ) , getIdleConnections ( ) , getThreadsAwaitingConnection ( ) ) ; }
public class DynamoDBMapper { /** * Returns a new map object that merges the two sets of expected value * conditions ( user - specified or imposed by the internal implementation of * DynamoDBMapper ) . Internal assertion on an attribute will be overridden by * any user - specified condition on the same attribute ...
// If any of the condition map is null , simply return a copy of the other one . if ( ( internalAssertions == null || internalAssertions . isEmpty ( ) ) && ( userProvidedConditions == null || userProvidedConditions . isEmpty ( ) ) ) { return null ; } else if ( internalAssertions == null ) { return new HashMap < String ...
public class ServiceManagerSparql { /** * Given the URI of a modelReference , this method figures out all the services * that have this as model references . * This method uses SPARQL 1.1 to avoid using regexs for performance . * @ param modelReference the type of output sought for * @ return a Set of URIs of o...
if ( modelReference == null ) { return ImmutableSet . of ( ) ; } StringBuilder queryBuilder = new StringBuilder ( ) ; queryBuilder . append ( "PREFIX msm: <" ) . append ( MSM . getURI ( ) ) . append ( "> " ) . append ( "PREFIX rdf: <" ) . append ( RDF . getURI ( ) ) . append ( "> " ) . append ( "PREFIX sawsdl: <" ) . a...
public class ImageMath { /** * Bilinear interpolation of ARGB values . * @ param x the X interpolation parameter 0 . . 1 * @ param y the y interpolation parameter 0 . . 1 * @ param rgb array of four ARGB values in the order NW , NE , SW , SE * @ return the interpolated value */ public static int bilinearInterpo...
float m0 , m1 ; int a0 = ( nw >> 24 ) & 0xff ; int r0 = ( nw >> 16 ) & 0xff ; int g0 = ( nw >> 8 ) & 0xff ; int b0 = nw & 0xff ; int a1 = ( ne >> 24 ) & 0xff ; int r1 = ( ne >> 16 ) & 0xff ; int g1 = ( ne >> 8 ) & 0xff ; int b1 = ne & 0xff ; int a2 = ( sw >> 24 ) & 0xff ; int r2 = ( sw >> 16 ) & 0xff ; int g2 = ( sw >>...
public class BS { /** * Returns a < a href = * " http : / / docs . aws . amazon . com / amazondynamodb / latest / developerguide / Expressions . SpecifyingConditions . html # ConditionExpressionReference . Comparators " * > comparator condition < / a > ( that evaluates to true if the value of the * current attrib...
return new ComparatorCondition ( "=" , this , new LiteralOperand ( new LinkedHashSet < ByteBuffer > ( Arrays . asList ( values ) ) ) ) ;
public class TaskManagementFunctionResponseParser { /** * { @ inheritDoc } */ @ Override protected final void checkIntegrity ( ) throws InternetSCSIException { } }
String exceptionMessage ; do { BasicHeaderSegment bhs = protocolDataUnit . getBasicHeaderSegment ( ) ; if ( bhs . getTotalAHSLength ( ) != 0 ) { exceptionMessage = "TotalAHSLength must be 0!" ; break ; } if ( bhs . getDataSegmentLength ( ) != 0 ) { exceptionMessage = "DataSegmentLength must be 0!" ; break ; } Utils . i...
public class MatrixFeatures_DSCC { /** * Checks to see if the matrix is positive definite . * x < sup > T < / sup > A x & gt ; 0 < br > * for all x where x is a non - zero vector and A is a symmetric matrix . * @ param A square symmetric matrix . Not modified . * @ return True if it is positive definite and fal...
if ( A . numRows != A . numCols ) return false ; CholeskySparseDecomposition < DMatrixSparseCSC > chol = new CholeskyUpLooking_DSCC ( ) ; return chol . decompose ( A ) ;
public class ReferenceObjectCache { /** * Run through all maps and remove any references that have been null ' d out by the GC . */ public < T > void cleanNullReferencesAll ( ) { } }
for ( Map < Object , Reference < Object > > objectMap : classMaps . values ( ) ) { cleanMap ( objectMap ) ; }
public class Utils { /** * Executes command , and waits for the expected phrase in console printout . * @ param command command line * @ return console output as a list of strings * @ throws IOException for command error * @ throws InterruptedException when interrupted */ public static List < String > cmd ( Str...
return cmd ( command . split ( " " ) ) ;
public class ProcessControlHelper { /** * Run the relevant command for dumping the system * @ param javaDumpActions the java dump actions to take place * @ param systemDump whether this is a full dump ( true ) or just javadump ( false ) * @ param dumpTimestamp the timestamp on the server dump packager of the full...
ServerLock serverLock = ServerLock . createTestLock ( bootProps ) ; ReturnCode dumpRc = ReturnCode . OK ; // The lock file may have been ( erroneously ) deleted : this can happen on linux boolean lockExists = serverLock . lockFileExists ( ) ; if ( lockExists ) { if ( serverLock . testServerRunning ( ) ) { // server is ...
public class JvmAnnotationTargetImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public NotificationChain eInverseRemove ( InternalEObject otherEnd , int featureID , NotificationChain msgs ) { } }
switch ( featureID ) { case TypesPackage . JVM_ANNOTATION_TARGET__ANNOTATIONS : return ( ( InternalEList < ? > ) getAnnotations ( ) ) . basicRemove ( otherEnd , msgs ) ; } return super . eInverseRemove ( otherEnd , featureID , msgs ) ;
public class ExpressionBuilder { /** * Appends a not equals test to the condition . * @ param trigger the trigger field . * @ param compare the value to use in the compare . * @ return this ExpressionBuilder . */ public ExpressionBuilder notEquals ( final SubordinateTrigger trigger , final Object compare ) { } }
BooleanExpression exp = new CompareExpression ( CompareType . NOT_EQUAL , trigger , compare ) ; appendExpression ( exp ) ; return this ;
public class WriterUtf8 { /** * Writes a short string . */ private int writeShort ( String value , int offset , int end ) throws IOException { } }
int ch ; OutputStreamWithBuffer os = _os ; byte [ ] buffer = os . buffer ( ) ; int bOffset = os . offset ( ) ; end = Math . min ( end , offset + buffer . length - bOffset ) ; for ( ; offset < end && ( ch = value . charAt ( offset ) ) < 0x80 ; offset ++ ) { buffer [ bOffset ++ ] = ( byte ) ch ; } os . offset ( bOffset )...
public class EventhubDataWriter { /** * Send an encoded string to the Eventhub using post method */ private int request ( String encoded ) throws IOException { } }
refreshSignature ( ) ; HttpPost httpPost = new HttpPost ( targetURI ) ; httpPost . setHeader ( "Content-type" , "application/vnd.microsoft.servicebus.json" ) ; httpPost . setHeader ( "Authorization" , signature ) ; httpPost . setHeader ( "Host" , namespaceName + ".servicebus.windows.net " ) ; StringEntity entity = new ...
public class FilePath { /** * Executes some program on the machine that this { @ link FilePath } exists , * so that one can perform local file operations . */ public < T > T act ( final FileCallable < T > callable ) throws IOException , InterruptedException { } }
return act ( callable , callable . getClass ( ) . getClassLoader ( ) ) ;
public class FileSystemLocationScanner { /** * Finds all the resource names contained in this file system folder . * @ param classPathRootOnDisk The location of the classpath root on disk , with a trailing slash . * @ param scanRootLocation The root location of the scan on the classpath , without leading or trailin...
LOGGER . debug ( "Scanning for resources in path: {} ({})" , folder . getPath ( ) , scanRootLocation ) ; File [ ] files = folder . listFiles ( ) ; if ( files == null ) { return emptySet ( ) ; } Set < String > resourceNames = new TreeSet < > ( ) ; for ( File file : files ) { if ( file . canRead ( ) ) { if ( file . isDir...
public class AnalyticsQuery { /** * Creates an { @ link AnalyticsQuery } with named parameters as part of the query . * @ param statement the statement to send . * @ param namedParams the named parameters which will be put in for the placeholders . * @ return a { @ link AnalyticsQuery } . */ public static Paramet...
return new ParameterizedAnalyticsQuery ( statement , null , namedParams , null ) ;
public class RepositoryFileApi { /** * Get file from repository . Allows you to receive information about file in repository like name , size , and optionally content . * Note that file content is Base64 encoded . * < pre > < code > GitLab Endpoint : GET / projects / : id / repository / files < / code > < / pre > ...
if ( ! includeContent ) { return ( getFileInfo ( projectIdOrPath , filePath , ref ) ) ; } Form form = new Form ( ) ; addFormParam ( form , "ref" , ref , true ) ; Response response = get ( Response . Status . OK , form . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "repository" , "files" , urlEncode...
public class ResultUtil { /** * 如果对象有ESId注解标识的字段 , 则注入parent和 * @ param data */ private static void injectAnnotationESId ( ClassUtil . PropertieDescription injectAnnotationESId , Object data , BaseSearchHit hit ) { } }
if ( data == null ) return ; Object id = hit . getId ( ) ; // ClassUtil . PropertieDescription propertieDescription = classInfo . getEsIdProperty ( ) ; _injectAnnotationES ( injectAnnotationESId , data , hit , id ) ;
public class EndianAwareDataInputStream { /** * end readFloat ( ) */ @ Override public void readFully ( byte [ ] b ) throws IOException { } }
in . readFully ( b ) ; readTally += b . length ;
public class LongBitSet { /** * this = this AND other */ void and ( LongBitSet other ) { } }
int pos = Math . min ( numWords , other . numWords ) ; while ( -- pos >= 0 ) { bits [ pos ] &= other . bits [ pos ] ; } if ( numWords > other . numWords ) { Arrays . fill ( bits , other . numWords , numWords , 0L ) ; }
public class WrappingSecurityTokenServiceClaimsHandler { /** * Create processed claim processed claim . * @ param requestClaim the request claim * @ param parameters the parameters * @ return the processed claim */ protected ProcessedClaim createProcessedClaim ( final Claim requestClaim , final ClaimsParameters p...
val claim = new ProcessedClaim ( ) ; claim . setClaimType ( createProcessedClaimType ( requestClaim , parameters ) ) ; claim . setIssuer ( this . issuer ) ; claim . setOriginalIssuer ( this . issuer ) ; claim . setValues ( requestClaim . getValues ( ) ) ; return claim ;
public class BasicRandomRoutingTable { /** * Add a group of TrustGraphNeighbors to the routing table . * A maximum of one route is disrupted by this operation , * as many routes as possible are assigned within the group . * Any previously mapped neighbors will be ignored . * @ param neighbor the set of TrustGra...
if ( neighborsIn . isEmpty ( ) ) { return ; } // all modification operations are serialized synchronized ( this ) { /* filter out any neighbors that are already in the routing table * and the new ones to the newNeighbors list */ final LinkedList < TrustGraphNodeId > newNeighbors = new LinkedList < TrustGraphNodeId > ...
public class CmsErrorBean { /** * Returns the localized Message , if the argument is a CmsException , or * the message otherwise . < p > * @ param t the Throwable to get the message from * @ return returns the localized Message , if the argument is a CmsException , or * the message otherwise */ public String ge...
if ( ( t instanceof I_CmsThrowable ) && ( ( ( I_CmsThrowable ) t ) . getMessageContainer ( ) != null ) ) { StringBuffer result = new StringBuffer ( 256 ) ; if ( m_throwable instanceof CmsMultiException ) { CmsMultiException exc = ( CmsMultiException ) m_throwable ; String message = exc . getMessage ( m_locale ) ; if ( ...
public class RowLevelSecurityRepositoryDecorator { /** * Finds out what permission to check for an operation that is being performed on this repository . * @ param operation the Operation that is being performed on the repository * @ return the EntityPermission to check */ private EntityPermission getPermission ( A...
EntityPermission result ; switch ( operation ) { case COUNT : case READ : result = EntityPermission . READ ; break ; case UPDATE : result = EntityPermission . UPDATE ; break ; case DELETE : result = EntityPermission . DELETE ; break ; case CREATE : throw new UnexpectedEnumException ( Action . CREATE ) ; default : throw...
public class ModelsImpl { /** * Get one entity role for a given entity . * @ param appId The application ID . * @ param versionId The version ID . * @ param entityId entity ID . * @ param roleId entity role ID . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the obse...
return getRegexEntityRoleWithServiceResponseAsync ( appId , versionId , entityId , roleId ) . map ( new Func1 < ServiceResponse < EntityRole > , EntityRole > ( ) { @ Override public EntityRole call ( ServiceResponse < EntityRole > response ) { return response . body ( ) ; } } ) ;
public class ProbeResponseResource { /** * Inbound JSON responses get processed here . * @ param probeResponseJSON - the actual wireline response payload * @ return some innocuous string */ @ POST @ Path ( "/probeResponse" ) @ Consumes ( "application/json" ) public String handleJSONProbeResponse ( String probeRespo...
JSONSerializer serializer = new JSONSerializer ( ) ; ResponseWrapper response ; try { response = serializer . unmarshal ( probeResponseJSON ) ; } catch ( ResponseParseException e ) { String errorResponseString = "Incoming Response could not be parsed. Error message is: " + e . getMessage ( ) ; Console . error ( errorRe...
public class AmazonSimpleDBUtil { /** * Decodes byte [ ] value from the string representation created using encodeDate ( . . ) function . * @ param value * string representation of the date value * @ return original byte [ ] value */ public static byte [ ] decodeByteArray ( String value ) throws ParseException { ...
try { return Base64 . decodeBase64 ( value . getBytes ( UTF8_ENCODING ) ) ; } catch ( UnsupportedEncodingException e ) { throw new MappingException ( "Could not decode byteArray to UTF8 encoding" , e ) ; }
public class LoadBalancerDescription { /** * The listeners for the load balancer . * @ param listenerDescriptions * The listeners for the load balancer . */ public void setListenerDescriptions ( java . util . Collection < ListenerDescription > listenerDescriptions ) { } }
if ( listenerDescriptions == null ) { this . listenerDescriptions = null ; return ; } this . listenerDescriptions = new com . amazonaws . internal . SdkInternalList < ListenerDescription > ( listenerDescriptions ) ;
public class TypeFactory { /** * { @ code literal ( new L < List < String > > ( ) { } ) = = List < String > } . * Method mostly exists to remind about { @ link TypeLiteral } , which can be used directly like * { @ code new TypeLiteral < List < String > > ( ) { } . getType ( ) } . * @ param literal literal with ty...
if ( literal . getClass ( ) . equals ( L . class ) ) { throw new IllegalArgumentException ( "Incorrect usage: literal type must be an anonymous class: new L<Some>(){}" ) ; } return literal . getType ( ) ;
public class FacebookLikeBox { /** * Background thread */ protected void processUrl ( final String url ) { } }
try { final Result result = mProcessor . processUrl ( url ) ; post ( new Runnable ( ) { @ Override public void run ( ) { if ( isAttachedToWindow ( ) ) { postProcessUrl ( url , result ) ; } } } ) ; } catch ( Throwable ex ) { if ( LOGGING ) { Log . wtf ( LOG_TAG , ex ) ; } }
public class SoapUtils { /** * A method to extract the content of the SOAP body . * @ param soapMessage * the SOAP message . * @ return the content of the body of the input SOAP message . * @ author Simone Gianfranceschi */ public static Document getSoapBody ( Document soapMessage ) throws Exception { } }
Element envelope = soapMessage . getDocumentElement ( ) ; Element body = DomUtils . getChildElement ( DomUtils . getElementByTagName ( envelope , envelope . getPrefix ( ) + ":Body" ) ) ; Document content = DomUtils . createDocument ( body ) ; Element documentRoot = content . getDocumentElement ( ) ; addNSdeclarations (...
public class GenericResponseBuilder { /** * Sets the response entity body on the builder . * < p > A specific media type can be set using the { @ code type ( . . . ) } methods . * @ param entity the response entity body * @ param annotations annotations , in addition to the annotations on the resource method retu...
if ( hasErrorEntity ) { throw new IllegalStateException ( "errorEntity already set. Only one of entity and errorEntity may be set" ) ; } this . body = entity ; rawBuilder . entity ( entity , annotations ) ; return this ;
public class StaticFilesConfiguration { /** * Attempt consuming using either static resource handlers or jar resource handlers * @ param httpRequest The HTTP servlet request . * @ param httpResponse The HTTP servlet response . * @ return true if consumed , false otherwise . * @ throws IOException in case of IO ...
try { if ( consumeWithFileResourceHandlers ( httpRequest , httpResponse ) ) { return true ; } } catch ( DirectoryTraversal . DirectoryTraversalDetection directoryTraversalDetection ) { httpResponse . setStatus ( 400 ) ; httpResponse . getWriter ( ) . write ( "Bad request" ) ; httpResponse . getWriter ( ) . flush ( ) ; ...
public class FixedCallbackHandler { /** * / * ( non - Javadoc ) * @ see javax . security . auth . callback . CallbackHandler # handle ( javax . security . auth . callback . Callback [ ] ) */ public void handle ( Callback [ ] callbacks ) throws UnsupportedCallbackException { } }
for ( Callback callback : callbacks ) { if ( callback instanceof NameCallback ) { ( ( NameCallback ) callback ) . setName ( name ) ; } else if ( callback instanceof PasswordCallback ) { ( ( PasswordCallback ) callback ) . setPassword ( password ) ; } else { throw new UnsupportedCallbackException ( callback ) ; } }
public class JsAdminService { /** * Does the specified string contain characters valid in a JMX key property ? * @ param s the string to be checked * @ return boolean if true , indicates the string is valid , otherwise false */ public static boolean isValidJmxPropertyValue ( String s ) { } }
if ( ( s . indexOf ( ":" ) >= 0 ) || ( s . indexOf ( "*" ) >= 0 ) || ( s . indexOf ( '"' ) >= 0 ) || ( s . indexOf ( "?" ) >= 0 ) || ( s . indexOf ( "," ) >= 0 ) || ( s . indexOf ( "=" ) >= 0 ) ) { return false ; } else return true ;
public class MapKeyLoader { /** * Triggers key and value loading if there is no ongoing or completed * key loading task , otherwise does nothing . * The actual loading is done on a separate thread . * @ param mapStoreContext the map store context for this map * @ param replaceExistingValues if the existing entr...
role . nextOrStay ( Role . SENDER ) ; if ( state . is ( State . LOADING ) ) { return keyLoadFinished ; } state . next ( State . LOADING ) ; return sendKeys ( mapStoreContext , replaceExistingValues ) ;
public class CEMILDataEx { /** * Adds additional information to the message . * It replaces additional information of the same type , if any was previously added . * @ param infoType type ID of additional information * @ param info additional information data */ public synchronized void addAdditionalInfo ( int in...
if ( infoType < 0 || infoType >= ADDINFO_ESC ) throw new KNXIllegalArgumentException ( "info type out of range [0..254]" ) ; if ( ! checkAddInfoLength ( infoType , info . length ) ) throw new KNXIllegalArgumentException ( "wrong info data length, expected " + ADDINFO_LENGTHS [ infoType ] + " bytes" ) ; putAddInfo ( inf...
public class AvroParser { /** * The main method transforming Avro record into a row in H2O frame . * @ param gr Avro generic record * @ param columnNames Column names prepared by parser setup * @ param inSchema Flattenized Avro schema which corresponds to passed column names * @ param columnTypes Target H2O typ...
assert inSchema . length == columnTypes . length : "AVRO field flatenized schema has to match to parser setup" ; BufferedString bs = new BufferedString ( ) ; for ( int cIdx = 0 ; cIdx < columnNames . length ; cIdx ++ ) { int inputFieldIdx = inSchema [ cIdx ] . pos ( ) ; Schema . Type inputType = toPrimitiveType ( inSch...
public class ConfigurationOption { /** * Constructs a { @ link ConfigurationOptionBuilder } whose value is of type { @ link Map } & lt ; { @ link Pattern } , { @ link * String } & gt ; * @ return a { @ link ConfigurationOptionBuilder } whose value is of type { @ link Map } & lt ; { @ link Pattern } , { @ link * S...
return new ConfigurationOptionBuilder < Map < Pattern , String > > ( MapValueConverter . REGEX_MAP_VALUE_CONVERTER , Map . class ) . defaultValue ( Collections . < Pattern , String > emptyMap ( ) ) ;
public class RegexpParser { /** * Classifies the warning message : tries to guess a category from the * warning message . * @ param message * the message to check * @ return warning category , empty string if unknown */ protected String classifyWarning ( final String message ) { } }
if ( StringUtils . contains ( message , "proprietary" ) ) { return PROPRIETARY_API ; } if ( StringUtils . contains ( message , "deprecated" ) ) { return DEPRECATION ; } return StringUtils . EMPTY ;
public class ConstantPool { /** * Get or create a constant from the constant pool representing a method * in any class . If the method returns void , set ret to null . */ public ConstantMethodInfo addConstantMethod ( String className , String methodName , TypeDesc ret , TypeDesc [ ] params ) { } }
MethodDesc md = MethodDesc . forArguments ( ret , params ) ; return ConstantMethodInfo . make ( this , ConstantClassInfo . make ( this , className ) , ConstantNameAndTypeInfo . make ( this , methodName , md ) ) ;
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EEnum getIfcTimeSeriesDataTypeEnum ( ) { } }
if ( ifcTimeSeriesDataTypeEnumEEnum == null ) { ifcTimeSeriesDataTypeEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 916 ) ; } return ifcTimeSeriesDataTypeEnumEEnum ;
public class JmsBytesMessageImpl { /** * Write a Java object to the stream message . * < P > Note that this method only works for the objectified primitive * object types ( Integer , Double , Long . . . ) , String ' s and byte arrays . * @ param value the Java object to be written . * @ exception MessageNotWrit...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "writeObject" ) ; // Check if the producer has promised not to modify the payload after it ' s been set checkProducerPromise ( "writeObject(Object)" , "JmsBytesMessageImpl.writeObject#1" ) ; // Check that we are in write mod...
public class SimpleDateFormat { /** * Returns the default date and time pattern ( SHORT ) for the default locale . * This method is only used by the default SimpleDateFormat constructor . */ private static synchronized String getDefaultPattern ( ) { } }
ULocale defaultLocale = ULocale . getDefault ( Category . FORMAT ) ; if ( ! defaultLocale . equals ( cachedDefaultLocale ) ) { cachedDefaultLocale = defaultLocale ; Calendar cal = Calendar . getInstance ( cachedDefaultLocale ) ; try { // Load the calendar data directly . ICUResourceBundle rb = ( ICUResourceBundle ) URe...
public class ISUPMessageFactoryImpl { /** * ( non - Javadoc ) * @ see org . restcomm . protocols . ss7 . isup . ISUPMessageFactory # createUBA ( int cic ) */ public UnblockingAckMessage createUBA ( ) { } }
UnblockingAckMessage msg = new UnblockingAckMessageImpl ( _UBA_HOLDER . mandatoryCodes , _UBA_HOLDER . mandatoryVariableCodes , _UBA_HOLDER . optionalCodes , _UBA_HOLDER . mandatoryCodeToIndex , _UBA_HOLDER . mandatoryVariableCodeToIndex , _UBA_HOLDER . optionalCodeToIndex ) ; return msg ;
public class DataSynchronizer { /** * Resolves a conflict between a synchronized document ' s local and remote state . The resolution * will result in either the document being desynchronized or being replaced with some resolved * state based on the conflict resolver specified for the document . Uses the last uncom...
return resolveConflict ( nsConfig , docConfig , docConfig . getLastUncommittedChangeEvent ( ) , remoteEvent ) ;
public class CompositeEnumeration { /** * Fluent method for chaining additions of subsequent enumerations . */ public CompositeEnumeration < T > add ( Enumeration < T > enumeration ) { } }
// optimise out empty enumerations up front if ( enumeration . hasMoreElements ( ) ) enumerations . add ( enumeration ) ; return this ;
public class ObjectInputStream { /** * Avoid recursive defining . */ private static void checkedSetSuperClassDesc ( ObjectStreamClass desc , ObjectStreamClass superDesc ) throws StreamCorruptedException { } }
if ( desc . equals ( superDesc ) ) { throw new StreamCorruptedException ( ) ; } desc . setSuperclass ( superDesc ) ;
public class TrainingsImpl { /** * Get image with its prediction for a given project iteration . * This API supports batching and range selection . By default it will only return first 50 images matching images . * Use the { take } and { skip } parameters to control how many images to return in a given batch . * ...
return getImagePerformancesWithServiceResponseAsync ( projectId , iterationId , getImagePerformancesOptionalParameter ) . toBlocking ( ) . single ( ) . body ( ) ;
public class SARLProposalProvider { /** * Complete for obtaining SARL behaviors if the proposals are enabled . * @ param allowBehaviorType is < code > true < / code > for enabling the { @ link Behavior } type to be in the proposals . * @ param isExtensionFilter indicates if the type filter is for " extends " or onl...
if ( isSarlProposalEnabled ( ) ) { completeSubJavaTypes ( Behavior . class , allowBehaviorType , context , TypesPackage . Literals . JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE , getQualifiedNameValueConverter ( ) , isExtensionFilter ? createExtensionFilter ( context , IJavaSearchConstants . CLASS ) : createVisibilityFilter...
public class WebSiteManagementClientImpl { /** * Gets list of available geo regions plus ministamps . * Gets list of available geo regions plus ministamps . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the DeploymentLocationsInner object */ public Obser...
if ( this . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.subscriptionId() is required and cannot be null." ) ; } if ( this . apiVersion ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.apiVersion() is required and cannot be null." ) ; } return service . getSubs...
public class EurekaClinicalClient { /** * Extracts the id of the resource specified in the response body from a * POST call . * @ param uri The URI . * @ return the id of the resource . */ protected Long extractId ( URI uri ) { } }
String uriStr = uri . toString ( ) ; return Long . valueOf ( uriStr . substring ( uriStr . lastIndexOf ( "/" ) + 1 ) ) ;
public class VorbisFile { /** * returns zero on success , nonzero on failure */ public int pcm_seek ( long pos ) { } }
int link = - 1 ; long total = pcm_total ( - 1 ) ; if ( ! seekable ) return ( - 1 ) ; // don ' t dump machine if we can ' t seek if ( pos < 0 || pos > total ) { // goto seek _ error ; pcm_offset = - 1 ; decode_clear ( ) ; return - 1 ; } // which bitstream section does this pcm offset occur in ? for ( link = links - 1 ; ...
public class TypesafeConfigurator { /** * Retrieves the default cache settings from the configuration resource . * @ param config the configuration resource * @ param < K > the type of keys maintained the cache * @ param < V > the type of cached values * @ return the default configuration for a cache */ public ...
return new Configurator < K , V > ( config , "default" ) . configure ( ) ;
public class BindDataSourceBuilder { /** * Generate on create . * @ param schema * the schema * @ param orderedEntities * the ordered entities * @ return true , if successful */ private boolean generateOnCreate ( SQLiteDatabaseSchema schema , List < SQLiteEntity > orderedEntities ) { } }
boolean useForeignKey = false ; MethodSpec . Builder methodBuilder = MethodSpec . methodBuilder ( "onCreate" ) . addAnnotation ( Override . class ) . addModifiers ( Modifier . PUBLIC ) ; methodBuilder . addParameter ( SQLiteDatabase . class , "database" ) ; methodBuilder . addJavadoc ( "onCreate\n" ) ; methodBuilder . ...
public class XNElement { /** * Add a new XElement with the given local name and no namespace . * @ param name the name of the new element * @ return the created XElement child */ public XNElement add ( String name ) { } }
XNElement e = new XNElement ( name ) ; e . parent = this ; children . add ( e ) ; return e ;
public class SynchroReader { /** * Common mechanism to convert Synchro commentary recorss into notes . * @ param rows commentary table rows * @ return note text */ private String getNotes ( List < MapRow > rows ) { } }
String result = null ; if ( rows != null && ! rows . isEmpty ( ) ) { StringBuilder sb = new StringBuilder ( ) ; for ( MapRow row : rows ) { sb . append ( row . getString ( "TITLE" ) ) ; sb . append ( '\n' ) ; sb . append ( row . getString ( "TEXT" ) ) ; sb . append ( "\n\n" ) ; } result = sb . toString ( ) ; } return r...
public class Functions { /** * Get the result of dividend divided by divisor with given scale . * Any numeric string recognized by { @ code BigDecimal } is supported . * @ param dividend A valid number string * @ param divisor A valid number strings * @ param scale scale of the { @ code BigDecimal } quotient to...
BigDecimal bdDividend ; BigDecimal bdDivisor ; try { bdDividend = new BigDecimal ( dividend ) ; bdDivisor = new BigDecimal ( divisor ) ; return bdDividend . divide ( bdDivisor , scale , RoundingMode . HALF_UP ) . toString ( ) ; } catch ( Exception e ) { return null ; }
public class WrappedCache { /** * Puts the entry into both the cache and backing map . The old value in * the backing map is returned . */ public Object put ( Object key , Object value ) { } }
mCacheMap . put ( key , value ) ; return mBackingMap . put ( key , value ) ;
public class BCCertificateParser { /** * get certificate info */ @ SuppressWarnings ( "unchecked" ) public List < CertificateMeta > parse ( ) throws CertificateException { } }
CMSSignedData cmsSignedData ; try { cmsSignedData = new CMSSignedData ( data ) ; } catch ( CMSException e ) { throw new CertificateException ( e ) ; } Store < X509CertificateHolder > certStore = cmsSignedData . getCertificates ( ) ; SignerInformationStore signerInfos = cmsSignedData . getSignerInfos ( ) ; Collection < ...
public class IoUtil { /** * Writes the specified { @ code message } to the specified { @ code sessions } . * If the specified { @ code message } is an { @ link IoBuffer } , the buffer is * automatically duplicated using { @ link IoBuffer # duplicate ( ) } . */ public static List < WriteFuture > broadcast ( Object m...
List < WriteFuture > answer = new ArrayList < > ( ) ; broadcast ( message , sessions . iterator ( ) , answer ) ; return answer ;