@ Override public ByteAmount multiply ( int factor ) { checkArgument ( value <= Long . MAX_VALUE / factor , String . format ( "Multiplying %s by %d would exceed Long.MAX_LONG" , this , factor ) ) ; return ByteAmount . fromBytes ( value * factor ) ; }
Multiplies by factor