code: public static int staticCompare(Number extractedValue, Number testValue) {
  		long extractedLong = extractedValue.longValue();
  		long testLong = testValue.longValue();
  		if (extractedLong > testLong) {
  			return 1;
  		} else if (extractedLong < testLong) {
  			return -1;
  		} else {
  			return 0;
  		}
  	}
docs: Static compare of longs which are unsigned or signed.