@Test(expected = IllegalArgumentException.class) public void verifyJobIdOffsetUpperBound() { JobConfig.setJobIdOffset(2147480000 - 500 + 1); }
public static void setJobIdOffset(int jobIdOffset) { JobPreconditions.checkArgumentNonnegative(jobIdOffset, "offset can't be negative"); if (jobIdOffset > JobIdsInternal.RESERVED_JOB_ID_RANGE_START - 500) { throw new IllegalArgumentException("offset is too close to Integer.MAX_VALUE"); } JobConfig.jobIdOffset = jobIdOffset; }
JobConfig { public static void setJobIdOffset(int jobIdOffset) { JobPreconditions.checkArgumentNonnegative(jobIdOffset, "offset can't be negative"); if (jobIdOffset > JobIdsInternal.RESERVED_JOB_ID_RANGE_START - 500) { throw new IllegalArgumentException("offset is too close to Integer.MAX_VALUE"); } JobConfig.jobIdOffset = jobIdOffset; } }
JobConfig { public static void setJobIdOffset(int jobIdOffset) { JobPreconditions.checkArgumentNonnegative(jobIdOffset, "offset can't be negative"); if (jobIdOffset > JobIdsInternal.RESERVED_JOB_ID_RANGE_START - 500) { throw new IllegalArgumentException("offset is too close to Integer.MAX_VALUE"); } JobConfig.jobIdOffset = jobIdOffset; } private  JobConfig(); }
JobConfig { public static void setJobIdOffset(int jobIdOffset) { JobPreconditions.checkArgumentNonnegative(jobIdOffset, "offset can't be negative"); if (jobIdOffset > JobIdsInternal.RESERVED_JOB_ID_RANGE_START - 500) { throw new IllegalArgumentException("offset is too close to Integer.MAX_VALUE"); } JobConfig.jobIdOffset = jobIdOffset; } private  JobConfig(); static boolean isApiEnabled(@NonNull JobApi api); static void setApiEnabled(@NonNull JobApi api, boolean enabled); static void forceApi(@NonNull JobApi api); static boolean isAllowSmallerIntervalsForMarshmallow(); static void setAllowSmallerIntervalsForMarshmallow(boolean allowSmallerIntervals); static void setForceAllowApi14(boolean forceAllowApi14); static boolean isForceAllowApi14(); static synchronized boolean addLogger(@NonNull JobLogger logger); static synchronized void removeLogger(@NonNull JobLogger logger); static void setLogcatEnabled(boolean enabled); static boolean isLogcatEnabled(); static long getJobReschedulePause(); static void setJobReschedulePause(long pause, @NonNull TimeUnit timeUnit); static int getJobIdOffset(); static void setJobIdOffset(int jobIdOffset); static boolean isForceRtc(); static void setForceRtc(boolean forceRtc); static Clock getClock(); static ExecutorService getExecutorService(); static void setExecutorService(@NonNull ExecutorService executorService); static boolean isCloseDatabase(); static void setCloseDatabase(boolean closeDatabase); static void reset(); }
JobConfig { public static void setJobIdOffset(int jobIdOffset) { JobPreconditions.checkArgumentNonnegative(jobIdOffset, "offset can't be negative"); if (jobIdOffset > JobIdsInternal.RESERVED_JOB_ID_RANGE_START - 500) { throw new IllegalArgumentException("offset is too close to Integer.MAX_VALUE"); } JobConfig.jobIdOffset = jobIdOffset; } private  JobConfig(); static boolean isApiEnabled(@NonNull JobApi api); static void setApiEnabled(@NonNull JobApi api, boolean enabled); static void forceApi(@NonNull JobApi api); static boolean isAllowSmallerIntervalsForMarshmallow(); static void setAllowSmallerIntervalsForMarshmallow(boolean allowSmallerIntervals); static void setForceAllowApi14(boolean forceAllowApi14); static boolean isForceAllowApi14(); static synchronized boolean addLogger(@NonNull JobLogger logger); static synchronized void removeLogger(@NonNull JobLogger logger); static void setLogcatEnabled(boolean enabled); static boolean isLogcatEnabled(); static long getJobReschedulePause(); static void setJobReschedulePause(long pause, @NonNull TimeUnit timeUnit); static int getJobIdOffset(); static void setJobIdOffset(int jobIdOffset); static boolean isForceRtc(); static void setForceRtc(boolean forceRtc); static Clock getClock(); static ExecutorService getExecutorService(); static void setExecutorService(@NonNull ExecutorService executorService); static boolean isCloseDatabase(); static void setCloseDatabase(boolean closeDatabase); static void reset();  }