public boolean lessThan ( long val ) { if ( isInfinity && ! posOrNeg ) { return true ; } else if ( isInfinity && posOrNeg ) { return false ; } else { return this . val < val ; } }
Checks to see if this weight is less than the given long value .