Skip to content

Commit f83380f

Browse files
acardonactrueden
authored andcommitted
ImgMath: static methods equal, notEqual, greaterThan and lessThan
which are more readable than EQ, NEQ, GT and LT (which are otherwise the exact same thing).
1 parent 1b10595 commit f83380f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/main/java/net/imglib2/algorithm/math/ImgMath.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,21 +214,41 @@ static public final Equal EQ( final Object o1, final Object o2 )
214214
return new Equal( o1, o2 );
215215
}
216216

217+
static public final Equal equal( final Object o1, final Object o2 )
218+
{
219+
return new Equal( o1, o2 );
220+
}
221+
217222
static public final NotEqual NEQ( final Object o1, final Object o2 )
218223
{
219224
return new NotEqual( o1, o2 );
220225
}
221226

227+
static public final NotEqual notEqual( final Object o1, final Object o2 )
228+
{
229+
return new NotEqual( o1, o2 );
230+
}
231+
222232
static public final LessThan LT( final Object o1, final Object o2 )
223233
{
224234
return new LessThan( o1, o2 );
225235
}
226236

237+
static public final LessThan lessThan( final Object o1, final Object o2 )
238+
{
239+
return new LessThan( o1, o2 );
240+
}
241+
227242
static public final GreaterThan GT( final Object o1, final Object o2 )
228243
{
229244
return new GreaterThan( o1, o2 );
230245
}
231246

247+
static public final GreaterThan greaterThan( final Object o1, final Object o2 )
248+
{
249+
return new GreaterThan( o1, o2 );
250+
}
251+
232252
static public final If IF( final Object o1, final Object o2, final Object o3 )
233253
{
234254
return new If( o1, o2, o3 );

0 commit comments

Comments
 (0)