package org.jivesoftware.smack.util;

public class NumberUtil {
   public static void checkIfInUInt32Range(long value) {
      if (value < 0L) {
         throw new IllegalArgumentException("unsigned 32-bit integers can't be negative");
      } else if (value > 4294967295L) {
         throw new IllegalArgumentException("unsigned 32-bit integers can't be greater then 2^32 - 1");
      }
   }
}
