java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public Ref getTarget() {return this;} | public virtual Ref GetTarget(){return this;} |
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[DEFAULTROWHEIGHT]\n");buffer.append(" .optionflags = ").append(Integer.toHexString(getOptionFlags())).append("\n");buffer.append(" .rowheight = ").append(Integer.toHexString(getRowHeight())).append("\n");buffer.append("[/DEFAULTROWHEIGHT]\n");return buffer.toString();} | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[DEFAULTROWHEIGHT]\n");buffer.Append(" .optionflags = ").Append(StringUtil.ToHexString(OptionFlags)).Append("\n");buffer.Append(" .rowheight = ").Append(StringUtil.ToHexString(RowHeight)).Append("\n");buffer.Append("[/DEFAULTROWHEIGHT]\n");return buffer.ToString();} |
public AlibabaCloudCredentials getCredentials() {return this.credentials;} | public AlibabaCloudCredentials GetCredentials(){return credentials;} |
public SeekStatus seekCeil(BytesRef term) {throw new UnsupportedOperationException();} | public override SeekStatus SeekCeil(BytesRef term){throw new System.NotSupportedException();} |
public NavigableSet<K> navigableKeySet() {BoundedKeySet result = keySet;return result != null ? result : (keySet = new BoundedKeySet());} | public java.util.NavigableSet<K> navigableKeySet(){java.util.TreeMap<K, V>.BoundedMap.BoundedKeySet result = this._keySet;return result != null ? result : (this._keySet = new java.util.TreeMap<K, V>.BoundedMap.BoundedKeySet(this));} |
public ListEventsRequest() {super("CloudPhoto", "2017-07-11", "ListEvents", "cloudphoto");setProtocol(ProtocolType.HTTPS);} | public ListEventsRequest(): base("CloudPhoto", "2017-07-11", "ListEvents", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;} |
public String toString(){StringBuilder sb = new StringBuilder();sb.append("[LbsDropData]\n");sb.append(" ._wStyle: ").append(_wStyle).append('\n');sb.append(" ._cLine: ").append(_cLine).append('\n');sb.append(" ._dxMin: ").append(_dxMin).append('\n');sb.append(" ._str: ").append(_str).append('\n');if(_unused != null) {sb.append(" ._unused: ").append(_unused).append('\n');}sb.append("[/LbsDropData]\n");return sb.toString();} | public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[LbsDropData]\n");sb.Append(" ._wStyle: ").Append(_wStyle).Append('\n');sb.Append(" ._cLine: ").Append(_cLine).Append('\n');sb.Append(" ._dxMin: ").Append(_dxMin).Append('\n');sb.Append(" ._str: ").Append(_str).Append('\n');sb.Append(" ._unused: ").Append(_unused).Append('\n');sb.Append("[/LbsDropData]\n");return sb.ToString();} |
public String toString() {return "PackWriter.State[" + phase + ", memory=" + bytesUsed + "]";} | public override string ToString(){return "PackWriter.State[" + this.phase + ", memory=" + this.bytesUsed + "]";} |
public RemoteRefUpdate getRemoteUpdate(String refName) {return remoteUpdates.get(refName);} | public virtual RemoteRefUpdate GetRemoteUpdate(string refName){return remoteUpdates.Get(refName);} |
@Override public Iterator<E> iterator() {return listIterator(0);} | public virtual java.util.Iterator<E> iterator(){object[] snapshot = elements;return new java.util.concurrent.CopyOnWriteArrayList.CowIterator<E>(snapshot, 0,snapshot.Length);} |
public TerminateInstancesRequest(java.util.List<String> instanceIds) {setInstanceIds(instanceIds);} | public TerminateInstancesRequest(List<string> instanceIds){_instanceIds = instanceIds;} |
public CreateDataRepositoryTaskResult createDataRepositoryTask(CreateDataRepositoryTaskRequest request) {request = beforeClientExecution(request);return executeCreateDataRepositoryTask(request);} | public virtual CreateDataRepositoryTaskResponse CreateDataRepositoryTask(CreateDataRepositoryTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataRepositoryTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataRepositoryTaskResponseUnmarshaller.Instance;return Invoke<CreateDataRepositoryTaskResponse>(request, options);} |
public void undeprecateActivityType(UndeprecateActivityTypeRequest request) {request = beforeClientExecution(request);executeUndeprecateActivityType(request);} | public virtual UndeprecateActivityTypeResponse UndeprecateActivityType(UndeprecateActivityTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UndeprecateActivityTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = UndeprecateActivityTypeResponseUnmarshaller.Instance;return Invoke<UndeprecateActivityTypeResponse>(request, options);} |
public EndRecord clone() {return copy();} | public override Object Clone(){EndRecord er = new EndRecord();return er;} |
public ListLabelingJobsResult listLabelingJobs(ListLabelingJobsRequest request) {request = beforeClientExecution(request);return executeListLabelingJobs(request);} | public virtual ListLabelingJobsResponse ListLabelingJobs(ListLabelingJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListLabelingJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListLabelingJobsResponseUnmarshaller.Instance;return Invoke<ListLabelingJobsResponse>(request, options);} |
public void setTag(String shortName) {this.tag = shortName;} | public virtual void SetTag(string shortName){this.tag = shortName;} |
public String getNameText(NamePtg namePtg) {return _iBook.getNameRecord(namePtg.getIndex()).getNameText();} | public String GetNameText(NamePtg namePtg){return _iBook.GetNameRecord(namePtg.Index).NameText;} |
public Builder() {slop = 0;terms = new ArrayList<>();positions = new ArrayList<>();} | public Builder(){data = new GrowableByteArrayDataOutput(128);bufferSize = 0;previousDoc = -1;indexInterval = 2;cardinality = 0;numBlocks = 0;} |
public SpanPositionRangeQuery(SpanQuery match, int start, int end) {super(match);this.start = start;this.end = end;} | public SpanPositionRangeQuery(SpanQuery match, int start, int end): base(match){this.m_start = start;this.m_end = end;} |
public CreateDBProxyResult createDBProxy(CreateDBProxyRequest request) {request = beforeClientExecution(request);return executeCreateDBProxy(request);} | public virtual CreateDBProxyResponse CreateDBProxy(CreateDBProxyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBProxyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBProxyResponseUnmarshaller.Instance;return Invoke<CreateDBProxyResponse>(request, options);} |
public boolean equals( Object o ) {return o instanceof LovinsStemmer;} | public override bool Equals(object o){return o is LovinsStemmer;} |
public ReplicationGroup modifyReplicationGroupShardConfiguration(ModifyReplicationGroupShardConfigurationRequest request) {request = beforeClientExecution(request);return executeModifyReplicationGroupShardConfiguration(request);} | public virtual ModifyReplicationGroupShardConfigurationResponse ModifyReplicationGroupShardConfiguration(ModifyReplicationGroupShardConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyReplicationGroupShardConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyReplicationGroupShardConfigurationResponseUnmarshaller.Instance;return Invoke<ModifyReplicationGroupShardConfigurationResponse>(request, options);} |
public DeleteFacesResult deleteFaces(DeleteFacesRequest request) {request = beforeClientExecution(request);return executeDeleteFaces(request);} | public virtual DeleteFacesResponse DeleteFaces(DeleteFacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFacesResponseUnmarshaller.Instance;return Invoke<DeleteFacesResponse>(request, options);} |
public SSTSerializer( IntMapper<UnicodeString> strings, int numStrings, int numUniqueStrings ){this.strings = strings;_numStrings = numStrings;_numUniqueStrings = numUniqueStrings;int infoRecs = ExtSSTRecord.getNumberOfInfoRecsForStrings(strings.size());this.bucketAbsoluteOffsets = new int[infoRecs];this.bucketRelativeOffsets = new int[infoRecs];} | public SSTSerializer(IntMapper<UnicodeString> strings, int numStrings, int numUniqueStrings){this.strings = strings;_numStrings = numStrings;_numUniqueStrings = numUniqueStrings;int infoRecs = ExtSSTRecord.GetNumberOfInfoRecsForStrings(strings.Size);this.bucketAbsoluteOffsets = new int[infoRecs];this.bucketRelativeOffsets = new int[infoRecs];} |
public URISyntaxException(String input, String reason, int index) {super(reason);if (input == null || reason == null) {throw new NullPointerException();}if (index < -1) {throw new IllegalArgumentException();}this.input = input;this.index = index;} | public URISyntaxException(string input, string reason, int index) : base(reason){if (input == null || reason == null){throw new System.ArgumentNullException();}if (index < -1){throw new System.ArgumentException();}this.input = input;this.index = index;} |
public String toString() {return "AssociationFacetField(dim=" + dim + " path=" + Arrays.toString(path) + " bytes=" + assoc + ")";} | public override string ToString(){return "AssociationFacetField(dim=" + Dim + " path=" + Arrays.ToString(Path) + " bytes=" + Assoc + ")";} |
public boolean requiresCommitBody() {return false;} | public virtual bool RequiresCommitBody(){return true;} |
public static AttrPtg getSumSingle() {return new AttrPtg(optiSum.set(0), 0, null, -1);} | public static AttrPtg GetSumSingle(){return new AttrPtg(optiSum.Set(0), 0, null, -1);} |
public GetModelsResult getModels(GetModelsRequest request) {request = beforeClientExecution(request);return executeGetModels(request);} | public virtual GetModelsResponse GetModels(GetModelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetModelsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetModelsResponseUnmarshaller.Instance;return Invoke<GetModelsResponse>(request, options);} |
public Storage getStorage() {return Storage.LOOSE;} | public virtual RefStorage GetStorage(){return RefStorage.LOOSE;} |
public ForwardBytesReader(byte[] bytes) {this.bytes = bytes;} | public ForwardBytesReader(byte[] bytes){this.bytes = bytes;} |
public long ramBytesUsed() {return fst == null ? 0 : fst.ramBytesUsed();} | public virtual long RamBytesUsed(){return fst == null ? 0 : fst.GetSizeInBytes();} |
public ShortBuffer asReadOnlyBuffer() {return ReadOnlyShortArrayBuffer.copy(this, mark);} | public override java.nio.ShortBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyShortArrayBuffer.copy(this, _mark);} |
public ListFiltersResult listFilters(ListFiltersRequest request) {request = beforeClientExecution(request);return executeListFilters(request);} | public virtual ListFiltersResponse ListFilters(ListFiltersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFiltersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFiltersResponseUnmarshaller.Instance;return Invoke<ListFiltersResponse>(request, options);} |
public HSSFRichTextString(String string) {if (string == null) {_string = new UnicodeString("");} else {_string = new UnicodeString(string);}} | public HSSFRichTextString(String str){if (str == null){_string = new UnicodeString("");}else{this._string = new UnicodeString(str);}} |
public void readBytes(byte[] b, int offset, int len) {System.arraycopy(bytes, pos, b, offset, len);pos += len;} | public override void ReadBytes(byte[] b, int offset, int len){Buffer.BlockCopy(bytes, pos, b, offset, len);pos += len;} |
public UpdateDomainNameserversResult updateDomainNameservers(UpdateDomainNameserversRequest request) {request = beforeClientExecution(request);return executeUpdateDomainNameservers(request);} | public virtual UpdateDomainNameserversResponse UpdateDomainNameservers(UpdateDomainNameserversRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainNameserversRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainNameserversResponseUnmarshaller.Instance;return Invoke<UpdateDomainNameserversResponse>(request, options);} |
public ListWorkersWithQualificationTypeResult listWorkersWithQualificationType(ListWorkersWithQualificationTypeRequest request) {request = beforeClientExecution(request);return executeListWorkersWithQualificationType(request);} | public virtual ListWorkersWithQualificationTypeResponse ListWorkersWithQualificationType(ListWorkersWithQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWorkersWithQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWorkersWithQualificationTypeResponseUnmarshaller.Instance;return Invoke<ListWorkersWithQualificationTypeResponse>(request, options);} |
public ResetCacheParameterGroupRequest(String cacheParameterGroupName, java.util.List<ParameterNameValue> parameterNameValues) {setCacheParameterGroupName(cacheParameterGroupName);setParameterNameValues(parameterNameValues);} | public ResetCacheParameterGroupRequest(string cacheParameterGroupName, List<ParameterNameValue> parameterNameValues){_cacheParameterGroupName = cacheParameterGroupName;_parameterNameValues = parameterNameValues;} |
public EscherPropertyMetaData( String description ){this.description = description;} | public EscherPropertyMetaData(String description){this.description = description;} |
public UserInputQueryBuilder(String defaultField, Analyzer analyzer) {this.analyzer = analyzer;this.defaultField = defaultField;} | public UserInputQueryBuilder(string defaultField, Analyzer analyzer){this.analyzer = analyzer;this.defaultField = defaultField;} |
public final CharsetDecoder replaceWith(String replacement) {if (replacement == null) {throw new IllegalArgumentException("replacement == null");}if (replacement.isEmpty()) {throw new IllegalArgumentException("replacement.isEmpty()");}if (replacement.length() > maxCharsPerByte()) {throw new IllegalArgumentException("replacement length > maxCharsPerByte: " +replacement.length() + " > " + maxCharsPerByte());}replacementChars = replacement;implReplaceWith(replacement);return this;} | public java.nio.charset.CharsetDecoder replaceWith(string replacement_1){if (replacement_1 == null){throw new System.ArgumentException("replacement == null");}if (string.IsNullOrEmpty(replacement_1)){throw new System.ArgumentException("replacement.isEmpty()");}if (replacement_1.Length > maxCharsPerByte()){throw new System.ArgumentException("replacement length > maxCharsPerByte: " + replacement_1.Length + " > " + maxCharsPerByte());}replacementChars = replacement_1;implReplaceWith(replacement_1);return this;} |
public void reset() throws IOException {throw new IOException();} | public virtual void reset(){throw new System.IO.IOException();} |
public UpdateFileSystemResult updateFileSystem(UpdateFileSystemRequest request) {request = beforeClientExecution(request);return executeUpdateFileSystem(request);} | public virtual UpdateFileSystemResponse UpdateFileSystem(UpdateFileSystemRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFileSystemRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFileSystemResponseUnmarshaller.Instance;return Invoke<UpdateFileSystemResponse>(request, options);} |
public int readUByte(){return _in.readUByte();} | public int ReadUByte(){return _in.ReadUByte();} |
public String toString() {return "[WSBOOL]\n" +" .wsbool1 = " + Integer.toHexString(getWSBool1()) + "\n" +" .autobreaks = " + getAutobreaks() + "\n" +" .dialog = " + getDialog() + "\n" +" .rowsumsbelw= " + getRowSumsBelow() + "\n" +" .rowsumsrigt= " + getRowSumsRight() + "\n" +" .wsbool2 = " + Integer.toHexString(getWSBool2()) + "\n" +" .fittopage = " + getFitToPage() + "\n" +" .displayguts= " + getDisplayGuts() + "\n" +" .alternateex= " + getAlternateExpression() + "\n" +" .alternatefo= " + getAlternateFormula() + "\n" +"[/WSBOOL]\n";} | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[WSBOOL]\n");buffer.Append(" .wsbool1 = ").Append(StringUtil.ToHexString(WSBool1)).Append("\n");buffer.Append(" .autobreaks = ").Append(Autobreaks).Append("\n");buffer.Append(" .dialog = ").Append(Dialog).Append("\n");buffer.Append(" .rowsumsbelw= ").Append(RowSumsBelow).Append("\n");buffer.Append(" .rowsumsrigt= ").Append(RowSumsRight).Append("\n");buffer.Append(" .wsbool2 = ").Append(StringUtil.ToHexString(WSBool2)).Append("\n");buffer.Append(" .fittopage = ").Append(FitToPage).Append("\n");buffer.Append(" .Displayguts= ").Append(DisplayGuts).Append("\n");buffer.Append(" .alternateex= ").Append(AlternateExpression).Append("\n");buffer.Append(" .alternatefo= ").Append(AlternateFormula).Append("\n");buffer.Append("[/WSBOOL]\n");return buffer.ToString();} |
public PutGatewayResponseResult putGatewayResponse(PutGatewayResponseRequest request) {request = beforeClientExecution(request);return executePutGatewayResponse(request);} | public virtual PutGatewayResponseResponse PutGatewayResponse(PutGatewayResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutGatewayResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = PutGatewayResponseResponseUnmarshaller.Instance;return Invoke<PutGatewayResponseResponse>(request, options);} |
public Term[] getStopWords() {List<Term> allStopWords = new ArrayList<>();for (Map.Entry<String, Set<String>> entry : stopWordsPerField.entrySet()) {String field = entry.getKey();Set<String> stopWords = entry.getValue();for (String text : stopWords) {allStopWords.add(new Term(field, text));}}return allStopWords.toArray(new Term[allStopWords.size()]);} | public Term[] GetStopWords(){IList<Term> allStopWords = new List<Term>();foreach (string fieldName in stopWordsPerField.Keys){ISet<string> stopWords = stopWordsPerField[fieldName];foreach (string text in stopWords){allStopWords.Add(new Term(fieldName, text));}}return allStopWords.ToArray();} |
public boolean isUpdate() {return update;} | public virtual bool IsUpdate(){return update;} |
public static InternalSheet createSheet(RecordStream rs) {return new InternalSheet(rs);} | public static InternalSheet CreateSheet(RecordStream rs){return new InternalSheet(rs);} |
public final IntBuffer get(int[] dst, int dstOffset, int intCount) {if (intCount > remaining()) {throw new BufferUnderflowException();}System.arraycopy(backingArray, offset + position, dst, dstOffset, intCount);position += intCount;return this;} | public sealed override java.nio.IntBuffer get(int[] dst, int dstOffset, int intCount){if (intCount > remaining()){throw new java.nio.BufferUnderflowException();}System.Array.Copy(backingArray, offset + _position, dst, dstOffset, intCount);_position += intCount;return this;} |
public DisassociateVpcCidrBlockResult disassociateVpcCidrBlock(DisassociateVpcCidrBlockRequest request) {request = beforeClientExecution(request);return executeDisassociateVpcCidrBlock(request);} | public virtual DisassociateVpcCidrBlockResponse DisassociateVpcCidrBlock(DisassociateVpcCidrBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateVpcCidrBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateVpcCidrBlockResponseUnmarshaller.Instance;return Invoke<DisassociateVpcCidrBlockResponse>(request, options);} |
public void add(TaskStats stat2) {numRuns += stat2.getNumRuns();elapsed += stat2.getElapsed();maxTotMem += stat2.getMaxTotMem();maxUsedMem += stat2.getMaxUsedMem();count += stat2.getCount();if (round != stat2.round) {round = -1; }if (countsByTime != null && stat2.countsByTime != null) {if (countsByTimeStepMSec != stat2.countsByTimeStepMSec) {throw new IllegalStateException("different by-time msec step");}if (countsByTime.length != stat2.countsByTime.length) {throw new IllegalStateException("different by-time msec count");}for(int i=0;i<stat2.countsByTime.length;i++) {countsByTime[i] += stat2.countsByTime[i];}}} | public virtual void Add(TaskStats stat2){numRuns += stat2.NumRuns;elapsed += stat2.Elapsed;maxTotMem += stat2.MaxTotMem;maxUsedMem += stat2.MaxUsedMem;count += stat2.Count;if (round != stat2.round){round = -1; }if (countsByTime != null && stat2.countsByTime != null){if (countsByTimeStepMSec != stat2.countsByTimeStepMSec){throw new InvalidOperationException("different by-time msec step");}if (countsByTime.Length != stat2.countsByTime.Length){throw new InvalidOperationException("different by-time msec count");}for (int i = 0; i < stat2.countsByTime.Length; i++){countsByTime[i] += stat2.countsByTime[i];}}} |
public StartStreamProcessorResult startStreamProcessor(StartStreamProcessorRequest request) {request = beforeClientExecution(request);return executeStartStreamProcessor(request);} | public virtual StartStreamProcessorResponse StartStreamProcessor(StartStreamProcessorRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartStreamProcessorRequestMarshaller.Instance;options.ResponseUnmarshaller = StartStreamProcessorResponseUnmarshaller.Instance;return Invoke<StartStreamProcessorResponse>(request, options);} |
public void print(char c) {print(String.valueOf(c));} | public virtual void print(char c){print(c.ToString());} |
public StepConfig(String name, HadoopJarStepConfig hadoopJarStep) {setName(name);setHadoopJarStep(hadoopJarStep);} | public StepConfig(string name, HadoopJarStepConfig hadoopJarStep){_name = name;_hadoopJarStep = hadoopJarStep;} |
public GetIdentityPoliciesResult getIdentityPolicies(GetIdentityPoliciesRequest request) {request = beforeClientExecution(request);return executeGetIdentityPolicies(request);} | public virtual GetIdentityPoliciesResponse GetIdentityPolicies(GetIdentityPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityPoliciesResponseUnmarshaller.Instance;return Invoke<GetIdentityPoliciesResponse>(request, options);} |
public ListAccountsResult listAccounts(ListAccountsRequest request) {request = beforeClientExecution(request);return executeListAccounts(request);} | public virtual ListAccountsResponse ListAccounts(ListAccountsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAccountsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAccountsResponseUnmarshaller.Instance;return Invoke<ListAccountsResponse>(request, options);} |
public int getCompressionLevel() {return compressionLevel;} | public virtual int GetCompressionLevel(){return compressionLevel;} |
public synchronized StringBuffer append(CharSequence s) {if (s == null) {appendNull();} else {append0(s, 0, s.length());}return this;} | public java.lang.StringBuffer append(char[] chars){lock (this){append0(chars);return this;}} |
@Override public String toString() {return key + "=" + value;} | public override string ToString(){return key + "=" + value;} |
public long skip(long byteCount) throws IOException {if (byteCount < 0) {throw new IllegalArgumentException("byteCount < 0: " + byteCount);}synchronized (lock) {checkNotClosed();if (byteCount < 1) {return 0;}if (end - pos >= byteCount) {pos += byteCount;return byteCount;}long read = end - pos;pos = end;while (read < byteCount) {if (fillBuf() == -1) {return read;}if (end - pos >= byteCount - read) {pos += byteCount - read;return byteCount;}read += (end - pos);pos = end;}return byteCount;}} | public override long skip(long byteCount){if (byteCount < 0){throw new System.ArgumentException("byteCount < 0: " + byteCount);}lock (@lock){checkNotClosed();if (byteCount < 1){return 0;}if (end - pos >= byteCount){pos += (int)(byteCount);return byteCount;}long read_1 = end - pos;pos = end;while (read_1 < byteCount){if (fillBuf() == -1){return read_1;}if (end - pos >= byteCount - read_1){pos += (int)(byteCount - read_1);return byteCount;}read_1 += (end - pos);pos = end;}return byteCount;}} |
public void updateFormulasAfterRowShift(FormulaShifter formulaShifter, int currentExternSheetIndex) {_valuesAgg.updateFormulasAfterRowShift(formulaShifter, currentExternSheetIndex);} | public void UpdateFormulasAfterRowShift(FormulaShifter formulaShifter, int currentExternSheetIndex){_valuesAgg.UpdateFormulasAfterRowShift(formulaShifter, currentExternSheetIndex);} |
public void close() {synchronized (lock) {if (isOpen()) {buf = null;}}} | public override void close(){lock (@lock){if (isOpen()){buf = null;}}} |
public void seek(long pos) {this.pos = (int) (pos - pointer);} | public override void Seek(long pos){this.pos = (int)(pos - pointer);} |
public String toFormulaString() {StringBuilder sb = new StringBuilder(64);boolean needsExclamation = false;if (externalWorkbookNumber >= 0) {sb.append('[');sb.append(externalWorkbookNumber);sb.append(']');needsExclamation = true;}if (sheetName != null) {SheetNameFormatter.appendFormat(sb, sheetName);needsExclamation = true;}if (needsExclamation) {sb.append('!');}sb.append(nameName);return sb.toString();} | public override String ToFormulaString(){StringBuilder sb = new StringBuilder();bool needsExclamation = false;if (externalWorkbookNumber >= 0){sb.Append('[');sb.Append(externalWorkbookNumber);sb.Append(']');needsExclamation = true;}if (sheetName != null){SheetNameFormatter.AppendFormat(sb, sheetName);needsExclamation = true;}if (needsExclamation){sb.Append('!');}sb.Append(nameName);return sb.ToString();} |
public boolean isFinished() {return mState == STATE_IDLE;} | public virtual bool isFinished(){return mState == STATE_IDLE;} |
public static Transport open(Repository local, URIish uri, String remoteName)throws NotSupportedException, TransportException {for (WeakReference<TransportProtocol> ref : protocols) {TransportProtocol proto = ref.get();if (proto == null) {protocols.remove(ref);continue;}if (proto.canHandle(uri, local, remoteName)) {Transport tn = proto.open(uri, local, remoteName);tn.prePush = Hooks.prePush(local, tn.hookOutRedirect);tn.prePush.setRemoteLocation(uri.toString());tn.prePush.setRemoteName(remoteName);return tn;}}throw new NotSupportedException(MessageFormat.format(JGitText.get().URINotSupported, uri));} | public static NGit.Transport.Transport Open(Repository local, URIish uri, stringremoteName){foreach (JavaWeakReference<TransportProtocol> @ref in protocols){TransportProtocol proto = @ref.Get();if (proto == null){protocols.Remove(@ref);continue;}if (proto.CanHandle(uri, local, remoteName)){return proto.Open(uri, local, remoteName);}}throw new NGit.Errors.NotSupportedException(MessageFormat.Format(JGitText.Get().URINotSupported, uri));} |
public void setColor(Color color){foreground = color;} | public void SetColor(Color color){foreground = color;} |
public DeleteAliasResult deleteAlias(DeleteAliasRequest request) {request = beforeClientExecution(request);return executeDeleteAlias(request);} | public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAliasResponseUnmarshaller.Instance;return Invoke<DeleteAliasResponse>(request, options);} |
public SeekStatus seekCeil(BytesRef text) {termUpto = binarySearch(text, br, 0, info.terms.size()-1, info.terms, info.sortedTerms);if (termUpto < 0) { termUpto = -termUpto-1;if (termUpto >= info.terms.size()) {return SeekStatus.END;} else {info.terms.get(info.sortedTerms[termUpto], br);return SeekStatus.NOT_FOUND;}} else {return SeekStatus.FOUND;}} | public override SeekStatus SeekCeil(BytesRef text){termUpto = BinarySearch(text, br, 0, info.terms.Count - 1, info.terms, info.sortedTerms, BytesRef.UTF8SortedAsUnicodeComparer);if (termUpto < 0) {termUpto = -termUpto - 1;if (termUpto >= info.terms.Count){return SeekStatus.END;}else{info.terms.Get(info.sortedTerms[termUpto], br);return SeekStatus.NOT_FOUND;}}else{return SeekStatus.FOUND;}} |
public CreateApplicationVersionRequest(String applicationName, String versionLabel) {setApplicationName(applicationName);setVersionLabel(versionLabel);} | public CreateApplicationVersionRequest(string applicationName, string versionLabel){_applicationName = applicationName;_versionLabel = versionLabel;} |
public String toString() {return ruleName + ":" + bypassTokenType;} | public override string ToString(){return ruleName + ":" + bypassTokenType;} |
public int indexOf(Object object) {Object[] snapshot = elements;return indexOf(object, snapshot, 0, snapshot.length);} | public virtual int indexOf(object @object){object[] snapshot = elements;return indexOf(@object, snapshot, 0, snapshot.Length);} |
public int compareTo(ShortBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;short 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.ShortBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;short thisByte;short 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 DescribeSecurityConfigurationResult describeSecurityConfiguration(DescribeSecurityConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeSecurityConfiguration(request);} | public virtual DescribeSecurityConfigurationResponse DescribeSecurityConfiguration(DescribeSecurityConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSecurityConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSecurityConfigurationResponseUnmarshaller.Instance;return Invoke<DescribeSecurityConfigurationResponse>(request, options);} |
public void add(int location, E object) {insertElementAt(object, location);} | public override void add(int location, E @object){insertElementAt(@object, location);} |
public GetDownloadUrlForLayerResult getDownloadUrlForLayer(GetDownloadUrlForLayerRequest request) {request = beforeClientExecution(request);return executeGetDownloadUrlForLayer(request);} | public virtual GetDownloadUrlForLayerResponse GetDownloadUrlForLayer(GetDownloadUrlForLayerRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDownloadUrlForLayerRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDownloadUrlForLayerResponseUnmarshaller.Instance;return Invoke<GetDownloadUrlForLayerResponse>(request, options);} |
public StringWriter append(CharSequence csq) {if (csq == null) {csq = "null";}write(csq.toString());return this;} | public override java.io.Writer append(java.lang.CharSequence csq){if (csq == null){csq = java.lang.CharSequenceProxy.Wrap("null");}write(csq.ToString());return this;} |
public RevWalk getRevWalk() {return walker;} | public virtual RevWalk GetRevWalk(){return walker;} |
@Override public int lastIndexOf(Object object) {Slice slice = this.slice;Object[] snapshot = elements;slice.checkConcurrentModification(snapshot);int result = CopyOnWriteArrayList.lastIndexOf(object, snapshot, slice.from, slice.to);return (result != -1) ? (result - slice.from) : -1;} | public virtual int lastIndexOf(object @object){object[] snapshot = elements;return lastIndexOf(@object, snapshot, 0, snapshot.Length);} |
public IntBuffer put(int index, int c) {checkIndex(index);backingArray[offset + index] = c;return this;} | public override java.nio.IntBuffer put(int index, int c){checkIndex(index);backingArray[offset + index] = c;return this;} |
public HSSFTextbox(HSSFShape parent, HSSFAnchor anchor) {super(parent, anchor);setHorizontalAlignment(HORIZONTAL_ALIGNMENT_LEFT);setVerticalAlignment(VERTICAL_ALIGNMENT_TOP);setString(new HSSFRichTextString(""));} | public HSSFTextbox(HSSFShape parent, HSSFAnchor anchor): base(parent, anchor){HorizontalAlignment = HorizontalTextAlignment.Left;VerticalAlignment = VerticalTextAlignment.Top;this.String = (new HSSFRichTextString(""));} |
public GetRegionRequest() {super("cr", "2016-06-07", "GetRegion", "cr");setUriPattern("/regions");setMethod(MethodType.GET);} | public GetRegionRequest(): base("cr", "2016-06-07", "GetRegion", "cr", "openAPI"){UriPattern = "/regions";Method = MethodType.GET;} |
public ListObjectChildrenResult listObjectChildren(ListObjectChildrenRequest request) {request = beforeClientExecution(request);return executeListObjectChildren(request);} | public virtual ListObjectChildrenResponse ListObjectChildren(ListObjectChildrenRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListObjectChildrenRequestMarshaller.Instance;options.ResponseUnmarshaller = ListObjectChildrenResponseUnmarshaller.Instance;return Invoke<ListObjectChildrenResponse>(request, options);} |
public GetIdResult getId(GetIdRequest request) {request = beforeClientExecution(request);return executeGetId(request);} | public virtual GetIdResponse GetId(GetIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdResponseUnmarshaller.Instance;return Invoke<GetIdResponse>(request, options);} |
public String getPassphrase() {return passphrase;} | public virtual string GetPassphrase(){return passphrase;} |
public Map<String, Ref> getAllRefs() {try {return getRefDatabase().getRefs(RefDatabase.ALL);} catch (IOException e) {throw new UncheckedIOException(e);}} | public virtual IDictionary<string, Ref> GetAllRefs(){try{return RefDatabase.GetRefs(NGit.RefDatabase.ALL);}catch (IOException){return new Dictionary<string, Ref>();}} |
public boolean hasMoreElements() { return hasNext(); } | public bool hasMoreElements(){return this.hasNext();} |
public int numDataNodes() {return numDataNodes(rootNode);} | public virtual int NumDataNodes(){return NumDataNodes(rootNode);} |
public HadoopJarStepConfig toHadoopJarStepConfig() {List<String> args = new ArrayList<String>();if (reducer == null) {hadoopConfig.put("mapred.reduce.tasks", "0");}for (Map.Entry<String, String> entry : hadoopConfig.entrySet()) {args.add("-D");args.add(entry.getKey() + "=" + entry.getValue());}for (String input : inputs) {args.add("-input");args.add(input);}if (output != null) {args.add("-output");args.add(output);}if (mapper != null) {args.add("-mapper");args.add(mapper);}if (reducer != null) {args.add("-reducer");args.add(reducer);}return new HadoopJarStepConfig().withJar("/home/hadoop/contrib/streaming/hadoop-streaming.jar").withArgs(args);} | public HadoopJarStepConfig ToHadoopJarStepConfig() {List<string> args = new List<string>();if (reducer == null) {hadoopConfig.Add("mapred.reduce.tasks", "0");}foreach (KeyValuePair<string, string> entry in hadoopConfig){args.Add("-D");args.Add(string.Format(CultureInfo.InvariantCulture, "{0} = {1}", entry.Key, entry.Value));}foreach (string input in inputs) {args.Add("-input");args.Add(input);}if (output != null) {args.Add("-output");args.Add(output);}if (mapper != null) {args.Add("-mapper");args.Add(mapper);}if (reducer != null) {args.Add("-reducer");args.Add(reducer);}return new HadoopJarStepConfig{Jar = "/home/hadoop/contrib/streaming/hadoop-streaming.jar",Args = args};} |
public GetRelationalDatabaseEventsResult getRelationalDatabaseEvents(GetRelationalDatabaseEventsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseEvents(request);} | public virtual GetRelationalDatabaseEventsResponse GetRelationalDatabaseEvents(GetRelationalDatabaseEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseEventsResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseEventsResponse>(request, options);} |
public void drawLine(int x1, int y1, int x2, int y2){drawLine(x1,y1,x2,y2,0);} | public void DrawLine(int x1, int y1, int x2, int y2){DrawLine(x1, y1, x2, y2, 0);} |
public UpdateUserSecurityProfilesResult updateUserSecurityProfiles(UpdateUserSecurityProfilesRequest request) {request = beforeClientExecution(request);return executeUpdateUserSecurityProfiles(request);} | public virtual UpdateUserSecurityProfilesResponse UpdateUserSecurityProfiles(UpdateUserSecurityProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserSecurityProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserSecurityProfilesResponseUnmarshaller.Instance;return Invoke<UpdateUserSecurityProfilesResponse>(request, options);} |
public String toString() {return "Action: " + this.action;} | public override string ToString(){return "Action: " + this.action;} |
public CreateVolumeRequest(Integer size, String availabilityZone) {setSize(size);setAvailabilityZone(availabilityZone);} | public CreateVolumeRequest(string availabilityZone, int size){_availabilityZone = availabilityZone;_size = size;} |
public final void setPrecedenceStartState(int precedence, DFAState startState) {if (!isPrecedenceDfa()) {throw new IllegalStateException("Only precedence DFAs may contain a precedence start state.");}if (precedence < 0) {return;}synchronized (s0) {if (precedence >= s0.edges.length) {s0.edges = Arrays.copyOf(s0.edges, precedence + 1);}s0.edges[precedence] = startState;}} | public void SetPrecedenceStartState(int precedence, DFAState startState){if (!IsPrecedenceDfa){throw new Exception("Only precedence DFAs may contain a precedence start state.");}if (precedence < 0){return;}lock (s0){if (precedence >= s0.edges.Length){s0.edges = Arrays.CopyOf(s0.edges, precedence + 1);}s0.edges[precedence] = startState;}} |
public EditPhotosRequest() {super("CloudPhoto", "2017-07-11", "EditPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);} | public EditPhotosRequest(): base("CloudPhoto", "2017-07-11", "EditPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;} |
public Builder() {PositiveIntOutputs outputs = PositiveIntOutputs.getSingleton();fstCompiler = new FSTCompiler<>(FST.INPUT_TYPE.BYTE1, outputs);scratchInts = new IntsRefBuilder();} | public Builder(){data = new GrowableByteArrayDataOutput(128);bufferSize = 0;previousDoc = -1;indexInterval = 2;cardinality = 0;numBlocks = 0;} |
public DeleteFlowDefinitionResult deleteFlowDefinition(DeleteFlowDefinitionRequest request) {request = beforeClientExecution(request);return executeDeleteFlowDefinition(request);} | public virtual DeleteFlowDefinitionResponse DeleteFlowDefinition(DeleteFlowDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFlowDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFlowDefinitionResponseUnmarshaller.Instance;return Invoke<DeleteFlowDefinitionResponse>(request, options);} |
Subsets and Splits