* Sets max size in bytes. * @param {?number} maxSize Maximum size in bytes * @param {boolean} [revalidate=true] Wether to revalidate current value. * @return {ByteField} Fluent interface
(maxSize, revalidate = true)
| 63 | * @return {ByteField} Fluent interface |
| 64 | */ |
| 65 | setMaxSize (maxSize, revalidate = true) { |
| 66 | if (this._maxSize === maxSize) { |
| 67 | return this |
| 68 | } |
| 69 | this._maxSize = maxSize !== null ? parseInt(maxSize) : null |
| 70 | return revalidate ? this.revalidateValue() : this |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Validates given raw value. |
no test coverage detected