I think The < operator will only work for primitives. For classes you need to use a method.