Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 5 | 2 | 0.976 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 46 | src/NHibernate/Criterion/Restrictions.cs |
2 | 13 | 144 | src/NHibernate/Criterion/Restrictions.cs |
3 | 14 | 164 | src/NHibernate/Criterion/Restrictions.cs |
4 | 13 | 185 | src/NHibernate/Criterion/Restrictions.cs |
5 | 13 | 205 | src/NHibernate/Criterion/Restrictions.cs |
| ||||
/// <summary> /// Apply an "equal" constraint to the named property /// </summary> /// <param name="propertyName">The name of the Property in the class.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression Eq(string propertyName, object value) { return new SimpleExpression(propertyName, value, " = "); } /// <summary> /// Apply an "equal" constraint to the projection /// </summary> /// <param name="projection">The projection.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression Eq(IProjection projection, object value) { return new SimpleExpression(projection, value, " = "); } |
| ||||
/// <summary> /// Apply a "greater than" constraint to the named property /// </summary> /// <param name="propertyName">The name of the Property in the class.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression Gt(string propertyName, object value) { return new SimpleExpression(propertyName, value, " > "); } /// <summary> /// Apply a "greater than" constraint to the projection /// </summary> /// <param name="projection">The projection.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression Gt(IProjection projection, object value) { return new SimpleExpression(projection, value, " > "); } |
| ||||
/// <summary> /// Apply a "less than" constraint to the named property /// </summary> /// <param name="propertyName">The name of the Property in the class.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression Lt(string propertyName, object value) { return new SimpleExpression(propertyName, value, " < "); } /// <summary> /// Apply a "less than" constraint to the projection /// </summary> /// <param name="projection">The projection.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression Lt(IProjection projection, object value) { return new SimpleExpression(projection, value, " < "); } |
| ||||
/// <summary> /// Apply a "less than or equal" constraint to the named property /// </summary> /// <param name="propertyName">The name of the Property in the class.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression Le(string propertyName, object value) { return new SimpleExpression(propertyName, value, " <= "); } /// <summary> /// Apply a "less than or equal" constraint to the projection /// </summary> /// <param name="projection">The projection.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression Le(IProjection projection, object value) { return new SimpleExpression(projection, value, " <= "); } |
| ||||
/// <summary> /// Apply a "greater than or equal" constraint to the named property /// </summary> /// <param name="propertyName">The name of the Property in the class.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression Ge(string propertyName, object value) { return new SimpleExpression(propertyName, value, " >= "); } /// <summary> /// Apply a "greater than or equal" constraint to the projection /// </summary> /// <param name="projection">The projection.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression Ge(IProjection projection, object value) { return new SimpleExpression(projection, value, " >= "); } |
| |||
/// <summary> /// Apply a "greater than or equal" constraint to the named property /// Apply a "less than or equal" constraint to the named property /// Apply a "less than" constraint to the named property /// Apply a "greater than" constraint to the named property /// Apply an "equal" constraint to the named property /// </summary> /// <param name="propertyName">The name of the Property in the class.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression [[#variable26152ca0]](string propertyName, object value) { return new SimpleExpression(propertyName, value, [[#variable70b7e320]]); } /// <summary> /// Apply a "greater than or equal" constraint to the projection /// Apply a "less than or equal" constraint to the projection /// Apply a "less than" constraint to the projection /// Apply a "greater than" constraint to the projection /// Apply an "equal" constraint to the projection /// </summary> /// <param name="projection">The projection.</param> /// <param name="value">The value for the Property.</param> public static SimpleExpression [[#variable26152ca0]](IProjection projection, object value) { return new SimpleExpression(projection, value, [[#variable70b7e320]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#26152ca0]] | Ge |
1 | 2 | [[#26152ca0]] | Le |
1 | 3 | [[#26152ca0]] | Lt |
1 | 4 | [[#26152ca0]] | Gt |
1 | 5 | [[#26152ca0]] | Eq |
2 | 1 | [[#70b7e320]] | " >= " |
2 | 2 | [[#70b7e320]] | " <= " |
2 | 3 | [[#70b7e320]] | " < " |
2 | 4 | [[#70b7e320]] | " > " |
2 | 5 | [[#70b7e320]] | " = " |