java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public SpanPositionCheckQuery(SpanQuery match) {this.match = Objects.requireNonNull(match);} | public SpanPositionCheckQuery(SpanQuery match){this.m_match = match;} |
public boolean removeChildRecord(EscherRecord toBeRemoved) {return _childRecords.remove(toBeRemoved);} | public bool RemoveChildRecord(EscherRecord toBeRemoved){return _childRecords.Remove(toBeRemoved);} |
public BytesRef clone() {return new BytesRef(bytes, offset, length);} | public object Clone(){return new BytesRef(bytes, Offset, Length);} |
public ByteBuffer putLong(long value) {throw new ReadOnlyBufferException();} | public override java.nio.ByteBuffer putLong(long value){throw new java.nio.ReadOnlyBufferException();} |
@Override public boolean add(E object) {synchronized (CopyOnWriteArrayList.this) {add(slice.to - slice.from, object);return true;}} | public virtual bool add(E e){lock (this){object[] newElements = new object[elements.Length + 1];System.Array.Copy(elements, 0, newElements, 0, elements.Length);newElements[elements.Length] = e;elements = newElements;return true;}} |
public RevTree lookupTree(AnyObjectId id) {RevTree c = (RevTree) objects.get(id);if (c == null) {c = new RevTree(id);objects.add(c);}return c;} | public virtual RevTree LookupTree(AnyObjectId id){RevTree c = (RevTree)objects.Get(id);if (c == null){c = new RevTree(id);objects.Add(c);}return c;} |
public boolean equals(Object other) {return sameClassAs(other) &&func.equals(((FunctionQuery) other).func);} | public override bool Equals(object o){var other = o as FunctionQuery;if (other == null){return false;}return Boost == other.Boost&& func.Equals(other.func);} |
public boolean changeExternalReference(String oldUrl, String newUrl) {for (ExternalBookBlock ex : _externalBookBlocks) {SupBookRecord externalRecord = ex.getExternalBookRecord();if (externalRecord.isExternalReferences()&& externalRecord.getURL().equals(oldUrl)) {externalRecord.setURL(newUrl);return true;}}return false;} | public bool ChangeExternalReference(String oldUrl, String newUrl){foreach (ExternalBookBlock ex in _externalBookBlocks){SupBookRecord externalRecord = ex.GetExternalBookRecord();if (externalRecord.IsExternalReferences&& externalRecord.URL.Equals(oldUrl)){externalRecord.URL = (newUrl);return true;}}return false;} |
public void removeLastPrinted() {remove1stProperty(PropertyIDMap.PID_LASTPRINTED);} | public void RemoveLastPrinted(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_LASTPRINTED);} |
public MergeCommand merge() {return new MergeCommand(repo);} | public virtual MergeCommand Merge(){return new MergeCommand(repo);} |
public String toString() {final Type t = getType();return t + "(" + beginA + "-" + endA + "," + beginB + "-" + endB + ")";} | public override string ToString(){Edit.Type t = GetType();return t + "(" + beginA + "-" + endA + "," + beginB + "-" + endB + ")";} |
public void serialize(LittleEndianOutput out) {int nItems = _list.size();out.writeShort(nItems);for (int k = 0; k < nItems; k++) {CellRangeAddress region = _list.get(k);region.serialize(out);}} | public void Serialize(ILittleEndianOutput out1){int nItems = _list.Count;out1.WriteShort(nItems);for (int k = 0; k < nItems; k++){CellRangeAddress region = (CellRangeAddress)_list[k];region.Serialize(out1);}} |
public void remove() {throw new UnsupportedOperationException("Remove not supported");} | public void Remove(){throw new InvalidOperationException("Remove not supported");} |
public TagCommand setSigned(boolean signed) {this.signed = signed;return this;} | public virtual NGit.Api.TagCommand SetSigned(bool signed){this.signed = signed;return this;} |
public DescribeReservedInstancesListingsResult describeReservedInstancesListings(DescribeReservedInstancesListingsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedInstancesListings(request);} | public virtual DescribeReservedInstancesListingsResponse DescribeReservedInstancesListings(DescribeReservedInstancesListingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedInstancesListingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedInstancesListingsResponseUnmarshaller.Instance;return Invoke<DescribeReservedInstancesListingsResponse>(request, options);} |
public String getName() {return getRef().getName();} | public virtual string GetName(){return GetRef().GetName();} |
public boolean isAllSet(final int holder){return (holder & _mask) == _mask;} | public bool IsAllSet(int holder){return ((holder & this._mask) == this._mask);} |
public static int getEncodedSize(String value) {int result = 2 + 1;result += value.length() * (StringUtil.hasMultibyte(value) ? 2 : 1);return result;} | public static int GetEncodedSize(String value){int result = 2 + 1;result += value.Length * (StringUtil.HasMultibyte(value) ? 2 : 1);return result;} |
public List<CharsRef> stem(char word[], int length) {if (dictionary.needsInputCleaning) {scratchSegment.setLength(0);scratchSegment.append(word, 0, length);CharSequence cleaned = dictionary.cleanInput(scratchSegment, segment);scratchBuffer = ArrayUtil.grow(scratchBuffer, cleaned.length());length = segment.length();segment.getChars(0, length, scratchBuffer, 0);word = scratchBuffer;}int caseType = caseOf(word, length);if (caseType == UPPER_CASE) {caseFoldTitle(word, length);caseFoldLower(titleBuffer, length);List<CharsRef> list = doStem(word, length, false);list.addAll(doStem(titleBuffer, length, true));list.addAll(doStem(lowerBuffer, length, true));return list;} else if (caseType == TITLE_CASE) {caseFoldLower(word, length);List<CharsRef> list = doStem(word, length, false);list.addAll(doStem(lowerBuffer, length, true));return list;} else {return doStem(word, length, false);}} | public IList<CharsRef> Stem(char[] word, int length){if (dictionary.needsInputCleaning){scratchSegment.Length = 0;scratchSegment.Append(word, 0, length);string cleaned = dictionary.CleanInput(scratchSegment.ToString(), segment);scratchBuffer = ArrayUtil.Grow(scratchBuffer, cleaned.Length);length = segment.Length;segment.CopyTo(0, scratchBuffer, 0, length);word = scratchBuffer;}List<CharsRef> stems = new List<CharsRef>();Int32sRef forms = dictionary.LookupWord(word, 0, length);if (forms != null){for (int i = 0; i < forms.Length; i++){stems.Add(NewStem(word, length));}}stems.AddRange(Stem(word, length, -1, -1, -1, 0, true, true, false, false));return stems;} |
public HSSFConditionalFormattingRule createConditionalFormattingRule(String formula) {CFRuleRecord rr = CFRuleRecord.create(_sheet, formula);return new HSSFConditionalFormattingRule(_sheet, rr);} | public IConditionalFormattingRule CreateConditionalFormattingRule(String formula){HSSFWorkbook wb = (HSSFWorkbook)_sheet.Workbook;CFRuleRecord rr = CFRuleRecord.Create(_sheet, formula);return new HSSFConditionalFormattingRule(wb, rr);} |
public Record create(RecordInputStream in) {Object[] args = { in, };try {return (org.apache.poi.hssf.record.Record) _m.invoke(null, args);} catch (IllegalArgumentException | IllegalAccessException e) {throw new RuntimeException(e);} catch (InvocationTargetException e) {throw new org.apache.poi.util.RecordFormatException("Unable to construct record instance" , e.getTargetException());}} | public Record Create(RecordInputStream in1){Object[] args = { in1 };try{return (Record)_m.Invoke(null, args);}catch (Exception e){throw new RecordFormatException("Unable to construct record instance", e.InnerException);}} |
public int set(int index, long[] arr, int off, int len) {assert len > 0 : "len must be > 0 (got " + len + ")";assert index >= 0 && index < size();len = Math.min(len, size() - index);assert off + len <= arr.length;for (int i = index, o = off, end = index + len; i < end; ++i, ++o) {set(i, arr[o]);}return len;} | public virtual int Set(int index, long[] arr, int off, int len){Debug.Assert(len > 0, "len must be > 0 (got " + len + ")");Debug.Assert(index >= 0 && index < Count);len = Math.Min(len, Count - index);Debug.Assert(off + len <= arr.Length);for (int i = index, o = off, end = index + len; i < end; ++i, ++o){Set(i, arr[o]);}return len;} |
public synchronized long ramBytesUsed() {long bytes = 0;for(CachedOrds ords : ordsCache.values()) {bytes += ords.ramBytesUsed();}return bytes;} | public virtual long RamBytesUsed(){lock (this) return ordsCache.Sum(pair => pair.Value.RamBytesUsed());} |
public void writeDouble(double v) {writeLong(Double.doubleToLongBits(v));} | public void WriteDouble(double v){WriteLong(BitConverter.DoubleToInt64Bits(v));} |
public String toString() {return "DocumentsWriterFlushControl [activeBytes=" + activeBytes+ ", flushBytes=" + flushBytes + "]";} | public override string ToString(){return "DocumentsWriterFlushControl [activeBytes=" + activeBytes + ", flushBytes=" + flushBytes + "]";} |
public ListSecurityConfigurationsResult listSecurityConfigurations(ListSecurityConfigurationsRequest request) {request = beforeClientExecution(request);return executeListSecurityConfigurations(request);} | public virtual ListSecurityConfigurationsResponse ListSecurityConfigurations(ListSecurityConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSecurityConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSecurityConfigurationsResponseUnmarshaller.Instance;return Invoke<ListSecurityConfigurationsResponse>(request, options);} |
public ListQualificationRequestsResult listQualificationRequests(ListQualificationRequestsRequest request) {request = beforeClientExecution(request);return executeListQualificationRequests(request);} | public virtual ListQualificationRequestsResponse ListQualificationRequests(ListQualificationRequestsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQualificationRequestsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQualificationRequestsResponseUnmarshaller.Instance;return Invoke<ListQualificationRequestsResponse>(request, options);} |
public void println(char[] chars) {println(new String(chars, 0, chars.length));} | public virtual void println(char[] chars){println(new string(chars, 0, chars.Length));} |
public ReleaseAddressResult releaseAddress(ReleaseAddressRequest request) {request = beforeClientExecution(request);return executeReleaseAddress(request);} | public virtual ReleaseAddressResponse ReleaseAddress(ReleaseAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReleaseAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = ReleaseAddressResponseUnmarshaller.Instance;return Invoke<ReleaseAddressResponse>(request, options);} |
public static boolean[] copyOfRange(boolean[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);boolean[] result = new boolean[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;} | public static bool[] copyOfRange(bool[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);bool[] result = new bool[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;} |
public void fillOval(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.createShape(new HSSFChildAnchor( x, y, x + width, y + height ) );shape.setShapeType(HSSFSimpleShape.OBJECT_TYPE_OVAL);shape.setLineStyle(HSSFShape.LINESTYLE_NONE);shape.setFillColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setNoFill(false);} | public void FillOval(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.CreateShape(new HSSFChildAnchor(x, y, x + width, y + height));shape.ShapeType = (HSSFSimpleShape.OBJECT_TYPE_OVAL);shape.LineStyle = LineStyle.None;shape.SetFillColor(foreground.R, foreground.G, foreground.B);shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);shape.IsNoFill = (false);} |
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {try {String needle = TextFunction.evaluateStringArg(arg0, srcRowIndex, srcColumnIndex);String haystack = TextFunction.evaluateStringArg(arg1, srcRowIndex, srcColumnIndex);int startpos = TextFunction.evaluateIntArg(arg2, srcRowIndex, srcColumnIndex) - 1;if (startpos < 0) {return ErrorEval.VALUE_INVALID;}return eval(haystack, needle, startpos);} catch (EvaluationException e) {return e.getErrorEval();}} | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2){try{String needle = TextFunction.EvaluateStringArg(arg0, srcRowIndex, srcColumnIndex);String haystack = TextFunction.EvaluateStringArg(arg1, srcRowIndex, srcColumnIndex);int startpos = TextFunction.EvaluateIntArg(arg2, srcRowIndex, srcColumnIndex) - 1;if (startpos < 0){return ErrorEval.VALUE_INVALID;}return Eval(haystack, needle, startpos);}catch (EvaluationException e){return e.GetErrorEval();}} |
public CreateInvalidationRequest(String distributionId, InvalidationBatch invalidationBatch) {setDistributionId(distributionId);setInvalidationBatch(invalidationBatch);} | public CreateInvalidationRequest(string distributionId, InvalidationBatch invalidationBatch){_distributionId = distributionId;_invalidationBatch = invalidationBatch;} |
public CreateUsageReportSubscriptionResult createUsageReportSubscription(CreateUsageReportSubscriptionRequest request) {request = beforeClientExecution(request);return executeCreateUsageReportSubscription(request);} | public virtual CreateUsageReportSubscriptionResponse CreateUsageReportSubscription(CreateUsageReportSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateUsageReportSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateUsageReportSubscriptionResponseUnmarshaller.Instance;return Invoke<CreateUsageReportSubscriptionResponse>(request, options);} |
public static String fromString(String value) {return value;} | public static string FromString(String value){return value;} |
public GetDetectorsResult getDetectors(GetDetectorsRequest request) {request = beforeClientExecution(request);return executeGetDetectors(request);} | public virtual GetDetectorsResponse GetDetectors(GetDetectorsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDetectorsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDetectorsResponseUnmarshaller.Instance;return Invoke<GetDetectorsResponse>(request, options);} |
public static String fromDouble(Double d) {return Double.toString(d);} | public static string FromDouble(double value){return value.ToString(CultureInfo.InvariantCulture);} |
public void writeProtectWorkbook( String password, String username ) {FileSharingRecord frec = getFileSharing();WriteAccessRecord waccess = getWriteAccess(); getWriteProtect();frec.setReadOnly((short)1);frec.setPassword((short)CryptoFunctions.createXorVerifier1(password));frec.setUsername(username);waccess.setUsername(username);} | public void WriteProtectWorkbook(String password, String username){FileSharingRecord frec = FileSharing;WriteAccessRecord waccess = WriteAccess;frec.ReadOnly=((short)1);frec.Password=(FileSharingRecord.HashPassword(password));frec.Username=(username);waccess.Username=(username);} |
public Process exec(String command, int timeout)throws TransportException {String ssh = SystemReader.getInstance().getenv("GIT_SSH"); boolean putty = ssh.toLowerCase(Locale.ROOT).contains("plink"); List<String> args = new ArrayList<>();args.add(ssh);if (putty&& !ssh.toLowerCase(Locale.ROOT).contains("tortoiseplink")) args.add("-batch"); if (0 < getURI().getPort()) {args.add(putty ? "-P" : "-p"); args.add(String.valueOf(getURI().getPort()));}if (getURI().getUser() != null)args.add(getURI().getUser() + "@" + getURI().getHost()); elseargs.add(getURI().getHost());args.add(command);ProcessBuilder pb = createProcess(args);try {return pb.start();} catch (IOException err) {throw new TransportException(err.getMessage(), err);}} | public virtual SystemProcess Exec(string command, int timeout){string ssh = SystemReader.GetInstance().Getenv("GIT_SSH");bool putty = ssh.ToLower().Contains("plink");IList<string> args = new AList<string>();args.AddItem(ssh);if (putty && !ssh.ToLower().Contains("tortoiseplink")){args.AddItem("-batch");}if (0 < this._enclosing.GetURI().GetPort()){args.AddItem(putty ? "-P" : "-p");args.AddItem(this._enclosing.GetURI().GetPort().ToString());}if (this._enclosing.GetURI().GetUser() != null){args.AddItem(this._enclosing.GetURI().GetUser() + "@" + this._enclosing.GetURI().GetHost());}else{args.AddItem(this._enclosing.GetURI().GetHost());}args.AddItem(command);ProcessStartInfo pb = new ProcessStartInfo();pb.SetCommand(args);if (this._enclosing.local.Directory != null){pb.EnvironmentVariables.Put(Constants.GIT_DIR_KEY, this._enclosing.local.Directory.GetPath());}try{return pb.Start();}catch (IOException err){throw new TransportException(err.Message, err);}} |
public void serialize(LittleEndianOutput out) {out.write(recordData);} | public override void Serialize(ILittleEndianOutput out1){out1.Write(recordData);} |
public UpdateFleetCapacityResult updateFleetCapacity(UpdateFleetCapacityRequest request) {request = beforeClientExecution(request);return executeUpdateFleetCapacity(request);} | public virtual UpdateFleetCapacityResponse UpdateFleetCapacity(UpdateFleetCapacityRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetCapacityRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetCapacityResponseUnmarshaller.Instance;return Invoke<UpdateFleetCapacityResponse>(request, options);} |
public CreateDirectConnectGatewayAssociationResult createDirectConnectGatewayAssociation(CreateDirectConnectGatewayAssociationRequest request) {request = beforeClientExecution(request);return executeCreateDirectConnectGatewayAssociation(request);} | public virtual CreateDirectConnectGatewayAssociationResponse CreateDirectConnectGatewayAssociation(CreateDirectConnectGatewayAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDirectConnectGatewayAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDirectConnectGatewayAssociationResponseUnmarshaller.Instance;return Invoke<CreateDirectConnectGatewayAssociationResponse>(request, options);} |
public TokenStream create(TokenStream input) {if (words == null) {return input;} else {final TokenStream filter = new KeepWordFilter(input, words);return filter;}} | public override TokenStream Create(TokenStream input){if (words == null){return input;}else{TokenStream filter = new KeepWordFilter(m_luceneMatchVersion, enablePositionIncrements, input, words);return filter;}} |
public final int getEndA() {return endA;} | public int GetEndA(){return endA;} |
public String getStrictHostKeyChecking() {return strictHostKeyChecking;} | public virtual string GetStrictHostKeyChecking(){return strictHostKeyChecking;} |
public Lift(boolean changeSkip) {this.changeSkip = changeSkip;} | public Lift(bool changeSkip){this.changeSkip = changeSkip;} |
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_precision);} | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_precision);} |
public GetAuthorizerResult getAuthorizer(GetAuthorizerRequest request) {request = beforeClientExecution(request);return executeGetAuthorizer(request);} | public virtual GetAuthorizerResponse GetAuthorizer(GetAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAuthorizerResponseUnmarshaller.Instance;return Invoke<GetAuthorizerResponse>(request, options);} |
public StringCharacterIterator(String value, int start, int end, int location) {string = value;if (start < 0 || end > string.length() || start > end|| location < start || location > end) {throw new IllegalArgumentException();}this.start = start;this.end = end;offset = location;} | public StringCharacterIterator(string value, int start, int end, int location){@string = value;if (start < 0 || end > @string.Length || start > end || location < start || location> end){throw new System.ArgumentException();}this.start = start;this.end = end;offset = location;} |
public String toString() {StringBuilder buf = new StringBuilder();buf.append("ObjectToPack[");buf.append(Constants.typeString(getType()));buf.append(" ");buf.append(name());if (wantWrite())buf.append(" wantWrite");if (isReuseAsIs())buf.append(" reuseAsIs");if (isDoNotDelta())buf.append(" doNotDelta");if (isEdge())buf.append(" edge");if (getDeltaDepth() > 0)buf.append(" depth=").append(getDeltaDepth());if (isDeltaRepresentation()) {if (getDeltaBase() != null)buf.append(" base=inpack:").append(getDeltaBase().name());elsebuf.append(" base=edge:").append(getDeltaBaseId().name());}if (isWritten())buf.append(" offset=").append(getOffset());buf.append("]");return buf.toString();} | public override string ToString(){StringBuilder buf = new StringBuilder();buf.Append("ObjectToPack[");buf.Append(Constants.TypeString(GetType()));buf.Append(" ");buf.Append(Name);if (WantWrite()){buf.Append(" wantWrite");}if (IsReuseAsIs()){buf.Append(" reuseAsIs");}if (IsDoNotDelta()){buf.Append(" doNotDelta");}if (IsEdge()){buf.Append(" edge");}if (GetDeltaDepth() > 0){buf.Append(" depth=" + GetDeltaDepth());}if (IsDeltaRepresentation()){if (GetDeltaBase() != null){buf.Append(" base=inpack:" + GetDeltaBase().Name);}else{buf.Append(" base=edge:" + GetDeltaBaseId().Name);}}if (IsWritten()){buf.Append(" offset=" + GetOffset());}buf.Append("]");return buf.ToString();} |
public String toString() {return "1";} | public override string ToString(){return "1";} |
public final void readFully(byte[] dst, int offset, int byteCount) throws IOException {Streams.readFully(in, dst, offset, byteCount);} | public virtual void readFully(byte[] dst, int offset, int byteCount){throw new System.NotImplementedException();} |
public GetMailboxDetailsResult getMailboxDetails(GetMailboxDetailsRequest request) {request = beforeClientExecution(request);return executeGetMailboxDetails(request);} | public virtual GetMailboxDetailsResponse GetMailboxDetails(GetMailboxDetailsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMailboxDetailsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMailboxDetailsResponseUnmarshaller.Instance;return Invoke<GetMailboxDetailsResponse>(request, options);} |
public CharBuffer append(CharSequence csq) {if (csq != null) {return put(csq.toString());}return put("null");} | public virtual java.nio.CharBuffer append(java.lang.CharSequence csq){if (csq != null){return put(csq.ToString());}return put("null");} |
public RegisterFaceRequest() {super("LinkFace", "2018-07-20", "RegisterFace");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);} | public RegisterFaceRequest(): base("LinkFace", "2018-07-20", "RegisterFace"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;} |
public static void checkValue(double result) throws EvaluationException {if (Double.isNaN(result) || Double.isInfinite(result)) {throw new EvaluationException(ErrorEval.NUM_ERROR);}} | public static void CheckValue(double result){if (Double.IsNaN(result) || Double.IsInfinity(result)){throw new EvaluationException(ErrorEval.NUM_ERROR);}} |
public PutInvitationConfigurationResult putInvitationConfiguration(PutInvitationConfigurationRequest request) {request = beforeClientExecution(request);return executePutInvitationConfiguration(request);} | public virtual PutInvitationConfigurationResponse PutInvitationConfiguration(PutInvitationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutInvitationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutInvitationConfigurationResponseUnmarshaller.Instance;return Invoke<PutInvitationConfigurationResponse>(request, options);} |
public QueryNode process(QueryNode queryTree) throws QueryNodeException {Operator op = getQueryConfigHandler().get(ConfigurationKeys.DEFAULT_OPERATOR);if (op == null) {throw new IllegalArgumentException("StandardQueryConfigHandler.ConfigurationKeys.DEFAULT_OPERATOR should be set on the QueryConfigHandler");}this.usingAnd = StandardQueryConfigHandler.Operator.AND == op;return super.process(queryTree);} | public override IQueryNode Process(IQueryNode queryTree){Operator? op = GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);if (op == null){throw new ArgumentException("StandardQueryConfigHandler.ConfigurationKeys.DEFAULT_OPERATOR should be set on the QueryConfigHandler");}this.usingAnd = Operator.AND == op;return base.Process(queryTree);} |
public void add(BytesRef utf8, int bucket) throws IOException {if (bucket < 0 || bucket >= buckets) {throw new IllegalArgumentException("Bucket outside of the allowed range [0, " + buckets + "): " + bucket);}scratch.grow(utf8.length + 10);scratch.clear();scratch.append((byte) bucket);scratch.append(utf8);sorter.add(scratch.get());} | public virtual void Add(BytesRef utf8, int bucket){if (bucket < 0 || bucket >= buckets){throw new ArgumentException("Bucket outside of the allowed range [0, " + buckets + "): " + bucket);}if (scratch.Bytes.Length < utf8.Length + 1){scratch.Grow(utf8.Length + 10);}scratch.Length = 1;scratch.Bytes[0] = (byte)bucket;scratch.Append(utf8);sorter.Add(scratch);} |
public DescribeWorkspaceBundlesResult describeWorkspaceBundles() {return describeWorkspaceBundles(new DescribeWorkspaceBundlesRequest());} | public virtual DescribeWorkspaceBundlesResponse DescribeWorkspaceBundles(){var request = new DescribeWorkspaceBundlesRequest();return DescribeWorkspaceBundles(request);} |
public static String decode(String s) {return decode(s, false, Charsets.UTF_8);} | public static string decode(string s){return decode(s, false, java.nio.charset.Charsets.UTF_8);} |
public void setExpire(Date expire) {this.expire = expire;expireAgeMillis = -1;} | public virtual void SetExpire(DateTime expire){this.expire = expire;expireAgeMillis = -1;} |
public int DecRef() {assert count > 0: Thread.currentThread().getName() + ": RefCount is 0 pre-decrement for file \"" + fileName + "\"";return --count;} | public int DecRef(){Debug.Assert(count > 0, Thread.CurrentThread.Name + ": RefCount is 0 pre-decrement for file \"" + fileName + "\"");return --count;} |
public List<WeightedFragInfo> getWeightedFragInfoList( List<WeightedFragInfo> src ) {return src;} | public override IList<WeightedFragInfo> GetWeightedFragInfoList(IList<WeightedFragInfo> src){return src;} |
public CreateInstancesFromSnapshotResult createInstancesFromSnapshot(CreateInstancesFromSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateInstancesFromSnapshot(request);} | public virtual CreateInstancesFromSnapshotResponse CreateInstancesFromSnapshot(CreateInstancesFromSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInstancesFromSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInstancesFromSnapshotResponseUnmarshaller.Instance;return Invoke<CreateInstancesFromSnapshotResponse>(request, options);} |
public Comparator<? super E> comparator() {return backingMap.comparator();} | public virtual java.util.Comparator<E> comparator(){return backingMap.comparator();} |
public boolean isValueSecure() {return valueSecure;} | public virtual bool IsValueSecure(){return valueSecure;} |
public static short[] grow(short[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Short.BYTES));} else return array;} | public static short[] Grow(short[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){short[] newArray = new short[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT16)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}} |
public ObjectId idFor(int type, byte[] data) {return idFor(type, data, 0, data.length);} | public override ObjectId IdFor(int type, byte[] data){return Delegate().IdFor(type, data);} |
public CreateDomainNameResult createDomainName(CreateDomainNameRequest request) {request = beforeClientExecution(request);return executeCreateDomainName(request);} | public virtual CreateDomainNameResponse CreateDomainName(CreateDomainNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDomainNameRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDomainNameResponseUnmarshaller.Instance;return Invoke<CreateDomainNameResponse>(request, options);} |
public DeleteAddressBookResult deleteAddressBook(DeleteAddressBookRequest request) {request = beforeClientExecution(request);return executeDeleteAddressBook(request);} | public virtual DeleteAddressBookResponse DeleteAddressBook(DeleteAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAddressBookResponseUnmarshaller.Instance;return Invoke<DeleteAddressBookResponse>(request, options);} |
public void addToolPack(UDFFinder toopack){AggregatingUDFFinder udfs = (AggregatingUDFFinder)_udfFinder;udfs.add(toopack);} | public void AddToolPack(UDFFinder toopack){AggregatingUDFFinder udfs = (AggregatingUDFFinder)_udfFinder;udfs.Add(toopack);} |
public SearchUsersResult searchUsers(SearchUsersRequest request) {request = beforeClientExecution(request);return executeSearchUsers(request);} | public virtual SearchUsersResponse SearchUsers(SearchUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchUsersResponseUnmarshaller.Instance;return Invoke<SearchUsersResponse>(request, options);} |
public String getAccessKeySecret() {return privateKeySecret;} | public string GetAccessKeySecret(){return privateKeySecret;} |
public void setValueAt(int index, E value) {if (mGarbage) {gc();}mValues[index] = value;} | public virtual void setValueAt(int index, E value){if (mGarbage){gc();}mValues[index] = value;} |
public RefErrorPtg() {field_1_reserved = 0;} | public RefErrorPtg(){field_1_reserved = 0;} |
public boolean getFlagByBit(int bitmask) {return ((flags & bitmask) != 0);} | public bool GetFlagByBit(int bitmask){return ((flags & bitmask) != 0);} |
public UpdateAccountSendingEnabledResult updateAccountSendingEnabled(UpdateAccountSendingEnabledRequest request) {request = beforeClientExecution(request);return executeUpdateAccountSendingEnabled(request);} | public virtual UpdateAccountSendingEnabledResponse UpdateAccountSendingEnabled(UpdateAccountSendingEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAccountSendingEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAccountSendingEnabledResponseUnmarshaller.Instance;return Invoke<UpdateAccountSendingEnabledResponse>(request, options);} |
public AppCookieStickinessPolicy(String policyName, String cookieName) {setPolicyName(policyName);setCookieName(cookieName);} | public AppCookieStickinessPolicy(string policyName, string cookieName){_policyName = policyName;_cookieName = cookieName;} |
public GetAccountBalanceResult getAccountBalance(GetAccountBalanceRequest request) {request = beforeClientExecution(request);return executeGetAccountBalance(request);} | public virtual GetAccountBalanceResponse GetAccountBalance(GetAccountBalanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAccountBalanceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAccountBalanceResponseUnmarshaller.Instance;return Invoke<GetAccountBalanceResponse>(request, options);} |
public DescribeConversionTasksResult describeConversionTasks(DescribeConversionTasksRequest request) {request = beforeClientExecution(request);return executeDescribeConversionTasks(request);} | public virtual DescribeConversionTasksResponse DescribeConversionTasks(DescribeConversionTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConversionTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConversionTasksResponseUnmarshaller.Instance;return Invoke<DescribeConversionTasksResponse>(request, options);} |
public DescribeImagesResult describeImages() {return describeImages(new DescribeImagesRequest());} | public virtual DescribeImagesResponse DescribeImages(){return DescribeImages(new DescribeImagesRequest());} |
public void close() {_closed = true;} | public override void Close(){delegate1.Close();} |
public ListSignalingChannelsResult listSignalingChannels(ListSignalingChannelsRequest request) {request = beforeClientExecution(request);return executeListSignalingChannels(request);} | public virtual ListSignalingChannelsResponse ListSignalingChannels(ListSignalingChannelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSignalingChannelsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSignalingChannelsResponseUnmarshaller.Instance;return Invoke<ListSignalingChannelsResponse>(request, options);} |
public MergeFacesRequest() {super("CloudPhoto", "2017-07-11", "MergeFaces", "cloudphoto");setProtocol(ProtocolType.HTTPS);} | public MergeFacesRequest(): base("CloudPhoto", "2017-07-11", "MergeFaces", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;} |
public DetectTextResult detectText(DetectTextRequest request) {request = beforeClientExecution(request);return executeDetectText(request);} | public virtual DetectTextResponse DetectText(DetectTextRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectTextRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectTextResponseUnmarshaller.Instance;return Invoke<DetectTextResponse>(request, options);} |
public DoubleBuffer get(double[] dst) {return get(dst, 0, dst.length);} | public virtual java.nio.DoubleBuffer get(double[] dst){return get(dst, 0, dst.Length);} |
public long getCreationTime() {return decodeTS(P_CTIME);} | public virtual long GetCreationTime(){return DecodeTS(P_CTIME);} |
public TreeFilter clone() {return new Binary(a.clone(), b.clone());} | public override TreeFilter Clone(){return new AndTreeFilter.Binary(a.Clone(), b.Clone());} |
public ByteBuffer putChar(char value) {int newPosition = position + SizeOf.CHAR;if (newPosition > limit) {throw new BufferOverflowException();}Memory.pokeShort(backingArray, offset + position, (short) value, order);position = newPosition;return this;} | public override java.nio.ByteBuffer putChar(char value){int newPosition = _position + libcore.io.SizeOf.CHAR;if (newPosition > _limit){throw new java.nio.BufferOverflowException();}libcore.io.Memory.pokeShort(backingArray, offset + _position, (short)value, _order);_position = newPosition;return this;} |
public String toString() {return String.format("Rect [(%d,%d)-(%d,%d): %dx%d]", x, y, x + w, y + h, w, h);} | public override string ToString(){java.lang.StringBuilder sb = new java.lang.StringBuilder(32);sb.append("Rect(");sb.append(left);sb.append(", ");sb.append(top);sb.append(" - ");sb.append(right);sb.append(", ");sb.append(bottom);sb.append(")");return sb.ToString();} |
public static LongBuffer wrap(long[] array) {return wrap(array, 0, array.length);} | public static java.nio.LongBuffer wrap(long[] array_1){return wrap(array_1, 0, array_1.Length);} |
public CharsRef clone() {return new CharsRef(chars, offset, length);} | public object Clone(){return new CharsRef(chars, Offset, Length);} |
public SpanNearClauseFactory(IndexReader reader, String fieldName, BasicQueryFactory qf) {this.reader = reader;this.fieldName = fieldName;this.weightBySpanQuery = new HashMap<>();this.qf = qf;} | public SpanNearClauseFactory(IndexReader reader, string fieldName, BasicQueryFactory qf) {this.reader = reader;this.fieldName = fieldName;this.weightBySpanQuery = new JCG.Dictionary<SpanQuery, float>();this.qf = qf;} |
public BeginRecord clone() {return copy();} | public override Object Clone(){BeginRecord br = new BeginRecord();return br;} |
public int start() {return start(0);} | public int start(){return start(0);} |
public DescribeGameSessionQueuesResult describeGameSessionQueues(DescribeGameSessionQueuesRequest request) {request = beforeClientExecution(request);return executeDescribeGameSessionQueues(request);} | public virtual DescribeGameSessionQueuesResponse DescribeGameSessionQueues(DescribeGameSessionQueuesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameSessionQueuesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameSessionQueuesResponseUnmarshaller.Instance;return Invoke<DescribeGameSessionQueuesResponse>(request, options);} |
public SubmitAttachmentStateChangesResult submitAttachmentStateChanges(SubmitAttachmentStateChangesRequest request) {request = beforeClientExecution(request);return executeSubmitAttachmentStateChanges(request);} | public virtual SubmitAttachmentStateChangesResponse SubmitAttachmentStateChanges(SubmitAttachmentStateChangesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SubmitAttachmentStateChangesRequestMarshaller.Instance;options.ResponseUnmarshaller = SubmitAttachmentStateChangesResponseUnmarshaller.Instance;return Invoke<SubmitAttachmentStateChangesResponse>(request, options);} |
public UnicodeString getString(int id ){return field_3_strings.get( id );} | public UnicodeString GetString(int id){return (UnicodeString)field_3_strings[id];} |
public BigInteger getSignificand() {return _significand;} | public BigInteger GetSignificand(){return _significand;} |
Subsets and Splits