private void readObject ( ObjectInputStream s ) throws IOException , ClassNotFoundException , InvalidObjectException { s . defaultReadObject ( ) ; if ( minSmallest > minLargest ) { throw new InvalidObjectException ( "Smallest minimum value must be less than largest minimum value" ) ; } if ( maxSmallest > maxLargest ) { throw new InvalidObjectException ( "Smallest maximum value must be less than largest maximum value" ) ; } if ( minLargest > maxLargest ) { throw new InvalidObjectException ( "Minimum value must be less than maximum value" ) ; } }
Restore the state of an ValueRange from the stream . Check that the values are valid .