20 using Lucene.Net.Index;
21 using Lucene.Net.Search;
22 using Lucene.Net.Util;
24 namespace Contrib.Regex
48 set { _regexImpl = value; }
49 get {
return _regexImpl; }
53 public override String ToString(String field)
55 StringBuilder buffer =
new StringBuilder();
63 return buffer.ToString();
75 if (other == null)
return false;
76 if (
this == other)
return true;
78 if (!base.Equals(other))
return false;
79 return _regexImpl.Equals(other._regexImpl);
82 public override bool Equals(
object obj)
84 if ((obj == null) || (obj as
RegexQuery == null))
return false;
85 if (
this == obj)
return true;
90 public override int GetHashCode()
92 return 29 * base.GetHashCode() + _regexImpl.GetHashCode();