public static boolean pairEquals(Object... objects)
	{
		if (objects.length % 2 != 0)
		{
			throw new IllegalArgumentException("Method requies an even number of arguments to compare");
		}

		for (int i = 0; i < objects.length; i += 2)
		{
			if (objects[i] == null || objects[i+1] == null)
			{
				if ((objects[i] != null || objects[i+1] != null))
				{
					return false;
				}
			}
			else if (!objects[i].equals(objects[i+1]) || !objects[i+1].equals(objects[i]))
			{
				return false;
			}
		}

		return true;
	}