public long value ( ) { if ( isInfinity && ! posOrNeg ) { return Long . MIN_VALUE ; } else if ( isInfinity && posOrNeg ) { return Long . MAX_VALUE ; } else { return val ; } }
Gets the value of this weight .