Exemple #1
0
        /*(non-Javadoc) <see cref="Lucene.Net.Search.Function.FieldCacheSource.cachedFieldSourceEquals(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());
        }
        /*(non-Javadoc) <see cref="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));
        }
		/*(non-Javadoc) <see cref="Lucene.Net.Search.Function.FieldCacheSource.cachedFieldSourceEquals(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();
		}
 /// <summary> Check if equals to another <see cref="FieldCacheSource" />, already knowing that cache and field are equal.  </summary>
 /// <seealso cref="Object.Equals(Object)">
 /// </seealso>
 public abstract bool CachedFieldSourceEquals(FieldCacheSource other);
		/// <summary> Check if equals to another <see cref="FieldCacheSource" />, already knowing that cache and field are equal.  </summary>
		/// <seealso cref="Object.Equals(Object)">
		/// </seealso>
		public abstract bool CachedFieldSourceEquals(FieldCacheSource other);