java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public InitiateVaultLockResult initiateVaultLock(InitiateVaultLockRequest request) {request = beforeClientExecution(request);return executeInitiateVaultLock(request);} | public virtual InitiateVaultLockResponse InitiateVaultLock(InitiateVaultLockRequest request){var options = new InvokeOptions();options.RequestMarshaller = InitiateVaultLockRequestMarshaller.Instance;options.ResponseUnmarshaller = InitiateVaultLockResponseUnmarshaller.Instance;return Invoke<InitiateVaultLockResponse>(request, options);} |
public final K getKey() {return key;} | public virtual K getKey(){return key;} |
public boolean isSet(final int holder){return (holder & _mask) != 0;} | public bool IsSet(int holder){return ((holder & this._mask) != 0);} |
public DoubleMetaphoneFilter(TokenStream input, int maxCodeLength, boolean inject) {super(input);this.encoder.setMaxCodeLen(maxCodeLength);this.inject = inject;} | public DoubleMetaphoneFilter(TokenStream input, int maxCodeLength, bool inject): base(input){this.encoder.MaxCodeLen = maxCodeLength;this.inject = inject;this.termAtt = AddAttribute<ICharTermAttribute>();this.posAtt = AddAttribute<IPositionIncrementAttribute>();} |
public boolean changeExternalReference(String oldUrl, String newUrl) {return workbook.changeExternalReference(oldUrl, newUrl);} | public bool ChangeExternalReference(String oldUrl, String newUrl){return workbook.ChangeExternalReference(oldUrl, newUrl);} |
public DescribeEngineDefaultParametersRequest(String cacheParameterGroupFamily) {setCacheParameterGroupFamily(cacheParameterGroupFamily);} | public DescribeEngineDefaultParametersRequest(string cacheParameterGroupFamily){_cacheParameterGroupFamily = cacheParameterGroupFamily;} |
public void extendB() {endB++;} | public virtual void ExtendB(){endB++;} |
public JapaneseReadingFormFilter(TokenStream input, boolean useRomaji) {super(input);this.useRomaji = useRomaji;} | public JapaneseReadingFormFilter(TokenStream input, bool useRomaji): base(input){this.useRomaji = useRomaji;this.termAttr = AddAttribute<ICharTermAttribute>();this.readingAttr = AddAttribute<IReadingAttribute>();} |
public DeleteContactResult deleteContact(DeleteContactRequest request) {request = beforeClientExecution(request);return executeDeleteContact(request);} | public virtual DeleteContactResponse DeleteContact(DeleteContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteContactRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteContactResponseUnmarshaller.Instance;return Invoke<DeleteContactResponse>(request, options);} |
public static final int next(byte[] b, int ptr, char chrA) {final int sz = b.length;while (ptr < sz) {if (b[ptr++] == chrA)return ptr;}return ptr;} | public static int Next(byte[] b, int ptr, char chrA){int sz = b.Length;while (ptr < sz){if (b[ptr++] == chrA){return ptr;}}return ptr;} |
public InvokeEndpointResult invokeEndpoint(InvokeEndpointRequest request) {request = beforeClientExecution(request);return executeInvokeEndpoint(request);} | public virtual InvokeEndpointResponse InvokeEndpoint(InvokeEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = InvokeEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = InvokeEndpointResponseUnmarshaller.Instance;return Invoke<InvokeEndpointResponse>(request, options);} |
public PutAccountSettingDefaultResult putAccountSettingDefault(PutAccountSettingDefaultRequest request) {request = beforeClientExecution(request);return executePutAccountSettingDefault(request);} | public virtual PutAccountSettingDefaultResponse PutAccountSettingDefault(PutAccountSettingDefaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAccountSettingDefaultRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAccountSettingDefaultResponseUnmarshaller.Instance;return Invoke<PutAccountSettingDefaultResponse>(request, options);} |
public static Path categoriesLineFile(Path f) {Path dir = f.toAbsolutePath().getParent();String categoriesName = "categories-"+f.getFileName();return dir.resolve(categoriesName);} | public static FileInfo CategoriesLineFile(FileInfo f){DirectoryInfo dir = f.Directory;string categoriesName = "categories-" + f.Name;return dir == null ? new FileInfo(categoriesName) : new FileInfo(System.IO.Path.Combine(dir.FullName, categoriesName));} |
public String toJson() {return new JsonPolicyWriter().writePolicyToString(this);} | public string ToJson(){return ToJson(true);} |
public String getFunctionName(int idx) {return _funcMap.get(idx);} | public String GetFunctionName(int idx){return _funcMap[idx];} |
public RecordHandlerProgressResult recordHandlerProgress(RecordHandlerProgressRequest request) {request = beforeClientExecution(request);return executeRecordHandlerProgress(request);} | public virtual RecordHandlerProgressResponse RecordHandlerProgress(RecordHandlerProgressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RecordHandlerProgressRequestMarshaller.Instance;options.ResponseUnmarshaller = RecordHandlerProgressResponseUnmarshaller.Instance;return Invoke<RecordHandlerProgressResponse>(request, options);} |
public synchronized StringBuffer insert(int index, char[] chars, int start, int length) {insert0(index, chars, start, length);return this;} | public java.lang.StringBuffer insert(int index, char[] chars, int start, int length_1){lock (this){insert0(index, chars, start, length_1);return this;}} |
public RevObject lookupAny(AnyObjectId id, int type) {RevObject r = objects.get(id);if (r == null) {switch (type) {case Constants.OBJ_COMMIT:r = createCommit(id);break;case Constants.OBJ_TREE:r = new RevTree(id);break;case Constants.OBJ_BLOB:r = new RevBlob(id);break;case Constants.OBJ_TAG:r = new RevTag(id);break;default:throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidGitType, Integer.valueOf(type)));}objects.add(r);}return r;} | public virtual RevObject LookupAny(AnyObjectId id, int type){RevObject r = objects.Get(id);if (r == null){switch (type){case Constants.OBJ_COMMIT:{r = CreateCommit(id);break;}case Constants.OBJ_TREE:{r = new RevTree(id);break;}case Constants.OBJ_BLOB:{r = new RevBlob(id);break;}case Constants.OBJ_TAG:{r = new RevTag(id);break;}default:{throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidGitType, Sharpen.Extensions.ValueOf(type)));}}objects.Add(r);}return r;} |
public BytesRef encode(char[] buffer) {return encode(buffer, 0, buffer.length);} | public virtual BytesRef Encode(char[] buffer){return Encode(buffer, 0, buffer.Length);} |
public StringBuilder append(int i) {IntegralToString.appendInt(this, i);return this;} | public java.lang.StringBuilder append(char c){append0(c);return this;} |
public void removeName(Name name) {int index = getNameIndex((HSSFName) name);removeName(index);} | public void RemoveName(String name){int index = GetNameIndex(name);RemoveName(index);} |
public WrappedPositionArray() {for(int i=0;i<positions.length;i++) {positions[i] = new Position();}} | public WrappedPositionArray(){for (int i = 0; i < positions.Length; i++){positions[i] = new Position();}} |
public PasswordRev4Record(int pw) {field_1_password = pw;} | public PasswordRev4Record(int pw){field_1_password = pw;} |
public static String intToHex(int value) {StringBuilder sb = new StringBuilder(10);writeHex(sb, value & 0xFFFFFFFFL, 8, "0x");return sb.toString();} | public static char[] IntToHex(int value){return ToHexChars(value, 4);} |
public RemovePermissionRequest(String topicArn, String label) {setTopicArn(topicArn);setLabel(label);} | public RemovePermissionRequest(string topicArn, string label){_topicArn = topicArn;_label = label;} |
public UpdateOrganizationConfigurationResult updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateOrganizationConfiguration(request);} | public virtual UpdateOrganizationConfigurationResponse UpdateOrganizationConfiguration(UpdateOrganizationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateOrganizationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateOrganizationConfigurationResponseUnmarshaller.Instance;return Invoke<UpdateOrganizationConfigurationResponse>(request, options);} |
public void seekExact(BytesRef target, TermState otherState) {assert otherState != null && otherState instanceof BlockTermState;assert !doOrd || ((BlockTermState) otherState).ord < numTerms;state.copyFrom(otherState);seekPending = true;indexIsCurrent = false;term.copyBytes(target);} | public override void SeekExact(BytesRef target, TermState otherState){if (!target.Equals(term)){state.CopyFrom(otherState);term = BytesRef.DeepCopyOf(target);seekPending = true;}} |
public void println() {newline();} | public virtual void println(){newline();} |
public String toString() {return "NRTCachingDirectory(" + in + "; maxCacheMB=" + (maxCachedBytes/1024/1024.) + " maxMergeSizeMB=" + (maxMergeSizeBytes/1024/1024.) + ")";} | public override string ToString(){return "NRTCachingDirectory(" + @delegate + "; maxCacheMB=" + (maxCachedBytes / 1024 / 1024.0) + " maxMergeSizeMB=" + (maxMergeSizeBytes / 1024 / 1024.0) + ")";} |
public DescribeWorkforceResult describeWorkforce(DescribeWorkforceRequest request) {request = beforeClientExecution(request);return executeDescribeWorkforce(request);} | public virtual DescribeWorkforceResponse DescribeWorkforce(DescribeWorkforceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkforceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkforceResponseUnmarshaller.Instance;return Invoke<DescribeWorkforceResponse>(request, options);} |
public ToggleFeaturesRequest() {super("CloudPhoto", "2017-07-11", "ToggleFeatures", "cloudphoto");setProtocol(ProtocolType.HTTPS);} | public ToggleFeaturesRequest(): base("CloudPhoto", "2017-07-11", "ToggleFeatures", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;} |
public synchronized StringBuffer append(char[] chars, int start, int length) {append0(chars, start, length);return this;} | public java.lang.StringBuffer append(char[] chars, int start, int length_1){lock (this){append0(chars, start, length_1);return this;}} |
public ShortBuffer put(short c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putShort(position++ * SizeOf.SHORT, c);return this;} | public override java.nio.ShortBuffer put(short c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putShort(_position++ * libcore.io.SizeOf.SHORT, c);return this;} |
public char last() {index = (limit == start) ? limit : limit - 1;return current();} | public override char Last(){index = (limit == start) ? limit : limit - 1;return Current;} |
public WeightedSpanTermExtractor(String defaultField) {this.defaultField = defaultField;} | public WeightedSpanTermExtractor(string defaultField){if (defaultField != null){this.defaultField = defaultField.Intern();}} |
public StringReader(String str) {this.str = str;this.count = str.length();} | public StringReader(string str){this.str = str;this.count = str.Length;} |
public GetThumbnailsRequest() {super("CloudPhoto", "2017-07-11", "GetThumbnails", "cloudphoto");setProtocol(ProtocolType.HTTPS);} | public GetThumbnailsRequest(): base("CloudPhoto", "2017-07-11", "GetThumbnails", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;} |
public TagCommand setName(String name) {checkCallable();this.name = name;return this;} | public virtual NGit.Api.TagCommand SetName(string name){CheckCallable();this.name = name;return this;} |
@Override public String toString() {synchronized (mutex) {return c.toString();}} | public override string ToString(){lock (mutex){return c.ToString();}} |
public String toString() {return toString((List<String>)null, (RuleContext)null);} | public override string ToString(){return ToString((IList<string>)null, (Antlr4.Runtime.RuleContext)null);} |
public String toString() {return "StandardDirectoryReader.ReaderCommit(" + segmentsFileName + " files=" + files + ")";} | public override string ToString(){return "DirectoryReader.ReaderCommit(" + segmentsFileName + ")";} |
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesAfterHeader = readHeader( data, offset );int pos = offset + HEADER_SIZE;field_pictureData = IOUtils.safelyAllocate(bytesAfterHeader, MAX_RECORD_LENGTH);System.arraycopy(data, pos, field_pictureData, 0, bytesAfterHeader);return bytesAfterHeader + 8;} | public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesAfterHeader = ReadHeader(data, offset);int pos = offset + HEADER_SIZE;field_pictureData = new byte[bytesAfterHeader];Array.Copy(data, pos, field_pictureData, 0, bytesAfterHeader);return bytesAfterHeader + 8;} |
public static int[] copyOf(int[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);} | public static int[] copyOf(int[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);} |
public void serialize(LittleEndianOutput out) {out.write(data);} | public void Serialize(ILittleEndianOutput out1){out1.Write(data);} |
public E get(int location) {if (location >= 0 && location < size) {Link<E> link = voidLink;if (location < (size / 2)) {for (int i = 0; i <= location; i++) {link = link.next;}} else {for (int i = size; i > location; i--) {link = link.previous;}}return link.data;}throw new IndexOutOfBoundsException();} | public override E get(int location){if (location >= 0 && location < _size){java.util.LinkedList.Link<E> link = voidLink;if (location < (_size / 2)){{for (int i = 0; i <= location; i++){link = link.next;}}}else{{for (int i = _size; i > location; i--){link = link.previous;}}}return link.data;}throw new System.IndexOutOfRangeException();} |
public static boolean hasExactSharedBorder(CellRangeAddress crA, CellRangeAddress crB) {int oFirstRow = crB.getFirstRow();int oLastRow = crB.getLastRow();int oFirstCol = crB.getFirstColumn();int oLastCol = crB.getLastColumn();if (crA.getFirstRow() > 0 && crA.getFirstRow()-1 == oLastRow ||oFirstRow > 0 && oFirstRow-1 == crA.getLastRow()) {return crA.getFirstColumn() == oFirstCol && crA.getLastColumn() == oLastCol;}if (crA.getFirstColumn()>0 && crA.getFirstColumn() - 1 == oLastCol ||oFirstCol>0 && crA.getLastColumn() == oFirstCol -1) {return crA.getFirstRow() == oFirstRow && crA.getLastRow() == oLastRow;}return false;} | public static bool HasExactSharedBorder(CellRangeAddress crA, CellRangeAddress crB){int oFirstRow = crB.FirstRow;int oLastRow = crB.LastRow;int oFirstCol = crB.FirstColumn;int oLastCol = crB.LastColumn;if (crA.FirstRow > 0 && crA.FirstRow - 1 == oLastRow ||oFirstRow > 0 && oFirstRow - 1 == crA.LastRow){return crA.FirstColumn == oFirstCol && crA.LastColumn == oLastCol;}if (crA.FirstColumn > 0 && crA.FirstColumn - 1 == oLastCol ||oFirstCol > 0 && crA.LastColumn == oFirstCol - 1){return crA.FirstRow == oFirstRow && crA.LastRow == oLastRow;}return false;} |
public void visitCellsForRow(int rowIndex, RecordVisitor rv) {CellValueRecordInterface[] rowCells = records[rowIndex];if(rowCells == null) {throw new IllegalArgumentException("Row [" + rowIndex + "] is empty");}for (int i = 0; i < rowCells.length; i++) {RecordBase cvr = (RecordBase) rowCells[i];if(cvr == null) {continue;}int nBlank = countBlanks(rowCells, i);if (nBlank > 1) {rv.visitRecord(createMBR(rowCells, i, nBlank));i+=nBlank-1;} else if (cvr instanceof RecordAggregate) {RecordAggregate agg = (RecordAggregate) cvr;agg.visitContainedRecords(rv);} else {rv.visitRecord((org.apache.poi.hssf.record.Record) cvr);}}} | public void VisitCellsForRow(int rowIndex, RecordVisitor rv){CellValueRecordInterface[] rowCells = records[rowIndex];if (rowCells == null){throw new ArgumentException("Row [" + rowIndex + "] is empty");}for (int i = 0; i < rowCells.Length; i++){RecordBase cvr = (RecordBase)rowCells[i];if (cvr == null){continue;}int nBlank = CountBlanks(rowCells, i);if (nBlank > 1){rv.VisitRecord(CreateMBR(rowCells, i, nBlank));i += nBlank - 1;}else if (cvr is RecordAggregate){RecordAggregate agg = (RecordAggregate)cvr;agg.VisitContainedRecords(rv);}else{rv.VisitRecord((Record)cvr);}}} |
public DeleteVpnConnectionResult deleteVpnConnection(DeleteVpnConnectionRequest request) {request = beforeClientExecution(request);return executeDeleteVpnConnection(request);} | public virtual DeleteVpnConnectionResponse DeleteVpnConnection(DeleteVpnConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpnConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpnConnectionResponseUnmarshaller.Instance;return Invoke<DeleteVpnConnectionResponse>(request, options);} |
public void clear() {username = null;if (password != null) {Arrays.fill(password, (char) 0);password = null;}} | public virtual void Clear(){username = null;if (password != null){Arrays.Fill(password, (char)0);password = null;}} |
public String toString() {return String.format(Locale.ROOT,"time=%.2f sec. total (%.2f reading, %.2f sorting, %.2f merging), lines=%d, temp files=%d, merges=%d, soft ram limit=%.2f MB",totalTimeMS / 1000.0d, readTimeMS / 1000.0d, sortTimeMS.get() / 1000.0d, mergeTimeMS.get() / 1000.0d,lineCount, tempMergeFiles, mergeRounds,(double) bufferSize / MB);} | public override string ToString(){return string.Format(CultureInfo.InvariantCulture,"time={0:0.00} sec. total ({1:0.00} reading, {2:0.00} sorting, {3:0.00} merging), lines={4}, temp files={5}, merges={6}, soft ram limit={7:0.00} MB",TotalTime / 1000.0d, ReadTime / 1000.0d, SortTime / 1000.0d, MergeTime / 1000.0d,Lines, TempMergeFiles, MergeRounds,(double)BufferSize / MB);} |
public DetachLoadBalancersResult detachLoadBalancers(DetachLoadBalancersRequest request) {request = beforeClientExecution(request);return executeDetachLoadBalancers(request);} | public virtual DetachLoadBalancersResponse DetachLoadBalancers(DetachLoadBalancersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachLoadBalancersRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachLoadBalancersResponseUnmarshaller.Instance;return Invoke<DetachLoadBalancersResponse>(request, options);} |
public synchronized Span[] splitSentences(String line) {if (sentenceSplitter != null) {return sentenceSplitter.sentPosDetect(line);} else {Span[] shorty = new Span[1];shorty[0] = new Span(0, line.length());return shorty;}} | public virtual Span[] SplitSentences(string line){lock (this){if (sentenceSplitter != null){return sentenceSplitter.sentPosDetect(line);}else{Span[] shorty = new Span[1];shorty[0] = new Span(0, line.Length);return shorty;}}} |
public boolean isRemote() {return getHost() != null;} | public virtual bool IsRemote(){return GetHost() != null;} |
public void setBuiltinStyle(int builtinStyleId) {field_1_xf_index = isBuiltinFlag.set(field_1_xf_index);field_2_builtin_style = builtinStyleId;} | public void SetBuiltinStyle(int builtinStyleId){field_1_xf_index = isBuiltinFlag.Set(field_1_xf_index);field_2_builtin_style = builtinStyleId;} |
public ObjectReader getObjectReader() {return reader;} | public virtual ObjectReader GetObjectReader(){return reader;} |
public void addEscherProperty( EscherProperty prop ){properties.add( prop );} | public void AddEscherProperty(EscherProperty prop){properties.Add(prop);} |
public String toString() {StringBuilder sb = new StringBuilder();sb.append("[").append("USERSVIEWBEGIN").append("] (0x");sb.append(Integer.toHexString(sid).toUpperCase(Locale.ROOT)).append(")\n");sb.append(" rawData=").append(HexDump.toHex(_rawData)).append("\n");sb.append("[/").append("USERSVIEWBEGIN").append("]\n");return sb.toString();} | public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[").Append("USERSVIEWBEGIN").Append("] (0x");sb.Append(StringUtil.ToHexString(sid).ToUpper() + ")\n");sb.Append(" rawData=").Append(HexDump.ToHex(_rawData)).Append("\n");sb.Append("[/").Append("USERSVIEWBEGIN").Append("]\n");return sb.ToString();} |
public String group(int group) {ensureMatch();int from = matchOffsets[group * 2];int to = matchOffsets[(group * 2) + 1];if (from == -1 || to == -1) {return null;} else {return input.substring(from, to);}} | public string group(int group_1){ensureMatch();int from = matchOffsets[group_1 * 2];int to = matchOffsets[(group_1 * 2) + 1];if (from == -1 || to == -1){return null;}else{return Sharpen.StringHelper.Substring(input, from, to);}} |
public void removeCompany() {remove1stProperty(PropertyIDMap.PID_COMPANY);} | public void RemoveCompany(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_COMPANY);} |
public RevFilter clone() {final RevFilter[] s = new RevFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);} | public override RevFilter Clone(){RevFilter[] s = new RevFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new OrRevFilter.List(s);} |
public static Charset defaultCharset() {return DEFAULT_CHARSET;} | public static java.nio.charset.Charset defaultCharset(){return DEFAULT_CHARSET;} |
public void removeName(Name name) {int index = getNameIndex((HSSFName) name);removeName(index);} | public void RemoveName(HSSFName name){int index = GetNameIndex(name);RemoveName(index);} |
public AttributeValueUpdate(AttributeValue value, AttributeAction action) {setValue(value);setAction(action.toString());} | public AttributeValueUpdate(AttributeValue value, AttributeAction action){_value = value;_action = action;} |
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[FOOTER]\n");buffer.append(" .footer = ").append(getText()).append("\n");buffer.append("[/FOOTER]\n");return buffer.toString();} | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[FOOTER]\n");buffer.Append(" .footer = ").Append(this.Text).Append("\n");buffer.Append("[/FOOTER]\n");return buffer.ToString();} |
public DisassociateSkillFromSkillGroupResult disassociateSkillFromSkillGroup(DisassociateSkillFromSkillGroupRequest request) {request = beforeClientExecution(request);return executeDisassociateSkillFromSkillGroup(request);} | public virtual DisassociateSkillFromSkillGroupResponse DisassociateSkillFromSkillGroup(DisassociateSkillFromSkillGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateSkillFromSkillGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateSkillFromSkillGroupResponseUnmarshaller.Instance;return Invoke<DisassociateSkillFromSkillGroupResponse>(request, options);} |
public String toString(String field) {StringBuilder buffer = new StringBuilder();if (!getField().equals(field)) {buffer.append(getField());buffer.append(':');}buffer.append(term.text());buffer.append('*');return buffer.toString();} | public override string ToString(string field){StringBuilder buffer = new StringBuilder();if (!Field.Equals(field, StringComparison.Ordinal)){buffer.Append(Field);buffer.Append(":");}buffer.Append(_prefix.Text());buffer.Append('*');buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();} |
public NameRecord getNameRecord(int index) {return _definedNames.get(index);} | public NameRecord GetNameRecord(int index){return (NameRecord)_definedNames[index];} |
public BottomMarginRecord clone() {return copy();} | public override Object Clone(){BottomMarginRecord rec = new BottomMarginRecord();rec.field_1_margin = this.field_1_margin;return rec;} |
@Override public V setValue(V object) {throw new UnsupportedOperationException();} | public virtual V setValue(V @object){throw new System.NotSupportedException();} |
public QuadPrefixTree(SpatialContext ctx, Rectangle bounds, int maxLevels) {super(ctx, maxLevels);this.xmin = bounds.getMinX();this.xmax = bounds.getMaxX();this.ymin = bounds.getMinY();this.ymax = bounds.getMaxY();levelW = new double[maxLevels + 1];levelH = new double[maxLevels + 1];gridW = xmax - xmin;gridH = ymax - ymin;this.xmid = xmin + gridW/2.0;this.ymid = ymin + gridH/2.0;levelW[0] = gridW/2.0;levelH[0] = gridH/2.0;for (int i = 1; i < levelW.length; i++) {levelW[i] = levelW[i - 1] / 2.0;levelH[i] = levelH[i - 1] / 2.0;}} | public QuadPrefixTree(SpatialContext ctx, IRectangle bounds, int maxLevels): base(ctx, maxLevels){xmin = bounds.MinX;xmax = bounds.MaxX;ymin = bounds.MinY;ymax = bounds.MaxY;levelW = new double[maxLevels];levelH = new double[maxLevels];levelS = new int[maxLevels];levelN = new int[maxLevels];gridW = xmax - xmin;gridH = ymax - ymin;this.xmid = xmin + gridW / 2.0;this.ymid = ymin + gridH / 2.0;levelW[0] = gridW / 2.0;levelH[0] = gridH / 2.0;levelS[0] = 2;levelN[0] = 4;for (int i = 1; i < levelW.Length; i++){levelW[i] = levelW[i - 1] / 2.0;levelH[i] = levelH[i - 1] / 2.0;levelS[i] = levelS[i - 1] * 2;levelN[i] = levelN[i - 1] * 4;}} |
public static HSSFAnchor createAnchorFromEscher(EscherContainerRecord container){if (null != container.getChildById(EscherChildAnchorRecord.RECORD_ID)){return new HSSFChildAnchor(container.getChildById(EscherChildAnchorRecord.RECORD_ID));} else {if (null != container.getChildById(EscherClientAnchorRecord.RECORD_ID)){return new HSSFClientAnchor(container.getChildById(EscherClientAnchorRecord.RECORD_ID));}return null;}} | public static HSSFAnchor CreateAnchorFromEscher(EscherContainerRecord container){if (null != container.GetChildById(EscherChildAnchorRecord.RECORD_ID)){return new HSSFChildAnchor((EscherChildAnchorRecord)container.GetChildById(EscherChildAnchorRecord.RECORD_ID));}else{if (null != container.GetChildById(EscherClientAnchorRecord.RECORD_ID)){return new HSSFClientAnchor((EscherClientAnchorRecord)container.GetChildById(EscherClientAnchorRecord.RECORD_ID));}return null;}} |
public void reset() {if ( _input !=null ) {_input.seek(0); }_token = null;_type = Token.INVALID_TYPE;_channel = Token.DEFAULT_CHANNEL;_tokenStartCharIndex = -1;_tokenStartCharPositionInLine = -1;_tokenStartLine = -1;_text = null;_hitEOF = false;_mode = Lexer.DEFAULT_MODE;_modeStack.clear();getInterpreter().reset();} | public virtual void Reset(){if (_input != null){_input.Seek(0);}_token = null;_type = TokenConstants.InvalidType;_channel = TokenConstants.DefaultChannel;_tokenStartCharIndex = -1;_tokenStartColumn = -1;_tokenStartLine = -1;_text = null;_hitEOF = false;_mode = Antlr4.Runtime.Lexer.DEFAULT_MODE;_modeStack.Clear();Interpreter.Reset();} |
public ShortBuffer slice() {byteBuffer.limit(limit * SizeOf.SHORT);byteBuffer.position(position * SizeOf.SHORT);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());ShortBuffer result = new ShortToByteBufferAdapter(bb);byteBuffer.clear();return result;} | public override java.nio.ShortBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.ShortBuffer result = new java.nio.ShortToByteBufferAdapter(bb);byteBuffer.clear();return result;} |
public boolean isPackedGitMMAP() {return packedGitMMAP;} | public virtual bool IsPackedGitMMAP(){return packedGitMMAP;} |
public boolean equalsSameType(Object other) {assert exists || 0.0D == value;MutableValueDouble b = (MutableValueDouble)other;return value == b.value && exists == b.exists;} | public override bool EqualsSameType(object other){MutableValueDouble b = (MutableValueDouble)other;return Value == b.Value && Exists == b.Exists;} |
public PurchaseReservedInstancesOfferingResult purchaseReservedInstancesOffering(PurchaseReservedInstancesOfferingRequest request) {request = beforeClientExecution(request);return executePurchaseReservedInstancesOffering(request);} | public virtual PurchaseReservedInstancesOfferingResponse PurchaseReservedInstancesOffering(PurchaseReservedInstancesOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedInstancesOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedInstancesOfferingResponseUnmarshaller.Instance;return Invoke<PurchaseReservedInstancesOfferingResponse>(request, options);} |
public final char readChar() throws IOException {return (char) readShort();} | public virtual char readChar(){throw new System.NotImplementedException();} |
public AssociateRepositoryResult associateRepository(AssociateRepositoryRequest request) {request = beforeClientExecution(request);return executeAssociateRepository(request);} | public virtual AssociateRepositoryResponse AssociateRepository(AssociateRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateRepositoryResponseUnmarshaller.Instance;return Invoke<AssociateRepositoryResponse>(request, options);} |
public ImportApiKeysResult importApiKeys(ImportApiKeysRequest request) {request = beforeClientExecution(request);return executeImportApiKeys(request);} | public virtual ImportApiKeysResponse ImportApiKeys(ImportApiKeysRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportApiKeysRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportApiKeysResponseUnmarshaller.Instance;return Invoke<ImportApiKeysResponse>(request, options);} |
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_index_extern_sheet);out.writeInt(unused1);out.writeInt(unused2);} | public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_index_extern_sheet);out1.WriteInt(unused1);out1.WriteInt(unused2);} |
public Type getType() {return type;} | public virtual BinaryHunk.Type GetType(){return type;} |
public static Calendar getJavaCalendar(double date, boolean use1904windowing) {return getJavaCalendar(date, use1904windowing, null, false);} | public static DateTime GetJavaCalendar(double date, bool use1904windowing){return GetJavaCalendar(date, use1904windowing, false);} |
public DeleteSnapshotScheduleResult deleteSnapshotSchedule(DeleteSnapshotScheduleRequest request) {request = beforeClientExecution(request);return executeDeleteSnapshotSchedule(request);} | public virtual DeleteSnapshotScheduleResponse DeleteSnapshotSchedule(DeleteSnapshotScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSnapshotScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSnapshotScheduleResponseUnmarshaller.Instance;return Invoke<DeleteSnapshotScheduleResponse>(request, options);} |
public void writeProtectWorkbook( String password, String username ) {this.workbook.writeProtectWorkbook(password, username);} | public void WriteProtectWorkbook(String password, String username){this.workbook.WriteProtectWorkbook(password, username);} |
public CreateCloudFormationStackResult createCloudFormationStack(CreateCloudFormationStackRequest request) {request = beforeClientExecution(request);return executeCreateCloudFormationStack(request);} | public virtual CreateCloudFormationStackResponse CreateCloudFormationStack(CreateCloudFormationStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCloudFormationStackRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCloudFormationStackResponseUnmarshaller.Instance;return Invoke<CreateCloudFormationStackResponse>(request, options);} |
public void writeByte(byte b) throws IOException {assert bufferPos == buffer.position(): "bufferPos=" + bufferPos + " vs buffer.position()=" + buffer.position();buffer.put(b);if (++bufferPos == bufferSize) {dump();}} | public void writeByte(sbyte b) throws IOException{Debug.Assert(bufferPos == buffer.position(), "bufferPos=" + bufferPos + " vs buffer.position()=" + buffer.position());buffer.put(b);if (++bufferPos == bufferSize){dump();}} |
public ExtendedFormatRecord(RecordInputStream in) {field_1_font_index = in.readShort();field_2_format_index = in.readShort();field_3_cell_options = in.readShort();field_4_alignment_options = in.readShort();field_5_indention_options = in.readShort();field_6_border_options = in.readShort();field_7_palette_options = in.readShort();field_8_adtl_palette_options = in.readInt();field_9_fill_palette_options = in.readShort();} | public ExtendedFormatRecord(RecordInputStream in1){field_1_font_index = in1.ReadShort();field_2_format_index = in1.ReadShort();field_3_cell_options = in1.ReadShort();field_4_alignment_options = in1.ReadShort();field_5_indention_options = in1.ReadShort();field_6_border_options = in1.ReadShort();field_7_palette_options = in1.ReadShort();field_8_adtl_palette_options = in1.ReadInt();field_9_fill_palette_options = in1.ReadShort();} |
public int getExternalSheetIndex(String workbookName, String sheetName) {return _iBook.getExternalSheetIndex(workbookName, sheetName);} | public int GetExternalSheetIndex(String workbookName, String sheetName){return _iBook.GetExternalSheetIndex(workbookName, sheetName);} |
public HSSFObjectData(EscherContainerRecord spContainer, ObjRecord objRecord, DirectoryEntry _root) {super(spContainer, objRecord);this._root = _root;} | public HSSFObjectData(EscherContainerRecord spContainer, ObjRecord objRecord, DirectoryEntry _root): base(spContainer, objRecord){this._root = _root;} |
public long ramBytesUsed() {return super.ramBytesUsed()+ offsets.ramBytesUsed()+ lengths.ramBytesUsed()+ RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ 2 * Integer.BYTES+ 3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF+ values.bytes().length;} | public virtual long RamBytesUsed(){long bytesUsed = RamUsageEstimator.AlignObjectSize(BaseRamBytesUsed()) + (pending != null ? RamUsageEstimator.SizeOf(pending) : 0L) + RamUsageEstimator.AlignObjectSize(RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + (long)RamUsageEstimator.NUM_BYTES_OBJECT_REF * values.Length); return bytesUsed + valuesBytes;} |
public UpdateApnsVoipChannelResult updateApnsVoipChannel(UpdateApnsVoipChannelRequest request) {request = beforeClientExecution(request);return executeUpdateApnsVoipChannel(request);} | public virtual UpdateApnsVoipChannelResponse UpdateApnsVoipChannel(UpdateApnsVoipChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApnsVoipChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApnsVoipChannelResponseUnmarshaller.Instance;return Invoke<UpdateApnsVoipChannelResponse>(request, options);} |
public String[] getNames() {return nameValPairs.keySet().toArray(new String[0]);} | public virtual string[] GetNames(){return nameValPairs.Keys.ToArray();} |
public DeleteAutoSnapshotResult deleteAutoSnapshot(DeleteAutoSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteAutoSnapshot(request);} | public virtual DeleteAutoSnapshotResponse DeleteAutoSnapshot(DeleteAutoSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAutoSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAutoSnapshotResponseUnmarshaller.Instance;return Invoke<DeleteAutoSnapshotResponse>(request, options);} |
public int getLowIx() {return _lowIx;} | public int GetLowIx(){return _lowIx;} |
public DescribeSubscribedWorkteamResult describeSubscribedWorkteam(DescribeSubscribedWorkteamRequest request) {request = beforeClientExecution(request);return executeDescribeSubscribedWorkteam(request);} | public virtual DescribeSubscribedWorkteamResponse DescribeSubscribedWorkteam(DescribeSubscribedWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSubscribedWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSubscribedWorkteamResponseUnmarshaller.Instance;return Invoke<DescribeSubscribedWorkteamResponse>(request, options);} |
public DeleteVpnGatewayResult deleteVpnGateway(DeleteVpnGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteVpnGateway(request);} | public virtual DeleteVpnGatewayResponse DeleteVpnGateway(DeleteVpnGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpnGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpnGatewayResponseUnmarshaller.Instance;return Invoke<DeleteVpnGatewayResponse>(request, options);} |
public boolean get(int index) {return intSet.exists(index);} | public virtual bool Get(int index){return intSet.Exists(index);} |
public String constantName() {return constantName;} | public virtual string constantName(){return _constantName;} |
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_formatIndex);} | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_formatIndex);} |
public boolean isEmpty() {return size() == 0;} | public virtual bool isEmpty(){return size() == 0;} |
Subsets and Splits