com.atlassian.jira.util.dbc
Class NumberAssertions

java.lang.Object
  extended by com.atlassian.jira.util.dbc.NumberAssertions

public final class NumberAssertions
extends Object

Utility for number assertions

Since:
v4.3

Method Summary
static int equal(String name, int actual, int expected)
           
static long equal(String name, long actual, long expected)
           
static int greaterThan(String name, int actual, int floor)
           
static long greaterThan(String name, long actual, long floor)
           
static int greaterThanOrEqual(String name, int actual, int floor)
           
static long greaterThanOrEqual(String name, long actual, long floor)
           
static int lessThan(String name, int actual, int ceiling)
           
static long lessThan(String name, long actual, long ceiling)
           
static int lessThanOrEqual(String name, int actual, int ceiling)
           
static long lessThanOrEqual(String name, long actual, long ceiling)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equal

public static int equal(String name,
                        int actual,
                        int expected)

greaterThan

public static int greaterThan(String name,
                              int actual,
                              int floor)

lessThan

public static int lessThan(String name,
                           int actual,
                           int ceiling)

greaterThanOrEqual

public static int greaterThanOrEqual(String name,
                                     int actual,
                                     int floor)

lessThanOrEqual

public static int lessThanOrEqual(String name,
                                  int actual,
                                  int ceiling)

equal

public static long equal(String name,
                         long actual,
                         long expected)

greaterThan

public static long greaterThan(String name,
                               long actual,
                               long floor)

lessThan

public static long lessThan(String name,
                            long actual,
                            long ceiling)

greaterThanOrEqual

public static long greaterThanOrEqual(String name,
                                      long actual,
                                      long floor)

lessThanOrEqual

public static long lessThanOrEqual(String name,
                                   long actual,
                                   long ceiling)


Copyright © 2002-2011 Atlassian. All Rights Reserved.