question
stringlengths
33
1.59k
target
stringlengths
33
1.58k
public TokenOffsetPayloadTokenFilter create ( TokenStream input ) { return new TokenOffsetPayloadTokenFilter ( input ) ; }
public override TokenStream Create ( TokenStream input ) { return new TokenOffsetPayloadTokenFilter ( input ) ; }
public CreateDataSourceResult createDataSource ( CreateDataSourceRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateDataSource ( request ) ; }
public virtual CreateDataSourceResponse CreateDataSource ( CreateDataSourceRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateDataSourceRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateDataSourceResponseUnmarshaller . Instance ; return Invoke < CreateDataSourceResponse > ( request , options ) ; }
public DeleteBranchCommand setBranchNames ( String ... branchnames ) { checkCallable ( ) ; this . branchNames . clear ( ) ; this . branchNames . addAll ( Arrays . asList ( branchnames ) ) ; return this ; }
public virtual NGit . Api . DeleteBranchCommand SetBranchNames ( params string [ ] branchnames ) { CheckCallable ( ) ; this . branchNames . Clear ( ) ; foreach ( string branch in branchnames ) { this . branchNames . AddItem ( branch ) ; } return this ; }
public void setCoordinates ( int x1 , int y1 , int x2 , int y2 ) { _spgrRecord . setRectX1 ( x1 ) ; _spgrRecord . setRectX2 ( x2 ) ; _spgrRecord . setRectY1 ( y1 ) ; _spgrRecord . setRectY2 ( y2 ) ; }
public void SetCoordinates ( int x1 , int y1 , int x2 , int y2 ) { _spgrRecord . RectX1 = ( x1 ) ; _spgrRecord . RectX2 = ( x2 ) ; _spgrRecord . RectY1 = ( y1 ) ; _spgrRecord . RectY2 = ( y2 ) ; }
public DescribeNotificationConfigurationsResult describeNotificationConfigurations ( ) { return describeNotificationConfigurations ( new DescribeNotificationConfigurationsRequest ( ) ) ; }
public virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations ( ) { return DescribeNotificationConfigurations ( new DescribeNotificationConfigurationsRequest ( ) ) ; }
public GetStatusResult getStatus ( GetStatusRequest request ) { request = beforeClientExecution ( request ) ; return executeGetStatus ( request ) ; }
public virtual GetStatusResponse GetStatus ( GetStatusRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetStatusRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetStatusResponseUnmarshaller . Instance ; return Invoke < GetStatusResponse > ( request , options ) ; }
public final ValueEval evaluate ( ValueEval [ ] args , int srcRowIndex , int srcColumnIndex ) { switch ( args . length ) { case 1 : return evaluate ( srcRowIndex , srcColumnIndex , args [ 0 ] ) ; case 2 : return evaluate ( srcRowIndex , srcColumnIndex , args [ 0 ] , args [ 1 ] ) ; } return ErrorEval . VALUE_INVALID ; }
public ValueEval Evaluate ( ValueEval [ ] args , int srcRowIndex , int srcColumnIndex ) { switch ( args . Length ) { case 1 : return Evaluate ( srcRowIndex , srcColumnIndex , args [ 0 ] ) ; case 2 : return Evaluate ( srcRowIndex , srcColumnIndex , args [ 0 ] , args [ 1 ] ) ; } return ErrorEval . VALUE_INVALID ; }
public ExternalSheet getExternalSheet ( int externSheetIndex ) { String [ ] extNames = linkTable . getExternalBookAndSheetName ( externSheetIndex ) ; if ( extNames == null ) { return null ; } if ( extNames . length == 2 ) { return new ExternalSheet ( extNames [ 0 ] , extNames [ 1 ] ) ; } else { return new ExternalSheetRange ( extNames [ 0 ] , extNames [ 1 ] , extNames [ 2 ] ) ; } }
public ExternalSheet GetExternalSheet ( int externSheetIndex ) { String [ ] extNames = linkTable . GetExternalBookAndSheetName ( externSheetIndex ) ; if ( extNames == null ) { return null ; } if ( extNames . Length == 2 ) { return new ExternalSheet ( extNames [ 0 ] , extNames [ 1 ] ) ; } else { return new ExternalSheetRange ( extNames [ 0 ] , extNames [ 1 ] , extNames [ 2 ] ) ; } }
public static int delete ( char s [ ] , int pos , int len ) { assert pos < len ; if ( pos < len - 1 ) { System . arraycopy ( s , pos + 1 , s , pos , len - pos - 1 ) ; } return len - 1 ; }
public static int Delete ( char [ ] s , int pos , int len ) { Debug . Assert ( pos < len ) ; if ( pos < len - 1 ) { Array . Copy ( s , pos + 1 , s , pos , len - pos - 1 ) ; } return len - 1 ; }
public HSSFConditionalFormatting getConditionalFormattingAt ( int index ) { CFRecordsAggregate cf = _conditionalFormattingTable . get ( index ) ; if ( cf == null ) { return null ; } return new HSSFConditionalFormatting ( _sheet , cf ) ; }
public IConditionalFormatting GetConditionalFormattingAt ( int index ) { CFRecordsAggregate cf = _conditionalFormattingTable . Get ( index ) ; if ( cf == null ) { return null ; } return new HSSFConditionalFormatting ( ( HSSFWorkbook ) _sheet . Workbook , cf ) ; }
public static Cell createCell ( Row row , int column , String value , CellStyle style ) { Cell cell = getCell ( row , column ) ; cell . setCellValue ( cell . getRow ( ) . getSheet ( ) . getWorkbook ( ) . getCreationHelper ( ) . createRichTextString ( value ) ) ; if ( style != null ) { cell . setCellStyle ( style ) ; } return cell ; }
public static ICell CreateCell ( IRow row , int column , String value , HSSFCellStyle style ) { ICell cell = GetCell ( row , column ) ; cell . SetCellValue ( new HSSFRichTextString ( value ) ) ; if ( style != null ) { cell . CellStyle = ( style ) ; } return cell ; }
public void setFillColor ( int red , int green , int blue ) { int fillColor = ( ( blue ) << 16 ) | ( ( green ) << 8 ) | red ; setPropertyValue ( new EscherRGBProperty ( EscherPropertyTypes . FILL__FILLCOLOR , fillColor ) ) ; }
public void SetFillColor ( int red , int green , int blue ) { int fillColor = ( ( blue ) << 16 ) | ( ( green ) << 8 ) | red ; SetPropertyValue ( new EscherRGBProperty ( EscherProperties . FILL__FILLCOLOR , fillColor ) ) ; }
public ErrorResponseBody error ( ) { return this . error ; }
public virtual IPolicyOperations Policy { get ; private set ; }
public void write ( int b ) throws IOException { try { beginWrite ( ) ; dst . write ( b ) ; } catch ( InterruptedIOException e ) { throw writeTimedOut ( e ) ; } finally { endWrite ( ) ; } }
public override void Write ( int b ) { try { BeginWrite ( ) ; dst . Write ( b ) ; } catch ( ThreadInterruptedException ) { throw WriteTimedOut ( ) ; } finally { EndWrite ( ) ; } }
public void add ( String key , ParserExtension extension ) { this . extensions . put ( key , extension ) ; }
public virtual void Add ( string key , ParserExtension extension ) { this . extensions [ key ] = extension ; }
public SignOutUserResult signOutUser ( SignOutUserRequest request ) { request = beforeClientExecution ( request ) ; return executeSignOutUser ( request ) ; }
public virtual SignOutUserResponse SignOutUser ( SignOutUserRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = SignOutUserRequestMarshaller . Instance ; options . ResponseUnmarshaller = SignOutUserResponseUnmarshaller . Instance ; return Invoke < SignOutUserResponse > ( request , options ) ; }
public PutImageTagMutabilityResult putImageTagMutability ( PutImageTagMutabilityRequest request ) { request = beforeClientExecution ( request ) ; return executePutImageTagMutability ( request ) ; }
public virtual PutImageTagMutabilityResponse PutImageTagMutability ( PutImageTagMutabilityRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = PutImageTagMutabilityRequestMarshaller . Instance ; options . ResponseUnmarshaller = PutImageTagMutabilityResponseUnmarshaller . Instance ; return Invoke < PutImageTagMutabilityResponse > ( request , options ) ; }
public CreateIAMPolicyAssignmentResult createIAMPolicyAssignment ( CreateIAMPolicyAssignmentRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateIAMPolicyAssignment ( request ) ; }
public virtual CreateIAMPolicyAssignmentResponse CreateIAMPolicyAssignment ( CreateIAMPolicyAssignmentRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateIAMPolicyAssignmentRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateIAMPolicyAssignmentResponseUnmarshaller . Instance ; return Invoke < CreateIAMPolicyAssignmentResponse > ( request , options ) ; }
public GetRoomResult getRoom ( GetRoomRequest request ) { request = beforeClientExecution ( request ) ; return executeGetRoom ( request ) ; }
public virtual GetRoomResponse GetRoom ( GetRoomRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetRoomRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetRoomResponseUnmarshaller . Instance ; return Invoke < GetRoomResponse > ( request , options ) ; }
public DescribeLaunchConfigurationsResult describeLaunchConfigurations ( ) { return describeLaunchConfigurations ( new DescribeLaunchConfigurationsRequest ( ) ) ; }
public virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations ( ) { return DescribeLaunchConfigurations ( new DescribeLaunchConfigurationsRequest ( ) ) ; }
public UpdateTaskSetResult updateTaskSet ( UpdateTaskSetRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateTaskSet ( request ) ; }
public virtual UpdateTaskSetResponse UpdateTaskSet ( UpdateTaskSetRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UpdateTaskSetRequestMarshaller . Instance ; options . ResponseUnmarshaller = UpdateTaskSetResponseUnmarshaller . Instance ; return Invoke < UpdateTaskSetResponse > ( request , options ) ; }
public boolean equals ( Object other_ ) { if ( other_ == this ) { return true ; } else if ( ! ( other_ instanceof FSTTermOutputs . TermData ) ) { return false ; } TermData other = ( TermData ) other_ ; return statsEqual ( this , other ) && bytesEqual ( this , other ) ; }
public override bool Equals ( object other ) { if ( other == this ) return true ; if ( ! ( other is TermData ) ) return false ; var _other = ( TermData ) other ; return StatsEqual ( this , _other ) && Int64sEqual ( this , _other ) && BytesEqual ( this , _other ) ; }
public int getSequenceIndex ( ) { return sequenceIndex ; }
public virtual int GetSequenceIndex ( ) { return sequenceIndex ; }
public DeleteAutoScalingGroupResult deleteAutoScalingGroup ( DeleteAutoScalingGroupRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteAutoScalingGroup ( request ) ; }
public virtual DeleteAutoScalingGroupResponse DeleteAutoScalingGroup ( DeleteAutoScalingGroupRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteAutoScalingGroupRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteAutoScalingGroupResponseUnmarshaller . Instance ; return Invoke < DeleteAutoScalingGroupResponse > ( request , options ) ; }
public int nextDoc ( ) { while ( true ) { if ( queue . size ( ) == 0 ) { doc = NO_MORE_DOCS ; break ; } int newDoc = queue . top ( ) . docID ( ) ; if ( newDoc != doc ) { assert newDoc > doc : "doc=" + doc + " newDoc=" + newDoc ; doc = newDoc ; break ; } if ( queue . top ( ) . nextDoc ( ) == NO_MORE_DOCS ) { queue . pop ( ) ; } else { queue . updateTop ( ) ; } } return doc ; }
public override int NextDoc ( ) { if ( idx >= size ) { offset = - 1 ; return doc = DocIdSetIterator . NO_MORE_DOCS ; } doc = ( int ) docs . Get ( idx ) ; ++ idx ; while ( idx < size && docs . Get ( idx ) == doc ) { ++ idx ; } long prevIdx = idx - 1 ; if ( ! docsWithField . Get ( ( int ) prevIdx ) ) { offset = - 1 ; } else { offset = ( int ) offsets . Get ( prevIdx ) ; length = ( int ) lengths . Get ( prevIdx ) ; } return doc ; }
public Collection < ChildScorable > getChildren ( ) { return Collections . singleton ( new ChildScorable ( parentScorer , "BLOCK_JOIN" ) ) ; }
public override ICollection < ChildScorer > GetChildren ( ) { return new List < ChildScorer > { new ChildScorer ( _parentScorer , "BLOCK_JOIN" ) } ; }
public void endTask ( ) { if ( ! isMainThread ( ) ) throw new IllegalStateException ( ) ; pm . endTask ( ) ; }
public override void EndTask ( ) { if ( ! IsMainThread ( ) ) { throw new InvalidOperationException ( ) ; } pm . EndTask ( ) ; }
public UpdateConfigurationSetEventDestinationResult updateConfigurationSetEventDestination ( UpdateConfigurationSetEventDestinationRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateConfigurationSetEventDestination ( request ) ; }
public virtual UpdateConfigurationSetEventDestinationResponse UpdateConfigurationSetEventDestination ( UpdateConfigurationSetEventDestinationRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UpdateConfigurationSetEventDestinationRequestMarshaller . Instance ; options . ResponseUnmarshaller = UpdateConfigurationSetEventDestinationResponseUnmarshaller . Instance ; return Invoke < UpdateConfigurationSetEventDestinationResponse > ( request , options ) ; }
public void serialize ( LittleEndianOutput out ) { out . writeShort ( getBackup ( ) ) ; }
public override void Serialize ( ILittleEndianOutput out1 ) { out1 . WriteShort ( Backup ) ; }
public DescribeBundleTasksResult describeBundleTasks ( DescribeBundleTasksRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeBundleTasks ( request ) ; }
public virtual DescribeBundleTasksResponse DescribeBundleTasks ( DescribeBundleTasksRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeBundleTasksRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeBundleTasksResponseUnmarshaller . Instance ; return Invoke < DescribeBundleTasksResponse > ( request , options ) ; }
public Explanation idfExplain ( CollectionStatistics collectionStats , TermStatistics termStats ) { final long df = termStats . docFreq ( ) ; final long docCount = collectionStats . docCount ( ) ; final float idf = idf ( df , docCount ) ; return Explanation . match ( idf , "idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:" , Explanation . match ( df , "n, number of documents containing term" ) , Explanation . match ( docCount , "N, total number of documents with field" ) ) ; }
public virtual Explanation IdfExplain ( CollectionStatistics collectionStats , TermStatistics termStats ) { long df = termStats . DocFreq ; long max = collectionStats . MaxDoc ; float idf = Idf ( df , max ) ; return new Explanation ( idf , "idf(docFreq=" + df + ", maxDocs=" + max + ")" ) ; }
public DescribeFleetEventsResult describeFleetEvents ( DescribeFleetEventsRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeFleetEvents ( request ) ; }
public virtual DescribeFleetEventsResponse DescribeFleetEvents ( DescribeFleetEventsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeFleetEventsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeFleetEventsResponseUnmarshaller . Instance ; return Invoke < DescribeFleetEventsResponse > ( request , options ) ; }
public BasicCredentials ( String accessKeyId , String accessKeySecret ) { if ( accessKeyId == null ) { throw new IllegalArgumentException ( "Access key ID cannot be null." ) ; } if ( accessKeySecret == null ) { throw new IllegalArgumentException ( "Access key secret cannot be null." ) ; } this . accessKeyId = accessKeyId ; this . accessKeySecret = accessKeySecret ; }
public BasicCredentials ( string accessKeyId , string accessKeySecret ) { if ( accessKeyId == null ) { throw new ArgumentOutOfRangeException ( "Access key ID cannot be null." ) ; } if ( accessKeySecret == null ) { throw new ArgumentOutOfRangeException ( "Access key secret cannot be null." ) ; } this . accessKeyId = accessKeyId ; this . accessKeySecret = accessKeySecret ; }
public String getOldPath ( ) { return oldPath ; }
public virtual string GetOldPath ( ) { return oldPath ; }
public int nextIndex ( ) { return iterator . nextIndex ( ) - start ; }
public int nextIndex ( ) { return iterator . nextIndex ( ) - start ; }
public Snapshot deleteClusterSnapshot ( DeleteClusterSnapshotRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteClusterSnapshot ( request ) ; }
public virtual DeleteClusterSnapshotResponse DeleteClusterSnapshot ( DeleteClusterSnapshotRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteClusterSnapshotRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteClusterSnapshotResponseUnmarshaller . Instance ; return Invoke < DeleteClusterSnapshotResponse > ( request , options ) ; }
public String getColsNamesForValsByRound ( ) { if ( colForValByRound . size ( ) == 0 ) { return "" ; } StringBuilder sb = new StringBuilder ( ) ; for ( final String colName : colForValByRound . values ( ) ) { sb . append ( ' ' ) . append ( colName ) ; } return sb . toString ( ) ; }
public virtual string GetColsNamesForValsByRound ( ) { if ( colForValByRound . Count == 0 ) { return "" ; } StringBuilder sb = new StringBuilder ( ) ; foreach ( string name in colForValByRound . Keys ) { string colName = colForValByRound [ name ] ; sb . Append ( " " ) . Append ( colName ) ; } return sb . ToString ( ) ; }
public void deprecateActivityType ( DeprecateActivityTypeRequest request ) { request = beforeClientExecution ( request ) ; executeDeprecateActivityType ( request ) ; }
public virtual DeprecateActivityTypeResponse DeprecateActivityType ( DeprecateActivityTypeRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeprecateActivityTypeRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeprecateActivityTypeResponseUnmarshaller . Instance ; return Invoke < DeprecateActivityTypeResponse > ( request , options ) ; }
public PartETag ( int partNumber , String eTag ) { this . partNumber = partNumber ; this . eTag = eTag ; }
public PartETag ( int partNumber , string eTag ) { this . partNumber = partNumber ; this . eTag = eTag ; }
@ Override public boolean remove ( Object object ) { if ( object instanceof Multiset . Entry ) { Multiset . Entry < ? > entry = ( Multiset . Entry < ? > ) object ; Object element = entry . getElement ( ) ; int entryCount = entry . getCount ( ) ; return countMap . remove ( element , entryCount ) ; } return false ; }
public override bool remove ( object o ) { if ( ! ( o is java . util . MapClass . Entry < K , V > ) ) { return false ; } java . util . MapClass . Entry < object , object > e = ( java . util . MapClass . Entry < object , object > ) o ; return this . _enclosing . removeMapping ( e . getKey ( ) , e . getValue ( ) ) ; }
public ListAccessControlRulesResult listAccessControlRules ( ListAccessControlRulesRequest request ) { request = beforeClientExecution ( request ) ; return executeListAccessControlRules ( request ) ; }
public virtual ListAccessControlRulesResponse ListAccessControlRules ( ListAccessControlRulesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListAccessControlRulesRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListAccessControlRulesResponseUnmarshaller . Instance ; return Invoke < ListAccessControlRulesResponse > ( request , options ) ; }
public final CharBuffer get ( char [ ] dst , int srcOffset , int charCount ) { if ( charCount > remaining ( ) ) { throw new BufferUnderflowException ( ) ; } System . arraycopy ( backingArray , offset + position , dst , srcOffset , charCount ) ; position += charCount ; return this ; }
public sealed override java . nio . CharBuffer get ( char [ ] dst , int srcOffset , int charCount ) { if ( charCount > remaining ( ) ) { throw new java . nio . BufferUnderflowException ( ) ; } System . Array . Copy ( backingArray , offset + _position , dst , srcOffset , charCount ) ; _position += charCount ; return this ; }
public DescribeDBClusterBacktracksResult describeDBClusterBacktracks ( DescribeDBClusterBacktracksRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeDBClusterBacktracks ( request ) ; }
public virtual DescribeDBClusterBacktracksResponse DescribeDBClusterBacktracks ( DescribeDBClusterBacktracksRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeDBClusterBacktracksRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeDBClusterBacktracksResponseUnmarshaller . Instance ; return Invoke < DescribeDBClusterBacktracksResponse > ( request , options ) ; }
public boolean equals ( ATNConfig other ) { if ( this == other ) { return true ; } else if ( other == null ) { return false ; } return this . state . stateNumber == other . state . stateNumber && this . alt == other . alt && ( this . context == other . context || ( this . context != null && this . context . equals ( other . context ) ) ) && this . semanticContext . equals ( other . semanticContext ) && this . isPrecedenceFilterSuppressed ( ) == other . isPrecedenceFilterSuppressed ( ) ; }
public virtual bool Equals ( ATNConfig other ) { if ( this == other ) { return true ; } else if ( other == null ) { return false ; } return this . state . stateNumber == other . state . stateNumber && this . alt == other . alt && ( this . context == other . context || ( this . context != null && this . context . Equals ( other . context ) ) ) && this . semanticContext . Equals ( other . semanticContext ) && this . IsPrecedenceFilterSuppressed == other . IsPrecedenceFilterSuppressed ; }
public AbbreviatedObjectId getId ( Side side ) { return side == Side . OLD ? getOldId ( ) : getNewId ( ) ; }
public virtual AbbreviatedObjectId GetId ( DiffEntry . Side side ) { return side == DiffEntry . Side . OLD ? GetOldId ( ) : GetNewId ( ) ; }
public CatLabRecord ( RecordInputStream in ) { rt = in . readShort ( ) ; grbitFrt = in . readShort ( ) ; wOffset = in . readShort ( ) ; at = in . readShort ( ) ; grbit = in . readShort ( ) ; if ( in . available ( ) == 0 ) { unused = null ; } else { unused = in . readShort ( ) ; } }
public CatLabRecord ( RecordInputStream in1 ) { rt = in1 . ReadShort ( ) ; grbitFrt = in1 . ReadShort ( ) ; wOffset = in1 . ReadShort ( ) ; at = in1 . ReadShort ( ) ; grbit = in1 . ReadShort ( ) ; if ( in1 . Available ( ) == 0 ) { unused = null ; } else { unused = in1 . ReadShort ( ) ; } }
public String substring ( int start , int end ) { if ( start >= 0 && start <= end && end <= count ) { if ( start == end ) { return "" ; } return new String ( value , start , end - start ) ; } throw startEndAndLength ( start , end ) ; }
public virtual string substring ( int start , int end ) { if ( start >= 0 && start <= end && end <= count ) { if ( start == end ) { return string . Empty ; } return new string ( value , start , end - start ) ; } throw startEndAndLength ( start , end ) ; }
public int remove ( final int index ) { if ( index >= _limit ) { throw new IndexOutOfBoundsException ( ) ; } int rval = _array [ index ] ; System . arraycopy ( _array , index + 1 , _array , index , _limit - index ) ; _limit -- ; return rval ; }
public int Remove ( int index ) { if ( index >= _limit ) { throw new IndexOutOfRangeException ( ) ; } int rval = _array [ index ] ; Array . Copy ( _array , index + 1 , _array , index , _limit - index ) ; _limit -- ; return rval ; }
public K getKey ( ) { return super . get ( ) ; }
public K getKey ( ) { return base . get ( ) ; }
public void write ( LittleEndianOutput out ) { out . writeByte ( sid + getPtgClass ( ) ) ; out . writeInt ( unused1 ) ; out . writeInt ( unused2 ) ; }
public override void Write ( ILittleEndianOutput out1 ) { out1 . WriteByte ( sid + PtgClass ) ; out1 . WriteInt ( unused1 ) ; out1 . WriteInt ( unused2 ) ; }
public void setDeltaCacheLimit ( int size ) { deltaCacheLimit = size ; }
public virtual void SetDeltaCacheLimit ( int size ) { deltaCacheLimit = size ; }
public String toString ( ) { return "L" ; }
public override string ToString ( ) { return "L" ; }
public Map < String , String > read ( String response , String endpoint ) { return read ( new StringCharacterIterator ( response ) , endpoint , FIRST_POSITION ) ; }
public Dictionary < string , string > Read ( string response , string endpoint ) { return Read ( response . GetEnumerator ( ) , endpoint ) ; }
public DeleteMessageResult deleteMessage ( DeleteMessageRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteMessage ( request ) ; }
public virtual DeleteMessageResponse DeleteMessage ( DeleteMessageRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteMessageRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteMessageResponseUnmarshaller . Instance ; return Invoke < DeleteMessageResponse > ( request , options ) ; }
public SearchFind ( boolean isCaseSensitive ) { _isCaseSensitive = isCaseSensitive ; }
public SearchFind ( bool isCaseSensitive ) { _isCaseSensitive = isCaseSensitive ; }
public void setRoleName ( String roleName ) { if ( null == roleName ) { throw new NullPointerException ( "You must specifiy a valid role name." ) ; } this . roleName = roleName ; setCredentialUrl ( ) ; }
public void SetRoleName ( string roleName ) { if ( string . IsNullOrEmpty ( roleName ) ) { throw new ArgumentNullException ( "You must specifiy a valid role name." ) ; } this . roleName = roleName ; SetCredentialUrl ( ) ; }
public AllocatePublicVirtualInterfaceResult allocatePublicVirtualInterface ( AllocatePublicVirtualInterfaceRequest request ) { request = beforeClientExecution ( request ) ; return executeAllocatePublicVirtualInterface ( request ) ; }
public virtual AllocatePublicVirtualInterfaceResponse AllocatePublicVirtualInterface ( AllocatePublicVirtualInterfaceRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AllocatePublicVirtualInterfaceRequestMarshaller . Instance ; options . ResponseUnmarshaller = AllocatePublicVirtualInterfaceResponseUnmarshaller . Instance ; return Invoke < AllocatePublicVirtualInterfaceResponse > ( request , options ) ; }
public void decode ( byte [ ] blocks , int blocksOffset , long [ ] values , int valuesOffset , int iterations ) { for ( int i = 0 ; i < iterations ; ++ i ) { final long byte0 = blocks [ blocksOffset ++ ] & 0xFF ; final long byte1 = blocks [ blocksOffset ++ ] & 0xFF ; values [ valuesOffset ++ ] = ( byte0 << 2 ) | ( byte1 > > > 6 ) ; final long byte2 = blocks [ blocksOffset ++ ] & 0xFF ; values [ valuesOffset ++ ] = ( ( byte1 & 63 ) << 4 ) | ( byte2 > > > 4 ) ; final long byte3 = blocks [ blocksOffset ++ ] & 0xFF ; values [ valuesOffset ++ ] = ( ( byte2 & 15 ) << 6 ) | ( byte3 > > > 2 ) ; final long byte4 = blocks [ blocksOffset ++ ] & 0xFF ; values [ valuesOffset ++ ] = ( ( byte3 & 3 ) << 8 ) | byte4 ; } }
public override void Decode ( byte [ ] blocks , int blocksOffset , int [ ] values , int valuesOffset , int iterations ) { for ( int i = 0 ; i < iterations ; ++ i ) { int byte0 = blocks [ blocksOffset ++ ] & 0xFF ; int byte1 = blocks [ blocksOffset ++ ] & 0xFF ; values [ valuesOffset ++ ] = ( byte0 << 2 ) | ( ( int ) ( ( uint ) byte1 > > 6 ) ) ; int byte2 = blocks [ blocksOffset ++ ] & 0xFF ; values [ valuesOffset ++ ] = ( ( byte1 & 63 ) << 4 ) | ( ( int ) ( ( uint ) byte2 > > 4 ) ) ; int byte3 = blocks [ blocksOffset ++ ] & 0xFF ; values [ valuesOffset ++ ] = ( ( byte2 & 15 ) << 6 ) | ( ( int ) ( ( uint ) byte3 > > 2 ) ) ; int byte4 = blocks [ blocksOffset ++ ] & 0xFF ; values [ valuesOffset ++ ] = ( ( byte3 & 3 ) << 8 ) | byte4 ; } }
public DeleteLoadBalancerRequest ( String loadBalancerName ) { setLoadBalancerName ( loadBalancerName ) ; }
public DeleteLoadBalancerRequest ( string loadBalancerName ) { _loadBalancerName = loadBalancerName ; }
public PutDeliverabilityDashboardOptionResult putDeliverabilityDashboardOption ( PutDeliverabilityDashboardOptionRequest request ) { request = beforeClientExecution ( request ) ; return executePutDeliverabilityDashboardOption ( request ) ; }
public virtual PutDeliverabilityDashboardOptionResponse PutDeliverabilityDashboardOption ( PutDeliverabilityDashboardOptionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = PutDeliverabilityDashboardOptionRequestMarshaller . Instance ; options . ResponseUnmarshaller = PutDeliverabilityDashboardOptionResponseUnmarshaller . Instance ; return Invoke < PutDeliverabilityDashboardOptionResponse > ( request , options ) ; }
public XPathRuleElement ( String ruleName , int ruleIndex ) { super ( ruleName ) ; this . ruleIndex = ruleIndex ; }
public XPathRuleElement ( string ruleName , int ruleIndex ) : base ( ruleName ) { this . ruleIndex = ruleIndex ; }
public PullCommand setProgressMonitor ( ProgressMonitor monitor ) { if ( monitor == null ) { monitor = NullProgressMonitor . INSTANCE ; } this . monitor = monitor ; return this ; }
public virtual NGit . Api . PullCommand SetProgressMonitor ( ProgressMonitor monitor ) { this . monitor = monitor ; return this ; }
public static final RevFilter after ( long ts ) { return new After ( ts ) ; }
public static RevFilter After ( long ts ) { return new CommitTimeRevFilterAfter ( ts ) ; }
public final String toString ( ) { StringBuilder sb = new StringBuilder ( 64 ) ; sb . append ( getClass ( ) . getName ( ) ) . append ( " [len=" ) ; sb . append ( field_2_subex_len ) ; sb . append ( "]" ) ; return sb . toString ( ) ; }
public override String ToString ( ) { StringBuilder sb = new StringBuilder ( 64 ) ; sb . Append ( this . GetType ( ) . Name ) . Append ( " [len=" ) ; sb . Append ( field_2_subex_len ) ; sb . Append ( "]" ) ; return sb . ToString ( ) ; }
public DeleteRoomResult deleteRoom ( DeleteRoomRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteRoom ( request ) ; }
public virtual DeleteRoomResponse DeleteRoom ( DeleteRoomRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteRoomRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteRoomResponseUnmarshaller . Instance ; return Invoke < DeleteRoomResponse > ( request , options ) ; }
public ScandinavianNormalizationFilter create ( TokenStream input ) { return new ScandinavianNormalizationFilter ( input ) ; }
public override TokenStream Create ( TokenStream input ) { return new ScandinavianNormalizationFilter ( input ) ; }
public ValidateTemplateResult validateTemplate ( ValidateTemplateRequest request ) { request = beforeClientExecution ( request ) ; return executeValidateTemplate ( request ) ; }
public virtual ValidateTemplateResponse ValidateTemplate ( ValidateTemplateRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ValidateTemplateRequestMarshaller . Instance ; options . ResponseUnmarshaller = ValidateTemplateResponseUnmarshaller . Instance ; return Invoke < ValidateTemplateResponse > ( request , options ) ; }
public ListBranchCommand branchList ( ) { return new ListBranchCommand ( repo ) ; }
public virtual ListBranchCommand BranchList ( ) { return new ListBranchCommand ( repo ) ; }
public String toString ( ) { return getClass ( ) . getSimpleName ( ) + "[" + getEntryPathString ( ) + "]" ; }
public override string ToString ( ) { return GetType ( ) . Name + "[" + EntryPathString + "]" ; }
public final Edit before ( Edit cut ) { return new Edit ( beginA , cut . beginA , beginB , cut . beginB ) ; }
public NGit . Diff . Edit Before ( NGit . Diff . Edit cut ) { return new NGit . Diff . Edit ( beginA , cut . beginA , beginB , cut . beginB ) ; }
public String toString ( ) { if ( symbol . getType ( ) == Token . EOF ) return "<EOF>" ; return symbol . getText ( ) ; }
public override string ToString ( ) { if ( Symbol != null ) { if ( Symbol . Type == TokenConstants . EOF ) { return "<EOF>" ; } return Symbol . Text ; } else { return "<null>" ; } }
public DeleteDeploymentStrategyResult deleteDeploymentStrategy ( DeleteDeploymentStrategyRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteDeploymentStrategy ( request ) ; }
public virtual DeleteDeploymentStrategyResponse DeleteDeploymentStrategy ( DeleteDeploymentStrategyRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteDeploymentStrategyRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteDeploymentStrategyResponseUnmarshaller . Instance ; return Invoke < DeleteDeploymentStrategyResponse > ( request , options ) ; }
public GetModelResult getModel ( GetModelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetModel ( request ) ; }
public virtual GetModelResponse GetModel ( GetModelRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetModelRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetModelResponseUnmarshaller . Instance ; return Invoke < GetModelResponse > ( request , options ) ; }
public DescribeUserResult describeUser ( DescribeUserRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeUser ( request ) ; }
public virtual DescribeUserResponse DescribeUser ( DescribeUserRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeUserRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeUserResponseUnmarshaller . Instance ; return Invoke < DescribeUserResponse > ( request , options ) ; }
public ListSnapshotBlocksResult listSnapshotBlocks ( ListSnapshotBlocksRequest request ) { request = beforeClientExecution ( request ) ; return executeListSnapshotBlocks ( request ) ; }
public virtual ListSnapshotBlocksResponse ListSnapshotBlocks ( ListSnapshotBlocksRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListSnapshotBlocksRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListSnapshotBlocksResponseUnmarshaller . Instance ; return Invoke < ListSnapshotBlocksResponse > ( request , options ) ; }
public ByteBuffer putShort ( int index , short value ) { checkIndex ( index , SizeOf . SHORT ) ; Memory . pokeShort ( backingArray , offset + index , value , order ) ; return this ; }
public override java . nio . ByteBuffer putShort ( int index , short value ) { checkIndex ( index , libcore . io . SizeOf . SHORT ) ; libcore . io . Memory . pokeShort ( backingArray , offset + index , value , _order ) ; return this ; }
public ResetCommand reset ( ) { return new ResetCommand ( repo ) ; }
public virtual ResetCommand Reset ( ) { return new ResetCommand ( repo ) ; }
public Snapshot createClusterSnapshot ( CreateClusterSnapshotRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateClusterSnapshot ( request ) ; }
public virtual CreateClusterSnapshotResponse CreateClusterSnapshot ( CreateClusterSnapshotRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateClusterSnapshotRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateClusterSnapshotResponseUnmarshaller . Instance ; return Invoke < CreateClusterSnapshotResponse > ( request , options ) ; }
public void setCachedResultTypeEmptyString ( ) { specialCachedValue = FormulaSpecialCachedValue . createCachedEmptyValue ( ) ; }
public void SetCachedResultTypeEmptyString ( ) { specialCachedValue = SpecialCachedValue . CreateCachedEmptyValue ( ) ; }
public DeleteIdentityPolicyResult deleteIdentityPolicy ( DeleteIdentityPolicyRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteIdentityPolicy ( request ) ; }
public virtual DeleteIdentityPolicyResponse DeleteIdentityPolicy ( DeleteIdentityPolicyRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteIdentityPolicyRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteIdentityPolicyResponseUnmarshaller . Instance ; return Invoke < DeleteIdentityPolicyResponse > ( request , options ) ; }
public int IncRef ( ) { if ( ! initDone ) { initDone = true ; } else { assert count > 0 : Thread . currentThread ( ) . getName ( ) + ": RefCount is 0 pre-increment for file \"" + fileName + "\"" ; } return ++ count ; }
public int IncRef ( ) { if ( ! initDone ) { initDone = true ; } else { Debug . Assert ( count > 0 , Thread . CurrentThread . Name + ": RefCount is 0 pre-increment for file \"" + fileName + "\"" ) ; } return ++ count ; }
public void fromRaw ( byte [ ] bs ) { fromRaw ( bs , 0 ) ; }
public virtual void FromRaw ( byte [ ] bs ) { FromRaw ( bs , 0 ) ; }
public LeftMarginRecord clone ( ) { return copy ( ) ; }
public override Object Clone ( ) { LeftMarginRecord rec = new LeftMarginRecord ( ) ; rec . field_1_margin = this . field_1_margin ; return rec ; }
public FailedPredicateException ( Parser recognizer , String predicate , String message ) { super ( formatMessage ( predicate , message ) , recognizer , recognizer . getInputStream ( ) , recognizer . _ctx ) ; ATNState s = recognizer . getInterpreter ( ) . atn . states . get ( recognizer . getState ( ) ) ; AbstractPredicateTransition trans = ( AbstractPredicateTransition ) s . transition ( 0 ) ; if ( trans instanceof PredicateTransition ) { this . ruleIndex = ( ( PredicateTransition ) trans ) . ruleIndex ; this . predicateIndex = ( ( PredicateTransition ) trans ) . predIndex ; } else { this . ruleIndex = 0 ; this . predicateIndex = 0 ; } this . predicate = predicate ; this . setOffendingToken ( recognizer . getCurrentToken ( ) ) ; }
public FailedPredicateException ( Parser recognizer , string predicate , string message ) : base ( FormatMessage ( predicate , message ) , recognizer , ( ( ITokenStream ) recognizer . InputStream ) , recognizer . RuleContext ) { ATNState s = recognizer . Interpreter . atn . states [ recognizer . State ] ; AbstractPredicateTransition trans = ( AbstractPredicateTransition ) s . Transition ( 0 ) ; if ( trans is PredicateTransition ) { this . ruleIndex = ( ( PredicateTransition ) trans ) . ruleIndex ; this . predicateIndex = ( ( PredicateTransition ) trans ) . predIndex ; } else { this . ruleIndex = 0 ; this . predicateIndex = 0 ; } this . predicate = predicate ; this . OffendingToken = recognizer . CurrentToken ; }
public int normalize ( char s [ ] , int len ) { for ( int i = 0 ; i < len ; i ++ ) { switch ( s [ i ] ) { case ALEF_MADDA : case ALEF_HAMZA_ABOVE : case ALEF_HAMZA_BELOW : s [ i ] = ALEF ; break ; case DOTLESS_YEH : s [ i ] = YEH ; break ; case TEH_MARBUTA : s [ i ] = HEH ; break ; case TATWEEL : case KASRATAN : case DAMMATAN : case FATHATAN : case FATHA : case DAMMA : case KASRA : case SHADDA : case SUKUN : len = delete ( s , i , len ) ; i -- ; break ; default : break ; } } return len ; }
public virtual int Normalize ( char [ ] s , int len ) { for ( int i = 0 ; i < len ; i ++ ) { switch ( s [ i ] ) { case ALEF_MADDA : case ALEF_HAMZA_ABOVE : case ALEF_HAMZA_BELOW : s [ i ] = ALEF ; break ; case DOTLESS_YEH : s [ i ] = YEH ; break ; case TEH_MARBUTA : s [ i ] = HEH ; break ; case TATWEEL : case KASRATAN : case DAMMATAN : case FATHATAN : case FATHA : case DAMMA : case KASRA : case SHADDA : case SUKUN : len = StemmerUtil . Delete ( s , i , len ) ; i -- ; break ; default : break ; } } return len ; }
public static int idealCharArraySize ( int need ) { return idealByteArraySize ( need * 2 ) / 2 ; }
public static int idealCharArraySize ( int need ) { return idealByteArraySize ( need * 2 ) / 2 ; }
public void setObjectId ( AnyObjectId obj , int objType ) { object = obj . copy ( ) ; type = objType ; }
public virtual void SetObjectId ( AnyObjectId obj , int objType ) { @ object = obj . Copy ( ) ; type = objType ; }
public ValueEval getItem ( int index ) { if ( index != 0 ) { throw new RuntimeException ( "Invalid index (" + index + ") only zero is allowed" ) ; } return _value ; }
public ValueEval GetItem ( int index ) { if ( index != 0 ) { throw new ArgumentException ( "Invalid index (" + index + ") only zero is allowed" ) ; } return _value ; }
public AND ( SemanticContext a , SemanticContext b ) { Set < SemanticContext > operands = new HashSet < SemanticContext > ( ) ; if ( a instanceof AND ) operands . addAll ( Arrays . asList ( ( ( AND ) a ) . opnds ) ) ; else operands . add ( a ) ; if ( b instanceof AND ) operands . addAll ( Arrays . asList ( ( ( AND ) b ) . opnds ) ) ; else operands . add ( b ) ; List < PrecedencePredicate > precedencePredicates = filterPrecedencePredicates ( operands ) ; if ( ! precedencePredicates . isEmpty ( ) ) { PrecedencePredicate reduced = Collections . min ( precedencePredicates ) ; operands . add ( reduced ) ; } opnds = operands . toArray ( new SemanticContext [ operands . size ( ) ] ) ; }
public AND ( SemanticContext a , SemanticContext b ) { HashSet < SemanticContext > operands = new HashSet < SemanticContext > ( ) ; if ( a is SemanticContext . AND ) { operands . UnionWith ( ( ( AND ) a ) . opnds ) ; } else { operands . Add ( a ) ; } if ( b is SemanticContext . AND ) { operands . UnionWith ( ( ( AND ) b ) . opnds ) ; } else { operands . Add ( b ) ; } IList < SemanticContext . PrecedencePredicate > precedencePredicates = FilterPrecedencePredicates ( operands ) ; if ( precedencePredicates . Count > 0 ) { SemanticContext . PrecedencePredicate reduced = precedencePredicates . Min ( ) ; operands . Add ( reduced ) ; } opnds = operands . ToArray ( ) ; }
public GetCampaignVersionResult getCampaignVersion ( GetCampaignVersionRequest request ) { request = beforeClientExecution ( request ) ; return executeGetCampaignVersion ( request ) ; }
public virtual GetCampaignVersionResponse GetCampaignVersion ( GetCampaignVersionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetCampaignVersionRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetCampaignVersionResponseUnmarshaller . Instance ; return Invoke < GetCampaignVersionResponse > ( request , options ) ; }
public SeriesTextRecord ( RecordInputStream in ) { field_1_id = in . readUShort ( ) ; int field_2_textLength = in . readUByte ( ) ; is16bit = ( in . readUByte ( ) & 0x01 ) != 0 ; if ( is16bit ) { field_4_text = in . readUnicodeLEString ( field_2_textLength ) ; } else { field_4_text = in . readCompressedUnicode ( field_2_textLength ) ; } }
public SeriesTextRecord ( RecordInputStream in1 ) { field_1_id = in1 . ReadShort ( ) ; int field_2_textLength = ( byte ) in1 . ReadByte ( ) ; is16bit = ( in1 . ReadUByte ( ) & 0x01 ) != 0 ; if ( is16bit ) { field_4_text = in1 . ReadUnicodeLEString ( field_2_textLength ) ; } else { field_4_text = in1 . ReadCompressedUnicode ( field_2_textLength ) ; } }
public void writeUTF ( String value ) throws IOException { checkWritePrimitiveTypes ( ) ; primitiveTypes . writeUTF ( value ) ; }
public virtual void writeUTF ( string value ) { throw new System . NotImplementedException ( ) ; }
public DeleteCacheSubnetGroupResult deleteCacheSubnetGroup ( DeleteCacheSubnetGroupRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteCacheSubnetGroup ( request ) ; }
public virtual DeleteCacheSubnetGroupResponse DeleteCacheSubnetGroup ( DeleteCacheSubnetGroupRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteCacheSubnetGroupRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteCacheSubnetGroupResponseUnmarshaller . Instance ; return Invoke < DeleteCacheSubnetGroupResponse > ( request , options ) ; }
public Tab getItem ( int position ) { return mTabs . get ( position ) ; }
public override object getItem ( int position ) { return ( ( android . widget . @ internal . ScrollingTabContainerView . TabView ) this . _enclosing . mTabLayout . getChildAt ( position ) ) . getTab ( ) ; }
public int createFormat ( String formatString ) { maxformatid = maxformatid >= 0xa4 ? maxformatid + 1 : 0xa4 ; FormatRecord rec = new FormatRecord ( maxformatid , formatString ) ; int pos = 0 ; while ( pos < records . size ( ) && records . get ( pos ) . getSid ( ) != FormatRecord . sid ) { pos ++ ; } pos += formats . size ( ) ; formats . add ( rec ) ; records . add ( pos , rec ) ; return maxformatid ; }
public int CreateFormat ( String formatString ) { maxformatid = maxformatid >= ( short ) 0xa4 ? ( short ) ( maxformatid + 1 ) : ( short ) 0xa4 ; FormatRecord rec = new FormatRecord ( maxformatid , formatString ) ; int pos = 0 ; while ( pos < records . Count && records [ pos ] . Sid != FormatRecord . sid ) pos ++ ; pos += formats . Count ; formats . Add ( rec ) ; records . Add ( pos , rec ) ; return maxformatid ; }
public ListDeploymentStrategiesResult listDeploymentStrategies ( ListDeploymentStrategiesRequest request ) { request = beforeClientExecution ( request ) ; return executeListDeploymentStrategies ( request ) ; }
public virtual ListDeploymentStrategiesResponse ListDeploymentStrategies ( ListDeploymentStrategiesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListDeploymentStrategiesRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListDeploymentStrategiesResponseUnmarshaller . Instance ; return Invoke < ListDeploymentStrategiesResponse > ( request , options ) ; }
public CreateLoginProfileRequest ( String userName , String password ) { setUserName ( userName ) ; setPassword ( password ) ; }
public CreateLoginProfileRequest ( string userName , string password ) { _userName = userName ; _password = password ; }
public String getMetadata ( ) throws ClientException { HttpRequest request = new HttpRequest ( credentialUrl . toString ( ) ) ; request . setSysMethod ( MethodType . GET ) ; request . setSysConnectTimeout ( connectionTimeoutInMilliseconds ) ; request . setSysReadTimeout ( connectionTimeoutInMilliseconds ) ; HttpResponse response ; try { response = CompatibleUrlConnClient . compatibleGetResponse ( request ) ; } catch ( Exception e ) { throw new ClientException ( "Failed to connect ECS Metadata Service: " + e . toString ( ) ) ; } if ( response . getStatus ( ) != HttpURLConnection . HTTP_OK ) { throw new ClientException ( ECS_METADAT_FETCH_ERROR_MSG + " HttpCode=" + response . getStatus ( ) ) ; } return new String ( response . getHttpContent ( ) ) ; }
public string GetMetadata ( ) { var request = new HttpRequest ( credentialUrl ) ; request . Method = MethodType . GET ; request . SetConnectTimeoutInMilliSeconds ( connectionTimeoutInMilliseconds ) ; HttpResponse response ; try { response = GetResponse ( request ) ; } catch ( WebException e ) { throw new ClientException ( "Failed to connect ECS Metadata Service: " + e ) ; } if ( response . Status != 200 ) { throw new ClientException ( ECS_METADAT_FETCH_ERROR_MSG + " HttpCode=" + response . Status ) ; } return Encoding . UTF8 . GetString ( response . Content ) ; }
public void setAbbreviationLength ( int count ) { if ( count < 0 ) throw new IllegalArgumentException ( JGitText . get ( ) . abbreviationLengthMustBeNonNegative ) ; abbreviationLength = count ; }
public virtual void SetAbbreviationLength ( int count ) { if ( count < 0 ) { throw new ArgumentException ( JGitText . Get ( ) . abbreviationLengthMustBeNonNegative ) ; } abbreviationLength = count ; }
public SearchFacesByImageResult searchFacesByImage ( SearchFacesByImageRequest request ) { request = beforeClientExecution ( request ) ; return executeSearchFacesByImage ( request ) ; }
public virtual SearchFacesByImageResponse SearchFacesByImage ( SearchFacesByImageRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = SearchFacesByImageRequestMarshaller . Instance ; options . ResponseUnmarshaller = SearchFacesByImageResponseUnmarshaller . Instance ; return Invoke < SearchFacesByImageResponse > ( request , options ) ; }