CloneSet1293


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27220.978compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1271
src/NHibernate/Criterion/IsEmptyExpression.cs
2271
src/NHibernate/Criterion/IsNotEmptyExpression.cs
Clone Instance
1
Line Count
27
Source Line
1
Source File
src/NHibernate/Criterion/IsEmptyExpression.cs

using System;

namespace NHibernate.Criterion
{
        /// <summary>
        /// An <see cref="ICriterion"/> that represents empty association constraint.
        /// </summary>
        [Serializable]
        public class IsEmptyExpression : AbstractEmptinessExpression
        {
                public IsEmptyExpression(string propertyName)
                        : base(propertyName)
                {
                }

                protected override bool ExcludeEmpty
                {
                        get { return false;
                            }
                }

                public override IProjection[] GetProjections()
                {
                        return null;
                }

        }
}


Clone Instance
2
Line Count
27
Source Line
1
Source File
src/NHibernate/Criterion/IsNotEmptyExpression.cs

using System;

namespace NHibernate.Criterion
{
        /// <summary>
        /// An <see cref="ICriterion"/> that represents non-empty association constraint.
        /// </summary>
        [Serializable]
        public class IsNotEmptyExpression : AbstractEmptinessExpression
        {
                public IsNotEmptyExpression(string propertyName)
                        : base(propertyName)
                {
                }

                protected override bool ExcludeEmpty
                {
                        get { return true;
                            }
                }

                public override IProjection[] GetProjections()
                {
                        return null;
                }

        }
}


Clone AbstractionParameter Count: 2Parameter Bindings

using System;
namespace NHibernate.Criterion
{
   /// <summary>
   /// An <see cref="ICriterion"/> that represents empty association constraint.
   /// An <see cref="ICriterion"/> that represents non-empty association constraint.
   /// </summary>
   [Serializable]
   public class [[#variable554353c0]]: AbstractEmptinessExpression
   {
      public [[#variable554353c0]](string propertyName): base(propertyName)
      {
      }

      protected override bool ExcludeEmpty
      {
         get
         {
            return [[#variable55435340]];
         }
      }

      public override IProjection[] GetProjections()
      {
         return null;
      }

   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#554353c0]]
IsEmptyExpression 
12[[#554353c0]]
IsNotEmptyExpression 
21[[#55435340]]
false 
22[[#55435340]]
true