question
stringlengths
33
1.59k
target
stringlengths
33
1.58k
public final ValueEval evaluate ( ValueEval [ ] args , int srcRowIndex , int srcColumnIndex ) { switch ( args . length ) { case 2 : return evaluate ( srcRowIndex , srcColumnIndex , args [ 0 ] , args [ 1 ] ) ; case 3 : return evaluate ( srcRowIndex , srcColumnIndex , args [ 0 ] , args [ 1 ] , args [ 2 ] ) ; } return ErrorEval . VALUE_INVALID ; }
public ValueEval Evaluate ( ValueEval [ ] args , int srcRowIndex , int srcColumnIndex ) { switch ( args . Length ) { case 2 : return Evaluate ( srcRowIndex , srcColumnIndex , args [ 0 ] , args [ 1 ] ) ; case 3 : return Evaluate ( srcRowIndex , srcColumnIndex , args [ 0 ] , args [ 1 ] , args [ 2 ] ) ; } return ErrorEval . VALUE_INVALID ; }
public GroupingSearch setAllGroupHeads ( boolean allGroupHeads ) { this . allGroupHeads = allGroupHeads ; return this ; }
public virtual GroupingSearch SetAllGroupHeads ( bool allGroupHeads ) { this . allGroupHeads = allGroupHeads ; return this ; }
public String dequote ( String in ) { final byte [ ] b = Constants . encode ( in ) ; return dequote ( b , 0 , b . length ) ; }
public virtual string Dequote ( string @ in ) { byte [ ] b = Constants . Encode ( @ in ) ; return Dequote ( b , 0 , b . Length ) ; }
public boolean isEmpty ( ) { return entrySet ( ) . isEmpty ( ) ; }
public override bool IsEmpty ( ) { return EntrySet ( ) . IsEmpty ( ) ; }
public Query makeLuceneQueryFieldNoBoost ( String fieldName , BasicQueryFactory qf ) { return SrndBooleanQuery . makeBooleanQuery ( makeLuceneSubQueriesField ( fieldName , qf ) , BooleanClause . Occur . MUST ) ; }
public override Search . Query MakeLuceneQueryFieldNoBoost ( string fieldName , BasicQueryFactory qf ) { return SrndBooleanQuery . MakeBooleanQuery ( MakeLuceneSubQueriesField ( fieldName , qf ) , Occur . MUST ) ; }
public long getSize ( ) { return data . length ; }
public override long GetSize ( ) { return data . Length ; }
public CreatePhoneNumberOrderResult createPhoneNumberOrder ( CreatePhoneNumberOrderRequest request ) { request = beforeClientExecution ( request ) ; return executeCreatePhoneNumberOrder ( request ) ; }
public virtual CreatePhoneNumberOrderResponse CreatePhoneNumberOrder ( CreatePhoneNumberOrderRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreatePhoneNumberOrderRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreatePhoneNumberOrderResponseUnmarshaller . Instance ; return Invoke < CreatePhoneNumberOrderResponse > ( request , options ) ; }
public ShortBuffer get ( short [ ] dst , int dstOffset , int shortCount ) { byteBuffer . limit ( limit * SizeOf . SHORT ) ; byteBuffer . position ( position * SizeOf . SHORT ) ; if ( byteBuffer instanceof DirectByteBuffer ) { ( ( DirectByteBuffer ) byteBuffer ) . get ( dst , dstOffset , shortCount ) ; } else { ( ( HeapByteBuffer ) byteBuffer ) . get ( dst , dstOffset , shortCount ) ; } this . position += shortCount ; return this ; }
public override java . nio . ShortBuffer get ( short [ ] dst , int dstOffset , int shortCount ) { byteBuffer . limit ( _limit * libcore . io . SizeOf . SHORT ) ; byteBuffer . position ( _position * libcore . io . SizeOf . SHORT ) ; if ( byteBuffer is java . nio . DirectByteBuffer ) { ( ( java . nio . DirectByteBuffer ) byteBuffer ) . get ( dst , dstOffset , shortCount ) ; } else { ( ( java . nio . HeapByteBuffer ) byteBuffer ) . get ( dst , dstOffset , shortCount ) ; } this . _position += shortCount ; return this ; }
public DetectModerationLabelsResult detectModerationLabels ( DetectModerationLabelsRequest request ) { request = beforeClientExecution ( request ) ; return executeDetectModerationLabels ( request ) ; }
public virtual DetectModerationLabelsResponse DetectModerationLabels ( DetectModerationLabelsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DetectModerationLabelsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DetectModerationLabelsResponseUnmarshaller . Instance ; return Invoke < DetectModerationLabelsResponse > ( request , options ) ; }
public UncalcedRecord ( RecordInputStream in ) { _reserved = in . readShort ( ) ; }
public UncalcedRecord ( RecordInputStream in1 ) { _reserved = in1 . ReadShort ( ) ; }
public String handlePart ( Matcher m , String part , CellFormatType type , StringBuffer desc ) { int pos = desc . length ( ) ; char firstCh = part . charAt ( 0 ) ; switch ( firstCh ) { case '[' : if ( part . length ( ) < 3 ) break ; if ( topmost != null ) throw new IllegalArgumentException ( "Duplicate '[' times in format" ) ; part = part . toLowerCase ( Locale . ROOT ) ; int specLen = part . length ( ) - 2 ; topmost = assignSpec ( part . charAt ( 1 ) , pos , specLen ) ; return part . substring ( 1 , 1 + specLen ) ; case 'h' : case 'm' : case 's' : case '0' : part = part . toLowerCase ( Locale . ROOT ) ; assignSpec ( part . charAt ( 0 ) , pos , part . length ( ) ) ; return part ; case '\n' : return "%n" ; case '\"' : part = part . substring ( 1 , part . length ( ) - 1 ) ; break ; case '\\' : part = part . substring ( 1 ) ; break ; case '*' : if ( part . length ( ) > 1 ) part = CellFormatPart . expandChar ( part ) ; break ; case '_' : return null ; } return PERCENTS . matcher ( part ) . replaceAll ( "%%" ) ; }
public String HandlePart ( Match m , String part , CellFormatType type , StringBuilder desc ) { int pos = desc . Length ; char firstCh = part [ 0 ] ; switch ( firstCh ) { case '[' : if ( part . Length < 3 ) break ; if ( _formatter . topmost != null ) throw new ArgumentException ( "Duplicate '[' times in format" ) ; part = part . ToLower ( ) ; int specLen = part . Length - 2 ; _formatter . topmost = _formatter . AssignSpec ( part [ 1 ] , pos , specLen ) ; return part . Substring ( 1 , specLen ) ; case 'h' : case 'm' : case 's' : case '0' : part = part . ToLower ( ) ; _formatter . AssignSpec ( part [ 0 ] , pos , part . Length ) ; return part ; case '\n' : return "%n" ; case '\"' : part = part . Substring ( 1 , part . Length - 2 ) ; break ; case '\\' : part = part . Substring ( 1 ) ; break ; case '*' : if ( part . Length > 1 ) part = CellFormatPart . ExpandChar ( part ) ; break ; case '_' : return null ; } return part ; }
public long ramBytesUsed ( ) { long sizeInBytes = ( ( delegateFieldsProducer != null ) ? delegateFieldsProducer . ramBytesUsed ( ) : 0 ) ; for ( Map . Entry < String , FuzzySet > entry : bloomsByFieldName . entrySet ( ) ) { sizeInBytes += entry . getKey ( ) . length ( ) * Character . BYTES ; sizeInBytes += entry . getValue ( ) . ramBytesUsed ( ) ; } return sizeInBytes ; }
public override long RamBytesUsed ( ) { var sizeInBytes = ( ( _delegateFieldsProducer != null ) ? _delegateFieldsProducer . RamBytesUsed ( ) : 0 ) ; foreach ( var entry in _bloomsByFieldName ) { sizeInBytes += entry . Key . Length * RamUsageEstimator . NUM_BYTES_CHAR ; sizeInBytes += entry . Value . RamBytesUsed ( ) ; } return sizeInBytes ; }
public CreateImageRequest ( String instanceId , String name ) { setInstanceId ( instanceId ) ; setName ( name ) ; }
public CreateImageRequest ( string instanceId , string name ) { _instanceId = instanceId ; _name = name ; }
public SendDiagnosticInterruptResult sendDiagnosticInterrupt ( SendDiagnosticInterruptRequest request ) { request = beforeClientExecution ( request ) ; return executeSendDiagnosticInterrupt ( request ) ; }
public virtual SendDiagnosticInterruptResponse SendDiagnosticInterrupt ( SendDiagnosticInterruptRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = SendDiagnosticInterruptRequestMarshaller . Instance ; options . ResponseUnmarshaller = SendDiagnosticInterruptResponseUnmarshaller . Instance ; return Invoke < SendDiagnosticInterruptResponse > ( request , options ) ; }
public int lastIndexOf ( Object object ) { Object [ ] snapshot = elements ; return lastIndexOf ( object , snapshot , 0 , snapshot . length ) ; }
public virtual int lastIndexOf ( object @ object ) { object [ ] snapshot = elements ; return lastIndexOf ( @ object , snapshot , 0 , snapshot . Length ) ; }
public AbortDocumentVersionUploadResult abortDocumentVersionUpload ( AbortDocumentVersionUploadRequest request ) { request = beforeClientExecution ( request ) ; return executeAbortDocumentVersionUpload ( request ) ; }
public virtual AbortDocumentVersionUploadResponse AbortDocumentVersionUpload ( AbortDocumentVersionUploadRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AbortDocumentVersionUploadRequestMarshaller . Instance ; options . ResponseUnmarshaller = AbortDocumentVersionUploadResponseUnmarshaller . Instance ; return Invoke < AbortDocumentVersionUploadResponse > ( request , options ) ; }
public PaneInformation ( short x , short y , short top , short left , byte active , boolean frozen ) { this . x = x ; this . y = y ; this . topRow = top ; this . leftColumn = left ; this . activePane = active ; this . frozen = frozen ; }
public PaneInformation ( short x , short y , short top , short left , byte active , bool frozen ) { this . x = x ; this . y = y ; this . topRow = top ; this . leftColumn = left ; this . activePane = active ; this . frozen = frozen ; }
public DescribeScalingProcessTypesResult describeScalingProcessTypes ( DescribeScalingProcessTypesRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeScalingProcessTypes ( request ) ; }
public virtual DescribeScalingProcessTypesResponse DescribeScalingProcessTypes ( DescribeScalingProcessTypesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeScalingProcessTypesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeScalingProcessTypesResponseUnmarshaller . Instance ; return Invoke < DescribeScalingProcessTypesResponse > ( request , options ) ; }
public static boolean endsWith ( char s [ ] , int len , char suffix [ ] ) { final int suffixLen = suffix . length ; if ( suffixLen > len ) return false ; for ( int i = suffixLen - 1 ; i >= 0 ; i -- ) if ( s [ len - ( suffixLen - i ) ] != suffix [ i ] ) return false ; return true ; }
public static bool EndsWith ( char [ ] s , int len , char [ ] suffix ) { int suffixLen = suffix . Length ; if ( suffixLen > len ) { return false ; } for ( int i = suffixLen - 1 ; i >= 0 ; i -- ) { if ( s [ len - ( suffixLen - i ) ] != suffix [ i ] ) { return false ; } } return true ; }
public void warnIfOpen ( ) { if ( allocationSite == null || ! ENABLED ) { return ; } String message = ( "A resource was acquired at attached stack trace but never released. " + "See java.io.Closeable for information on avoiding resource leaks." ) ; REPORTER . report ( message , allocationSite ) ; }
public void warnIfOpen ( ) { if ( allocationSite == null || ! ENABLED ) { return ; } string message = ( "A resource was acquired at attached stack trace but never released. " + "See java.io.Closeable for information on avoiding resource leaks." ) ; REPORTER . report ( message , allocationSite ) ; }
public GetImageScanRequest ( ) { super ( "cr" , "2016-06-07" , "GetImageScan" , "cr" ) ; setUriPattern ( "/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan" ) ; setMethod ( MethodType . GET ) ; }
public GetImageScanRequest ( ) : base ( "cr" , "2016-06-07" , "GetImageScan" , "cr" , "openAPI" ) { UriPattern = "/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan" ; Method = MethodType . GET ; }
public ListSkillsStoreCategoriesResult listSkillsStoreCategories ( ListSkillsStoreCategoriesRequest request ) { request = beforeClientExecution ( request ) ; return executeListSkillsStoreCategories ( request ) ; }
public virtual ListSkillsStoreCategoriesResponse ListSkillsStoreCategories ( ListSkillsStoreCategoriesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListSkillsStoreCategoriesRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListSkillsStoreCategoriesResponseUnmarshaller . Instance ; return Invoke < ListSkillsStoreCategoriesResponse > ( request , options ) ; }
public int getHeight ( ) { return mImage . getHeight ( ) ; }
public virtual int getHeight ( ) { return mBitmap . getHeight ( ) ; }
public void applyFont ( Font font ) { applyFont ( 0 , _string . getCharCount ( ) , font ) ; }
public void ApplyFont ( short fontIndex ) { ApplyFont ( 0 , _string . CharCount , fontIndex ) ; }
public DetectEntitiesResult detectEntities ( DetectEntitiesRequest request ) { request = beforeClientExecution ( request ) ; return executeDetectEntities ( request ) ; }
public virtual DetectEntitiesResponse DetectEntities ( DetectEntitiesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DetectEntitiesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DetectEntitiesResponseUnmarshaller . Instance ; return Invoke < DetectEntitiesResponse > ( request , options ) ; }
public void copyRawTo ( ByteBuffer w ) { w . putInt ( w1 ) ; w . putInt ( w2 ) ; w . putInt ( w3 ) ; w . putInt ( w4 ) ; w . putInt ( w5 ) ; }
public virtual void CopyRawTo ( ByteBuffer w ) { w . PutInt ( w1 ) ; w . PutInt ( w2 ) ; w . PutInt ( w3 ) ; w . PutInt ( w4 ) ; w . PutInt ( w5 ) ; }
public final char [ ] array ( ) { return protectedArray ( ) ; }
public sealed override object array ( ) { return protectedArray ( ) ; }
public void seekExact ( long ord ) throws IOException { if ( indexEnum == null ) { throw new IllegalStateException ( "terms index was not loaded" ) ; } assert ord < numTerms ; in . seek ( indexEnum . seek ( ord ) ) ; boolean result = nextBlock ( ) ; assert result ; indexIsCurrent = true ; didIndexNext = false ; seekPending = false ; state . ord = indexEnum . ord ( ) - 1 ; assert state . ord >= - 1 : "ord=" + state . ord ; term . copyBytes ( indexEnum . term ( ) ) ; int left = ( int ) ( ord - state . ord ) ; while ( left > 0 ) { final BytesRef term = _next ( ) ; assert term != null ; left -- ; assert indexIsCurrent ; } }
public override void SeekExact ( long ord ) { if ( indexEnum == null ) { throw new InvalidOperationException ( "terms index was not loaded" ) ; } Debug . Assert ( ord < outerInstance . numTerms ) ; input . Seek ( indexEnum . Seek ( ord ) ) ; bool result = NextBlock ( ) ; Debug . Assert ( result ) ; indexIsCurrent = true ; didIndexNext = false ; blocksSinceSeek = 0 ; seekPending = false ; state . Ord = indexEnum . Ord - 1 ; Debug . Assert ( state . Ord >= - 1 , "Ord=" + state . Ord ) ; term . CopyBytes ( indexEnum . Term ) ; int left = ( int ) ( ord - state . Ord ) ; while ( left > 0 ) { BytesRef term = _next ( ) ; Debug . Assert ( term != null ) ; left -- ; Debug . Assert ( indexIsCurrent ) ; } }
public String toString ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( '[' ) ; final int end = offset + length ; for ( int i = offset ; i < end ; i ++ ) { if ( i > offset ) { sb . append ( ' ' ) ; } sb . append ( Integer . toHexString ( bytes [ i ] & 0xff ) ) ; } sb . append ( ']' ) ; return sb . toString ( ) ; }
public override string ToString ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . Append ( '[' ) ; int end = Offset + Length ; for ( int i = Offset ; i < end ; i ++ ) { if ( i > Offset ) { sb . Append ( ' ' ) ; } sb . Append ( ( bytes [ i ] & 0xff ) . ToString ( "x" ) ) ; } sb . Append ( ']' ) ; return sb . ToString ( ) ; }
public String toString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( " [FEATURE PROTECTION]\n" ) ; buffer . append ( " Self Relative = " + fSD ) ; buffer . append ( " Password Verifier = " + passwordVerifier ) ; buffer . append ( " Title = " + title ) ; buffer . append ( " Security Descriptor Size = " + securityDescriptor . length ) ; buffer . append ( " [/FEATURE PROTECTION]\n" ) ; return buffer . toString ( ) ; }
public override String ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( " [FEATURE PROTECTION]\n" ) ; buffer . Append ( " Self Relative = " + fSD ) ; buffer . Append ( " Password Verifier = " + passwordVerifier ) ; buffer . Append ( " Title = " + title ) ; buffer . Append ( " Security Descriptor Size = " + securityDescriptor . Length ) ; buffer . Append ( " [/FEATURE PROTECTION]\n" ) ; return buffer . ToString ( ) ; }
public void setCRC ( int crc32 ) { crc = crc32 ; }
public virtual void SetCRC ( int crc32 ) { crc = crc32 ; }
public DoubleRange ( String label , double minIn , boolean minInclusive , double maxIn , boolean maxInclusive ) { super ( label ) ; if ( Double . isNaN ( minIn ) ) { throw new IllegalArgumentException ( "min cannot be NaN" ) ; } if ( ! minInclusive ) { minIn = Math . nextUp ( minIn ) ; } if ( Double . isNaN ( maxIn ) ) { throw new IllegalArgumentException ( "max cannot be NaN" ) ; } if ( ! maxInclusive ) { maxIn = Math . nextAfter ( maxIn , Double . NEGATIVE_INFINITY ) ; } if ( minIn > maxIn ) { failNoMatch ( ) ; } this . min = minIn ; this . max = maxIn ; }
public DoubleRange ( string label , double minIn , bool minInclusive , double maxIn , bool maxInclusive ) : base ( label ) { this . Min = minIn ; this . Max = maxIn ; this . MinInclusive = minInclusive ; this . MaxInclusive = maxInclusive ; if ( double . IsNaN ( Min ) ) { throw new System . ArgumentException ( "min cannot be NaN" ) ; } if ( ! minInclusive ) { minIn += EPSILON ; } if ( double . IsNaN ( Max ) ) { throw new System . ArgumentException ( "max cannot be NaN" ) ; } if ( ! maxInclusive ) { maxIn = maxIn -= EPSILON ; } if ( minIn > maxIn ) { FailNoMatch ( ) ; } this . minIncl = minIn ; this . maxIncl = maxIn ; }
public int getBATEntriesPerBlock ( ) { return bigBlockSize / LittleEndianConsts . INT_SIZE ; }
public int GetBATEntriesPerBlock ( ) { return bigBlockSize / LittleEndianConsts . INT_SIZE ; }
public CreatePublishingDestinationResult createPublishingDestination ( CreatePublishingDestinationRequest request ) { request = beforeClientExecution ( request ) ; return executeCreatePublishingDestination ( request ) ; }
public virtual CreatePublishingDestinationResponse CreatePublishingDestination ( CreatePublishingDestinationRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreatePublishingDestinationRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreatePublishingDestinationResponseUnmarshaller . Instance ; return Invoke < CreatePublishingDestinationResponse > ( request , options ) ; }
public void skipBytes ( long count ) { pos += count ; }
public override void SkipBytes ( long count ) { pos += ( int ) count ; }
public String toString ( ) { return "jarowinkler(" + threshold + ")" ; }
public override string ToString ( ) { return "jarowinkler(" + threshold + ")" ; }
public DeleteInvitationsResult deleteInvitations ( DeleteInvitationsRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteInvitations ( request ) ; }
public virtual DeleteInvitationsResponse DeleteInvitations ( DeleteInvitationsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteInvitationsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteInvitationsResponseUnmarshaller . Instance ; return Invoke < DeleteInvitationsResponse > ( request , options ) ; }
public DelimitedPayloadTokenFilterFactory ( Map < String , String > args ) { super ( args ) ; encoderClass = require ( args , ENCODER_ATTR ) ; delimiter = getChar ( args , DELIMITER_ATTR , '|' ) ; if ( ! args . isEmpty ( ) ) { throw new IllegalArgumentException ( "Unknown parameters: " + args ) ; } }
public DelimitedPayloadTokenFilterFactory ( IDictionary < string , string > args ) : base ( args ) { encoderClass = Require ( args , ENCODER_ATTR ) ; delimiter = GetChar ( args , DELIMITER_ATTR , '|' ) ; if ( args . Count > 0 ) { throw new System . ArgumentException ( "Unknown parameters: " + args ) ; } }
public ListSmartHomeAppliancesResult listSmartHomeAppliances ( ListSmartHomeAppliancesRequest request ) { request = beforeClientExecution ( request ) ; return executeListSmartHomeAppliances ( request ) ; }
public virtual ListSmartHomeAppliancesResponse ListSmartHomeAppliances ( ListSmartHomeAppliancesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListSmartHomeAppliancesRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListSmartHomeAppliancesResponseUnmarshaller . Instance ; return Invoke < ListSmartHomeAppliancesResponse > ( request , options ) ; }
public void dispatch ( ConfigChangedListener listener ) { listener . onConfigChanged ( this ) ; }
public override void Dispatch ( ConfigChangedListener listener ) { listener . OnConfigChanged ( this ) ; }
public File [ ] listFiles ( ) { return filenamesToFiles ( list ( ) ) ; }
public java . io . File [ ] listFiles ( ) { return filenamesToFiles ( list ( ) ) ; }
public DedicatedCapacityInner getByResourceGroup ( String resourceGroupName , String dedicatedCapacityName ) { return getByResourceGroupWithServiceResponseAsync ( resourceGroupName , dedicatedCapacityName ) . toBlocking ( ) . single ( ) . body ( ) ; }
public async Task < AzureOperationResponse < DedicatedCapacity > > GetDetailsWithHttpMessagesAsync ( string resourceGroupName , string dedicatedCapacityName , Dictionary < string , List < string > > customHeaders = null , CancellationToken cancellationToken = default ( CancellationToken ) ) { return await innerCapacityOperations . GetDetailsWithHttpMessagesAsync ( resourceGroupName , dedicatedCapacityName , customHeaders , cancellationToken ) . ConfigureAwait ( false ) ; }
public void seekExact ( long ord ) { assert ord < info . terms . size ( ) ; termUpto = ( int ) ord ; info . terms . get ( info . sortedTerms [ termUpto ] , br ) ; }
public override void SeekExact ( long ord ) { Debug . Assert ( ord < info . terms . Count ) ; termUpto = ( int ) ord ; }
public CreateTrialComponentResult createTrialComponent ( CreateTrialComponentRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateTrialComponent ( request ) ; }
public virtual CreateTrialComponentResponse CreateTrialComponent ( CreateTrialComponentRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateTrialComponentRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateTrialComponentResponseUnmarshaller . Instance ; return Invoke < CreateTrialComponentResponse > ( request , options ) ; }
public UpdateResourceResult updateResource ( UpdateResourceRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateResource ( request ) ; }
public virtual UpdateResourceResponse UpdateResource ( UpdateResourceRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UpdateResourceRequestMarshaller . Instance ; options . ResponseUnmarshaller = UpdateResourceResponseUnmarshaller . Instance ; return Invoke < UpdateResourceResponse > ( request , options ) ; }
public long length ( ) { try { return channel . size ( ) ; } catch ( IOException ioe ) { throw new RuntimeException ( "IOException during length(): " + this , ioe ) ; } }
public long length ( ) { try { return channel . size ( ) ; } catch ( IOException ioe ) { throw new Exception ( "IOException during length(): " + this , ioe ) ; } }
public char setIndex ( int position ) { if ( position < getBeginIndex ( ) || position > getEndIndex ( ) ) throw new IllegalArgumentException ( "Illegal Position: " + position ) ; index = start + position ; return current ( ) ; }
public override char SetIndex ( int position ) { if ( position < BeginIndex || position > EndIndex ) { throw new ArgumentException ( "Illegal Position: " + position ) ; } index = start + position ; return Current ; }
public static boolean isContainer ( short options , short recordId ) { if ( recordId >= EscherContainerRecord . DGG_CONTAINER && recordId <= EscherContainerRecord . SOLVER_CONTAINER ) { return true ; } else { if ( recordId == EscherTextboxRecord . RECORD_ID ) { return false ; } else { return ( options & ( short ) 0x000F ) == ( short ) 0x000F ; } } }
public static bool IsContainer ( short options , short recordId ) { if ( recordId >= EscherContainerRecord . DGG_CONTAINER && recordId <= EscherContainerRecord . SOLVER_CONTAINER ) { return true ; } else { if ( recordId == EscherTextboxRecord . RECORD_ID ) { return false ; } else { return ( options & ( short ) 0x000F ) == ( short ) 0x000F ; } } }
public boolean exists ( String fileName ) { assert locked ( ) ; if ( ! refCounts . containsKey ( fileName ) ) { return false ; } else { return getRefCount ( fileName ) . count > 0 ; } }
public bool Exists ( string fileName ) { Debug . Assert ( IsLocked ) ; return refCounts . TryGetValue ( fileName , out RefCount value ) ? value . count > 0 : false ; }
public STSAssumeRoleSessionCredentialsProvider withSTSClient ( IAcsClient client ) { this . stsClient = client ; return this ; }
public void WithSTSClient ( IAcsClient client ) { stsClient = client ; }
public AcceptMatchResult acceptMatch ( AcceptMatchRequest request ) { request = beforeClientExecution ( request ) ; return executeAcceptMatch ( request ) ; }
public virtual AcceptMatchResponse AcceptMatch ( AcceptMatchRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AcceptMatchRequestMarshaller . Instance ; options . ResponseUnmarshaller = AcceptMatchResponseUnmarshaller . Instance ; return Invoke < AcceptMatchResponse > ( request , options ) ; }
public static RevFilter create ( int skip ) { if ( skip < 0 ) throw new IllegalArgumentException ( JGitText . get ( ) . skipMustBeNonNegative ) ; return new SkipRevFilter ( skip ) ; }
public static RevFilter Create ( int skip ) { if ( skip < 0 ) { throw new ArgumentException ( JGitText . Get ( ) . skipMustBeNonNegative ) ; } return new NGit . Revwalk . Filter . SkipRevFilter ( skip ) ; }
public GetHITResult getHIT ( GetHITRequest request ) { request = beforeClientExecution ( request ) ; return executeGetHIT ( request ) ; }
public virtual GetHITResponse GetHIT ( GetHITRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetHITRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetHITResponseUnmarshaller . Instance ; return Invoke < GetHITResponse > ( request , options ) ; }
public StopStreamProcessorResult stopStreamProcessor ( StopStreamProcessorRequest request ) { request = beforeClientExecution ( request ) ; return executeStopStreamProcessor ( request ) ; }
public virtual StopStreamProcessorResponse StopStreamProcessor ( StopStreamProcessorRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = StopStreamProcessorRequestMarshaller . Instance ; options . ResponseUnmarshaller = StopStreamProcessorResponseUnmarshaller . Instance ; return Invoke < StopStreamProcessorResponse > ( request , options ) ; }
public static AttrPtg createIf ( int dist ) { return new AttrPtg ( optiIf . set ( 0 ) , dist , null , - 1 ) ; }
public static AttrPtg CreateIf ( int dist ) { return new AttrPtg ( optiIf . Set ( 0 ) , dist , null , - 1 ) ; }
public DeleteIAMPolicyAssignmentResult deleteIAMPolicyAssignment ( DeleteIAMPolicyAssignmentRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteIAMPolicyAssignment ( request ) ; }
public virtual DeleteIAMPolicyAssignmentResponse DeleteIAMPolicyAssignment ( DeleteIAMPolicyAssignmentRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteIAMPolicyAssignmentRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteIAMPolicyAssignmentResponseUnmarshaller . Instance ; return Invoke < DeleteIAMPolicyAssignmentResponse > ( request , options ) ; }
public UpdateCampaignResult updateCampaign ( UpdateCampaignRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateCampaign ( request ) ; }
public virtual UpdateCampaignResponse UpdateCampaign ( UpdateCampaignRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UpdateCampaignRequestMarshaller . Instance ; options . ResponseUnmarshaller = UpdateCampaignResponseUnmarshaller . Instance ; return Invoke < UpdateCampaignResponse > ( request , options ) ; }
public LexerActionExecutor fixOffsetBeforeMatch ( int offset ) { LexerAction [ ] updatedLexerActions = null ; for ( int i = 0 ; i < lexerActions . length ; i ++ ) { if ( lexerActions [ i ] . isPositionDependent ( ) && ! ( lexerActions [ i ] instanceof LexerIndexedCustomAction ) ) { if ( updatedLexerActions == null ) { updatedLexerActions = lexerActions . clone ( ) ; } updatedLexerActions [ i ] = new LexerIndexedCustomAction ( offset , lexerActions [ i ] ) ; } } if ( updatedLexerActions == null ) { return this ; } return new LexerActionExecutor ( updatedLexerActions ) ; }
public virtual Antlr4 . Runtime . Atn . LexerActionExecutor FixOffsetBeforeMatch ( int offset ) { ILexerAction [ ] updatedLexerActions = null ; for ( int i = 0 ; i < lexerActions . Length ; i ++ ) { if ( lexerActions [ i ] . IsPositionDependent && ! ( lexerActions [ i ] is LexerIndexedCustomAction ) ) { if ( updatedLexerActions == null ) { updatedLexerActions = ( ILexerAction [ ] ) lexerActions . Clone ( ) ; } updatedLexerActions [ i ] = new LexerIndexedCustomAction ( offset , lexerActions [ i ] ) ; } } if ( updatedLexerActions == null ) { return this ; } return new Antlr4 . Runtime . Atn . LexerActionExecutor ( updatedLexerActions ) ; }
public void protectSheet ( String password , boolean shouldProtectObjects , boolean shouldProtectScenarios ) { if ( password == null ) { _passwordRecord = null ; _protectRecord = null ; _objectProtectRecord = null ; _scenarioProtectRecord = null ; return ; } ProtectRecord prec = getProtect ( ) ; PasswordRecord pass = getPassword ( ) ; prec . setProtect ( true ) ; pass . setPassword ( ( short ) CryptoFunctions . createXorVerifier1 ( password ) ) ; if ( _objectProtectRecord == null && shouldProtectObjects ) { ObjectProtectRecord rec = createObjectProtect ( ) ; rec . setProtect ( true ) ; _objectProtectRecord = rec ; } if ( _scenarioProtectRecord == null && shouldProtectScenarios ) { ScenarioProtectRecord srec = createScenarioProtect ( ) ; srec . setProtect ( true ) ; _scenarioProtectRecord = srec ; } }
public void ProtectSheet ( String password , bool shouldProtectObjects , bool shouldProtectScenarios ) { if ( password == null ) { _passwordRecord = null ; _protectRecord = null ; _objectProtectRecord = null ; _scenarioProtectRecord = null ; return ; } ProtectRecord prec = this . Protect ; PasswordRecord pass = this . Password ; prec . Protect = true ; pass . Password = ( PasswordRecord . HashPassword ( password ) ) ; if ( _objectProtectRecord == null && shouldProtectObjects ) { ObjectProtectRecord rec = CreateObjectProtect ( ) ; rec . Protect = ( true ) ; _objectProtectRecord = rec ; } if ( _scenarioProtectRecord == null && shouldProtectScenarios ) { ScenarioProtectRecord srec = CreateScenarioProtect ( ) ; srec . Protect = ( true ) ; _scenarioProtectRecord = srec ; } }
public PackedDataOutput ( DataOutput out ) { this . out = out ; current = 0 ; remainingBits = 8 ; }
public PackedDataOutput ( DataOutput @ out ) { this . @ out = @ out ; current = 0 ; remainingBits = 8 ; }
public CFRuleBase getRule ( int idx ) { checkRuleIndex ( idx ) ; return rules . get ( idx ) ; }
public CFRuleRecord GetRule ( int idx ) { CheckRuleIndex ( idx ) ; return rules [ idx ] ; }
public FieldCacheSource ( String field ) { this . field = field ; }
public FieldCacheSource ( string field ) { this . m_field = field ; }
public IndonesianStemFilterFactory ( Map < String , String > args ) { super ( args ) ; stemDerivational = getBoolean ( args , "stemDerivational" , true ) ; if ( ! args . isEmpty ( ) ) { throw new IllegalArgumentException ( "Unknown parameters: " + args ) ; } }
public IndonesianStemFilterFactory ( IDictionary < string , string > args ) : base ( args ) { stemDerivational = GetBoolean ( args , "stemDerivational" , true ) ; if ( args . Count > 0 ) { throw new System . ArgumentException ( "Unknown parameters: " + args ) ; } }
public boolean isOffsetOverlap ( WeightedPhraseInfo other ) { int so = getStartOffset ( ) ; int eo = getEndOffset ( ) ; int oso = other . getStartOffset ( ) ; int oeo = other . getEndOffset ( ) ; if ( so <= oso && oso < eo ) return true ; if ( so < oeo && oeo <= eo ) return true ; if ( oso <= so && so < oeo ) return true ; if ( oso < eo && eo <= oeo ) return true ; return false ; }
public virtual bool IsOffsetOverlap ( WeightedPhraseInfo other ) { int so = StartOffset ; int eo = EndOffset ; int oso = other . StartOffset ; int oeo = other . EndOffset ; if ( so <= oso && oso < eo ) return true ; if ( so < oeo && oeo <= eo ) return true ; if ( oso <= so && so < oeo ) return true ; if ( oso < eo && eo <= oeo ) return true ; return false ; }
public MergeAlgorithm ( DiffAlgorithm diff ) { this . diffAlg = diff ; }
public MergeAlgorithm ( DiffAlgorithm diff ) { this . diffAlg = diff ; }
public void serialize ( LittleEndianOutput out ) { out . writeInt ( field_1_xAxisUpperLeft ) ; out . writeInt ( field_2_yAxisUpperLeft ) ; out . writeInt ( field_3_xSize ) ; out . writeInt ( field_4_ySize ) ; out . writeByte ( field_5_type ) ; out . writeByte ( field_6_spacing ) ; out . writeShort ( field_7_options ) ; }
public override void Serialize ( ILittleEndianOutput out1 ) { out1 . WriteInt ( field_1_xAxisUpperLeft ) ; out1 . WriteInt ( field_2_yAxisUpperLeft ) ; out1 . WriteInt ( field_3_xSize ) ; out1 . WriteInt ( field_4_ySize ) ; out1 . WriteByte ( field_5_type ) ; out1 . WriteByte ( field_6_spacing ) ; out1 . WriteShort ( field_7_options ) ; }
public long get ( int index ) { final int o = index / 21 ; final int b = index % 21 ; final int shift = b * 3 ; return ( blocks [ o ] > > > shift ) & 7L ; }
public override long Get ( int index ) { int o = index / 21 ; int b = index % 21 ; int shift = b * 3 ; return ( ( long ) ( ( ulong ) blocks [ o ] > > shift ) ) & 7L ; }
public CodingErrorAction unmappableCharacterAction ( ) { return unmappableCharacterAction ; }
public virtual java . nio . charset . CodingErrorAction unmappableCharacterAction ( ) { return _unmappableCharacterAction ; }
public Set < String > getSet ( Map < String , String > args , String name ) { String s = args . remove ( name ) ; if ( s == null ) { return null ; } else { Set < String > set = null ; Matcher matcher = ITEM_PATTERN . matcher ( s ) ; if ( matcher . find ( ) ) { set = new HashSet < > ( ) ; set . add ( matcher . group ( 0 ) ) ; while ( matcher . find ( ) ) { set . add ( matcher . group ( 0 ) ) ; } } return set ; } }
public virtual ISet < string > GetSet ( IDictionary < string , string > args , string name ) { string s ; if ( args . TryGetValue ( name , out s ) ) { args . Remove ( name ) ; ISet < string > set = null ; Match matcher = ITEM_PATTERN . Match ( s ) ; if ( matcher . Success ) { set = new JCG . HashSet < string > { matcher . Groups [ 0 ] . Value } ; matcher = matcher . NextMatch ( ) ; while ( matcher . Success ) { set . Add ( matcher . Groups [ 0 ] . Value ) ; matcher = matcher . NextMatch ( ) ; } } return set ; } return null ; }
public AbstractTreeIterator createSubtreeIterator ( ObjectReader reader ) throws IncorrectObjectTypeException , IOException { if ( currentSubtree == null ) throw new IncorrectObjectTypeException ( getEntryObjectId ( ) , Constants . TYPE_TREE ) ; return new DirCacheIterator ( this , currentSubtree ) ; }
public override AbstractTreeIterator CreateSubtreeIterator ( ObjectReader reader ) { if ( currentSubtree == null ) { throw new IncorrectObjectTypeException ( EntryObjectId , Constants . TYPE_TREE ) ; } return new NGit . Dircache . DirCacheIterator ( this , currentSubtree ) ; }
public Explanation [ ] getDetails ( ) { return details . toArray ( new Explanation [ 0 ] ) ; }
public virtual Explanation [ ] GetDetails ( ) { if ( details == null ) { return null ; } return details . ToArray ( ) ; }
public String toString ( ) { if ( text == null ) { return "<DeleteOp@" + tokens . get ( index ) + ".." + tokens . get ( lastIndex ) + ">" ; } return "<ReplaceOp@" + tokens . get ( index ) + ".." + tokens . get ( lastIndex ) + ":\"" + text + "\">" ; }
public override string ToString ( ) { string opName = GetType ( ) . FullName ; int index = opName . IndexOf ( '$' ) ; opName = Sharpen . Runtime . Substring ( opName , index + 1 , opName . Length ) ; return "<" + opName + "@" + tokens . Get ( this . index ) + ":\"" + text + "\">" ; }
public String toString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( "[TopMargin]\n" ) ; buffer . append ( " .margin = " ) . append ( " (" ) . append ( getMargin ( ) ) . append ( " )\n" ) ; buffer . append ( "[/TopMargin]\n" ) ; return buffer . toString ( ) ; }
public override String ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( "[TopMargin]\n" ) ; buffer . Append ( " .margin = " ) . Append ( " (" ) . Append ( Margin ) . Append ( " )\n" ) ; buffer . Append ( "[/TopMargin]\n" ) ; return buffer . ToString ( ) ; }
static public double fv ( double r , int nper , double c , double pv ) { return fv ( r , nper , c , pv , 0 ) ; }
static public double FV ( double r , int nper , double c , double pv ) { return FV ( r , nper , c , pv , 0 ) ; }
@ Override public boolean remove ( Object object ) { Object [ ] a = array ; int s = size ; if ( object != null ) { for ( int i = 0 ; i < s ; i ++ ) { if ( object . equals ( a [ i ] ) ) { System . arraycopy ( a , i + 1 , a , i , -- s - i ) ; a [ s ] = null ; size = s ; modCount ++ ; return true ; } } } else { for ( int i = 0 ; i < s ; i ++ ) { if ( a [ i ] == null ) { System . arraycopy ( a , i + 1 , a , i , -- s - i ) ; a [ s ] = null ; size = s ; modCount ++ ; return true ; } } } return false ; }
public override bool remove ( object @ object ) { object [ ] a = array ; int s = _size ; if ( @ object != null ) { { for ( int i = 0 ; i < s ; i ++ ) { if ( @ object . Equals ( a [ i ] ) ) { System . Array . Copy ( a , i + 1 , a , i , -- s - i ) ; a [ s ] = null ; _size = s ; modCount ++ ; return true ; } } } } else { { for ( int i = 0 ; i < s ; i ++ ) { if ( a [ i ] == null ) { System . Array . Copy ( a , i + 1 , a , i , -- s - i ) ; a [ s ] = null ; _size = s ; modCount ++ ; return true ; } } } } return false ; }
public MergeCellsRecord ( CellRangeAddress [ ] regions , int startIndex , int numberOfRegions ) { _regions = regions ; _startIndex = startIndex ; _numberOfRegions = numberOfRegions ; }
public MergeCellsRecord ( CellRangeAddress [ ] regions , int startIndex , int numberOfRegions ) { _regions = regions ; _startIndex = startIndex ; _numberOfRegions = numberOfRegions ; }
public Cluster resizeCluster ( ResizeClusterRequest request ) { request = beforeClientExecution ( request ) ; return executeResizeCluster ( request ) ; }
public virtual ResizeClusterResponse ResizeCluster ( ResizeClusterRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ResizeClusterRequestMarshaller . Instance ; options . ResponseUnmarshaller = ResizeClusterResponseUnmarshaller . Instance ; return Invoke < ResizeClusterResponse > ( request , options ) ; }
public int getParent ( int ordinal ) throws IOException { ensureOpen ( ) ; Objects . checkIndex ( ordinal , nextID ) ; int [ ] parents = getTaxoArrays ( ) . parents ( ) ; assert ordinal < parents . length : "requested ordinal (" + ordinal + "); parents.length (" + parents . length + ") !" ; return parents [ ordinal ] ; }
public virtual int GetParent ( int ordinal ) { EnsureOpen ( ) ; if ( ordinal >= nextID ) { throw new System . IndexOutOfRangeException ( "requested ordinal is bigger than the largest ordinal in the taxonomy" ) ; } int [ ] parents = GetTaxoArrays ( ) . Parents ; Debug . Assert ( ordinal < parents . Length , "requested ordinal (" + ordinal + "); parents.length (" + parents . Length + ") !" ) ; return parents [ ordinal ] ; }
@ Override public Iterator < Multiset . Entry < E > > iterator ( ) { final Iterator < Map . Entry < E , AtomicInteger > > backingEntries = backingMap . entrySet ( ) . iterator ( ) ; return new Iterator < Multiset . Entry < E > > ( ) ; }
public override java . util . Iterator < java . util . MapClass . Entry < K , V > > iterator ( ) { return new java . util . Hashtable < K , V > . EntryIterator ( this . _enclosing ) ; }
public int alloc ( int size ) { int index = n ; int len = array . length ; if ( n + size >= len ) { char [ ] aux = new char [ len + blockSize ] ; System . arraycopy ( array , 0 , aux , 0 , len ) ; array = aux ; } n += size ; return index ; }
public virtual int Alloc ( int size ) { int index = n ; int len = array . Length ; if ( n + size >= len ) { char [ ] aux = new char [ len + blockSize ] ; System . Array . Copy ( array , 0 , aux , 0 , len ) ; array = aux ; } n += size ; return index ; }
public static String getInflectionTypeTranslation ( String s ) { return inflTypeTranslations . get ( s ) ; }
public static string GetInflectionTypeTranslation ( string s ) { string result ; inflTypeTranslations . TryGetValue ( s , out result ) ; return result ; }
public Note call ( ) throws GitAPIException { checkCallable ( ) ; try ( RevWalk walk = new RevWalk ( repo ) ; ObjectInserter inserter = repo . newObjectInserter ( ) ) { NoteMap map = NoteMap . newEmptyMap ( ) ; RevCommit notesCommit = null ; Ref ref = repo . exactRef ( notesRef ) ; if ( ref != null ) { notesCommit = walk . parseCommit ( ref . getObjectId ( ) ) ; map = NoteMap . read ( walk . getObjectReader ( ) , notesCommit ) ; } map . set ( id , null , inserter ) ; AddNoteCommand . commitNoteMap ( repo , notesRef , walk , map , notesCommit , inserter , "Notes removed by 'git notes remove'" ) ; return map . getNote ( id ) ; } catch ( IOException e ) { throw new JGitInternalException ( e . getMessage ( ) , e ) ; } }
public override Note Call ( ) { CheckCallable ( ) ; RevWalk walk = new RevWalk ( repo ) ; ObjectInserter inserter = repo . NewObjectInserter ( ) ; NoteMap map = NoteMap . NewEmptyMap ( ) ; RevCommit notesCommit = null ; try { Ref @ ref = repo . GetRef ( notesRef ) ; if ( @ ref != null ) { notesCommit = walk . ParseCommit ( @ ref . GetObjectId ( ) ) ; map = NoteMap . Read ( walk . GetObjectReader ( ) , notesCommit ) ; } map . Set ( id , null , inserter ) ; CommitNoteMap ( walk , map , notesCommit , inserter , "Notes removed by 'git notes remove'" ) ; return map . GetNote ( id ) ; } catch ( IOException e ) { throw new JGitInternalException ( e . Message , e ) ; } finally { inserter . Release ( ) ; walk . Release ( ) ; } }
public String getNewPath ( ) { return newPath ; }
public virtual string GetNewPath ( ) { return newPath ; }
public UserSViewBegin ( byte [ ] data ) { _rawData = data ; }
public UserSViewBegin ( byte [ ] data ) { _rawData = data ; }
public CreateMountTargetResult createMountTarget ( CreateMountTargetRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateMountTarget ( request ) ; }
public virtual CreateMountTargetResponse CreateMountTarget ( CreateMountTargetRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateMountTargetRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateMountTargetResponseUnmarshaller . Instance ; return Invoke < CreateMountTargetResponse > ( request , options ) ; }
public DeleteSubnetRequest ( String subnetId ) { setSubnetId ( subnetId ) ; }
public DeleteSubnetRequest ( string subnetId ) { _subnetId = subnetId ; }
public void setTitle ( String title ) { this . title = title ; }
public void SetTitle ( String title ) { this . title = title ; }
public char current ( ) { if ( offset == end ) { return DONE ; } return string . charAt ( offset ) ; }
public char current ( ) { if ( offset == end ) { return java . text . CharacterIteratorClass . DONE ; } return @ string [ offset ] ; }
public void add ( long n ) { if ( count == entries . length ) grow ( ) ; entries [ count ++ ] = n ; }
public virtual void Add ( long n ) { if ( count == entries . Length ) { Grow ( ) ; } entries [ count ++ ] = n ; }
public FloatBuffer put ( int index , float c ) { checkIndex ( index ) ; backingArray [ offset + index ] = c ; return this ; }
public override java . nio . FloatBuffer put ( int index , float c ) { checkIndex ( index ) ; backingArray [ offset + index ] = c ; return this ; }
public ListGroupPoliciesRequest ( String groupName ) { setGroupName ( groupName ) ; }
public ListGroupPoliciesRequest ( string groupName ) { _groupName = groupName ; }
public void setDeltaSearchWindowSize ( int objectCount ) { if ( objectCount <= 2 ) setDeltaCompress ( false ) ; elsedeltaSearchWindowSize = objectCount ; }
public virtual void SetDeltaSearchWindowSize ( int objectCount ) { if ( objectCount <= 2 ) { SetDeltaCompress ( false ) ; } else { deltaSearchWindowSize = objectCount ; } }
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 ) { value = null ; return doc = DocIdSetIterator . NO_MORE_DOCS ; } doc = ( int ) docs . Get ( idx ) ; ++ idx ; while ( idx < size && docs . Get ( idx ) == doc ) { ++ idx ; } if ( ! docsWithField . Get ( ( int ) ( idx - 1 ) ) ) { value = null ; } else { value = values . Get ( idx - 1 ) ; } return doc ; }
public void decode ( byte [ ] blocks , int blocksOffset , long [ ] values , int valuesOffset , int iterations ) { for ( int j = 0 ; j < iterations ; ++ j ) { final byte block = blocks [ blocksOffset ++ ] ; values [ valuesOffset ++ ] = ( block > > > 4 ) & 15 ; values [ valuesOffset ++ ] = block & 15 ; } }
public override void Decode ( byte [ ] blocks , int blocksOffset , long [ ] values , int valuesOffset , int iterations ) { for ( int j = 0 ; j < iterations ; ++ j ) { var block = blocks [ blocksOffset ++ ] ; values [ valuesOffset ++ ] = ( ( int ) ( ( uint ) block > > 4 ) ) & 15 ; values [ valuesOffset ++ ] = block & 15 ; } }
public int getNameIndex ( String name ) { for ( int k = 0 ; k < names . size ( ) ; k ++ ) { String nameName = getNameName ( k ) ; if ( nameName . equalsIgnoreCase ( name ) ) { return k ; } } return - 1 ; }
public int GetNameIndex ( String name ) { int retval = - 1 ; for ( int k = 0 ; k < names . Count ; k ++ ) { String nameName = GetNameName ( k ) ; if ( nameName . Equals ( name , StringComparison . OrdinalIgnoreCase ) ) { retval = k ; break ; } } return retval ; }
public void seek ( int index ) { if ( index == currentCharIndex ) { return ; } if ( index > currentCharIndex ) { sync ( index - currentCharIndex ) ; index = Math . min ( index , getBufferStartIndex ( ) + n - 1 ) ; } int i = index - getBufferStartIndex ( ) ; if ( i < 0 ) { throw new IllegalArgumentException ( "cannot seek to negative index " + index ) ; } else if ( i >= n ) { throw new UnsupportedOperationException ( "seek to index outside buffer: " + index + " not in " + getBufferStartIndex ( ) + ".." + ( getBufferStartIndex ( ) + n ) ) ; } p = i ; currentCharIndex = index ; if ( p == 0 ) { lastChar = lastCharBufferStart ; } else { lastChar = data [ p - 1 ] ; } }
public virtual void Seek ( int index ) { if ( index == currentCharIndex ) { return ; } if ( index > currentCharIndex ) { Sync ( index - currentCharIndex ) ; index = Math . Min ( index , BufferStartIndex + n - 1 ) ; } int i = index - BufferStartIndex ; if ( i < 0 ) { throw new ArgumentException ( "cannot seek to negative index " + index ) ; } else { if ( i >= n ) { throw new NotSupportedException ( "seek to index outside buffer: " + index + " not in " + BufferStartIndex + ".." + ( BufferStartIndex + n ) ) ; } } p = i ; currentCharIndex = index ; if ( p == 0 ) { lastChar = lastCharBufferStart ; } else { lastChar = data [ p - 1 ] ; } }
public void readBytes ( byte [ ] b , int offset , int len ) { System . arraycopy ( data , pos , b , offset , len ) ; pos += len ; }
public override void ReadBytes ( byte [ ] b , int offset , int len ) { Array . Copy ( data , pos , b , offset , len ) ; pos += len ; }
public ListGraphsResult listGraphs ( ListGraphsRequest request ) { request = beforeClientExecution ( request ) ; return executeListGraphs ( request ) ; }
public virtual ListGraphsResponse ListGraphs ( ListGraphsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListGraphsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListGraphsResponseUnmarshaller . Instance ; return Invoke < ListGraphsResponse > ( request , options ) ; }
public ATNDeserializer ( ATNDeserializationOptions deserializationOptions ) { if ( deserializationOptions == null ) { deserializationOptions = ATNDeserializationOptions . getDefaultOptions ( ) ; } this . deserializationOptions = deserializationOptions ; }
public ATNDeserializer ( ATNDeserializationOptions deserializationOptions ) { if ( deserializationOptions == null ) { deserializationOptions = ATNDeserializationOptions . Default ; } this . deserializationOptions = deserializationOptions ; }
public void decode ( byte [ ] blocks , int blocksOffset , int [ ] values , int valuesOffset , int iterations ) { for ( int j = 0 ; j < iterations ; ++ j ) { values [ valuesOffset ++ ] = ( ( blocks [ blocksOffset ++ ] & 0xFF ) << 8 ) | ( blocks [ blocksOffset ++ ] & 0xFF ) ; } }
public override void Decode ( byte [ ] blocks , int blocksOffset , int [ ] values , int valuesOffset , int iterations ) { for ( int j = 0 ; j < iterations ; ++ j ) { values [ valuesOffset ++ ] = ( ( blocks [ blocksOffset ++ ] & 0xFF ) << 8 ) | ( blocks [ blocksOffset ++ ] & 0xFF ) ; } }