| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Constants |
|
| 2.0;2 |
| 1 | /** | |
| 2 | * Copyright 2009 Martin Vysny. | |
| 3 | * | |
| 4 | * This file is part of WebVM. | |
| 5 | * | |
| 6 | * WebVM is free software: you can redistribute it and/or modify | |
| 7 | * it under the terms of the GNU General Public License as published by | |
| 8 | * the Free Software Foundation, either version 3 of the License, or | |
| 9 | * (at your option) any later version. | |
| 10 | * | |
| 11 | * WebVM is distributed in the hope that it will be useful, | |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | * GNU General Public License for more details. | |
| 15 | * | |
| 16 | * You should have received a copy of the GNU General Public License | |
| 17 | * along with WebVM. If not, see <http://www.gnu.org/licenses/>. | |
| 18 | */ | |
| 19 | package sk.baka.webvm.misc; | |
| 20 | ||
| 21 | /** | |
| 22 | * Contains several useful constants. | |
| 23 | * @author Martin Vysny | |
| 24 | */ | |
| 25 | public final class Constants { | |
| 26 | ||
| 27 | 0 | private Constants() { |
| 28 | 0 | throw new AssertionError(); |
| 29 | } | |
| 30 | /** | |
| 31 | * Number of millis in a second. | |
| 32 | */ | |
| 33 | public static final int MILLIS_IN_SECOND = 1000; | |
| 34 | /** | |
| 35 | * Hundred (full) percent. | |
| 36 | */ | |
| 37 | public static final int HUNDRED_PERCENT = 100; | |
| 38 | /** | |
| 39 | * Number of bytes in a binary kilobyte. | |
| 40 | */ | |
| 41 | public static final long KIBIBYTES = 1024; | |
| 42 | /** | |
| 43 | * Number of bytes in a binary megabyte. | |
| 44 | */ | |
| 45 | public static final long MEBIBYTES = KIBIBYTES * KIBIBYTES; | |
| 46 | } |