package com.danikula.videocache; final class Preconditions { static <T> T checkNotNull(T reference) { if (reference == null) { throw new NullPointerException(); } return reference; } static <T> T checkNotNull(T reference, String errorMessage) { if (reference == null) { throw new NullPointerException(errorMessage); } return reference; } static void checkArgument(boolean expression) { if (!expression) { throw new IllegalArgumentException(); } } static void checkArgument(boolean expression, String errorMessage) { if (!expression) { throw new IllegalArgumentException(errorMessage); } } }