java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public void setLastFailedRefreshTime() {lastFailedRefreshTime = System.currentTimeMillis();} | public void SetLastFailedRefreshTime(){lastFailedRefreshTime = DateTime.UtcNow.Ticks;} |
public ModifyDBInstanceRequest(String dBInstanceIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);} | public ModifyDBInstanceRequest(string dbInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;} |
public GetTemplateSummaryResult getTemplateSummary(GetTemplateSummaryRequest request) {request = beforeClientExecution(request);return executeGetTemplateSummary(request);} | public virtual GetTemplateSummaryResponse GetTemplateSummary(GetTemplateSummaryRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTemplateSummaryRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTemplateSummaryResponseUnmarshaller.Instance;return Invoke<GetTemplateSummaryResponse>(request, options);} |
public Snapshot revokeSnapshotAccess(RevokeSnapshotAccessRequest request) {request = beforeClientExecution(request);return executeRevokeSnapshotAccess(request);} | public virtual RevokeSnapshotAccessResponse RevokeSnapshotAccess(RevokeSnapshotAccessRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeSnapshotAccessRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeSnapshotAccessResponseUnmarshaller.Instance;return Invoke<RevokeSnapshotAccessResponse>(request, options);} |
public void serialize(final LittleEndianOutput out) {final int field_4_name_length = field_6_name_text.length();final int field_5_comment_length = field_7_comment_text.length();out.writeShort(field_1_record_type);out.writeShort(field_2_frt_cell_ref_flag);out.writeLong(field_3_reserved);out.writeShort(field_4_name_length);out.writeShort(field_5_comment_length);boolean isNameMultiByte = StringUtil.hasMultibyte(field_6_name_text);out.writeByte(isNameMultiByte ? 1 : 0);if (isNameMultiByte) {StringUtil.putUnicodeLE(field_6_name_text, out);} else {StringUtil.putCompressedUnicode(field_6_name_text, out);}boolean isCommentMultiByte = StringUtil.hasMultibyte(field_7_comment_text);out.writeByte(isCommentMultiByte ? 1 : 0);if (isCommentMultiByte) {StringUtil.putUnicodeLE(field_7_comment_text, out);} else {StringUtil.putCompressedUnicode(field_7_comment_text, out);}} | public override void Serialize(ILittleEndianOutput out1){int field_4_name_length = field_6_name_text.Length;int field_5_comment_length = field_7_comment_text.Length;out1.WriteShort(field_1_record_type);out1.WriteShort(field_2_frt_cell_ref_flag);out1.WriteLong(field_3_reserved);out1.WriteShort(field_4_name_length);out1.WriteShort(field_5_comment_length);out1.WriteByte(0);StringUtil.PutCompressedUnicode(field_6_name_text,out1);out1.WriteByte(0);StringUtil.PutCompressedUnicode(field_7_comment_text, out1);} |
public StartProjectVersionResult startProjectVersion(StartProjectVersionRequest request) {request = beforeClientExecution(request);return executeStartProjectVersion(request);} | public virtual StartProjectVersionResponse StartProjectVersion(StartProjectVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartProjectVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartProjectVersionResponseUnmarshaller.Instance;return Invoke<StartProjectVersionResponse>(request, options);} |
public MoPenDeleteGroupMemberRequest() {super("MoPen", "2018-02-11", "MoPenDeleteGroupMember", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);} | public MoPenDeleteGroupMemberRequest(): base("MoPen", "2018-02-11", "MoPenDeleteGroupMember", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;} |
public synchronized int getMax() {return mMax;} | public virtual int getMax(){lock (this){return mMax;}} |
public DiffCommand setSourcePrefix(String sourcePrefix) {this.sourcePrefix = sourcePrefix;return this;} | public virtual NGit.Api.DiffCommand SetSourcePrefix(string sourcePrefix){this.sourcePrefix = sourcePrefix;return this;} |
public CreateFlowLogsResult createFlowLogs(CreateFlowLogsRequest request) {request = beforeClientExecution(request);return executeCreateFlowLogs(request);} | public virtual CreateFlowLogsResponse CreateFlowLogs(CreateFlowLogsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFlowLogsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFlowLogsResponseUnmarshaller.Instance;return Invoke<CreateFlowLogsResponse>(request, options);} |
public void writeString(String text, int numberOfRichTextRuns, int extendedDataSize) {boolean is16bitEncoded = StringUtil.hasMultibyte(text);int keepTogetherSize = 2 + 1 + 1; int optionFlags = 0x00;if (is16bitEncoded) {optionFlags |= 0x01;keepTogetherSize += 1; }if (numberOfRichTextRuns > 0) {optionFlags |= 0x08;keepTogetherSize += 2;}if (extendedDataSize > 0) {optionFlags |= 0x04;keepTogetherSize += 4;}writeContinueIfRequired(keepTogetherSize);writeShort(text.length());writeByte(optionFlags);if (numberOfRichTextRuns > 0) {writeShort(numberOfRichTextRuns);}if (extendedDataSize > 0) {writeInt(extendedDataSize);}writeCharacterData(text, is16bitEncoded);} | public void WriteString(String text, int numberOfRichTextRuns, int extendedDataSize){bool is16bitEncoded = StringUtil.HasMultibyte(text);int keepTogetherSize = 2 + 1 + 1; int optionFlags = 0x00;if (is16bitEncoded){optionFlags |= 0x01;keepTogetherSize += 1; }if (numberOfRichTextRuns > 0){optionFlags |= 0x08;keepTogetherSize += 2;}if (extendedDataSize > 0){optionFlags |= 0x04;keepTogetherSize += 4;}WriteContinueIfRequired(keepTogetherSize);WriteShort(text.Length);WriteByte(optionFlags);if (numberOfRichTextRuns > 0){WriteShort(numberOfRichTextRuns);}if (extendedDataSize > 0){WriteInt(extendedDataSize);}WriteCharacterData(text, is16bitEncoded);} |
public String toFormulaString(String[] operands) {StringBuilder buf = new StringBuilder();if(isExternalFunction()) {buf.append(operands[0]); appendArgs(buf, 1, operands);} else {buf.append(getName());appendArgs(buf, 0, operands);}return buf.toString();} | public override String ToFormulaString(String[] operands){StringBuilder buf = new StringBuilder();if (IsExternalFunction){buf.Append(operands[0]); AppendArgs(buf, 1, operands);}else{buf.Append(Name);AppendArgs(buf, 0, operands);}return buf.ToString();} |
public DetectStackDriftResult detectStackDrift(DetectStackDriftRequest request) {request = beforeClientExecution(request);return executeDetectStackDrift(request);} | public virtual DetectStackDriftResponse DetectStackDrift(DetectStackDriftRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectStackDriftRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectStackDriftResponseUnmarshaller.Instance;return Invoke<DetectStackDriftResponse>(request, options);} |
public ObjectId idFor(TreeFormatter formatter) {return delegate().idFor(formatter);} | public override ObjectId IdFor(TreeFormatter formatter){return Delegate().IdFor(formatter);} |
public CharSequence toQueryString(EscapeQuerySyntax escaper) {if (isDefaultField(this.field)) {return getTermEscaped(escaper);} else {return this.field + ":" + getTermEscaped(escaper);}} | public override string ToQueryString(IEscapeQuerySyntax escaper){if (IsDefaultField(this.m_field)){return GetTermEscaped(escaper);}else{return this.m_field + ":" + GetTermEscaped(escaper);}} |
public RenderUiTemplateResult renderUiTemplate(RenderUiTemplateRequest request) {request = beforeClientExecution(request);return executeRenderUiTemplate(request);} | public virtual RenderUiTemplateResponse RenderUiTemplate(RenderUiTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = RenderUiTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = RenderUiTemplateResponseUnmarshaller.Instance;return Invoke<RenderUiTemplateResponse>(request, options);} |
public final LongBuffer asLongBuffer() {return LongToByteBufferAdapter.asLongBuffer(this);} | public sealed override java.nio.LongBuffer asLongBuffer(){return java.nio.LongToByteBufferAdapter.asLongBuffer(this);} |
public DescribeLimitsResult describeLimits(DescribeLimitsRequest request) {request = beforeClientExecution(request);return executeDescribeLimits(request);} | public virtual DescribeLimitsResponse DescribeLimits(DescribeLimitsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLimitsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLimitsResponseUnmarshaller.Instance;return Invoke<DescribeLimitsResponse>(request, options);} |
public DescribeAssessmentTargetsResult describeAssessmentTargets(DescribeAssessmentTargetsRequest request) {request = beforeClientExecution(request);return executeDescribeAssessmentTargets(request);} | public virtual DescribeAssessmentTargetsResponse DescribeAssessmentTargets(DescribeAssessmentTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAssessmentTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAssessmentTargetsResponseUnmarshaller.Instance;return Invoke<DescribeAssessmentTargetsResponse>(request, options);} |
public DeleteClientVpnRouteResult deleteClientVpnRoute(DeleteClientVpnRouteRequest request) {request = beforeClientExecution(request);return executeDeleteClientVpnRoute(request);} | public virtual DeleteClientVpnRouteResponse DeleteClientVpnRoute(DeleteClientVpnRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClientVpnRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClientVpnRouteResponseUnmarshaller.Instance;return Invoke<DeleteClientVpnRouteResponse>(request, options);} |
public RebaseCommand setUpstream(AnyObjectId upstream) {try {this.upstreamCommit = walk.parseCommit(upstream);this.upstreamCommitName = upstream.name();} catch (IOException e) {throw new JGitInternalException(MessageFormat.format(JGitText.get().couldNotReadObjectWhileParsingCommit,upstream.name()), e);}return this;} | public virtual NGit.Api.RebaseCommand SetUpstream(AnyObjectId upstream){try{this.upstreamCommit = walk.ParseCommit(upstream);this.upstreamCommitName = upstream.Name;}catch (IOException e){throw new JGitInternalException(MessageFormat.Format(JGitText.Get().couldNotReadObjectWhileParsingCommit, upstream.Name), e);}return this;} |
public Collection<ChildScorable> getChildren() {return Collections.singleton(new ChildScorable(in, "CACHED"));} | public override ICollection<ChildScorer> GetChildren(){return new[] { new ChildScorer(scorer, "CACHED") };} |
public synchronized String substring(int start) {return super.substring(start);} | public override string substring(int start){lock (this){return base.substring(start);}} |
public static double sum(double[] values) {double sum = 0;for (double value : values) {sum += value;}return sum;} | public static double Sum(double[] values){double sum = 0;for (int i = 0, iSize = values.Length; i < iSize; i++){sum += values[i];}return sum;} |
public static BlankRecord[] convertBlankRecords(MulBlankRecord mbk) {BlankRecord[] mulRecs = new BlankRecord[mbk.getNumColumns()];for (int k = 0; k < mbk.getNumColumns(); k++) {BlankRecord br = new BlankRecord();br.setColumn((short) (k + mbk.getFirstColumn()));br.setRow(mbk.getRow());br.setXFIndex(mbk.getXFAt(k));mulRecs[k] = br;}return mulRecs;} | public static BlankRecord[] ConvertBlankRecords(MulBlankRecord mbk){BlankRecord[] mulRecs = new BlankRecord[mbk.NumColumns];for (int k = 0; k < mbk.NumColumns; k++){BlankRecord br = new BlankRecord();br.Column = k + mbk.FirstColumn;br.Row = mbk.Row;br.XFIndex = mbk.GetXFAt(k);mulRecs[k] = br;}return mulRecs;} |
public DeregisterDBProxyTargetsResult deregisterDBProxyTargets(DeregisterDBProxyTargetsRequest request) {request = beforeClientExecution(request);return executeDeregisterDBProxyTargets(request);} | public virtual DeregisterDBProxyTargetsResponse DeregisterDBProxyTargets(DeregisterDBProxyTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterDBProxyTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterDBProxyTargetsResponseUnmarshaller.Instance;return Invoke<DeregisterDBProxyTargetsResponse>(request, options);} |
public SummaryInformation(final PropertySet ps) throws UnexpectedPropertySetTypeException {super(ps);if (!isSummaryInformation()) {throw new UnexpectedPropertySetTypeException("Not a " + getClass().getName());}} | public SummaryInformation(PropertySet ps): base(ps){if (!IsSummaryInformation)throw new UnexpectedPropertySetTypeException("Not a "+ GetType().Name);} |
public void setCredentialsProvider(AlibabaCloudCredentialsProvider credentialsProvider) {if (credential != null) {return;}credential = new CredentialsBackupCompatibilityAdaptor(credentialsProvider);} | public void SetCredentialsProvider(AlibabaCloudCredentialsProvider credentialsProvider){if (_credential != null){return;}_credential = new CredentialsBackupCompatibilityAdaptor(credentialsProvider);} |
public CharArrayReader(char[] buf, int offset, int length) {if (offset < 0 || offset > buf.length || length < 0 || offset + length < 0) {throw new IllegalArgumentException();}this.buf = buf;this.pos = offset;this.markedPos = offset;int bufferLength = buf.length;this.count = offset + length < bufferLength ? length : bufferLength;} | public CharArrayReader(char[] buf, int offset, int length){if (offset < 0 || offset > buf.Length || length < 0 || offset + length < 0){throw new System.ArgumentException();}this.buf = buf;this.pos = offset;this.markedPos = offset;int bufferLength = buf.Length;this.count = offset + length < bufferLength ? length : bufferLength;} |
public Object getProperty(final long id) {wasNull = !properties.containsKey(id);return (wasNull) ? null : properties.get(id).getValue();} | public virtual Object GetProperty(long id){wasNull = false;for (int i = 0; i < properties.Length; i++)if (id == properties[i].ID)return properties[i].Value;wasNull = true;return null;} |
public BufferedOutputStream(OutputStream out, int size) {super(out);if (size <= 0) {throw new IllegalArgumentException("size <= 0");}buf = new byte[size];} | public BufferedOutputStream(java.io.OutputStream @out, int size) : base(@out){if (size <= 0){throw new System.ArgumentException("size <= 0");}buf = new byte[size];} |
public AuthorizeDBSecurityGroupIngressRequest(String dBSecurityGroupName) {setDBSecurityGroupName(dBSecurityGroupName);} | public AuthorizeDBSecurityGroupIngressRequest(string dbSecurityGroupName){_dbSecurityGroupName = dbSecurityGroupName;} |
public ArrayDataSource(T[] elements) {this.elements = elements.clone();} | public ArrayDataSource(T[] elements) {this.elements = elements;} |
public CreateDeploymentResult createDeployment(CreateDeploymentRequest request) {request = beforeClientExecution(request);return executeCreateDeployment(request);} | public virtual CreateDeploymentResponse CreateDeployment(CreateDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeploymentResponseUnmarshaller.Instance;return Invoke<CreateDeploymentResponse>(request, options);} |
public final int getInt() {int newPosition = position + SizeOf.INT;if (newPosition > limit) {throw new BufferUnderflowException();}int result = Memory.peekInt(backingArray, offset + position, order);position = newPosition;return result;} | public sealed override int getInt(){int newPosition = _position + libcore.io.SizeOf.INT;if (newPosition > _limit){throw new java.nio.BufferUnderflowException();}int result = libcore.io.Memory.peekInt(backingArray, offset + _position, _order);_position = newPosition;return result;} |
public DeleteTransitGatewayRouteResult deleteTransitGatewayRoute(DeleteTransitGatewayRouteRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayRoute(request);} | public virtual DeleteTransitGatewayRouteResponse DeleteTransitGatewayRoute(DeleteTransitGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayRouteResponseUnmarshaller.Instance;return Invoke<DeleteTransitGatewayRouteResponse>(request, options);} |
public ListMultipartUploadsRequest(String bucketName) {this.bucketName = bucketName;} | public ListMultipartUploadsRequest(string vaultName){_vaultName = vaultName;} |
public float score(float freq, long norm) {return (float) SimilarityBase.this.score(stats, freq, getLengthValue(norm));} | public override float Score(int doc, float freq){return outerInstance.Score(stats, freq, norms == null ? 1F : outerInstance.DecodeNormValue((byte)norms.Get(doc)));} |
public char next() {if (offset >= (end - 1)) {offset = end;return DONE;}return string.charAt(++offset);} | public char next(){if (offset >= (end - 1)){offset = end;return java.text.CharacterIteratorClass.DONE;}return @string[++offset];} |
public CherryPickResult(RevCommit newHead, List<Ref> cherryPickedRefs) {this.status = CherryPickStatus.OK;this.newHead = newHead;this.cherryPickedRefs = cherryPickedRefs;this.failingPaths = null;} | public CherryPickResult(RevCommit newHead, IList<Ref> cherryPickedRefs){this.status = CherryPickResult.CherryPickStatus.OK;this.newHead = newHead;this.cherryPickedRefs = cherryPickedRefs;this.failingPaths = null;} |
public static Token newToken(int ofKind){return newToken(ofKind, null);} | public static Token NewToken(int ofKind){return NewToken(ofKind, null);} |
public HSSFClientAnchor getPreferredSize(double scale){return getPreferredSize(scale, scale);} | public IClientAnchor GetPreferredSize(double scale){return GetPreferredSize(scale, scale);} |
public UpdateInstanceRequest() {super("Ots", "2016-06-20", "UpdateInstance", "ots");setMethod(MethodType.POST);} | public UpdateInstanceRequest(): base("Ots", "2016-06-20", "UpdateInstance", "ots", "openAPI"){Method = MethodType.POST;} |
public ByteBuffer putInt(int index, int value) {checkIndex(index, SizeOf.INT);Memory.pokeInt(backingArray, offset + index, value, order);return this;} | public override java.nio.ByteBuffer putInt(int index, int value){checkIndex(index, libcore.io.SizeOf.INT);libcore.io.Memory.pokeInt(backingArray, offset + index, value, _order);return this;} |
public byte[] serialize() {int size = getDataSize() + 4;ByteArrayOutputStream baos = new ByteArrayOutputStream(size);serialize(new LittleEndianOutputStream(baos));if (baos.size() != size) {throw new RuntimeException("write size mismatch");}return baos.toByteArray();} | public byte[] Serialize(){int size = DataSize + 4;using (MemoryStream baos = new MemoryStream(size)){Serialize(new LittleEndianOutputStream(baos));if (baos.Length != size){throw new Exception("write size mismatch");}return baos.ToArray();}} |
public GetFieldLevelEncryptionProfileResult getFieldLevelEncryptionProfile(GetFieldLevelEncryptionProfileRequest request) {request = beforeClientExecution(request);return executeGetFieldLevelEncryptionProfile(request);} | public virtual GetFieldLevelEncryptionProfileResponse GetFieldLevelEncryptionProfile(GetFieldLevelEncryptionProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFieldLevelEncryptionProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFieldLevelEncryptionProfileResponseUnmarshaller.Instance;return Invoke<GetFieldLevelEncryptionProfileResponse>(request, options);} |
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_number_of_sheets);if(isExternalReferences()) {StringUtil.writeUnicodeString(out, field_2_encoded_url);for (String field_3_sheet_name : field_3_sheet_names) {StringUtil.writeUnicodeString(out, field_3_sheet_name);}} else {int field2val = _isAddInFunctions ? TAG_ADD_IN_FUNCTIONS : TAG_INTERNAL_REFERENCES;out.writeShort(field2val);}} | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_number_of_sheets);if (IsExternalReferences){StringUtil.WriteUnicodeString(out1, field_2_encoded_url);for (int i = 0; i < field_3_sheet_names.Length; i++){StringUtil.WriteUnicodeString(out1, field_3_sheet_names[i]);}}else{int field2val = _isAddInFunctions ? TAG_ADD_IN_FUNCTIONS : TAG_INTERNAL_REFERENCES;out1.WriteShort(field2val);}} |
public BitsSlice(Bits parent, ReaderSlice slice) {this.parent = parent;this.start = slice.start;this.length = slice.length;assert length >= 0: "length=" + length;} | public BitsSlice(IBits parent, ReaderSlice slice){this.parent = parent;this.start = slice.Start;this.length = slice.Length;Debug.Assert(length >= 0, "length=" + length);} |
public void removeName(Name name) {int index = getNameIndex((HSSFName) name);removeName(index);} | public void RemoveName(int index){names.RemoveAt(index);workbook.RemoveName(index);} |
public ListConfigurationRevisionsResult listConfigurationRevisions(ListConfigurationRevisionsRequest request) {request = beforeClientExecution(request);return executeListConfigurationRevisions(request);} | public virtual ListConfigurationRevisionsResponse ListConfigurationRevisions(ListConfigurationRevisionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListConfigurationRevisionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListConfigurationRevisionsResponseUnmarshaller.Instance;return Invoke<ListConfigurationRevisionsResponse>(request, options);} |
public ObjectStream openStream() {return new ObjectStream.SmallStream(this);} | public override ObjectStream OpenStream(){return new ObjectStream.SmallStream(this);} |
public boolean delete() {return directory.delete();} | public bool Delete(){return directory.Delete();} |
public void clear(){_limit = 0;} | public void Clear(){_limit = 0;} |
public void setMaxObjectSizeLimit(long limit) {maxObjectSizeLimit = limit;} | public virtual void SetMaxObjectSizeLimit(long limit){maxObjectSizeLimit = limit;} |
public DescribeEventSubscriptionsResult describeEventSubscriptions(DescribeEventSubscriptionsRequest request) {request = beforeClientExecution(request);return executeDescribeEventSubscriptions(request);} | public virtual DescribeEventSubscriptionsResponse DescribeEventSubscriptions(DescribeEventSubscriptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventSubscriptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventSubscriptionsResponseUnmarshaller.Instance;return Invoke<DescribeEventSubscriptionsResponse>(request, options);} |
public boolean startEvaluate(FormulaCellCacheEntry cce) {if (cce == null) {throw new IllegalArgumentException("cellLoc must not be null");}if (_currentlyEvaluatingCells.contains(cce)) {return false;}_currentlyEvaluatingCells.add(cce);_evaluationFrames.add(new CellEvaluationFrame(cce));return true;} | public bool StartEvaluate(FormulaCellCacheEntry cce){if (cce == null){throw new ArgumentException("cellLoc must not be null");}if (_currentlyEvaluatingCells.Contains(cce)){return false;}_currentlyEvaluatingCells.Add(cce);_evaluationFrames.Add(new CellEvaluationFrame(cce));return true;} |
public void serialize(LittleEndianOutput out) {out.writeShort(sid);out.writeShort(_cbFContinued);if (_linkPtg == null) {out.writeShort(0);} else {int formulaSize = _linkPtg.getSize();int linkSize = formulaSize + 6;if (_unknownPostFormulaByte != null) {linkSize++;}out.writeShort(linkSize);out.writeShort(formulaSize);out.writeInt(_unknownPreFormulaInt);_linkPtg.write(out);if (_unknownPostFormulaByte != null) {out.writeByte(_unknownPostFormulaByte.intValue());}}out.writeShort(_cLines);out.writeShort(_iSel);out.writeShort(_flags);out.writeShort(_idEdit);if(_dropData != null) {_dropData.serialize(out);}if(_rgLines != null) {for(String str : _rgLines){StringUtil.writeUnicodeString(out, str);}}if(_bsels != null) {for(boolean val : _bsels){out.writeByte(val ? 1 : 0);}}} | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid);out1.WriteShort(_cbFContinued); if (_linkPtg == null){out1.WriteShort(0);}else{int formulaSize = _linkPtg.Size;int linkSize = formulaSize + 6;if (_unknownPostFormulaByte != null){linkSize++;}out1.WriteShort(linkSize);out1.WriteShort(formulaSize);out1.WriteInt(_unknownPreFormulaInt);_linkPtg.Write(out1);if (_unknownPostFormulaByte != null){out1.WriteByte(Convert.ToByte(_unknownPostFormulaByte, CultureInfo.InvariantCulture));}}out1.WriteShort(_cLines);out1.WriteShort(_iSel);out1.WriteShort(_flags);out1.WriteShort(_idEdit);if (_dropData != null){_dropData.Serialize(out1);}if (_rgLines != null){foreach (String str in _rgLines){StringUtil.WriteUnicodeString(out1, str);}}if (_bsels != null){foreach (bool val in _bsels){out1.WriteByte(val ? 1 : 0);}}} |
public void remove(int el) {if ( readonly ) throw new IllegalStateException("can't alter readonly IntervalSet");int n = intervals.size();for (int i = 0; i < n; i++) {Interval I = intervals.get(i);int a = I.a;int b = I.b;if ( el<a ) {break; }if ( el==a && el==b ) {intervals.remove(i);break;}if ( el==a ) {I.a++;break;}if ( el==b ) {I.b--;break;}if ( el>a && el<b ) { int oldb = I.b;I.b = el-1; add(el+1, oldb); }}} | public virtual void Remove(int el){if (@readonly){throw new InvalidOperationException("can't alter readonly IntervalSet");}int n = intervals.Count;for (int i = 0; i < n; i++){Interval I = intervals[i];int a = I.a;int b = I.b;if (el < a){break;}if (el == a && el == b){intervals.RemoveAt(i);break;}if (el == a){intervals[i] = Interval.Of(I.a + 1, I.b);break;}if (el == b){intervals[i] = Interval.Of(I.a, I.b - 1);break;}if (el > a && el < b){int oldb = I.b;intervals[i] = Interval.Of(I.a, el - 1);Add(el + 1, oldb);}}} |
public IntegerList toIntegerList() {IntegerList values = new IntegerList(size());int n = intervals.size();for (int i = 0; i < n; i++) {Interval I = intervals.get(i);int a = I.a;int b = I.b;for (int v=a; v<=b; v++) {values.add(v);}}return values;} | public virtual ArrayList<int> ToIntegerList(){ArrayList<int> values = new ArrayList<int>(Count);int n = intervals.Count;for (int i = 0; i < n; i++){Interval I = intervals[i];int a = I.a;int b = I.b;for (int v = a; v <= b; v++){values.Add(v);}}return values;} |
@Override public void clear() {AbstractMultimap.this.clear();} | public override void clear(){this._enclosing.clear();} |
public CharsRef pullNext() {assert upto < count;lastEndOffset = endOffsets[upto];lastPosLength = posLengths[upto];final CharsRefBuilder result = outputs[upto++];posIncr = 0;if (upto == count) {reset();}return result.get();} | public virtual CharsRef PullNext(){Debug.Assert(upto < count);lastEndOffset = endOffsets[upto];lastPosLength = posLengths[upto];CharsRef result = outputs[upto++];posIncr = 0;if (upto == count){Reset();}return result;} |
public FSTTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter) throws IOException {final String termsFileName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, TERMS_EXTENSION);this.postingsWriter = postingsWriter;this.fieldInfos = state.fieldInfos;this.out = state.directory.createOutput(termsFileName, state.context);this.maxDoc = state.segmentInfo.maxDoc();boolean success = false;try {CodecUtil.writeIndexHeader(out, TERMS_CODEC_NAME, TERMS_VERSION_CURRENT,state.segmentInfo.getId(), state.segmentSuffix);this.postingsWriter.init(out, state);success = true;} finally {if (!success) {IOUtils.closeWhileHandlingException(out);}}} | public FSTTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter){var termsFileName = IndexFileNames.SegmentFileName(state.SegmentInfo.Name, state.SegmentSuffix,TERMS_EXTENSION);_postingsWriter = postingsWriter;_fieldInfos = state.FieldInfos;_output = state.Directory.CreateOutput(termsFileName, state.Context);var success = false;try{WriteHeader(_output);_postingsWriter.Init(_output);success = true;}finally{if (!success){IOUtils.DisposeWhileHandlingException(_output);}}} |
public int compareTo(Cell other) {return Double.compare(distanceSortKey, other.distanceSortKey);} | public virtual int CompareTo(Cell o){return string.CompareOrdinal(TokenString, o.TokenString);} |
public ListAccountSettingsResult listAccountSettings(ListAccountSettingsRequest request) {request = beforeClientExecution(request);return executeListAccountSettings(request);} | public virtual ListAccountSettingsResponse ListAccountSettings(ListAccountSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAccountSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAccountSettingsResponseUnmarshaller.Instance;return Invoke<ListAccountSettingsResponse>(request, options);} |
public boolean find() {matchFound = findNextImpl(address, input, matchOffsets);if (matchFound) {findPos = matchOffsets[1];}return matchFound;} | public bool find(){matchFound = findNextImpl(address, input, matchOffsets);if (matchFound){findPos = matchOffsets[1];}return matchFound;} |
public V next() { return super.nextEntry().value; } | public override V next(){return this.nextEntry().value;} |
public DescribeLocalGatewaysResult describeLocalGateways(DescribeLocalGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeLocalGateways(request);} | public virtual DescribeLocalGatewaysResponse DescribeLocalGateways(DescribeLocalGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocalGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocalGatewaysResponseUnmarshaller.Instance;return Invoke<DescribeLocalGatewaysResponse>(request, options);} |
public ByteArrayDataInput(byte[] bytes, int offset, int len) {reset(bytes, offset, len);} | public ByteArrayDataInput(byte[] bytes, int offset, int len){Reset(bytes, offset, len);} |
public String toString() {return super.toString() + ":" + revstr; } | public override string ToString(){return base.ToString() + ":" + revstr;} |
public RegisterCrossAccountAccessRoleResult registerCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest request) {request = beforeClientExecution(request);return executeRegisterCrossAccountAccessRole(request);} | public virtual RegisterCrossAccountAccessRoleResponse RegisterCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterCrossAccountAccessRoleRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterCrossAccountAccessRoleResponseUnmarshaller.Instance;return Invoke<RegisterCrossAccountAccessRoleResponse>(request, options);} |
public void clear() {ConcurrentHashMap.this.clear();} | public override void clear(){this._enclosing.clear();} |
public DescribeFileSystemsResult describeFileSystems(DescribeFileSystemsRequest request) {request = beforeClientExecution(request);return executeDescribeFileSystems(request);} | public virtual DescribeFileSystemsResponse DescribeFileSystems(DescribeFileSystemsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFileSystemsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFileSystemsResponseUnmarshaller.Instance;return Invoke<DescribeFileSystemsResponse>(request, options);} |
public ReverseStringFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public ReverseStringFilterFactory(IDictionary<string, string> args) : base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
public Builder() {this(true);} | public Builder(){InitializeInstanceFields();} |
public TokenStream create(TokenStream input) {return new IrishLowerCaseFilter(input);} | public override TokenStream Create(TokenStream input){return new IrishLowerCaseFilter(input);} |
public GetQualificationTypeResult getQualificationType(GetQualificationTypeRequest request) {request = beforeClientExecution(request);return executeGetQualificationType(request);} | public virtual GetQualificationTypeResponse GetQualificationType(GetQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQualificationTypeResponseUnmarshaller.Instance;return Invoke<GetQualificationTypeResponse>(request, options);} |
public ThreeWayMerger newMerger(Repository db, boolean inCore) {return new ResolveMerger(db, inCore);} | public override Merger NewMerger(Repository db, bool inCore){return new ResolveMerger(db, inCore);} |
public String getNameText(int definedNameIndex) {return _externalNameRecords[definedNameIndex].getText();} | public String GetNameText(int definedNameIndex){return _externalNameRecords[definedNameIndex].Text;} |
public PlotWalk(Repository repo) {super(repo);super.sort(RevSort.TOPO, true);additionalRefMap = new HashMap<>();repository = repo;} | public PlotWalk(Repository repo) : base(repo){base.Sort(RevSort.TOPO, true);reverseRefMap = repo.GetAllRefsByPeeledObjectId();} |
public SubscribeToDatasetResult subscribeToDataset(SubscribeToDatasetRequest request) {request = beforeClientExecution(request);return executeSubscribeToDataset(request);} | public virtual SubscribeToDatasetResponse SubscribeToDataset(SubscribeToDatasetRequest request){var options = new InvokeOptions();options.RequestMarshaller = SubscribeToDatasetRequestMarshaller.Instance;options.ResponseUnmarshaller = SubscribeToDatasetResponseUnmarshaller.Instance;return Invoke<SubscribeToDatasetResponse>(request, options);} |
public StringBuilder append(char[] str, int offset, int len) {append0(str, offset, len);return this;} | public java.lang.StringBuilder append(char[] str, int offset, int len){append0(str, offset, len);return this;} |
public synchronized int indexOf(String subString, int start) {return super.indexOf(subString, start);} | public override int indexOf(string subString, int start){lock (this){return base.indexOf(subString, start);}} |
public List<E> subList(int from, int to) {Object[] snapshot = elements;if (from < 0 || from > to || to > snapshot.length) {throw new IndexOutOfBoundsException("from=" + from + ", to=" + to +", list size=" + snapshot.length);}return new CowSubList(snapshot, from, to);} | public virtual java.util.List<E> subList(int from, int to){object[] snapshot = elements;if (from < 0 || from > to || to > snapshot.Length){throw new System.IndexOutOfRangeException("from=" + from + ", to=" + to + ", list size="+ snapshot.Length);}return new java.util.concurrent.CopyOnWriteArrayList<E>.CowSubList(this, snapshot, from, to);} |
public Severity getSeverity() {return severity;} | public virtual FormatError.Severity GetSeverity(){return severity;} |
public DescribeBundleTasksResult describeBundleTasks() {return describeBundleTasks(new DescribeBundleTasksRequest());} | public virtual DescribeBundleTasksResponse DescribeBundleTasks(){return DescribeBundleTasks(new DescribeBundleTasksRequest());} |
public BooleanQuery build() {return new BooleanQuery(minimumNumberShouldMatch, clauses.toArray(new BooleanClause[0]));} | public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);} |
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[HIDEOBJ]\n");buffer.append(" .hideobj = ").append(Integer.toHexString(getHideObj())).append("\n");buffer.append("[/HIDEOBJ]\n");return buffer.toString();} | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[HIDEOBJ]\n");buffer.Append(" .hideobj = ").Append(StringUtil.ToHexString(GetHideObj())).Append("\n");buffer.Append("[/HIDEOBJ]\n");return buffer.ToString();} |
public UseSelFSRecord(boolean b) {this(0);_options = useNaturalLanguageFormulasFlag.setBoolean(_options, b);} | public UseSelFSRecord(int options){_options = options;} |
public boolean equals( Object o ) {return o instanceof RomanianStemmer;} | public override bool Equals(object o){return o is RomanianStemmer;} |
public AbortMultipartUploadResult abortMultipartUpload(AbortMultipartUploadRequest request) {request = beforeClientExecution(request);return executeAbortMultipartUpload(request);} | public virtual AbortMultipartUploadResponse AbortMultipartUpload(AbortMultipartUploadRequest request){var options = new InvokeOptions();options.RequestMarshaller = AbortMultipartUploadRequestMarshaller.Instance;options.ResponseUnmarshaller = AbortMultipartUploadResponseUnmarshaller.Instance;return Invoke<AbortMultipartUploadResponse>(request, options);} |
public void reportMatch(Parser recognizer) {endErrorCondition(recognizer);} | public virtual void ReportMatch(Parser recognizer){EndErrorCondition(recognizer);} |
public ModifyVpnConnectionResult modifyVpnConnection(ModifyVpnConnectionRequest request) {request = beforeClientExecution(request);return executeModifyVpnConnection(request);} | public virtual ModifyVpnConnectionResponse ModifyVpnConnection(ModifyVpnConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpnConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpnConnectionResponseUnmarshaller.Instance;return Invoke<ModifyVpnConnectionResponse>(request, options);} |
public GetSendStatisticsResult getSendStatistics() {return getSendStatistics(new GetSendStatisticsRequest());} | public virtual GetSendStatisticsResponse GetSendStatistics(){return GetSendStatistics(new GetSendStatisticsRequest());} |
public CreateVoiceConnectorGroupResult createVoiceConnectorGroup(CreateVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeCreateVoiceConnectorGroup(request);} | public virtual CreateVoiceConnectorGroupResponse CreateVoiceConnectorGroup(CreateVoiceConnectorGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVoiceConnectorGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVoiceConnectorGroupResponseUnmarshaller.Instance;return Invoke<CreateVoiceConnectorGroupResponse>(request, options);} |
public InitiateJobRequest(String vaultName, JobParameters jobParameters) {setVaultName(vaultName);setJobParameters(jobParameters);} | public InitiateJobRequest(string vaultName, JobParameters jobParameters){_vaultName = vaultName;_jobParameters = jobParameters;} |
public MatchResult toMatchResult() {ensureMatch();return new MatchResultImpl(input, matchOffsets);} | public java.util.regex.MatchResult toMatchResult(){ensureMatch();return new java.util.regex.MatchResultImpl(input, matchOffsets);} |
public static String getInflectedFormTranslation(String s) {return inflFormTranslations.get(s);} | public static string GetInflectedFormTranslation(string s){string result;inflFormTranslations.TryGetValue(s, out result);return result;} |
public static ErrPtg valueOf(int code) {switch(FormulaError.forInt(code)) {case DIV0: return DIV_ZERO;case NA: return N_A;case NAME: return NAME_INVALID;case NULL: return NULL_INTERSECTION;case NUM: return NUM_ERROR;case REF: return REF_INVALID;case VALUE: return VALUE_INVALID;default:throw new RuntimeException("Unexpected error code (" + code + ")");}} | public static ErrPtg ValueOf(int code){switch (code){case HSSFErrorConstants.ERROR_DIV_0: return DIV_ZERO;case HSSFErrorConstants.ERROR_NA: return N_A;case HSSFErrorConstants.ERROR_NAME: return NAME_INVALID;case HSSFErrorConstants.ERROR_NULL: return NULL_INTERSECTION;case HSSFErrorConstants.ERROR_NUM: return NUM_ERROR;case HSSFErrorConstants.ERROR_REF: return REF_INVALID;case HSSFErrorConstants.ERROR_VALUE: return VALUE_INVALID;}throw new InvalidOperationException("Unexpected error code (" + code + ")");} |
public GetBasePathMappingResult getBasePathMapping(GetBasePathMappingRequest request) {request = beforeClientExecution(request);return executeGetBasePathMapping(request);} | public virtual GetBasePathMappingResponse GetBasePathMapping(GetBasePathMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBasePathMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBasePathMappingResponseUnmarshaller.Instance;return Invoke<GetBasePathMappingResponse>(request, options);} |
public void fromObjectId(AnyObjectId src) {this.w1 = src.w1;this.w2 = src.w2;this.w3 = src.w3;this.w4 = src.w4;this.w5 = src.w5;} | public virtual void FromObjectId(AnyObjectId src){this.w1 = src.w1;this.w2 = src.w2;this.w3 = src.w3;this.w4 = src.w4;this.w5 = src.w5;} |
Subsets and Splits