public override bool Equals(object obj) { if (!(obj is NGit.Transport.URIish)) { return(false); } NGit.Transport.URIish b = (NGit.Transport.URIish)obj; if (!Eq(GetScheme(), b.GetScheme())) { return(false); } if (!Eq(GetUser(), b.GetUser())) { return(false); } if (!Eq(GetPass(), b.GetPass())) { return(false); } if (!Eq(GetHost(), b.GetHost())) { return(false); } if (GetPort() != b.GetPort()) { return(false); } if (!Eq(GetPath(), b.GetPath())) { return(false); } return(true); }
/// <summary>Return a new URI matching this one, but with a different (raw) path.</summary> /// <remarks>Return a new URI matching this one, but with a different (raw) path.</remarks> /// <param name="n">the new value for path.</param> /// <returns>a new URI with the updated value.</returns> /// <exception cref="Sharpen.URISyntaxException">Sharpen.URISyntaxException</exception> public virtual NGit.Transport.URIish SetRawPath(string n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.path = Unescape(n); r.rawPath = n; return(r); }
private URIish(NGit.Transport.URIish u) { // Configure nothing. this.scheme = u.scheme; this.path = u.path; this.user = u.user; this.pass = u.pass; this.port = u.port; this.host = u.host; }
/// <summary>Return a new URI matching this one, but with a different port.</summary> /// <remarks>Return a new URI matching this one, but with a different port.</remarks> /// <param name="n">the new value for port.</param> /// <returns>a new URI with the updated value.</returns> public virtual NGit.Transport.URIish SetPort(int n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.port = n > 0 ? n : -1; return(r); }
/// <summary>Return a new URI matching this one, but with a different password.</summary> /// <remarks>Return a new URI matching this one, but with a different password.</remarks> /// <param name="n">the new value for password.</param> /// <returns>a new URI with the updated value.</returns> public virtual NGit.Transport.URIish SetPass(string n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.pass = n; return(r); }
/// <summary>Return a new URI matching this one, but with a different user.</summary> /// <remarks>Return a new URI matching this one, but with a different user.</remarks> /// <param name="n">the new value for user.</param> /// <returns>a new URI with the updated value.</returns> public virtual NGit.Transport.URIish SetUser(string n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.user = n; return(r); }
/// <summary>Return a new URI matching this one, but with a different scheme.</summary> /// <remarks>Return a new URI matching this one, but with a different scheme.</remarks> /// <param name="n">the new value for scheme.</param> /// <returns>a new URI with the updated value.</returns> public virtual NGit.Transport.URIish SetScheme(string n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.scheme = n; return(r); }
/// <summary>Return a new URI matching this one, but with a different host.</summary> /// <remarks>Return a new URI matching this one, but with a different host.</remarks> /// <param name="n">the new value for host.</param> /// <returns>a new URI with the updated value.</returns> public virtual NGit.Transport.URIish SetHost(string n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.host = n; return(r); }
/// <summary>Return a new URI matching this one, but with a different user.</summary> /// <remarks>Return a new URI matching this one, but with a different user.</remarks> /// <param name="n">the new value for user.</param> /// <returns>a new URI with the updated value.</returns> public virtual NGit.Transport.URIish SetUser(string n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.user = n; return r; }
/// <summary>Return a new URI matching this one, but with a different scheme.</summary> /// <remarks>Return a new URI matching this one, but with a different scheme.</remarks> /// <param name="n">the new value for scheme.</param> /// <returns>a new URI with the updated value.</returns> public virtual NGit.Transport.URIish SetScheme(string n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.scheme = n; return r; }
/// <summary>Return a new URI matching this one, but with a different port.</summary> /// <remarks>Return a new URI matching this one, but with a different port.</remarks> /// <param name="n">the new value for port.</param> /// <returns>a new URI with the updated value.</returns> public virtual NGit.Transport.URIish SetPort(int n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.port = n > 0 ? n : -1; return r; }
/// <summary>Return a new URI matching this one, but with a different path.</summary> /// <remarks>Return a new URI matching this one, but with a different path.</remarks> /// <param name="n">the new value for path.</param> /// <returns>a new URI with the updated value.</returns> public virtual NGit.Transport.URIish SetPath(string n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.path = n; return r; }
/// <summary>Return a new URI matching this one, but with a different host.</summary> /// <remarks>Return a new URI matching this one, but with a different host.</remarks> /// <param name="n">the new value for host.</param> /// <returns>a new URI with the updated value.</returns> public virtual NGit.Transport.URIish SetHost(string n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.host = n; return r; }
/// <summary>Return a new URI matching this one, but with a different (raw) path.</summary> /// <remarks>Return a new URI matching this one, but with a different (raw) path.</remarks> /// <param name="n">the new value for path.</param> /// <returns>a new URI with the updated value.</returns> /// <exception cref="Sharpen.URISyntaxException">Sharpen.URISyntaxException</exception> public virtual NGit.Transport.URIish SetRawPath(string n) { NGit.Transport.URIish r = new NGit.Transport.URIish(this); r.path = Unescape(n); r.rawPath = n; return r; }