コード例 #1
0
ファイル: IntFieldSource.cs プロジェクト: vernon016/mono
        /*(non-Javadoc) @see Mono.Lucene.Net.Search.Function.FieldCacheSource#cachedFieldSourceEquals(Mono.Lucene.Net.Search.Function.FieldCacheSource) */
        public override bool CachedFieldSourceEquals(FieldCacheSource o)
        {
            if (o.GetType() != typeof(IntFieldSource))
            {
                return(false);
            }
            IntFieldSource other = (IntFieldSource)o;

            return(this.parser == null?other.parser == null:this.parser.GetType() == other.parser.GetType());
        }
コード例 #2
0
ファイル: FieldCacheSource.cs プロジェクト: vernon016/mono
        /*(non-Javadoc) @see java.lang.Object#equals(java.lang.Object) */
        public override bool Equals(System.Object o)
        {
            if (!(o is FieldCacheSource))
            {
                return(false);
            }
            FieldCacheSource other = (FieldCacheSource)o;

            return(this.field.Equals(other.field) && CachedFieldSourceEquals(other));
        }
コード例 #3
0
ファイル: ShortFieldSource.cs プロジェクト: carrie901/mono
		/*(non-Javadoc) @see Mono.Lucene.Net.Search.Function.FieldCacheSource#cachedFieldSourceEquals(Mono.Lucene.Net.Search.Function.FieldCacheSource) */
		public override bool CachedFieldSourceEquals(FieldCacheSource o)
		{
			if (o.GetType() != typeof(ShortFieldSource))
			{
				return false;
			}
			ShortFieldSource other = (ShortFieldSource) o;
			return this.parser == null?other.parser == null:this.parser.GetType() == other.parser.GetType();
		}
コード例 #4
0
ファイル: FieldCacheSource.cs プロジェクト: vernon016/mono
 /// <summary> Check if equals to another {@link FieldCacheSource}, already knowing that cache and field are equal.  </summary>
 /// <seealso cref="Object.equals(java.lang.Object)">
 /// </seealso>
 public abstract bool CachedFieldSourceEquals(FieldCacheSource other);
コード例 #5
0
ファイル: FieldCacheSource.cs プロジェクト: carrie901/mono
		/// <summary> Check if equals to another {@link FieldCacheSource}, already knowing that cache and field are equal.  </summary>
		/// <seealso cref="Object.equals(java.lang.Object)">
		/// </seealso>
		public abstract bool CachedFieldSourceEquals(FieldCacheSource other);