java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public FloatBuffer asReadOnlyBuffer() {return ReadOnlyFloatArrayBuffer.copy(this, mark);} | public override java.nio.FloatBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyFloatArrayBuffer.copy(this, _mark);} |
public MissingResourceException(String detailMessage, String className,String resourceName) {super(detailMessage);this.className = className;key = resourceName;} | public MissingResourceException(string detailMessage, string className, string resourceName) : base(detailMessage){this.className = className;key = resourceName;} |
public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex) {return getRelativeValue(getFirstSheetIndex(), relativeRowIndex, relativeColumnIndex);} | public override ValueEval GetRelativeValue(int relativeRowIndex, int relativeColumnIndex){return GetRelativeValue(FirstSheetIndex, relativeRowIndex, relativeColumnIndex);} |
public Matcher matcher(CharSequence input) {return new Matcher(this, input);} | public java.util.regex.Matcher matcher(java.lang.CharSequence input){return new java.util.regex.Matcher(this, input);} |
public ListRoomMembershipsResult listRoomMemberships(ListRoomMembershipsRequest request) {request = beforeClientExecution(request);return executeListRoomMemberships(request);} | public virtual ListRoomMembershipsResponse ListRoomMemberships(ListRoomMembershipsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRoomMembershipsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRoomMembershipsResponseUnmarshaller.Instance;return Invoke<ListRoomMembershipsResponse>(request, options);} |
public StringBuilder insert(int offset, String str) {insert0(offset, str);return this;} | public java.lang.StringBuilder insert(int offset, string str){insert0(offset, str);return this;} |
public void registerActivityType(RegisterActivityTypeRequest request) {request = beforeClientExecution(request);executeRegisterActivityType(request);} | public virtual RegisterActivityTypeResponse RegisterActivityType(RegisterActivityTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterActivityTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterActivityTypeResponseUnmarshaller.Instance;return Invoke<RegisterActivityTypeResponse>(request, options);} |
public DescribeSuggestersResult describeSuggesters(DescribeSuggestersRequest request) {request = beforeClientExecution(request);return executeDescribeSuggesters(request);} | public virtual DescribeSuggestersResponse DescribeSuggesters(DescribeSuggestersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSuggestersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSuggestersResponseUnmarshaller.Instance;return Invoke<DescribeSuggestersResponse>(request, options);} |
public boolean acceptRow(int rowIndex, int firstColumnIndex, int lastColumnIndex) {if (firstColumnIndex != _firstColumnIndex) {return false;}if (lastColumnIndex != _lastColumnIndex) {return false;}if (rowIndex != _lastRowIndex+1) {return false;}_lastRowIndex = rowIndex;return true;} | public bool AcceptRow(int rowIndex, int firstColumnIndex, int lastColumnIndex){if (firstColumnIndex != _firstColumnIndex){return false;}if (lastColumnIndex != _lastColumnIndex){return false;}if (rowIndex != _lastRowIndex + 1){return false;}_lastRowIndex = rowIndex;return true;} |
public boolean equals( Object o ) {return o instanceof FinnishStemmer;} | public override bool Equals(object o){return o is FinnishStemmer;} |
public StopDeploymentResult stopDeployment(StopDeploymentRequest request) {request = beforeClientExecution(request);return executeStopDeployment(request);} | public virtual StopDeploymentResponse StopDeployment(StopDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = StopDeploymentResponseUnmarshaller.Instance;return Invoke<StopDeploymentResponse>(request, options);} |
public ListGitHubAccountTokenNamesResult listGitHubAccountTokenNames(ListGitHubAccountTokenNamesRequest request) {request = beforeClientExecution(request);return executeListGitHubAccountTokenNames(request);} | public virtual ListGitHubAccountTokenNamesResponse ListGitHubAccountTokenNames(ListGitHubAccountTokenNamesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGitHubAccountTokenNamesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGitHubAccountTokenNamesResponseUnmarshaller.Instance;return Invoke<ListGitHubAccountTokenNamesResponse>(request, options);} |
public CreateBackupResult createBackup(CreateBackupRequest request) {request = beforeClientExecution(request);return executeCreateBackup(request);} | public virtual CreateBackupResponse CreateBackup(CreateBackupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBackupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBackupResponseUnmarshaller.Instance;return Invoke<CreateBackupResponse>(request, options);} |
public ModifyTransitGatewayVpcAttachmentResult modifyTransitGatewayVpcAttachment(ModifyTransitGatewayVpcAttachmentRequest request) {request = beforeClientExecution(request);return executeModifyTransitGatewayVpcAttachment(request);} | public virtual ModifyTransitGatewayVpcAttachmentResponse ModifyTransitGatewayVpcAttachment(ModifyTransitGatewayVpcAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyTransitGatewayVpcAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyTransitGatewayVpcAttachmentResponseUnmarshaller.Instance;return Invoke<ModifyTransitGatewayVpcAttachmentResponse>(request, options);} |
public RejectSkillResult rejectSkill(RejectSkillRequest request) {request = beforeClientExecution(request);return executeRejectSkill(request);} | public virtual RejectSkillResponse RejectSkill(RejectSkillRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectSkillRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectSkillResponseUnmarshaller.Instance;return Invoke<RejectSkillResponse>(request, options);} |
public String getHexString() {return getGnumericPart(_red) + ":" + getGnumericPart(_green) + ":" + getGnumericPart(_blue);} | public override String GetHexString(){StringBuilder sb = new StringBuilder();sb.Append(GetGnumericPart(red));sb.Append(':');sb.Append(GetGnumericPart(green));sb.Append(':');sb.Append(GetGnumericPart(blue));return sb.ToString();} |
public String toString() {return "<prefixWildcard field='" + this.field + "' term='" + this.text+ "'/>";} | public override string ToString(){return "<prefixWildcard field='" + this.m_field + "' term='" + this.m_text+ "'/>";} |
public GetOSSImageAccessRequest() {super("industry-brain", "2018-07-12", "GetOSSImageAccess");setProtocol(ProtocolType.HTTPS);} | public GetOSSImageAccessRequest(): base("industry-brain", "2018-07-12", "GetOSSImageAccess"){Protocol = ProtocolType.HTTPS;} |
public DeleteFleetsResult deleteFleets(DeleteFleetsRequest request) {request = beforeClientExecution(request);return executeDeleteFleets(request);} | public virtual DeleteFleetsResponse DeleteFleets(DeleteFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFleetsResponseUnmarshaller.Instance;return Invoke<DeleteFleetsResponse>(request, options);} |
public void set(E object) {if (expectedModCount == modCount) {try {AbstractList.this.set(lastPosition, object);} catch (IndexOutOfBoundsException e) {throw new IllegalStateException();}} else {throw new ConcurrentModificationException();}} | public void set(E @object){if (this.expectedModCount == this._enclosing.modCount){try{this._enclosing.set(this.lastPosition, @object);}catch (System.IndexOutOfRangeException){throw new System.InvalidOperationException();}}else{throw new java.util.ConcurrentModificationException();}} |
public InvalidationBatch(Paths paths, String callerReference) {setPaths(paths);setCallerReference(callerReference);} | public InvalidationBatch(Paths paths, string callerReference){_paths = paths;_callerReference = callerReference;} |
public int getPrecision() {return p;} | public virtual int getPrecision(){return p;} |
public boolean addSubRecord(SubRecord o) {return subrecords.add(o);} | public void AddSubRecord(SubRecord o){subrecords.Add(o);} |
public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize( offset, getRecordId(), this );int pos = offset;LittleEndian.putShort( data, pos, getOptions() ); pos += 2;LittleEndian.putShort( data, pos, getRecordId() ); pos += 2;LittleEndian.putInt( data, pos, getRecordSize()-8 ); pos += 4;LittleEndian.putInt( data, pos, field_1_dx1 ); pos += 4;LittleEndian.putInt( data, pos, field_2_dy1 ); pos += 4;LittleEndian.putInt( data, pos, field_3_dx2 ); pos += 4;LittleEndian.putInt( data, pos, field_4_dy2 ); pos += 4;listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;} | public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);int pos = offset;LittleEndian.PutShort(data, pos, Options); pos += 2;LittleEndian.PutShort(data, pos, RecordId); pos += 2;LittleEndian.PutInt(data, pos, RecordSize - 8); pos += 4;LittleEndian.PutInt(data, pos, field_1_dx1); pos += 4;LittleEndian.PutInt(data, pos, field_2_dy1); pos += 4;LittleEndian.PutInt(data, pos, field_3_dx2); pos += 4;LittleEndian.PutInt(data, pos, field_4_dy2); pos += 4;listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;} |
public static final ObjectId fromRaw(int[] is) {return fromRaw(is, 0);} | public static NGit.ObjectId FromRaw(byte[] bs){return FromRaw(bs, 0);} |
public DisassociateIpGroupsResult disassociateIpGroups(DisassociateIpGroupsRequest request) {request = beforeClientExecution(request);return executeDisassociateIpGroups(request);} | public virtual DisassociateIpGroupsResponse DisassociateIpGroups(DisassociateIpGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateIpGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateIpGroupsResponseUnmarshaller.Instance;return Invoke<DisassociateIpGroupsResponse>(request, options);} |
public static void mkdirs(File d, boolean skipExisting)throws IOException {if (!d.mkdirs()) {if (skipExisting && d.isDirectory())return;throw new IOException(MessageFormat.format(JGitText.get().mkDirsFailed, d.getAbsolutePath()));}} | public static void Mkdirs(FilePath d, bool skipExisting){if (!d.Mkdirs()){if (skipExisting && d.IsDirectory()){return;}throw new IOException(MessageFormat.Format(JGitText.Get().mkDirsFailed, d.GetAbsolutePath()));}} |
public GetImageManifestRequest() {super("cr", "2016-06-07", "GetImageManifest", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/manifest");setMethod(MethodType.GET);} | public GetImageManifestRequest(): base("cr", "2016-06-07", "GetImageManifest", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/manifest";Method = MethodType.GET;} |
public ListIdentitiesResult listIdentities(ListIdentitiesRequest request) {request = beforeClientExecution(request);return executeListIdentities(request);} | public virtual ListIdentitiesResponse ListIdentities(ListIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIdentitiesResponseUnmarshaller.Instance;return Invoke<ListIdentitiesResponse>(request, options);} |
public final String toString() {return getClass().getName() + " [" +_sfr.getRange() +"]";} | public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(_sfr.Range.ToString());sb.Append("]");return sb.ToString();} |
public byte[] toByteArray() {byte[] result = new byte[LittleEndianConsts.INT_SIZE*2+_value.length];LittleEndianByteArrayOutputStream bos = new LittleEndianByteArrayOutputStream(result,0);try {bos.writeInt(LittleEndianConsts.INT_SIZE + _value.length);bos.writeInt(_format);bos.write(_value);return result;} finally {IOUtils.closeQuietly(bos);}} | public byte[] ToByteArray(){byte[] result = new byte[Size];LittleEndian.PutInt(result, 0 * LittleEndian.INT_SIZE,LittleEndian.INT_SIZE + _value.Length);LittleEndian.PutInt(result, 1 * LittleEndian.INT_SIZE, _format);System.Array.Copy(_value, 0, result, LittleEndian.INT_SIZE+ LittleEndian.INT_SIZE, _value.Length);return result;} |
public void update(byte[] b, int off, int len) {if (len >= buffer.length) {flush();in.update(b, off, len);} else {if (upto + len > buffer.length) {flush();}System.arraycopy(b, off, buffer, upto, len);upto += len;}} | public virtual void Update(byte[] b, int off, int len){if (len >= buffer.Length){Flush();@in.Update(b, off, len);}else{if (upto + len > buffer.Length){Flush();}System.Buffer.BlockCopy(b, off, buffer, upto, len);upto += len;}} |
public HSSFPicture createPicture(ClientAnchor anchor, int pictureIndex) {return createPicture((HSSFClientAnchor) anchor, pictureIndex);} | public IPicture CreatePicture(HSSFClientAnchor anchor, int pictureIndex){HSSFPicture shape = new HSSFPicture(null, (HSSFClientAnchor)anchor);shape.PictureIndex = pictureIndex;AddShape(shape);OnCreate(shape);return shape;} |
public String getAccessKeySecret() {return legacyCredential.getAccessSecret();} | public string GetAccessKeySecret(){return legacyCredential.AccessSecret;} |
public int compareTo(ByteBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;byte thisByte, otherByte;while (compareRemaining > 0) {thisByte = get(thisPos);otherByte = otherBuffer.get(otherPos);if (thisByte != otherByte) {return thisByte < otherByte ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();} | public virtual int compareTo(java.nio.ByteBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;byte thisByte;byte otherByte;while (compareRemaining > 0){thisByte = get(thisPos);otherByte = otherBuffer.get(otherPos);if (thisByte != otherByte){return ((sbyte)thisByte) < otherByte ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();} |
public CreateResolverEndpointResult createResolverEndpoint(CreateResolverEndpointRequest request) {request = beforeClientExecution(request);return executeCreateResolverEndpoint(request);} | public virtual CreateResolverEndpointResponse CreateResolverEndpoint(CreateResolverEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateResolverEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateResolverEndpointResponseUnmarshaller.Instance;return Invoke<CreateResolverEndpointResponse>(request, options);} |
public HunspellStemFilterFactory(Map<String,String> args) {super(args);dictionaryFiles = require(args, PARAM_DICTIONARY);affixFile = get(args, PARAM_AFFIX);ignoreCase = getBoolean(args, PARAM_IGNORE_CASE, false);longestOnly = getBoolean(args, PARAM_LONGEST_ONLY, false);getBoolean(args, "strictAffixParsing", true);getInt(args, "recursionCap", 0);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public HunspellStemFilterFactory(IDictionary<string, string> args): base(args){dictionaryFiles = Require(args, PARAM_DICTIONARY);affixFile = Get(args, PARAM_AFFIX);ignoreCase = GetBoolean(args, PARAM_IGNORE_CASE, false);longestOnly = GetBoolean(args, PARAM_LONGEST_ONLY, false);GetBoolean(args, "strictAffixParsing", true);GetInt32(args, "recursionCap", 0);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
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, int[] 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 CancelSpotInstanceRequestsResult cancelSpotInstanceRequests(CancelSpotInstanceRequestsRequest request) {request = beforeClientExecution(request);return executeCancelSpotInstanceRequests(request);} | public virtual CancelSpotInstanceRequestsResponse CancelSpotInstanceRequests(CancelSpotInstanceRequestsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelSpotInstanceRequestsRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelSpotInstanceRequestsResponseUnmarshaller.Instance;return Invoke<CancelSpotInstanceRequestsResponse>(request, options);} |
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_print_headers);} | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_print_headers);} |
public void copyTo(char[] tmp, StringBuilder w) {toHexCharArray(tmp);w.append(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);} | public virtual void CopyTo(char[] tmp, TextWriter w){ToHexCharArray(tmp);w.Write(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);} |
public DeleteVaultAccessPolicyResult deleteVaultAccessPolicy(DeleteVaultAccessPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteVaultAccessPolicy(request);} | public virtual DeleteVaultAccessPolicyResponse DeleteVaultAccessPolicy(DeleteVaultAccessPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVaultAccessPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVaultAccessPolicyResponseUnmarshaller.Instance;return Invoke<DeleteVaultAccessPolicyResponse>(request, options);} |
public SpanOrBuilder(SpanQueryBuilder factory) {this.factory = factory;} | public SpanOrBuilder(ISpanQueryBuilder factory){this.factory = factory;} |
public DescribeConnectionsOnInterconnectResult describeConnectionsOnInterconnect(DescribeConnectionsOnInterconnectRequest request) {request = beforeClientExecution(request);return executeDescribeConnectionsOnInterconnect(request);} | public virtual DescribeConnectionsOnInterconnectResponse DescribeConnectionsOnInterconnect(DescribeConnectionsOnInterconnectRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConnectionsOnInterconnectRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConnectionsOnInterconnectResponseUnmarshaller.Instance;return Invoke<DescribeConnectionsOnInterconnectResponse>(request, options);} |
public MultiBoolFunction(List<ValueSource> sources) {this.sources = sources;} | public MultiBoolFunction(IList<ValueSource> sources){this.m_sources = sources;} |
public TokenStream create(TokenStream input) {return new ICUTransformFilter(input, transliterator);} | public override TokenStream Create(TokenStream input){return new ICUTransformFilter(input, transliterator);} |
public void extendA() {endA++;} | public virtual void ExtendA(){endA++;} |
public DeleteReceiptRuleSetResult deleteReceiptRuleSet(DeleteReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeDeleteReceiptRuleSet(request);} | public virtual DeleteReceiptRuleSetResponse DeleteReceiptRuleSet(DeleteReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteReceiptRuleSetResponseUnmarshaller.Instance;return Invoke<DeleteReceiptRuleSetResponse>(request, options);} |
public PutRetentionPolicyRequest(String logGroupName, Integer retentionInDays) {setLogGroupName(logGroupName);setRetentionInDays(retentionInDays);} | public PutRetentionPolicyRequest(string logGroupName, int retentionInDays){_logGroupName = logGroupName;_retentionInDays = retentionInDays;} |
public void insertRow(RowRecord row) {_rowRecords.put(Integer.valueOf(row.getRowNumber()), row);_rowRecordValues = null;if ((row.getRowNumber() < _firstrow) || (_firstrow == -1)) {_firstrow = row.getRowNumber();}if ((row.getRowNumber() > _lastrow) || (_lastrow == -1)) {_lastrow = row.getRowNumber();}} | public void InsertRow(RowRecord row){_rowRecords[row.RowNumber] = row;_rowRecordValues = null;if (row.RowNumber < firstrow|| firstrow == -1){firstrow = row.RowNumber;}if (row.RowNumber > lastrow|| lastrow == -1){lastrow = row.RowNumber;}} |
public String toString() {return "TermState";} | public override string ToString(){return "TermState";} |
public LsRemoteCommand setHeads(boolean heads) {this.heads = heads;return this;} | public virtual NGit.Api.LsRemoteCommand SetHeads(bool heads){this.heads = heads;return this;} |
public void remove(String key) {deleteNode(getNode(key.trim().toLowerCase(locale)));} | public virtual void Remove(string key){DeleteNode(GetNode(this.culture.TextInfo.ToLower(key.Trim())));} |
public Object[][] getTokenArrayValues() {if (_arrayValues == null) {throw new IllegalStateException("array values not read yet");}Object[][] result = new Object[_nRows][_nColumns];for (int r = 0; r < _nRows; r++) {Object[] rowData = result[r];for (int c = 0; c < _nColumns; c++) {rowData[c] = _arrayValues[getValueIndex(c, r)];}}return result;} | public Object[][] GetTokenArrayValues(){if (_arrayValues == null){throw new InvalidOperationException("array values not read yet");}Object[][] result = new Object[_nRows][];for (int r = 0; r < _nRows; r++){result[r] = new object[_nColumns];for (int c = 0; c < _nColumns; c++){result[r][c] = _arrayValues[GetValueIndex(c, r)];}}return result;} |
public PutIntegrationResponseResult putIntegrationResponse(PutIntegrationResponseRequest request) {request = beforeClientExecution(request);return executePutIntegrationResponse(request);} | public virtual PutIntegrationResponseResponse PutIntegrationResponse(PutIntegrationResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutIntegrationResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = PutIntegrationResponseResponseUnmarshaller.Instance;return Invoke<PutIntegrationResponseResponse>(request, options);} |
public void write(String str, int offset, int count) throws IOException {synchronized (lock) {if (count < 0) {throw new StringIndexOutOfBoundsException(str, offset, count);}if (str == null) {throw new NullPointerException("str == null");}if ((offset | count) < 0 || offset > str.length() - count) {throw new StringIndexOutOfBoundsException(str, offset, count);}checkStatus();CharBuffer chars = CharBuffer.wrap(str, offset, count + offset);convert(chars);}} | public override void write(string str, int offset, int count){lock (@lock){if (count < 0){throw new java.lang.StringIndexOutOfBoundsException(str, offset, count);}if (str == null){throw new System.ArgumentNullException("str == null");}if ((offset | count) < 0 || offset > str.Length - count){throw new java.lang.StringIndexOutOfBoundsException(str, offset, count);}checkStatus();java.nio.CharBuffer chars = java.nio.CharBuffer.wrap(java.lang.CharSequenceProxy.Wrap(str), offset, count + offset);convert(chars);}} |
public String subscriptionId() {return this.subscriptionId;} | public string SubscriptionId { get; set; } |
public HSSFPicture createPicture(HSSFClientAnchor anchor, int pictureIndex) {HSSFPicture shape = new HSSFPicture(null, anchor);shape.setPictureIndex(pictureIndex);addShape(shape);onCreate(shape);return shape;} | public IPicture CreatePicture(HSSFClientAnchor anchor, int pictureIndex){HSSFPicture shape = new HSSFPicture(null, (HSSFClientAnchor)anchor);shape.PictureIndex = pictureIndex;AddShape(shape);OnCreate(shape);return shape;} |
public ReleaseStaticIpResult releaseStaticIp(ReleaseStaticIpRequest request) {request = beforeClientExecution(request);return executeReleaseStaticIp(request);} | public virtual ReleaseStaticIpResponse ReleaseStaticIp(ReleaseStaticIpRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReleaseStaticIpRequestMarshaller.Instance;options.ResponseUnmarshaller = ReleaseStaticIpResponseUnmarshaller.Instance;return Invoke<ReleaseStaticIpResponse>(request, options);} |
public ListConfigurationSetsResult listConfigurationSets(ListConfigurationSetsRequest request) {request = beforeClientExecution(request);return executeListConfigurationSets(request);} | public virtual ListConfigurationSetsResponse ListConfigurationSets(ListConfigurationSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListConfigurationSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListConfigurationSetsResponseUnmarshaller.Instance;return Invoke<ListConfigurationSetsResponse>(request, options);} |
public UpdateRecordsResult updateRecords(UpdateRecordsRequest request) {request = beforeClientExecution(request);return executeUpdateRecords(request);} | public virtual UpdateRecordsResponse UpdateRecords(UpdateRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRecordsResponseUnmarshaller.Instance;return Invoke<UpdateRecordsResponse>(request, options);} |
public Token emit() {Token t = _factory.create(_tokenFactorySourcePair, _type, _text, _channel, _tokenStartCharIndex, getCharIndex()-1,_tokenStartLine, _tokenStartCharPositionInLine);emit(t);return t;} | public virtual IToken Emit(){IToken t = _factory.Create(_tokenFactorySourcePair, _type, _text, _channel, _tokenStartCharIndex, CharIndex - 1, _tokenStartLine, _tokenStartColumn);Emit(t);return t;} |
public synchronized IndexCommit snapshot() throws IOException {if (!initCalled) {throw new IllegalStateException("this instance is not being used by IndexWriter; be sure to use the instance returned from writer.getConfig().getIndexDeletionPolicy()");}if (lastCommit == null) {throw new IllegalStateException("No index commit to snapshot");}incRef(lastCommit);return lastCommit;} | public virtual IndexCommit Snapshot(){lock (this){if (!initCalled){throw new InvalidOperationException("this instance is not being used by IndexWriter; be sure to use the instance returned from writer.getConfig().getIndexDeletionPolicy()");}if (m_lastCommit == null){throw new InvalidOperationException("No index commit to snapshot");}IncRef(m_lastCommit);return m_lastCommit;}} |
public void build(InputIterator iter) throws IOException {synchronized (searcherMgrLock) {if (searcherMgr != null) {searcherMgr.close();searcherMgr = null;}if (writer != null) {writer.close();writer = null;}boolean success = false;try {writer = new IndexWriter(dir,getIndexWriterConfig(getGramAnalyzer(), IndexWriterConfig.OpenMode.CREATE));BytesRef text;while ((text = iter.next()) != null) {BytesRef payload;if (iter.hasPayloads()) {payload = iter.payload();} else {payload = null;}add(text, iter.contexts(), iter.weight(), payload);}if (commitOnBuild || closeIndexWriterOnBuild) {commit();}searcherMgr = new SearcherManager(writer, null);success = true;} finally {if (success) {if (closeIndexWriterOnBuild) {writer.close();writer = null;}} else { if (writer != null) {writer.rollback();writer = null;}}}}} | public override void Build(IInputIterator iter){if (m_searcherMgr != null){m_searcherMgr.Dispose();m_searcherMgr = null;}if (writer != null){writer.Dispose();writer = null;}AtomicReader r = null;bool success = false;try{writer = new IndexWriter(dir, GetIndexWriterConfig(matchVersion, GramAnalyzer, OpenMode.CREATE));BytesRef text;while ((text = iter.Next()) != null){BytesRef payload;if (iter.HasPayloads){payload = iter.Payload;}else{payload = null;}Add(text, iter.Contexts, iter.Weight, payload);}m_searcherMgr = new SearcherManager(writer, true, null);success = true;}finally{if (success){IOUtils.Dispose(r);}else{IOUtils.DisposeWhileHandlingException(writer, r);writer = null;}}} |
public ShortBuffer put(ShortBuffer buf) {throw new ReadOnlyBufferException();} | public override java.nio.ShortBuffer put(short c){throw new java.nio.ReadOnlyBufferException();} |
public int stemSuffix(char s[], int len) {for (int i = 0; i < suffixes.length; i++)if (endsWithCheckLength(s, len, suffixes[i]))len = deleteN(s, len - suffixes[i].length, len, suffixes[i].length);return len;} | public virtual int StemSuffix(char[] s, int len){for (int i = 0; i < suffixes.Length; i++){if (EndsWithCheckLength(s, len, suffixes[i])){len = StemmerUtil.DeleteN(s, len - suffixes[i].Length, len, suffixes[i].Length);}}return len;} |
public SeriesListRecord(RecordInputStream in) {int nItems = in.readUShort();short[] ss = new short[nItems];for (int i = 0; i < nItems; i++) {ss[i] = in.readShort();}field_1_seriesNumbers = ss;} | public SeriesListRecord(RecordInputStream in1){int nItems = in1.ReadUShort();short[] ss = new short[nItems];for (int i = 0; i < nItems; i++) {ss[i] = in1.ReadShort();}field_1_seriesNumbers = ss;} |
public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerModeAction)) {return false;}return mode == ((LexerModeAction)obj).mode;} | public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerModeAction)){return false;}}return mode == ((Antlr4.Runtime.Atn.LexerModeAction)obj).mode;} |
public String getLineDelimiter() {if (size() == 0) {return null;}int e = getEnd(0);if (content[e - 1] != '\n') {return null;}if (content.length > 1 && e > 1 && content[e - 2] == '\r') {return "\r\n"; }return "\n"; } | public virtual string GetLineDelimiter(){if (Size() == 0){return null;}int e = GetEnd(0);if (content[e - 1] != '\n'){return null;}if (content.Length > 1 && content[e - 2] == '\r'){return "\r\n";}else{return "\n";}} |
public NormalisedDecimal roundUnits() {long wholePart = _wholePart;if (_fractionalPart >= FRAC_HALF) {wholePart++;}int de = _relativeDecimalExponent;if (wholePart < MAX_REP_WHOLE_PART) {return new NormalisedDecimal(wholePart, 0, de);}return new NormalisedDecimal(wholePart/10, 0, de+1);} | public NormalisedDecimal RoundUnits(){long wholePart = _wholePart;if (_fractionalPart >= FRAC_HALF){wholePart++;}int de = _relativeDecimalExponent;if (wholePart < MAX_REP_WHOLE_PART){return new NormalisedDecimal(wholePart, 0, de);}return new NormalisedDecimal(wholePart / 10, 0, de + 1);} |
public PLSAggregate(RecordStream rs) {_pls = rs.getNext();if (rs.peekNextSid()==ContinueRecord.sid) {List<ContinueRecord> temp = new ArrayList<>();while (rs.peekNextSid()==ContinueRecord.sid) {temp.add((ContinueRecord)rs.getNext());}_plsContinues = new ContinueRecord[temp.size()];temp.toArray(_plsContinues);} else {_plsContinues = EMPTY_CONTINUE_RECORD_ARRAY;}} | public PLSAggregate(RecordStream rs){_pls = rs.GetNext();if (rs.PeekNextSid() == ContinueRecord.sid){List<ContinueRecord> temp = new List<ContinueRecord>();while (rs.PeekNextSid() == ContinueRecord.sid){temp.Add((ContinueRecord)rs.GetNext());}_plsContinues = new ContinueRecord[temp.Count];_plsContinues = temp.ToArray();}else{_plsContinues = EMPTY_CONTINUE_RECORD_ARRAY;}} |
public AssociateDelegateToResourceResult associateDelegateToResource(AssociateDelegateToResourceRequest request) {request = beforeClientExecution(request);return executeAssociateDelegateToResource(request);} | public virtual AssociateDelegateToResourceResponse AssociateDelegateToResource(AssociateDelegateToResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateDelegateToResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateDelegateToResourceResponseUnmarshaller.Instance;return Invoke<AssociateDelegateToResourceResponse>(request, options);} |
public static void setDefault(CredentialsProvider p) {defaultProvider = p;} | public static void SetDefault(CredentialsProvider p){defaultProvider = p;} |
public EscherProperty getEscherProperty( int index ){return properties.get( index );} | public EscherProperty GetEscherProperty(int index){return properties[index];} |
@Override public void add(int index, E object) {synchronized (CopyOnWriteArrayList.this) {slice.checkPositionIndex(index);slice.checkConcurrentModification(elements);CopyOnWriteArrayList.this.add(index + slice.from, object);slice = new Slice(elements, slice.from, slice.to + 1);}} | public virtual void add(int index, E e){lock (this){object[] newElements = new object[elements.Length + 1];System.Array.Copy(elements, 0, newElements, 0, index);newElements[index] = e;System.Array.Copy(elements, index, newElements, index + 1, elements.Length - index);elements = newElements;}} |
public static BitField getInstance(int mask) {BitField f = instances.get(Integer.valueOf(mask));if (f == null) {f = new BitField(mask);instances.put(Integer.valueOf(mask), f);}return f;} | public static BitField GetInstance(int mask){BitField f = (BitField)instances[mask];if (f == null){f = new BitField(mask);instances[mask] = f;}return f;} |
public boolean get(int doc) {final int reader = ReaderUtil.subIndex(doc, starts);assert reader != -1;final Bits bits = subs[reader];if (bits == null) {return defaultValue;} else {assert checkLength(reader, doc);return bits.get(doc-starts[reader]);}} | public bool Get(int doc){int reader = ReaderUtil.SubIndex(doc, starts);Debug.Assert(reader != -1);IBits bits = subs[reader];if (bits == null){return sefaultValue;}else{Debug.Assert(CheckLength(reader, doc));return bits.Get(doc - starts[reader]);}} |
public DeleteFieldLevelEncryptionProfileResult deleteFieldLevelEncryptionProfile(DeleteFieldLevelEncryptionProfileRequest request) {request = beforeClientExecution(request);return executeDeleteFieldLevelEncryptionProfile(request);} | public virtual DeleteFieldLevelEncryptionProfileResponse DeleteFieldLevelEncryptionProfile(DeleteFieldLevelEncryptionProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFieldLevelEncryptionProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFieldLevelEncryptionProfileResponseUnmarshaller.Instance;return Invoke<DeleteFieldLevelEncryptionProfileResponse>(request, options);} |
public EscherComplexProperty(short id, byte[] complexData) {this(id, complexData == null ? 0 : complexData.length);setComplexData(complexData);} | public EscherComplexProperty(short id, byte[] complexData): base(id){this._complexData = complexData;} |
public TermVectorsReader clone() {if (in == null) {throw new AlreadyClosedException("this TermVectorsReader is closed");}return new SimpleTextTermVectorsReader(offsets, in.clone());} | public override object Clone(){if (_input == null){throw new ObjectDisposedException(this.GetType().GetTypeInfo().FullName, "this TermVectorsReader is closed");}return new SimpleTextTermVectorsReader(_offsets, (IndexInput)_input.Clone());} |
public static void fill(short[] array, short value) {for (int i = 0; i < array.length; i++) {array[i] = value;}} | public static void fill(short[] array, short value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}} |
public final int getEndB() {return endB;} | public int GetEndB(){return endB;} |
public DescribeAutoMLJobResult describeAutoMLJob(DescribeAutoMLJobRequest request) {request = beforeClientExecution(request);return executeDescribeAutoMLJob(request);} | public virtual DescribeAutoMLJobResponse DescribeAutoMLJob(DescribeAutoMLJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAutoMLJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAutoMLJobResponseUnmarshaller.Instance;return Invoke<DescribeAutoMLJobResponse>(request, options);} |
public SelectionRecord(int activeCellRow, int activeCellCol) {field_1_pane = 3; field_2_row_active_cell = activeCellRow;field_3_col_active_cell = activeCellCol;field_4_active_cell_ref_index = 0;field_6_refs = new CellRangeAddress8Bit[] {new CellRangeAddress8Bit(activeCellRow, activeCellRow, activeCellCol, activeCellCol),};} | public SelectionRecord(int activeCellRow, int activeCellCol){field_1_pane = 3; field_2_row_active_cell = activeCellRow;field_3_col_active_cell = activeCellCol;field_4_ref_active_cell = 0;field_6_refs = new CellRangeAddress8Bit[] {new CellRangeAddress8Bit(activeCellRow, activeCellRow, activeCellCol, activeCellCol),};} |
public InvalidationBatch(String callerReference) {setCallerReference(callerReference);} | public InvalidationBatch(string callerReference){_callerReference = callerReference;} |
public int compareTo(IndexCommit commit) {if (getDirectory() != commit.getDirectory()) {throw new UnsupportedOperationException("cannot compare IndexCommits from different Directory instances");}long gen = getGeneration();long comgen = commit.getGeneration();return Long.compare(gen, comgen);} | public virtual int CompareTo(IndexCommit commit){if (Directory != commit.Directory){throw new System.NotSupportedException("cannot compare IndexCommits from different Directory instances");}long gen = Generation;long comgen = commit.Generation;if (gen < comgen){return -1;}else if (gen > comgen){return 1;}else{return 0;}} |
public void serialize(LittleEndianOutput out) {out.writeShort(getOptions());out.writeShort(getTopRow());out.writeShort(getLeftCol());out.writeInt(getHeaderColor());out.writeShort(getPageBreakZoom());out.writeShort(getNormalZoom());out.writeInt(getReserved());} | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Options);out1.WriteShort(TopRow);out1.WriteShort(LeftCol);out1.WriteInt(HeaderColor);out1.WriteShort(PageBreakZoom);out1.WriteShort(NormalZoom);out1.WriteInt(Reserved);} |
public PhoneticFilter create(TokenStream input) {return new PhoneticFilter(input, getEncoder(), inject);} | public override TokenStream Create(TokenStream input){return new PhoneticFilter(input, GetEncoder(), inject);} |
public StartMatchmakingResult startMatchmaking(StartMatchmakingRequest request) {request = beforeClientExecution(request);return executeStartMatchmaking(request);} | public virtual StartMatchmakingResponse StartMatchmaking(StartMatchmakingRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMatchmakingRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMatchmakingResponseUnmarshaller.Instance;return Invoke<StartMatchmakingResponse>(request, options);} |
public CreateReusableDelegationSetResult createReusableDelegationSet(CreateReusableDelegationSetRequest request) {request = beforeClientExecution(request);return executeCreateReusableDelegationSet(request);} | public virtual CreateReusableDelegationSetResponse CreateReusableDelegationSet(CreateReusableDelegationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReusableDelegationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReusableDelegationSetResponseUnmarshaller.Instance;return Invoke<CreateReusableDelegationSetResponse>(request, options);} |
public GC setProgressMonitor(ProgressMonitor pm) {this.pm = (pm == null) ? NullProgressMonitor.INSTANCE : pm;return this;} | public virtual GC SetProgressMonitor(ProgressMonitor pm){this.pm = (pm == null) ? NullProgressMonitor.INSTANCE : pm;return this;} |
public synchronized String getRegionId() {return regionId;} | public string GetRegionId(){return regionId;} |
public CreateVpcEndpointServiceConfigurationResult createVpcEndpointServiceConfiguration(CreateVpcEndpointServiceConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateVpcEndpointServiceConfiguration(request);} | public virtual CreateVpcEndpointServiceConfigurationResponse CreateVpcEndpointServiceConfiguration(CreateVpcEndpointServiceConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcEndpointServiceConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcEndpointServiceConfigurationResponseUnmarshaller.Instance;return Invoke<CreateVpcEndpointServiceConfigurationResponse>(request, options);} |
public IndexableField getField(FieldInfo fieldInfo) {fieldNames.add(fieldInfo.name);List<LazyField> values = fields.get(fieldInfo.number);if (null == values) {values = new ArrayList<>();fields.put(fieldInfo.number, values);}LazyField value = new LazyField(fieldInfo.name, fieldInfo.number);values.add(value);synchronized (this) {doc = null;}return value;} | public virtual IIndexableField GetField(FieldInfo fieldInfo){fieldNames.Add(fieldInfo.Name);IList<LazyField> values;if (!fields.TryGetValue(fieldInfo.Number, out values) || null == values){values = new List<LazyField>();fields[fieldInfo.Number] = values;}LazyField value = new LazyField(this, fieldInfo.Name, fieldInfo.Number);values.Add(value);lock (this){doc = null;}return value;} |
public static int nextHighestPowerOfTwo(int v) {v--;v |= v >> 1;v |= v >> 2;v |= v >> 4;v |= v >> 8;v |= v >> 16;v++;return v;} | public static int NextHighestPowerOfTwo(int v){v--;v |= v >> 1;v |= v >> 2;v |= v >> 4;v |= v >> 8;v |= v >> 16;v++;return v;} |
public boolean contains(int x, int y) {return isValid() &&x >= this.x &&y >= this.y &&x < (this.x + this.w) &&y < (this.y + this.h);} | public bool contains(int x, int y){return left < right && top < bottom && x >= left && x < right && y >= top && y <bottom;} |
public int getFormat() {return PACK_DELTA;} | public override int GetFormat(){return PACK_DELTA;} |
public Tag(String key) {setKey(key);} | public Tag(string key){_key = key;} |
public InactivatePhotosRequest() {super("CloudPhoto", "2017-07-11", "InactivatePhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);} | public InactivatePhotosRequest(): base("CloudPhoto", "2017-07-11", "InactivatePhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;} |
public DescribeEventSubscriptionsResult describeEventSubscriptions() {return describeEventSubscriptions(new DescribeEventSubscriptionsRequest());} | public virtual DescribeEventSubscriptionsResponse DescribeEventSubscriptions(){return DescribeEventSubscriptions(new DescribeEventSubscriptionsRequest());} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.