public static Integer getCustomerSegment(Long i_customerID) {
Long segment = null;
segment = Long.valueOf(String,valueOf(hash(i_customerID)));
segment = Long.valueOf(String.valueOf(convertLongTo10Bit(segment)));
return new Integer(segment.intValue());
}
public static long hash(Long toHash) {
...
}
private static Integer convertLongTo10Bit(Long i_long) {
...
}
De revenire
Acum 12 ani