@Test(expected=IllegalArgumentException.class) public void testBadLimit() { ApiUtils.checkOffsetAndLimit(0, 0); }
public static void checkOffsetAndLimit(int offset, int limit) { Preconditions.checkArgument(offset >= 0, "Offset should be greater or equal 0."); Preconditions.checkArgument(limit > 0, "Limit should be greater than 0."); }
ApiUtils { public static void checkOffsetAndLimit(int offset, int limit) { Preconditions.checkArgument(offset >= 0, "Offset should be greater or equal 0."); Preconditions.checkArgument(limit > 0, "Limit should be greater than 0."); } }
ApiUtils { public static void checkOffsetAndLimit(int offset, int limit) { Preconditions.checkArgument(offset >= 0, "Offset should be greater or equal 0."); Preconditions.checkArgument(limit > 0, "Limit should be greater than 0."); } private  ApiUtils(); }
ApiUtils { public static void checkOffsetAndLimit(int offset, int limit) { Preconditions.checkArgument(offset >= 0, "Offset should be greater or equal 0."); Preconditions.checkArgument(limit > 0, "Limit should be greater than 0."); } private  ApiUtils(); static Instant newInstantFromString(String value); static Date newDateFromString(String value); static Date newDateFromMillis(long millis); static Period newPeriodFromString(String value); static String printDate(Date date); static String printDate(Instant instant); static Date getFromDate(
      String fromString, Date toDate, Duration window); static T baseEquals(T object, Object other); static void checkOffsetAndLimit(int offset, int limit); static void checkLimit(int limit); }
ApiUtils { public static void checkOffsetAndLimit(int offset, int limit) { Preconditions.checkArgument(offset >= 0, "Offset should be greater or equal 0."); Preconditions.checkArgument(limit > 0, "Limit should be greater than 0."); } private  ApiUtils(); static Instant newInstantFromString(String value); static Date newDateFromString(String value); static Date newDateFromMillis(long millis); static Period newPeriodFromString(String value); static String printDate(Date date); static String printDate(Instant instant); static Date getFromDate(
      String fromString, Date toDate, Duration window); static T baseEquals(T object, Object other); static void checkOffsetAndLimit(int offset, int limit); static void checkLimit(int limit); final static String DOT_SNAPSHOT_DIR; }