| 1 |
/** |
| 2 |
* Copyright (c) 2012-2017, jcabi.com |
| 3 |
* All rights reserved. |
| 4 |
* |
| 5 |
* Redistribution and use in source and binary forms, with or without |
| 6 |
* modification, are permitted provided that the following conditions |
| 7 |
* are met: 1) Redistributions of source code must retain the above |
| 8 |
* copyright notice, this list of conditions and the following |
| 9 |
* disclaimer. 2) Redistributions in binary form must reproduce the above |
| 10 |
* copyright notice, this list of conditions and the following |
| 11 |
* disclaimer in the documentation and/or other materials provided |
| 12 |
* with the distribution. 3) Neither the name of the jcabi.com nor |
| 13 |
* the names of its contributors may be used to endorse or promote |
| 14 |
* products derived from this software without specific prior written |
| 15 |
* permission. |
| 16 |
* |
| 17 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 18 |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT |
| 19 |
* NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 20 |
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL |
| 21 |
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| 22 |
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 23 |
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 24 |
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 25 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 26 |
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 27 |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 28 |
* OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 |
*/ |
| 30 |
package com.jcabi.aspects; |
| 31 |
|
| 32 |
/** |
| 33 |
* Convenient holder of numeric constants for annotations |
| 34 |
* (TV means "time values"). |
| 35 |
* |
| 36 |
* <p>For example, you can use it like this: |
| 37 |
* |
| 38 |
* <pre> @Cacheable(lifetime = Tv.FIVE, unit = TimeUnit.SECONDS) |
| 39 |
* String load(String resource) throws IOException { |
| 40 |
* }</pre> |
| 41 |
* |
| 42 |
* @author Yegor Bugayenko ([email protected]) |
| 43 |
* @author Simon Njenga ([email protected]) |
| 44 |
* @version $Id: d2b0089704bf2b1dba343a129ea257732b1018a0 $ |
| 45 |
* @since 0.22.1 |
| 46 |
* @see <a href="http://aspects.jcabi.com">http://aspects.jcabi.com/</a> |
| 47 |
*/ |
| 48 |
public final class Tv { |
| 49 |
|
| 50 |
/** |
| 51 |
* Three. |
| 52 |
*/ |
| 53 |
public static final int THREE = 3; |
| 54 |
|
| 55 |
/** |
| 56 |
* Four. |
| 57 |
*/ |
| 58 |
public static final int FOUR = 4; |
| 59 |
|
| 60 |
/** |
| 61 |
* Five. |
| 62 |
*/ |
| 63 |
public static final int FIVE = 5; |
| 64 |
|
| 65 |
/** |
| 66 |
* Six. |
| 67 |
*/ |
| 68 |
public static final int SIX = 6; |
| 69 |
|
| 70 |
/** |
| 71 |
* Seven. |
| 72 |
*/ |
| 73 |
public static final int SEVEN = 7; |
| 74 |
|
| 75 |
/** |
| 76 |
* Eight. |
| 77 |
*/ |
| 78 |
public static final int EIGHT = 8; |
| 79 |
|
| 80 |
/** |
| 81 |
* Nine. |
| 82 |
*/ |
| 83 |
public static final int NINE = 9; |
| 84 |
|
| 85 |
/** |
| 86 |
* Ten. |
| 87 |
*/ |
| 88 |
public static final int TEN = 10; |
| 89 |
|
| 90 |
/** |
| 91 |
* Fifteen. |
| 92 |
*/ |
| 93 |
public static final int FIFTEEN = 15; |
| 94 |
|
| 95 |
/** |
| 96 |
* Twenty. |
| 97 |
*/ |
| 98 |
public static final int TWENTY = 20; |
| 99 |
|
| 100 |
/** |
| 101 |
* Thirty. |
| 102 |
*/ |
| 103 |
public static final int THIRTY = 30; |
| 104 |
|
| 105 |
/** |
| 106 |
* Forty. |
| 107 |
*/ |
| 108 |
public static final int FORTY = 40; |
| 109 |
|
| 110 |
/** |
| 111 |
* Fifty. |
| 112 |
*/ |
| 113 |
public static final int FIFTY = 50; |
| 114 |
|
| 115 |
/** |
| 116 |
* Sixty. |
| 117 |
*/ |
| 118 |
public static final int SIXTY = 60; |
| 119 |
|
| 120 |
/** |
| 121 |
* Seventy. |
| 122 |
*/ |
| 123 |
public static final int SEVENTY = 70; |
| 124 |
|
| 125 |
/** |
| 126 |
* Eighty. |
| 127 |
*/ |
| 128 |
public static final int EIGHTY = 80; |
| 129 |
|
| 130 |
/** |
| 131 |
* Ninety. |
| 132 |
*/ |
| 133 |
public static final int NINETY = 90; |
| 134 |
|
| 135 |
/** |
| 136 |
* Hundren. |
| 137 |
*/ |
| 138 |
public static final int HUNDRED = 100; |
| 139 |
|
| 140 |
/** |
| 141 |
* Thousand. |
| 142 |
*/ |
| 143 |
public static final int THOUSAND = 1000; |
| 144 |
|
| 145 |
/** |
| 146 |
* Million. |
| 147 |
*/ |
| 148 |
public static final int MILLION = 1000000; |
| 149 |
|
| 150 |
/** |
| 151 |
* Billion. |
| 152 |
*/ |
| 153 |
public static final int BILLION = 1000000000; |
| 154 |
|
| 155 |
/** |
| 156 |
* Private constructor. |
| 157 |
*/ |
| 158 |
private Tv() { |
| 159 |
throw new IllegalStateException("Utility class - cannot instantiate!"); |
| 160 |
} |
| 161 |
} |