java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public static Inflater get() {final Inflater r = getImpl();return r != null ? r : new Inflater(false);} | public static Inflater Get(){Inflater r = GetImpl();return r != null ? r : new Inflater(false);} |
public long get(int index) {checkIndex(index);return byteBuffer.getLong(index * SizeOf.LONG);} | public override long get(int index){checkIndex(index);return byteBuffer.getLong(index * libcore.io.SizeOf.LONG);} |
public IntervalSet complement(int minElement, int maxElement) {return this.complement(IntervalSet.of(minElement,maxElement));} | public virtual Antlr4.Runtime.Misc.IntervalSet Complement(int minElement, int maxElement){return this.Complement(Antlr4.Runtime.Misc.IntervalSet.Of(minElement, maxElement));} |
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("<sortedset" + ": \"").append(getField()).append("\">");if (getReverse()) buffer.append('!');if (missingValue != null) {buffer.append(" missingValue=");buffer.append(missingValue);}buffer.append(" selector=");buffer.append(selector);return buffer.toString();} | public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("<sortedset" + ": \"").Append(Field).Append("\">");if (IsReverse) buffer.Append('!');if (MissingValue != null){buffer.Append(" missingValue=");buffer.Append(MissingValue);}buffer.Append(" selector=");buffer.Append(selector);return buffer.ToString();} |
public DescribeTrafficMirrorSessionsResult describeTrafficMirrorSessions(DescribeTrafficMirrorSessionsRequest request) {request = beforeClientExecution(request);return executeDescribeTrafficMirrorSessions(request);} | public virtual DescribeTrafficMirrorSessionsResponse DescribeTrafficMirrorSessions(DescribeTrafficMirrorSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrafficMirrorSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrafficMirrorSessionsResponseUnmarshaller.Instance;return Invoke<DescribeTrafficMirrorSessionsResponse>(request, options);} |
public boolean isDirect() {return byteBuffer.isDirect();} | public override bool isDirect(){return byteBuffer.isDirect();} |
public Set<String> getConflicting() {return Collections.unmodifiableSet(diff.getConflicting());} | public virtual ICollection<string> GetConflicting(){return Sharpen.Collections.UnmodifiableSet(diff.GetConflicting());} |
public ListDeviceEventsResult listDeviceEvents(ListDeviceEventsRequest request) {request = beforeClientExecution(request);return executeListDeviceEvents(request);} | public virtual ListDeviceEventsResponse ListDeviceEvents(ListDeviceEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeviceEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeviceEventsResponseUnmarshaller.Instance;return Invoke<ListDeviceEventsResponse>(request, options);} |
@Override public boolean isEmpty() {return BoundedMap.this.isEmpty();} | public override bool isEmpty(){return this._enclosing.isEmpty();} |
public EscherSimpleProperty( short id, int propertyValue ) {super( id );this.propertyValue = propertyValue;} | public EscherSimpleProperty(short id, int propertyValue):base(id){this.propertyValue = propertyValue;} |
public PointPrefixTreeFieldCacheProvider(SpatialPrefixTree grid, String shapeField, int defaultSize) {super( shapeField, defaultSize );this.grid = grid;} | public PointPrefixTreeFieldCacheProvider(SpatialPrefixTree grid, string shapeField, int defaultSize): base(shapeField, defaultSize){this.grid = grid;} |
public void writeByte(byte b) {assert pos < limit;bytes[pos++] = b;} | public override void WriteByte(byte b){Debug.Assert(pos < limit);bytes[pos++] = b;} |
public DescribeTransitGatewayPeeringAttachmentsResult describeTransitGatewayPeeringAttachments(DescribeTransitGatewayPeeringAttachmentsRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGatewayPeeringAttachments(request);} | public virtual DescribeTransitGatewayPeeringAttachmentsResponse DescribeTransitGatewayPeeringAttachments(DescribeTransitGatewayPeeringAttachmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewayPeeringAttachmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewayPeeringAttachmentsResponseUnmarshaller.Instance;return Invoke<DescribeTransitGatewayPeeringAttachmentsResponse>(request, options);} |
public Set<Entry<String, Ref>> entrySet() {if (entrySet == null) {entrySet = new AbstractSet<Entry<String, Ref>>();}} | public override ICollection<KeyValuePair<string, Ref>> EntrySet(){if (entrySet == null){entrySet = new _AbstractSet_223(this);}return entrySet;} |
public final ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {try {return evaluateFunc(args, srcCellRow, srcCellCol);} catch (EvaluationException e) {return e.getErrorEval();}} | public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){try{return EvaluateFunc(args, srcCellRow, srcCellCol);}catch (EvaluationException e){return e.GetErrorEval();}} |
public CreateConfigurationTemplateRequest(String applicationName, String templateName) {setApplicationName(applicationName);setTemplateName(templateName);} | public CreateConfigurationTemplateRequest(string applicationName, string templateName){_applicationName = applicationName;_templateName = templateName;} |
public GetUsagePlansResult getUsagePlans(GetUsagePlansRequest request) {request = beforeClientExecution(request);return executeGetUsagePlans(request);} | public virtual GetUsagePlansResponse GetUsagePlans(GetUsagePlansRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUsagePlansRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUsagePlansResponseUnmarshaller.Instance;return Invoke<GetUsagePlansResponse>(request, options);} |
public static int serializePtgs(Ptg[] ptgs, byte[] array, int offset) {LittleEndianByteArrayOutputStream out = new LittleEndianByteArrayOutputStream(array, offset); List<Ptg> arrayPtgs = null;for (Ptg ptg : ptgs) {ptg.write(out);if (ptg instanceof ArrayPtg) {if (arrayPtgs == null) {arrayPtgs = new ArrayList<>(5);}arrayPtgs.add(ptg);}}if (arrayPtgs != null) {for (Ptg arrayPtg : arrayPtgs) {ArrayPtg p = (ArrayPtg) arrayPtg;p.writeTokenValueBytes(out);}}return out.getWriteIndex() - offset;} | public static int SerializePtgs(Ptg[] ptgs, byte[] array, int offset){int size = ptgs.Length;LittleEndianByteArrayOutputStream out1 = new LittleEndianByteArrayOutputStream(array, offset);ArrayList arrayPtgs = null;for (int k = 0; k < size; k++){Ptg ptg = ptgs[k];ptg.Write(out1);if (ptg is ArrayPtg){if (arrayPtgs == null){arrayPtgs = new ArrayList(5);}arrayPtgs.Add(ptg);}}if (arrayPtgs != null){for (int i = 0; i < arrayPtgs.Count; i++){ArrayPtg p = (ArrayPtg)arrayPtgs[i];p.WriteTokenValueBytes(out1);}}return out1.WriteIndex - offset; ;} |
public int size() {return lines.size() - 2;} | public override int Size(){return lines.Size() - 2;} |
public NumberRecord(RecordInputStream in) {super(in);field_4_value = in.readDouble();} | public NumberRecord(RecordInputStream in1):base(in1){field_4_value = in1.ReadDouble();} |
public UnpeerVpcResult unpeerVpc(UnpeerVpcRequest request) {request = beforeClientExecution(request);return executeUnpeerVpc(request);} | public virtual UnpeerVpcResponse UnpeerVpc(UnpeerVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnpeerVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = UnpeerVpcResponseUnmarshaller.Instance;return Invoke<UnpeerVpcResponse>(request, options);} |
public DescribeTransitGatewayMulticastDomainsResult describeTransitGatewayMulticastDomains(DescribeTransitGatewayMulticastDomainsRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGatewayMulticastDomains(request);} | public virtual DescribeTransitGatewayMulticastDomainsResponse DescribeTransitGatewayMulticastDomains(DescribeTransitGatewayMulticastDomainsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewayMulticastDomainsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewayMulticastDomainsResponseUnmarshaller.Instance;return Invoke<DescribeTransitGatewayMulticastDomainsResponse>(request, options);} |
public final Break getBreak(int main) {Integer rowKey = Integer.valueOf(main);return _breakMap.get(rowKey);} | public Break GetBreak(int main){return (Break)_breakMap[main];} |
public HSSFPatternFormatting getPatternFormatting(){return getPatternFormatting(false);} | public IPatternFormatting GetPatternFormatting(){return GetPatternFormatting(false);} |
public FileMode getMode(Side side) {return side == Side.OLD ? getOldMode() : getNewMode();} | public virtual FileMode GetMode(DiffEntry.Side side){return side == DiffEntry.Side.OLD ? GetOldMode() : GetNewMode();} |
public StringBuffer append(int i) {IntegralToString.appendInt(this, i);return this;} | public java.lang.StringBuffer append(bool b){return append(b ? "true" : "false");} |
public boolean requiresCommitBody() {return true;} | public override bool RequiresCommitBody(){return false;} |
public boolean remove(Object object) {Iterator<?> it = iterator();if (object != null) {while (it.hasNext()) {if (object.equals(it.next())) {it.remove();return true;}}} else {while (it.hasNext()) {if (it.next() == null) {it.remove();return true;}}}return false;} | public virtual bool remove(object @object){java.util.Iterator<E> it = iterator();if (@object != null){while (it.hasNext()){if (@object.Equals(it.next())){it.remove();return true;}}}else{while (it.hasNext()){if (it.next() == null){it.remove();return true;}}}return false;} |
public Object get(CharSequence key) {return trie.get(key);} | public virtual object Get(string key){return trie.Get(key);} |
public SubmoduleInitCommand submoduleInit() {return new SubmoduleInitCommand(repo);} | public virtual SubmoduleInitCommand SubmoduleInit(){return new SubmoduleInitCommand(repo);} |
public GetRepositoryPolicyResult getRepositoryPolicy(GetRepositoryPolicyRequest request) {request = beforeClientExecution(request);return executeGetRepositoryPolicy(request);} | public virtual GetRepositoryPolicyResponse GetRepositoryPolicy(GetRepositoryPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRepositoryPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRepositoryPolicyResponseUnmarshaller.Instance;return Invoke<GetRepositoryPolicyResponse>(request, options);} |
public HSSFPicture createPicture(ClientAnchor anchor, int pictureIndex) {return createPicture((HSSFClientAnchor) anchor, pictureIndex);} | public IPicture CreatePicture(IClientAnchor anchor, int pictureIndex){return CreatePicture((HSSFClientAnchor)anchor, pictureIndex);} |
public int fillFields(byte[] data, int pOffset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader(data, pOffset);int bytesWritten = 8;int offset = pOffset + 8;while (bytesRemaining > 0 && offset < data.length) {EscherRecord child = recordFactory.createRecord(data, offset);int childBytesWritten = child.fillFields(data, offset, recordFactory);bytesWritten += childBytesWritten;offset += childBytesWritten;bytesRemaining -= childBytesWritten;addChildRecord(child);if (offset >= data.length && bytesRemaining > 0) {_remainingLength = bytesRemaining;if (log.check(POILogger.WARN)) {log.log(POILogger.WARN, "Not enough Escher data: " + bytesRemaining + " bytes remaining but no space left");}}}return bytesWritten;} | public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int bytesWritten = 8;offset += 8;while (bytesRemaining > 0 && offset < data.Length){EscherRecord child = recordFactory.CreateRecord(data, offset);int childBytesWritten = child.FillFields(data, offset, recordFactory);bytesWritten += childBytesWritten;offset += childBytesWritten;bytesRemaining -= childBytesWritten;AddChildRecord(child);if (offset >= data.Length && bytesRemaining > 0){_remainingLength = bytesRemaining;log.Log(POILogger.WARN, "Not enough Escher data: " + bytesRemaining + " bytes remaining but no space left");}}return bytesWritten;} |
public void startElement(String namespace, String simple, String qualified,Attributes attributes) {int elemType = getElementType(qualified);switch (elemType) {case PAGE:title = null;body = null;time = null;id = null;break;case BODY:case DATE:case TITLE:case ID:contents.setLength(0);break;default:}} | public override void StartElement(string @namespace, string simple, string qualified,IAttributes attributes){int elemType = GetElementType(qualified);switch (elemType){case PAGE:title = null;body = null;time = null;id = null;break;case BODY:case DATE:case TITLE:case ID:contents.Length = 0;break;default:break;}} |
public AbbreviatedObjectId abbreviate(int len) {final int a = AbbreviatedObjectId.mask(len, 1, w1);final int b = AbbreviatedObjectId.mask(len, 2, w2);final int c = AbbreviatedObjectId.mask(len, 3, w3);final int d = AbbreviatedObjectId.mask(len, 4, w4);final int e = AbbreviatedObjectId.mask(len, 5, w5);return new AbbreviatedObjectId(len, a, b, c, d, e);} | public virtual AbbreviatedObjectId Abbreviate(int len){int a = AbbreviatedObjectId.Mask(len, 1, w1);int b = AbbreviatedObjectId.Mask(len, 2, w2);int c = AbbreviatedObjectId.Mask(len, 3, w3);int d = AbbreviatedObjectId.Mask(len, 4, w4);int e = AbbreviatedObjectId.Mask(len, 5, w5);return new AbbreviatedObjectId(len, a, b, c, d, e);} |
public String toString() {return "{"+precedence+">=prec}?";} | public override string ToString(){return "{" + precedence + ">=prec}?";} |
public IntBuffer put(IntBuffer buf) {throw new ReadOnlyBufferException();} | public override java.nio.IntBuffer put(java.nio.IntBuffer buf){throw new java.nio.ReadOnlyBufferException();} |
public static PathSuffixFilter create(String path) {if (path.length() == 0)throw new IllegalArgumentException(JGitText.get().emptyPathNotPermitted);return new PathSuffixFilter(path);} | public static NGit.Treewalk.Filter.PathSuffixFilter Create(string path){if (path.Length == 0){throw new ArgumentException(JGitText.Get().emptyPathNotPermitted);}return new NGit.Treewalk.Filter.PathSuffixFilter(path);} |
public static Cell getCell(Row row, int columnIndex) {Cell cell = row.getCell(columnIndex);if (cell == null) {cell = row.createCell(columnIndex);}return cell;} | public static ICell GetCell(IRow row, int columnIndex){ICell cell = row.GetCell(columnIndex);if (cell == null){cell = row.CreateCell(columnIndex);}return cell;} |
public void write(ByteBuffer src, long position) {long endPosition = position + src.capacity();if(endPosition > buffer.length) {extend(endPosition);}src.get(buffer, (int)position, src.capacity());if(endPosition > size) {size = endPosition;}} | public override void Write(ByteBuffer src, long position){long endPosition = position + src.Length;if (endPosition > buffer.Length){Extend(endPosition);}src.Read(buffer, (int)position, src.Length);if (endPosition > size){size = endPosition;}} |
public void print(int i) {print(String.valueOf(i));} | public virtual void print(int i){print(i.ToString());} |
public ICUNormalizer2CharFilterFactory(Map<String,String> args) {super(args);String form = get(args, "form", "nfkc_cf");String mode = get(args, "mode", Arrays.asList("compose", "decompose"), "compose");Normalizer2 normalizer = Normalizer2.getInstance(null, form, "compose".equals(mode) ? Normalizer2.Mode.COMPOSE : Normalizer2.Mode.DECOMPOSE);String filter = get(args, "filter");if (filter != null) {UnicodeSet set = new UnicodeSet(filter);if (!set.isEmpty()) {set.freeze();normalizer = new FilteredNormalizer2(normalizer, set);}}if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}this.normalizer = normalizer;} | public ICUNormalizer2CharFilterFactory(IDictionary<string, string> args): base(args){string name = Get(args, "name", "nfkc_cf");string mode = Get(args, "mode", new string[] { "compose", "decompose" }, "compose");Normalizer2 normalizer = Normalizer2.GetInstance(null, name, "compose".Equals(mode, StringComparison.Ordinal) ? Normalizer2Mode.Compose : Normalizer2Mode.Decompose);string filter = Get(args, "filter");if (filter != null){UnicodeSet set = new UnicodeSet(filter);if (set.Any()){set.Freeze();normalizer = new FilteredNormalizer2(normalizer, set);}}if (args.Count > 0){throw new ArgumentException("Unknown parameters: " + args);}this.normalizer = normalizer;} |
public CreateAdditionalAssignmentsForHITResult createAdditionalAssignmentsForHIT(CreateAdditionalAssignmentsForHITRequest request) {request = beforeClientExecution(request);return executeCreateAdditionalAssignmentsForHIT(request);} | public virtual CreateAdditionalAssignmentsForHITResponse CreateAdditionalAssignmentsForHIT(CreateAdditionalAssignmentsForHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAdditionalAssignmentsForHITRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAdditionalAssignmentsForHITResponseUnmarshaller.Instance;return Invoke<CreateAdditionalAssignmentsForHITResponse>(request, options);} |
public DeleteEventRequest() {super("CloudPhoto", "2017-07-11", "DeleteEvent", "cloudphoto");setProtocol(ProtocolType.HTTPS);} | public DeleteEventRequest(): base("CloudPhoto", "2017-07-11", "DeleteEvent", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;} |
public long getSize() {return size;} | public override long GetSize(){return size;} |
public void undeprecateWorkflowType(UndeprecateWorkflowTypeRequest request) {request = beforeClientExecution(request);executeUndeprecateWorkflowType(request);} | public virtual UndeprecateWorkflowTypeResponse UndeprecateWorkflowType(UndeprecateWorkflowTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UndeprecateWorkflowTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = UndeprecateWorkflowTypeResponseUnmarshaller.Instance;return Invoke<UndeprecateWorkflowTypeResponse>(request, options);} |
public boolean removeValue(final int o){boolean rval = false;for (int j = 0; !rval && (j < _limit); j++){if (o == _array[ j ]){if (j+1 < _limit) {System.arraycopy(_array, j + 1, _array, j, _limit - j);}_limit--;rval = true;}}return rval;} | public bool RemoveValue(int o){bool rval = false;for (int j = 0; !rval && (j < _limit); j++){if (o == _array[j]){if (j + 1 < _limit){Array.Copy(_array, j + 1, _array, j, _limit - j);}_limit--;rval = true;}}return rval;} |
public String toString() {return new String(buf, 0, size());} | public override string ToString(){return new string(m_buf, 0, Length);} |
public void setDirCacheIterator(TreeWalk walk, int treeId) {state.walk = walk;state.dirCacheTree = treeId;} | public virtual void SetDirCacheIterator(TreeWalk walk, int treeId){state.walk = walk;state.dirCacheTree = treeId;} |
public DescribeOrganizationResult describeOrganization(DescribeOrganizationRequest request) {request = beforeClientExecution(request);return executeDescribeOrganization(request);} | public virtual DescribeOrganizationResponse DescribeOrganization(DescribeOrganizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOrganizationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOrganizationResponseUnmarshaller.Instance;return Invoke<DescribeOrganizationResponse>(request, options);} |
public CharsRef(int capacity) {chars = new char[capacity];} | public CharsRef(int capacity){chars = new char[capacity];} |
public RebootInstanceResult rebootInstance(RebootInstanceRequest request) {request = beforeClientExecution(request);return executeRebootInstance(request);} | public virtual RebootInstanceResponse RebootInstance(RebootInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootInstanceResponseUnmarshaller.Instance;return Invoke<RebootInstanceResponse>(request, options);} |
public static TreeFilter create(Collection<TreeFilter> list) {if (list.size() < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final TreeFilter[] subfilters = new TreeFilter[list.size()];list.toArray(subfilters);if (subfilters.length == 2)return create(subfilters[0], subfilters[1]);return new List(subfilters);} | public static TreeFilter Create(ICollection<TreeFilter> list){if (list.Count < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}TreeFilter[] subfilters = new TreeFilter[list.Count];Sharpen.Collections.ToArray(list, subfilters);if (subfilters.Length == 2){return Create(subfilters[0], subfilters[1]);}return new AndTreeFilter.List(subfilters);} |
public long ramBytesUsed() {long ramBytesUsed = BASE_RAM_BYTES_USED;ramBytesUsed += fields.size() * 2L * RamUsageEstimator.NUM_BYTES_OBJECT_REF;ramBytesUsed += formats.size() * 2L * RamUsageEstimator.NUM_BYTES_OBJECT_REF;for(Map.Entry<String,FieldsProducer> entry: formats.entrySet()) {ramBytesUsed += entry.getValue().ramBytesUsed();}return ramBytesUsed;} | public override long RamBytesUsed(){long size = 0;foreach (KeyValuePair<string, DocValuesProducer> entry in formats){size += (entry.Key.Length * RamUsageEstimator.NUM_BYTES_CHAR)+ entry.Value.RamBytesUsed();}return size;} |
public ExportApiResult exportApi(ExportApiRequest request) {request = beforeClientExecution(request);return executeExportApi(request);} | public virtual ExportApiResponse ExportApi(ExportApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportApiResponseUnmarshaller.Instance;return Invoke<ExportApiResponse>(request, options);} |
public void setExpectedOldObjectId(AnyObjectId id) {expValue = id != null ? id.toObjectId() : null;} | public virtual void SetExpectedOldObjectId(AnyObjectId id){expValue = id != null ? id.ToObjectId() : null;} |
public void skipBytes(long count) {pos += count;} | public override void SkipBytes(int count){pos += count;} |
public String toString(){return String.valueOf(_value);} | public override String ToString(){return Convert.ToString(_value, CultureInfo.CurrentCulture);} |
public boolean isPopupShowing() {return mPopup.isShowing();} | public virtual bool isPopupShowing(){return mPopup.isShowing();} |
public DBClusterSnapshot deleteDBClusterSnapshot(DeleteDBClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteDBClusterSnapshot(request);} | public virtual DeleteDBClusterSnapshotResponse DeleteDBClusterSnapshot(DeleteDBClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBClusterSnapshotResponseUnmarshaller.Instance;return Invoke<DeleteDBClusterSnapshotResponse>(request, options);} |
public Filter(String name, java.util.List<String> values) {setName(name);setValues(values);} | public Filter(string name, List<string> values){_name = name;_values = values;} |
public SearchRoomsResult searchRooms(SearchRoomsRequest request) {request = beforeClientExecution(request);return executeSearchRooms(request);} | public virtual SearchRoomsResponse SearchRooms(SearchRoomsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchRoomsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchRoomsResponseUnmarshaller.Instance;return Invoke<SearchRoomsResponse>(request, options);} |
public int read(byte[] buf, int off, int cnt) throws IOException {try {beginRead();return super.read(buf, off, cnt);} catch (InterruptedIOException e) {throw readTimedOut(e);} finally {endRead();}} | public override int Read(byte[] buf, int off, int cnt){try{BeginRead();return base.Read(buf, off, cnt);}catch (ThreadInterruptedException){throw ReadTimedOut();}finally{EndRead();}} |
public DeleteLoadBalancerTlsCertificateResult deleteLoadBalancerTlsCertificate(DeleteLoadBalancerTlsCertificateRequest request) {request = beforeClientExecution(request);return executeDeleteLoadBalancerTlsCertificate(request);} | public virtual DeleteLoadBalancerTlsCertificateResponse DeleteLoadBalancerTlsCertificate(DeleteLoadBalancerTlsCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLoadBalancerTlsCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLoadBalancerTlsCertificateResponseUnmarshaller.Instance;return Invoke<DeleteLoadBalancerTlsCertificateResponse>(request, options);} |
public static MessageDigest newMessageDigest() {try {return MessageDigest.getInstance(HASH_FUNCTION);} catch (NoSuchAlgorithmException nsae) {throw new RuntimeException(MessageFormat.format(JGitText.get().requiredHashFunctionNotAvailable, HASH_FUNCTION), nsae);}} | public static MessageDigest NewMessageDigest(){try{return MessageDigest.GetInstance(HASH_FUNCTION);}catch (NoSuchAlgorithmException nsae){throw new RuntimeException(MessageFormat.Format(JGitText.Get().requiredHashFunctionNotAvailable, HASH_FUNCTION), nsae);}} |
public IfFunction(ValueSource ifSource, ValueSource trueSource, ValueSource falseSource) {this.ifSource = ifSource;this.trueSource = trueSource;this.falseSource = falseSource;} | public IfFunction(ValueSource ifSource, ValueSource trueSource, ValueSource falseSource){this.ifSource = ifSource;this.trueSource = trueSource;this.falseSource = falseSource;} |
public static double npv(double r, double[] cfs) {double npv = 0;double r1 = r + 1;double trate = r1;for (int i=0, iSize=cfs.length; i<iSize; i++) {npv += cfs[i] / trate;trate *= r1;}return npv;} | public static double npv(double r, double[] cfs){double npv = 0;double r1 = r + 1;double trate = r1;for (int i = 0, iSize = cfs.Length; i < iSize; i++){npv += cfs[i] / trate;trate *= r1;}return npv;} |
public StandardQueryTreeBuilder() {setBuilder(GroupQueryNode.class, new GroupQueryNodeBuilder());setBuilder(FieldQueryNode.class, new FieldQueryNodeBuilder());setBuilder(BooleanQueryNode.class, new BooleanQueryNodeBuilder());setBuilder(FuzzyQueryNode.class, new FuzzyQueryNodeBuilder());setBuilder(PointQueryNode.class, new DummyQueryNodeBuilder());setBuilder(PointRangeQueryNode.class, new PointRangeQueryNodeBuilder());setBuilder(BoostQueryNode.class, new BoostQueryNodeBuilder());setBuilder(ModifierQueryNode.class, new ModifierQueryNodeBuilder());setBuilder(WildcardQueryNode.class, new WildcardQueryNodeBuilder());setBuilder(TokenizedPhraseQueryNode.class, new PhraseQueryNodeBuilder());setBuilder(MatchNoDocsQueryNode.class, new MatchNoDocsQueryNodeBuilder());setBuilder(PrefixWildcardQueryNode.class,new PrefixWildcardQueryNodeBuilder());setBuilder(TermRangeQueryNode.class, new TermRangeQueryNodeBuilder());setBuilder(RegexpQueryNode.class, new RegexpQueryNodeBuilder());setBuilder(SlopQueryNode.class, new SlopQueryNodeBuilder());setBuilder(SynonymQueryNode.class,new SynonymQueryNodeBuilder());setBuilder(MultiPhraseQueryNode.class, new MultiPhraseQueryNodeBuilder());setBuilder(MatchAllDocsQueryNode.class, new MatchAllDocsQueryNodeBuilder());} | public StandardQueryTreeBuilder(){SetBuilder(typeof(GroupQueryNode), new GroupQueryNodeBuilder());SetBuilder(typeof(FieldQueryNode), new FieldQueryNodeBuilder());SetBuilder(typeof(BooleanQueryNode), new BooleanQueryNodeBuilder());SetBuilder(typeof(FuzzyQueryNode), new FuzzyQueryNodeBuilder());SetBuilder(typeof(NumericQueryNode), new DummyQueryNodeBuilder());SetBuilder(typeof(NumericRangeQueryNode), new NumericRangeQueryNodeBuilder());SetBuilder(typeof(BoostQueryNode), new BoostQueryNodeBuilder());SetBuilder(typeof(ModifierQueryNode), new ModifierQueryNodeBuilder());SetBuilder(typeof(WildcardQueryNode), new WildcardQueryNodeBuilder());SetBuilder(typeof(TokenizedPhraseQueryNode), new PhraseQueryNodeBuilder());SetBuilder(typeof(MatchNoDocsQueryNode), new MatchNoDocsQueryNodeBuilder());SetBuilder(typeof(PrefixWildcardQueryNode),new PrefixWildcardQueryNodeBuilder());SetBuilder(typeof(TermRangeQueryNode), new TermRangeQueryNodeBuilder());SetBuilder(typeof(RegexpQueryNode), new RegexpQueryNodeBuilder());SetBuilder(typeof(SlopQueryNode), new SlopQueryNodeBuilder());SetBuilder(typeof(StandardBooleanQueryNode),new StandardBooleanQueryNodeBuilder());SetBuilder(typeof(MultiPhraseQueryNode), new MultiPhraseQueryNodeBuilder());SetBuilder(typeof(MatchAllDocsQueryNode), new MatchAllDocsQueryNodeBuilder());} |
public StringBuilder append(double d) {RealToString.getInstance().appendDouble(this, d);return this;} | public java.lang.StringBuilder append(bool b){append0(b ? "true" : "false");return this;} |
public Tag(String key, String value) {setKey(key);setValue(value);} | public Tag(string key, string value){_key = key;_value = value;} |
public FederatedUser(String federatedUserId, String arn) {setFederatedUserId(federatedUserId);setArn(arn);} | public FederatedUser(string federatedUserId, string arn){_federatedUserId = federatedUserId;_arn = arn;} |
public QueryRescorer(Query query) {this.query = query;} | public QueryRescorer(Query query){this.query = query;} |
public void setRule(int idx, HSSFConditionalFormattingRule cfRule) {cfAggregate.setRule(idx, cfRule.getCfRuleRecord());} | public void SetRule(int idx, HSSFConditionalFormattingRule cfRule){cfAggregate.SetRule(idx, cfRule.CfRuleRecord);} |
public RenameDetector getRenameDetector() {return renameDetector;} | public virtual RenameDetector GetRenameDetector(){return renameDetector;} |
public UpdateTemplatePermissionsResult updateTemplatePermissions(UpdateTemplatePermissionsRequest request) {request = beforeClientExecution(request);return executeUpdateTemplatePermissions(request);} | public virtual UpdateTemplatePermissionsResponse UpdateTemplatePermissions(UpdateTemplatePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTemplatePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTemplatePermissionsResponseUnmarshaller.Instance;return Invoke<UpdateTemplatePermissionsResponse>(request, options);} |
public DoubleBuffer put(int index, double c) {checkIndex(index);byteBuffer.putDouble(index * SizeOf.DOUBLE, c);return this;} | public override java.nio.DoubleBuffer put(int index, double c){checkIndex(index);byteBuffer.putDouble(index * libcore.io.SizeOf.DOUBLE, c);return this;} |
public ResetInstanceAttributeResult resetInstanceAttribute(ResetInstanceAttributeRequest request) {request = beforeClientExecution(request);return executeResetInstanceAttribute(request);} | public virtual ResetInstanceAttributeResponse ResetInstanceAttribute(ResetInstanceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetInstanceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetInstanceAttributeResponseUnmarshaller.Instance;return Invoke<ResetInstanceAttributeResponse>(request, options);} |
public DirectoryEntry getDirectory() throws IOException {EmbeddedObjectRefSubRecord subRecord = findObjectRecord();int streamId = subRecord.getStreamId().intValue();String streamName = "MBD" + HexDump.toHex(streamId);Entry entry = _root.getEntry(streamName);if (entry instanceof DirectoryEntry) {return (DirectoryEntry) entry;}throw new IOException("Stream " + streamName + " was not an OLE2 directory");} | public DirectoryEntry GetDirectory(){EmbeddedObjectRefSubRecord subRecord = FindObjectRecord();int? streamId = ((EmbeddedObjectRefSubRecord)subRecord).StreamId;String streamName = "MBD" + HexDump.ToHex((int)streamId);Entry entry = _root.GetEntry(streamName);if (entry is DirectoryEntry){return (DirectoryEntry)entry;}else{throw new IOException("Stream " + streamName + " was not an OLE2 directory");}} |
public HashMap(int capacity) {if (capacity < 0) {throw new IllegalArgumentException("Capacity: " + capacity);}if (capacity == 0) {@SuppressWarnings("unchecked")HashMapEntry<K, V>[] tab = (HashMapEntry<K, V>[]) EMPTY_TABLE;table = tab;threshold = -1; return;}if (capacity < MINIMUM_CAPACITY) {capacity = MINIMUM_CAPACITY;} else if (capacity > MAXIMUM_CAPACITY) {capacity = MAXIMUM_CAPACITY;} else {capacity = roundUpToPowerOfTwo(capacity);}makeTable(capacity);} | public HashMap(int capacity){if (capacity < 0){throw new System.ArgumentException("Capacity: " + capacity);}if (capacity == 0){java.util.HashMap.HashMapEntry<K, V>[] tab = (java.util.HashMap.HashMapEntry<K, V>[])EMPTY_TABLE;table = tab;threshold = -1;return;}if (capacity < java.util.HashMap.MINIMUM_CAPACITY){capacity = java.util.HashMap.MINIMUM_CAPACITY;}else{if (capacity > java.util.HashMap.MAXIMUM_CAPACITY){capacity = java.util.HashMap.MAXIMUM_CAPACITY;}else{capacity = roundUpToPowerOfTwo(capacity);}}makeTable(capacity);} |
public int getCachedErrorValue() {return specialCachedValue.getErrorValue();} | public int GetCachedErrorValue(){return specialCachedValue.GetErrorValue();} |
public void add(BytesRef utf8) throws IOException {if (writer == null) {throw new IllegalStateException();}writer.write(utf8);} | public virtual void Add(BytesRef utf8){if (writer == null){throw new InvalidOperationException();}writer.Write(utf8);} |
public UpdateHITReviewStatusResult updateHITReviewStatus(UpdateHITReviewStatusRequest request) {request = beforeClientExecution(request);return executeUpdateHITReviewStatus(request);} | public virtual UpdateHITReviewStatusResponse UpdateHITReviewStatus(UpdateHITReviewStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateHITReviewStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateHITReviewStatusResponseUnmarshaller.Instance;return Invoke<UpdateHITReviewStatusResponse>(request, options);} |
public ScandinavianNormalizationFilterFactory(Map<String, String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public ScandinavianNormalizationFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
public DBSnapshotAttributesResult describeDBSnapshotAttributes(DescribeDBSnapshotAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeDBSnapshotAttributes(request);} | public virtual DescribeDBSnapshotAttributesResponse DescribeDBSnapshotAttributes(DescribeDBSnapshotAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBSnapshotAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBSnapshotAttributesResponseUnmarshaller.Instance;return Invoke<DescribeDBSnapshotAttributesResponse>(request, options);} |
public GetNamespaceAuthorizationListRequest() {super("cr", "2016-06-07", "GetNamespaceAuthorizationList", "cr");setUriPattern("/namespace/[Namespace]/authorizations");setMethod(MethodType.GET);} | public GetNamespaceAuthorizationListRequest(): base("cr", "2016-06-07", "GetNamespaceAuthorizationList", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]/authorizations";Method = MethodType.GET;} |
public LowFreqTerm(int[] postings, byte[] payloads, int docFreq, int totalTermFreq) {this.postings = postings;this.payloads = payloads;this.docFreq = docFreq;this.totalTermFreq = totalTermFreq;} | public LowFreqTerm(int[] postings, byte[] payloads, int docFreq, int totalTermFreq){this.postings = postings;this.payloads = payloads;this.docFreq = docFreq;this.totalTermFreq = totalTermFreq;} |
public void reset() {state = null;consumed = true;keepOrig = false;matched = false;} | public void Reset(){state = null;consumed = true;keepOrig = false;matched = false;} |
public static final boolean isId(String id) {if (id.length() < 2 || Constants.OBJECT_ID_STRING_LENGTH < id.length())return false;try {for (int i = 0; i < id.length(); i++)RawParseUtils.parseHexInt4((byte) id.charAt(i));return true;} catch (ArrayIndexOutOfBoundsException e) {return false;}} | public static bool IsId(string id){if (id.Length < 2 || Constants.OBJECT_ID_STRING_LENGTH < id.Length){return false;}try{for (int i = 0; i < id.Length; i++){RawParseUtils.ParseHexInt4(unchecked((byte)id[i]));}return true;}catch (IndexOutOfRangeException){return false;}} |
public static int entrySize(FileMode mode, int nameLen) {return mode.copyToLength() + nameLen + OBJECT_ID_LENGTH + 2;} | public static int EntrySize(FileMode mode, int nameLen){return mode.CopyToLength() + nameLen + Constants.OBJECT_ID_LENGTH + 2;} |
public void exitEveryRule(ParserRuleContext ctx) {System.out.println("exit "+getRuleNames()[ctx.getRuleIndex()]+", LT(1)="+_input.LT(1).getText());} | public virtual void ExitEveryRule(ParserRuleContext ctx){Output.WriteLine("exit " + this._enclosing.RuleNames[ctx.RuleIndex] + ", LT(1)=" + this._enclosing._input.LT(1).Text);} |
public EventSubscription modifyEventSubscription(ModifyEventSubscriptionRequest request) {request = beforeClientExecution(request);return executeModifyEventSubscription(request);} | public virtual ModifyEventSubscriptionResponse ModifyEventSubscription(ModifyEventSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyEventSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyEventSubscriptionResponseUnmarshaller.Instance;return Invoke<ModifyEventSubscriptionResponse>(request, options);} |
public NormalizeCharMap build() {final FST<CharsRef> map;try {final Outputs<CharsRef> outputs = CharSequenceOutputs.getSingleton();final FSTCompiler<CharsRef> fstCompiler = new FSTCompiler<>(FST.INPUT_TYPE.BYTE2, outputs);final IntsRefBuilder scratch = new IntsRefBuilder();for(Map.Entry<String,String> ent : pendingPairs.entrySet()) {fstCompiler.add(Util.toUTF16(ent.getKey(), scratch),new CharsRef(ent.getValue()));}map = fstCompiler.compile();pendingPairs.clear();} catch (IOException ioe) {throw new RuntimeException(ioe);}return new NormalizeCharMap(map);} | public virtual NormalizeCharMap Build(){FST<CharsRef> map;try{Outputs<CharsRef> outputs = CharSequenceOutputs.Singleton;Builder<CharsRef> builder = new Builder<CharsRef>(FST.INPUT_TYPE.BYTE2, outputs);Int32sRef scratch = new Int32sRef();foreach (var ent in pendingPairs){builder.Add(Lucene.Net.Util.Fst.Util.ToUTF16(ent.Key, scratch), new CharsRef(ent.Value));}map = builder.Finish();pendingPairs.Clear();}catch (IOException ioe){throw new Exception("Should never happen", ioe);}return new NormalizeCharMap(map);} |
public BootstrapActions(String bucket) {this.bucket = bucket;} | public BootstrapActions(string bucket){this.bucket = bucket;} |
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {ValueEval ve;try {ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {ve = e.getErrorEval();}return BoolEval.valueOf(evaluate(ve));} | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){ValueEval ve;try{ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){ve = e.GetErrorEval();}return BoolEval.ValueOf(Evaluate(ve));} |
public static IndexDeletionPolicy getIndexDeletionPolicy(Config config) {String deletionPolicyName = config.get("deletion.policy", "org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy");if (deletionPolicyName.equals(NoDeletionPolicy.class.getName())) {return NoDeletionPolicy.INSTANCE;} else {try {return Class.forName(deletionPolicyName).asSubclass(IndexDeletionPolicy.class).getConstructor().newInstance();} catch (Exception e) {}}} | public static IndexDeletionPolicy GetIndexDeletionPolicy(Config config){string deletionPolicyName = config.Get("deletion.policy", "Lucene.Net.Index.KeepOnlyLastCommitDeletionPolicy, Lucene.Net");Type deletionPolicyType = Type.GetType(deletionPolicyName);if (deletionPolicyType == null){throw new Exception("Unrecognized deletion policy type '" + deletionPolicyName + "'");}else if (deletionPolicyType.Equals(typeof(NoDeletionPolicy))){return NoDeletionPolicy.INSTANCE;}else{try{return (IndexDeletionPolicy)Activator.CreateInstance(deletionPolicyType);}catch (Exception e){}}} |
public FontRecord(RecordInputStream in) {field_1_font_height = in.readShort();field_2_attributes = in.readShort();field_3_color_palette_index = in.readShort();field_4_bold_weight = in.readShort();field_5_super_sub_script = in.readShort();field_6_underline = in.readByte();field_7_family = in.readByte();field_8_charset = in.readByte();field_9_zero = in.readByte();int field_10_font_name_len = in.readUByte();int unicodeFlags = in.readUByte(); if (field_10_font_name_len > 0) {if (unicodeFlags == 0) { field_11_font_name = in.readCompressedUnicode(field_10_font_name_len);} else { field_11_font_name = in.readUnicodeLEString(field_10_font_name_len);}} else {field_11_font_name = "";}} | public FontRecord(RecordInputStream in1){field_1_font_height = in1.ReadShort();field_2_attributes = in1.ReadShort();field_3_color_palette_index = in1.ReadShort();field_4_bold_weight = in1.ReadShort();field_5_base_sub_script = in1.ReadShort();field_6_underline = (byte)in1.ReadByte();field_7_family = (byte)in1.ReadByte();field_8_charset = (byte)in1.ReadByte();field_9_zero = (byte)in1.ReadByte();int field_10_font_name_len = (byte)in1.ReadByte();int unicodeFlags = in1.ReadUByte(); if (field_10_font_name_len > 0){if (unicodeFlags == 0){ field_11_font_name = in1.ReadCompressedUnicode(field_10_font_name_len);}else{ field_11_font_name = in1.ReadUnicodeLEString(field_10_font_name_len);}}else{field_11_font_name = "";}} |
public String getRefLogMessage() {return destination.getRefLogMessage();} | public virtual string GetRefLogMessage(){return destination.GetRefLogMessage();} |
public String toString() {return subSlice.toString()+":"+terms;} | public override string ToString(){return SubSlice.ToString() + ":" + Terms;} |
public IntBuffer asReadOnlyBuffer() {return ReadOnlyIntArrayBuffer.copy(this, mark);} | public override java.nio.IntBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyIntArrayBuffer.copy(this, _mark);} |
public void clear() {super.clear();} | protected internal override void Clear(){base.Clear();} |
Subsets and Splits