java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public void remove(int key) {delete(key);} | public virtual void remove(int key){delete(key);} |
public ShortBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());ShortToByteBufferAdapter buf = new ShortToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;} | public override java.nio.ShortBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.ShortToByteBufferAdapter buf = new java.nio.ShortToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;} |
public void addDbcell(int cell){if (field_5_dbcells == null){field_5_dbcells = new IntList();}field_5_dbcells.add(cell);} | public void AddDbcell(int cell){if (field_5_dbcells == null){field_5_dbcells = new IntList();}field_5_dbcells.Add(cell);} |
public DeleteSubnetResult deleteSubnet(DeleteSubnetRequest request) {request = beforeClientExecution(request);return executeDeleteSubnet(request);} | public virtual DeleteSubnetResponse DeleteSubnet(DeleteSubnetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSubnetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSubnetResponseUnmarshaller.Instance;return Invoke<DeleteSubnetResponse>(request, options);} |
public List<HSSFPictureData> getAllPictures(){List<HSSFPictureData> pictures = new ArrayList<>();for (org.apache.poi.hssf.record.Record r : workbook.getRecords()) {if (r instanceof AbstractEscherHolderRecord) {((AbstractEscherHolderRecord) r).decode();List<EscherRecord> escherRecords = ((AbstractEscherHolderRecord) r).getEscherRecords();searchForPictures(escherRecords, pictures);}}return Collections.unmodifiableList(pictures);} | public IList GetAllPictures(){List<HSSFPictureData> pictures = new List<HSSFPictureData>();IEnumerator recordIter = workbook.Records.GetEnumerator();while (recordIter.MoveNext()){Object obj = recordIter.Current;if (obj is AbstractEscherHolderRecord){((AbstractEscherHolderRecord)obj).Decode();IList escherRecords = ((AbstractEscherHolderRecord)obj).EscherRecords;SearchForPictures(escherRecords, pictures);}}return pictures;} |
public DescribeWorkspacesConnectionStatusResult describeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspacesConnectionStatus(request);} | public virtual DescribeWorkspacesConnectionStatusResponse DescribeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspacesConnectionStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspacesConnectionStatusResponseUnmarshaller.Instance;return Invoke<DescribeWorkspacesConnectionStatusResponse>(request, options);} |
public String toString() {return "MultiDocsAndPositionsEnum(" + Arrays.toString(getSubs()) + ")";} | public override string ToString(){return Slice.ToString() + ":" + DocsEnum;} |
public InvokeServiceAsyncRequest() {super("industry-brain", "2018-07-12", "InvokeServiceAsync");setMethod(MethodType.POST);} | public InvokeServiceAsyncRequest(): base("industry-brain", "2018-07-12", "InvokeServiceAsync"){Method = MethodType.POST;} |
public AuthorizeSecurityGroupIngressRequest(String groupName, java.util.List<IpPermission> ipPermissions) {setGroupName(groupName);setIpPermissions(ipPermissions);} | public AuthorizeSecurityGroupIngressRequest(string groupName, List<IpPermission> ipPermissions){_groupName = groupName;_ipPermissions = ipPermissions;} |
public static byte[] readData(InputStream stream, String section ) throws IOException {try {StringBuilder sectionText = new StringBuilder();boolean inSection = false;int c = stream.read();while ( c != -1 ) {switch ( c ) {case '[':inSection = true;break;case '\n':case '\r':inSection = false;sectionText = new StringBuilder();break;case ']':inSection = false;if ( sectionText.toString().equals( section ) ) return readData( stream, '[' );sectionText = new StringBuilder();break;default:if ( inSection ) sectionText.append( (char) c );}c = stream.read();}} finally {stream.close();}throw new IOException( "Section '" + section + "' not found" );} | public static byte[] ReadData(Stream stream, String section ){try{StringBuilder sectionText = new StringBuilder();bool inSection = false;int c = stream.ReadByte();while ( c != -1 ){switch ( c ){case '[':inSection = true;break;case '\n':case '\r':inSection = false;sectionText = new StringBuilder();break;case ']':inSection = false;if (sectionText.ToString().Equals(section)){return ReadData(stream, '[');}sectionText = new StringBuilder();break;default:if ( inSection ) sectionText.Append( (char) c );break;}c = stream.ReadByte();}}finally{stream.Close();}throw new IOException( "Section '" + section + "' not found" );} |
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE) {int number;try {number = OperandResolver.coerceValueToInt(numberVE);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}if (number < 0) {return ErrorEval.NUM_ERROR;}return new NumberEval(factorial(number).longValue());} | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE){int number;try{number = OperandResolver.CoerceValueToInt(numberVE);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (number < 0){return ErrorEval.NUM_ERROR;}return new NumberEval(factorial(number).LongValue());} |
public final LexerActionExecutor getLexerActionExecutor() {return lexerActionExecutor;} | public LexerActionExecutor getLexerActionExecutor(){return lexerActionExecutor;} |
public EnableUserResult enableUser(EnableUserRequest request) {request = beforeClientExecution(request);return executeEnableUser(request);} | public virtual EnableUserResponse EnableUser(EnableUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableUserRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableUserResponseUnmarshaller.Instance;return Invoke<EnableUserResponse>(request, options);} |
public void fillSlice(BytesRef b, long start, int length) {assert length >= 0: "length=" + length;assert length <= blockSize+1: "length=" + length;b.length = length;if (length == 0) {return;}final int index = (int) (start >> blockBits);final int offset = (int) (start & blockMask);if (blockSize - offset >= length) {b.bytes = blocks[index];b.offset = offset;} else {b.bytes = new byte[length];b.offset = 0;System.arraycopy(blocks[index], offset, b.bytes, 0, blockSize-offset);System.arraycopy(blocks[1+index], 0, b.bytes, blockSize-offset, length-(blockSize-offset));}} | public void FillSlice(BytesRef b, long start, int length){Debug.Assert(length >= 0, "length=" + length);Debug.Assert(length <= blockSize + 1, "length=" + length);b.Length = length;if (length == 0){return;}var index = (int)(start >> blockBits);var offset = (int)(start & blockMask);if (blockSize - offset >= length){b.Bytes = blocks[index];b.Offset = offset;}else{b.Bytes = new byte[length];b.Offset = 0;Array.Copy(blocks[index], offset, b.Bytes, 0, blockSize - offset);Array.Copy(blocks[1 + index], 0, b.Bytes, blockSize - offset, length - (blockSize - offset));}} |
public DescribeJournalS3ExportResult describeJournalS3Export(DescribeJournalS3ExportRequest request) {request = beforeClientExecution(request);return executeDescribeJournalS3Export(request);} | public virtual DescribeJournalS3ExportResponse DescribeJournalS3Export(DescribeJournalS3ExportRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeJournalS3ExportRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeJournalS3ExportResponseUnmarshaller.Instance;return Invoke<DescribeJournalS3ExportResponse>(request, options);} |
public void setCoordinates(int x1, int y1, int x2, int y2) {_spgrRecord.setRectY1(y1);_spgrRecord.setRectY2(y2);_spgrRecord.setRectX1(x1);_spgrRecord.setRectX2(x2);} | public void SetCoordinates(int x1, int y1, int x2, int y2){_spgrRecord.RectY1 = (y1);_spgrRecord.RectY2 = (y2);_spgrRecord.RectX1 = (x1);_spgrRecord.RectX2 = (x2);} |
public DescribeTagsResult describeTags(DescribeTagsRequest request) {request = beforeClientExecution(request);return executeDescribeTags(request);} | public virtual DescribeTagsResponse DescribeTags(DescribeTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance;return Invoke<DescribeTagsResponse>(request, options);} |
public int doLogic() {return 1;} | public override int DoLogic(){return 1;} |
public DeleteCustomerGatewayResult deleteCustomerGateway(DeleteCustomerGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteCustomerGateway(request);} | public virtual DeleteCustomerGatewayResponse DeleteCustomerGateway(DeleteCustomerGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCustomerGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCustomerGatewayResponseUnmarshaller.Instance;return Invoke<DeleteCustomerGatewayResponse>(request, options);} |
public static Map newContext(IndexSearcher searcher) {Map context = new IdentityHashMap();context.put("searcher", searcher);return context;} | public static IDictionary NewContext(IndexSearcher searcher){return new Hashtable(IdentityEqualityComparer<object>.Default){["searcher"] = searcher};} |
public NameRecord getSpecificBuiltinRecord(byte builtInCode, int sheetNumber) {Iterator<NameRecord> iterator = _definedNames.iterator();while (iterator.hasNext()) {NameRecord record = iterator.next();if (record.getBuiltInName() == builtInCode && record.getSheetNumber() == sheetNumber) {return record;}}return null;} | public NameRecord GetSpecificBuiltinRecord(byte builtInCode, int sheetNumber){IEnumerator<NameRecord> iterator = _definedNames.GetEnumerator();while (iterator.MoveNext()){NameRecord record = iterator.Current;if (record.BuiltInName == builtInCode && record.SheetNumber == sheetNumber){return record;}}return null;} |
public final double readDouble() throws IOException {return Double.longBitsToDouble(readLong());} | public virtual double readDouble(){throw new System.NotImplementedException();} |
public void write(byte[] buffer, int offset, int count) throws IOException {super.write(buffer, offset, count);} | public override void write(byte[] buffer, int offset, int count){throw new System.NotImplementedException();} |
public TokenStream create(TokenStream input) {return new PersianNormalizationFilter(input);} | public override TokenStream Create(TokenStream input){return new PersianNormalizationFilter(input);} |
public SpanishLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public SpanishLightStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
public SmallDocSet(int size) {intSet = new SentinelIntSet(size, -1);} | public SmallDocSet(int size){intSet = new SentinelInt32Set(size, -1);} |
public RawCharSequence(byte[] buf, int start, int end) {buffer = buf;startPtr = start;endPtr = end;} | public RawCharSequence(byte[] buf, int start, int end){buffer = buf;startPtr = start;endPtr = end;} |
public GetCustomVerificationEmailTemplateResult getCustomVerificationEmailTemplate(GetCustomVerificationEmailTemplateRequest request) {request = beforeClientExecution(request);return executeGetCustomVerificationEmailTemplate(request);} | public virtual GetCustomVerificationEmailTemplateResponse GetCustomVerificationEmailTemplate(GetCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCustomVerificationEmailTemplateResponseUnmarshaller.Instance;return Invoke<GetCustomVerificationEmailTemplateResponse>(request, options);} |
public SendMessageBatchRequest(String queueUrl, java.util.List<SendMessageBatchRequestEntry> entries) {setQueueUrl(queueUrl);setEntries(entries);} | public SendMessageBatchRequest(string queueUrl, List<SendMessageBatchRequestEntry> entries){_queueUrl = queueUrl;_entries = entries;} |
public void writeInt(int v) {writeContinueIfRequired(4);_ulrOutput.writeInt(v);} | public void WriteInt(int v){WriteContinueIfRequired(4);_ulrOutput.WriteInt(v);} |
public DescribeDataSourcesResult describeDataSources(DescribeDataSourcesRequest request) {request = beforeClientExecution(request);return executeDescribeDataSources(request);} | public virtual DescribeDataSourcesResponse DescribeDataSources(DescribeDataSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSourcesResponseUnmarshaller.Instance;return Invoke<DescribeDataSourcesResponse>(request, options);} |
public ListRoomsResult listRooms(ListRoomsRequest request) {request = beforeClientExecution(request);return executeListRooms(request);} | public virtual ListRoomsResponse ListRooms(ListRoomsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRoomsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRoomsResponseUnmarshaller.Instance;return Invoke<ListRoomsResponse>(request, options);} |
public char getConversion() {return c;} | public virtual char getConversion(){return c;} |
public boolean equals(Object _other) {FieldAndTerm other = (FieldAndTerm) _other;return other.field.equals(field) && term.bytesEquals(other.term);} | public override bool Equals(object other){var o = (FieldAndTerm)other;return o.Field.Equals(Field, StringComparison.Ordinal) && Term.BytesEquals(o.Term);} |
public CreateConfigurationSetEventDestinationResult createConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest request) {request = beforeClientExecution(request);return executeCreateConfigurationSetEventDestination(request);} | public virtual CreateConfigurationSetEventDestinationResponse CreateConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationSetEventDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConfigurationSetEventDestinationResponseUnmarshaller.Instance;return Invoke<CreateConfigurationSetEventDestinationResponse>(request, options);} |
public Ole10Native(String label, String filename, String command, byte[] data) {setLabel(label);setFileName(filename);setCommand(command);setDataBuffer(data);mode = EncodingMode.parsed;} | public Ole10Native(String label, String filename, String command, byte[] data){Label=(label);FileName=(filename);Command=(command);DataBuffer=(data);mode = EncodingMode.parsed;} |
public String toString() {StringBuilder sb = new StringBuilder();if (fetchResult != null)sb.append(fetchResult.toString());elsesb.append("No fetch result");sb.append("\n");if (mergeResult != null)sb.append(mergeResult.toString());else if (rebaseResult != null)sb.append(rebaseResult.toString());elsesb.append("No update result");return sb.toString();} | public override string ToString(){StringBuilder sb = new StringBuilder();if (fetchResult != null){sb.Append(fetchResult.ToString());}else{sb.Append("No fetch result");}sb.Append("\n");if (mergeResult != null){sb.Append(mergeResult.ToString());}else{if (rebaseResult != null){sb.Append(rebaseResult.ToString());}else{sb.Append("No update result");}}return sb.ToString();} |
public static Cell createCell(Row row, int column, String value) {return createCell(row, column, value, null);} | public static ICell CreateCell(IRow row, int column, String value){return CreateCell(row, column, value, null);} |
public TokenStream create(TokenStream input) {return new HindiNormalizationFilter(input);} | public override TokenStream Create(TokenStream input){return new HindiNormalizationFilter(input);} |
public DescribeAddressesResult describeAddresses() {return describeAddresses(new DescribeAddressesRequest());} | public virtual DescribeAddressesResponse DescribeAddresses(){return DescribeAddresses(new DescribeAddressesRequest());} |
public SimpleQQParser(String qqName, String indexField) {this(new String[] { qqName }, indexField);} | public SimpleQQParser(string[] qqNames, string indexField){this.qqNames = qqNames;this.indexField = indexField;} |
public void dispatch(RefsChangedListener listener) {listener.onRefsChanged(this);} | public override void Dispatch(RefsChangedListener listener){listener.OnRefsChanged(this);} |
public SnowballFilter(TokenStream in, String name) {super(in);try {Class<? extends SnowballStemmer> stemClass =Class.forName("org.tartarus.snowball.ext." + name + "Stemmer").asSubclass(SnowballStemmer.class);stemmer = stemClass.getConstructor().newInstance();} catch (Exception e) {}} | public SnowballFilter(TokenStream @in, string name): base(@in){try{string className = typeof(SnowballProgram).Namespace + ".Ext." +name + "Stemmer, " + this.GetType().GetTypeInfo().Assembly.GetName().Name;Type stemClass = Type.GetType(className);stemmer = (SnowballProgram)Activator.CreateInstance(stemClass);}catch (Exception e){}} |
public UpgradeAppliedSchemaResult upgradeAppliedSchema(UpgradeAppliedSchemaRequest request) {request = beforeClientExecution(request);return executeUpgradeAppliedSchema(request);} | public virtual UpgradeAppliedSchemaResponse UpgradeAppliedSchema(UpgradeAppliedSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpgradeAppliedSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = UpgradeAppliedSchemaResponseUnmarshaller.Instance;return Invoke<UpgradeAppliedSchemaResponse>(request, options);} |
public String getParent() {int length = path.length(), firstInPath = 0;if (separatorChar == '\\' && length > 2 && path.charAt(1) == ':') {firstInPath = 2;}int index = path.lastIndexOf(separatorChar);if (index == -1 && firstInPath > 0) {index = 2;}if (index == -1 || path.charAt(length - 1) == separatorChar) {return null;}if (path.indexOf(separatorChar) == index&& path.charAt(firstInPath) == separatorChar) {return path.substring(0, index + 1);}return path.substring(0, index);} | public string getParent(){int length_1 = path.Length;int firstInPath = 0;if (separatorChar == '\\' && length_1 > 2 && path[1] == ':'){firstInPath = 2;}int index = path.LastIndexOf(separatorChar);if (index == -1 && firstInPath > 0){index = 2;}if (index == -1 || path[length_1 - 1] == separatorChar){return null;}if (path.IndexOf(separatorChar) == index && path[firstInPath] == separatorChar){return Sharpen.StringHelper.Substring(path, 0, index + 1);}return Sharpen.StringHelper.Substring(path, 0, index);} |
public BufferedChecksumIndexInput(IndexInput main) {super("BufferedChecksumIndexInput(" + main + ")");this.main = main;this.digest = new BufferedChecksum(new CRC32());} | public BufferedChecksumIndexInput(IndexInput main): base("BufferedChecksumIndexInput(" + main + ")"){this.main = main;this.digest = new BufferedChecksum(new CRC32());} |
public final void remove(RevFlagSet set) {flags &= ~set.mask;} | public void Remove(RevFlagSet set){flags &= ~set.mask;} |
public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;return true;} | public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}return true;} |
public GetFaceSearchResult getFaceSearch(GetFaceSearchRequest request) {request = beforeClientExecution(request);return executeGetFaceSearch(request);} | public virtual GetFaceSearchResponse GetFaceSearch(GetFaceSearchRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFaceSearchRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFaceSearchResponseUnmarshaller.Instance;return Invoke<GetFaceSearchResponse>(request, options);} |
public DescribeUserStackAssociationsResult describeUserStackAssociations(DescribeUserStackAssociationsRequest request) {request = beforeClientExecution(request);return executeDescribeUserStackAssociations(request);} | public virtual DescribeUserStackAssociationsResponse DescribeUserStackAssociations(DescribeUserStackAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUserStackAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUserStackAssociationsResponseUnmarshaller.Instance;return Invoke<DescribeUserStackAssociationsResponse>(request, options);} |
public void close() throws IOException {in.close();in = new ClosedInputStream();} | public override void close(){throw new System.NotImplementedException();} |
public CreateBranchCommand branchCreate() {return new CreateBranchCommand(repo);} | public virtual CreateBranchCommand BranchCreate(){return new CreateBranchCommand(repo);} |
public void serialize(LittleEndianOutput out) {out.writeShort(rt);out.writeShort(grbitFrt);out.writeShort(wOffset);out.writeShort(at);out.writeShort(grbit);if(unused != null)out.writeShort(unused);} | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteShort(wOffset);out1.WriteShort(at);out1.WriteShort(grbit);if (unused != null)out1.WriteShort((short)unused);} |
public StringBuilder insert(int offset, Object obj) {insert0(offset, obj == null ? "null" : obj.toString());return this;} | public java.lang.StringBuilder insert(int offset, object obj){insert0(offset, obj == null ? "null" : obj.ToString());return this;} |
public int next() {int res = child;if (child != TaxonomyReader.INVALID_ORDINAL) {child = siblings[child];}return res;} | public virtual int Next(){int res = child;if (child != TaxonomyReader.INVALID_ORDINAL){child = siblings[child];}return res;} |
public DeleteStackResult deleteStack(DeleteStackRequest request) {request = beforeClientExecution(request);return executeDeleteStack(request);} | public virtual DeleteStackResponse DeleteStack(DeleteStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStackRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStackResponseUnmarshaller.Instance;return Invoke<DeleteStackResponse>(request, options);} |
public NorwegianMinimalStemFilterFactory(Map<String,String> args) {super(args);String variant = get(args, "variant");if (variant == null || "nb".equals(variant)) {flags = BOKMAAL;} else if ("nn".equals(variant)) {flags = NYNORSK;} else if ("no".equals(variant)) {flags = BOKMAAL | NYNORSK;} else {throw new IllegalArgumentException("invalid variant: " + variant);}if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public NorwegianMinimalStemFilterFactory(IDictionary<string, string> args): base(args){string variant = Get(args, "variant");if (variant == null || "nb".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL;}else if ("nn".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.NYNORSK;}else if ("no".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL | NorwegianStandard.NYNORSK;}else{throw new System.ArgumentException("invalid variant: " + variant);}if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
public String toString() {return "Z(" + z + ")";} | public override string ToString(){return "Z(" + z + ")";} |
public static org.apache.poi.hssf.record.Record create(RecordInputStream in) {switch (in.remaining()) {case 0:return instance;case 2:return new InterfaceHdrRecord(in);}throw new RecordFormatException("Invalid record data size: " + in.remaining());} | public static Record Create(RecordInputStream in1){switch (in1.Remaining){case 0:return Instance;case 2:return new InterfaceHdrRecord(in1);}throw new RecordFormatException("Invalid record data size: " + in1.Remaining);} |
public int getCellsPnt() {int size = 0;for (Row row : rows)size += row.getCellsPnt();return size;} | public virtual int GetCellsPnt(){int size = 0;foreach (Row row in rows)size += row.GetCellsPnt();return size;} |
public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerActionExecutor)) {return false;}LexerActionExecutor other = (LexerActionExecutor)obj;return hashCode == other.hashCode&& Arrays.equals(lexerActions, other.lexerActions);} | public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerActionExecutor)){return false;}}Antlr4.Runtime.Atn.LexerActionExecutor other = (Antlr4.Runtime.Atn.LexerActionExecutor)obj;return hashCode == other.hashCode && Arrays.Equals(lexerActions, other.lexerActions);} |
public static final Analyzer createAnalyzer(String className) throws Exception{final Class<? extends Analyzer> clazz = Class.forName(className).asSubclass(Analyzer.class);try {Constructor<? extends Analyzer> cnstr = clazz.getConstructor(Version.class);return cnstr.newInstance(Version.LATEST);} catch (NoSuchMethodException nsme) {return clazz.getConstructor().newInstance();}} | public static Analyzer CreateAnalyzer(string className){Type clazz = Type.GetType(className);try{return (Analyzer)Activator.CreateInstance(clazz,LuceneVersion.LUCENE_CURRENT);}catch (MissingMethodException ){return (Analyzer)Activator.CreateInstance(clazz);}} |
public GetSegmentVersionsResult getSegmentVersions(GetSegmentVersionsRequest request) {request = beforeClientExecution(request);return executeGetSegmentVersions(request);} | public virtual GetSegmentVersionsResponse GetSegmentVersions(GetSegmentVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentVersionsResponseUnmarshaller.Instance;return Invoke<GetSegmentVersionsResponse>(request, options);} |
public int getDeltaBaseCacheLimit() {return deltaBaseCacheLimit;} | public virtual int GetDeltaBaseCacheLimit(){return deltaBaseCacheLimit;} |
public GroupMerger(Sort groupSort) {groupComp = new GroupComparator<>(groupSort);queue = new TreeSet<>(groupComp);groupsSeen = new HashMap<>();} | public GroupMerger(Sort groupSort){groupComp = new GroupComparer<T>(groupSort);queue = new JCG.SortedSet<MergedGroup<T>>(groupComp);groupsSeen = new JCG.Dictionary<T, MergedGroup<T>>();} |
public long get(int index) {final int o = index >>> 4;final int b = index & 15;final int shift = b << 2;return (blocks[o] >>> shift) & 15L;} | public override long Get(int index){int o = (int)((uint)index >> 4);int b = index & 15;int shift = b << 2;return ((long)((ulong)blocks[o] >> shift)) & 15L;} |
public FileIdCluster( int drawingGroupId, int numShapeIdsUsed ) {this.field_1_drawingGroupId = drawingGroupId;this.field_2_numShapeIdsUsed = numShapeIdsUsed;} | public FileIdCluster(int drawingGroupId, int numShapeIdsUsed){this.field_1_drawingGroupId = drawingGroupId;this.field_2_numShapeIdsUsed = numShapeIdsUsed;} |
public CharArrayIterator clone() {CharArrayIterator clone = new CharArrayIterator();clone.setText(array, start, length);clone.index = index;return clone;} | public override object Clone(){CharArrayIterator clone = new CharArrayIterator();clone.SetText(array, start, length);clone.index = index;return clone;} |
public DescribeReservedNodesResult describeReservedNodes(DescribeReservedNodesRequest request) {request = beforeClientExecution(request);return executeDescribeReservedNodes(request);} | public virtual DescribeReservedNodesResponse DescribeReservedNodes(DescribeReservedNodesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedNodesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedNodesResponseUnmarshaller.Instance;return Invoke<DescribeReservedNodesResponse>(request, options);} |
public ObjectWalk(Repository repo, int depth) {super(repo);this.depth = depth;this.deepenNots = Collections.emptyList();this.UNSHALLOW = newFlag("UNSHALLOW"); this.REINTERESTING = newFlag("REINTERESTING"); this.DEEPEN_NOT = newFlag("DEEPEN_NOT"); } | public ObjectWalk(Repository repo, int depth) : base(repo){this.depth = depth;this.UNSHALLOW = NewFlag("UNSHALLOW");this.REINTERESTING = NewFlag("REINTERESTING");} |
public boolean isRefLogDisabled() {return refLogMessage == null;} | public virtual bool IsRefLogDisabled(){return refLogMessage == null;} |
public SetLoadBalancerListenerSSLCertificateResult setLoadBalancerListenerSSLCertificate(SetLoadBalancerListenerSSLCertificateRequest request) {request = beforeClientExecution(request);return executeSetLoadBalancerListenerSSLCertificate(request);} | public virtual SetLoadBalancerListenerSSLCertificateResponse SetLoadBalancerListenerSSLCertificate(SetLoadBalancerListenerSSLCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetLoadBalancerListenerSSLCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = SetLoadBalancerListenerSSLCertificateResponseUnmarshaller.Instance;return Invoke<SetLoadBalancerListenerSSLCertificateResponse>(request, options);} |
public DescribeRulesPackagesResult describeRulesPackages(DescribeRulesPackagesRequest request) {request = beforeClientExecution(request);return executeDescribeRulesPackages(request);} | public virtual DescribeRulesPackagesResponse DescribeRulesPackages(DescribeRulesPackagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRulesPackagesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRulesPackagesResponseUnmarshaller.Instance;return Invoke<DescribeRulesPackagesResponse>(request, options);} |
public byte readByte() throws IOException {return primitiveTypes.readByte();} | public virtual byte readByte(){throw new System.NotImplementedException();} |
public String getConversion() {return s;} | public virtual string getConversion(){return s;} |
public StandardSyntaxParserTokenManager(CharStream stream, int lexState){this(stream);SwitchTo(lexState);} | public StandardSyntaxParserTokenManager(ICharStream stream, int lexState): this(stream){SwitchTo(lexState);} |
public TokenStream create(TokenStream input) {return new TurkishLowerCaseFilter(input);} | public override TokenStream Create(TokenStream input){return new TurkishLowerCaseFilter(input);} |
public String toString() {return "B";} | public override string ToString(){return "B";} |
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {return evaluate(srcRowIndex, srcColumnIndex, arg0, DEFAULT_ARG1);} | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){return Evaluate(srcRowIndex, srcColumnIndex, arg0, DEFAULT_ARG1);} |
public void doubleField(FieldInfo fieldInfo, double value) {doc.add(new StoredField(fieldInfo.name, value));} | public override void DoubleField(FieldInfo fieldInfo, double value){doc.Add(new StoredField(fieldInfo.Name, value));} |
public GetDistributionConfigRequest(String id) {setId(id);} | public GetDistributionConfigRequest(string id){_id = id;} |
public DescribeCacheSecurityGroupsResult describeCacheSecurityGroups() {return describeCacheSecurityGroups(new DescribeCacheSecurityGroupsRequest());} | public virtual DescribeCacheSecurityGroupsResponse DescribeCacheSecurityGroups(){return DescribeCacheSecurityGroups(new DescribeCacheSecurityGroupsRequest());} |
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {double d;try {ValueEval ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);d = OperandResolver.coerceValueToDouble(ve);} catch (EvaluationException e) {return e.getErrorEval();}if (d == 0.0) { return NumberEval.ZERO;}return new NumberEval(d / 100);} | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){double d0;try{ValueEval ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);d0 = OperandResolver.CoerceValueToDouble(ve);}catch (EvaluationException e){return e.GetErrorEval();}if (d0 == 0.0){ return NumberEval.ZERO;}return new NumberEval(d0 / 100);} |
public boolean containsCell(int rowIndex, int columnIndex) {if (columnIndex < _firstColumnIndex) {return false;}if (columnIndex > _lastColumnIndex) {return false;}if (rowIndex < _firstRowIndex) {return false;}if (rowIndex > _lastRowIndex) {return false;}return true;} | public bool ContainsCell(int rowIndex, int columnIndex){if (columnIndex < _firstColumnIndex){return false;}if (columnIndex > _lastColumnIndex){return false;}if (rowIndex < _firstRowIndex){return false;}if (rowIndex > _lastRowIndex){return false;}return true;} |
public GetSegmentVersionResult getSegmentVersion(GetSegmentVersionRequest request) {request = beforeClientExecution(request);return executeGetSegmentVersion(request);} | public virtual GetSegmentVersionResponse GetSegmentVersion(GetSegmentVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentVersionResponseUnmarshaller.Instance;return Invoke<GetSegmentVersionResponse>(request, options);} |
public final FloatBuffer put(float[] src, int srcOffset, int byteCount) {throw new ReadOnlyBufferException();} | public sealed override java.nio.FloatBuffer put(float[] src, int srcOffset, int byteCount){throw new java.nio.ReadOnlyBufferException();} |
public final IntBuffer put(int[] src) {return put(src, 0, src.length);} | public java.nio.IntBuffer put(int[] src){return put(src, 0, src.Length);} |
public SearchFaceRequest() {super("LinkFace", "2018-07-20", "SearchFace");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);} | public SearchFaceRequest(): base("LinkFace", "2018-07-20", "SearchFace"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;} |
public TagStreamResult tagStream(TagStreamRequest request) {request = beforeClientExecution(request);return executeTagStream(request);} | public virtual TagStreamResponse TagStream(TagStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = TagStreamResponseUnmarshaller.Instance;return Invoke<TagStreamResponse>(request, options);} |
public String getAccessKeyId() {return this.accessKeyId;} | public string GetAccessKeyId(){return AccessKeyId;} |
public ET previous() {if (expectedModCount == list.modCount) {if (link != list.voidLink) {lastLink = link;link = link.previous;pos--;return lastLink.data;}throw new NoSuchElementException();}throw new ConcurrentModificationException();} | public ET previous(){if (expectedModCount == list.modCount){if (link != list.voidLink){lastLink = link;link = link.previous;pos--;return lastLink.data;}throw new java.util.NoSuchElementException();}throw new java.util.ConcurrentModificationException();} |
public CreateLBCookieStickinessPolicyResult createLBCookieStickinessPolicy(CreateLBCookieStickinessPolicyRequest request) {request = beforeClientExecution(request);return executeCreateLBCookieStickinessPolicy(request);} | public virtual CreateLBCookieStickinessPolicyResponse CreateLBCookieStickinessPolicy(CreateLBCookieStickinessPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLBCookieStickinessPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLBCookieStickinessPolicyResponseUnmarshaller.Instance;return Invoke<CreateLBCookieStickinessPolicyResponse>(request, options);} |
public CreateDataSourceFromRDSResult createDataSourceFromRDS(CreateDataSourceFromRDSRequest request) {request = beforeClientExecution(request);return executeCreateDataSourceFromRDS(request);} | public virtual CreateDataSourceFromRDSResponse CreateDataSourceFromRDS(CreateDataSourceFromRDSRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataSourceFromRDSRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataSourceFromRDSResponseUnmarshaller.Instance;return Invoke<CreateDataSourceFromRDSResponse>(request, options);} |
public CreateReceiptFilterResult createReceiptFilter(CreateReceiptFilterRequest request) {request = beforeClientExecution(request);return executeCreateReceiptFilter(request);} | public virtual CreateReceiptFilterResponse CreateReceiptFilter(CreateReceiptFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReceiptFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReceiptFilterResponseUnmarshaller.Instance;return Invoke<CreateReceiptFilterResponse>(request, options);} |
public final byte get(int index) {checkIndex(index);return backingArray[offset + index];} | public sealed override byte get(int index){checkIndex(index);return backingArray[offset + index];} |
public CherryPickCommand include(AnyObjectId commit) {return include(commit.getName(), commit);} | public virtual NGit.Api.CherryPickCommand Include(Ref commit){CheckCallable();commits.AddItem(commit);return this;} |
public ATNDeserializationOptions() {this.verifyATN = true;this.generateRuleBypassTransitions = false;} | public ATNDeserializationOptions(){this.verifyATN = true;this.generateRuleBypassTransitions = false;this.optimize = true;} |
public ListIdentityPoliciesResult listIdentityPolicies(ListIdentityPoliciesRequest request) {request = beforeClientExecution(request);return executeListIdentityPolicies(request);} | public virtual ListIdentityPoliciesResponse ListIdentityPolicies(ListIdentityPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIdentityPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIdentityPoliciesResponseUnmarshaller.Instance;return Invoke<ListIdentityPoliciesResponse>(request, options);} |
public static boolean isValidCode(int errorCode) {for (FormulaError error : values()) {if (error.getCode() == errorCode) return true;if (error.getLongCode() == errorCode) return true;}return false;} | public static bool IsValidCode(int errorCode){foreach (FormulaError error in _values){if (error.Code == errorCode) return true;if (error.LongCode == errorCode) return true;}return false;} |
public RKRecord(RecordInputStream in) {super(in);field_4_rk_number = in.readInt();} | public RKRecord(RecordInputStream in1): base(in1){field_4_rk_number = in1.ReadInt();} |