Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/langtools/jdk/javadoc/doclet/constantValues/TestConstantValues.java
40971 views
1
/*
2
* Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation.
8
*
9
* This code is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
* version 2 for more details (a copy is included in the LICENSE file that
13
* accompanied this code).
14
*
15
* You should have received a copy of the GNU General Public License version
16
* 2 along with this work; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
*
19
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
* or visit www.oracle.com if you need additional information or have any
21
* questions.
22
*/
23
24
public class TestConstantValues {
25
26
/**
27
* Test 1 passes ({@value}).
28
*/
29
public static final int TEST1PASSES = 500000;
30
31
32
/**
33
* Test 2 passes ({@value}).
34
*/
35
public static final String TEST2PASSES = "My String";
36
37
// all of if not most are in the JDK sources, it is
38
// crucial we catch any discrepancies now.
39
public static final byte BYTE_MAX_VALUE = 127;
40
public static final byte BYTE_MIN_VALUE = -127;
41
42
public static final char CHAR_MAX_VALUE = 65535;
43
44
public static final double DOUBLE_MAX_VALUE = 1.7976931348623157E308;
45
public static final double DOUBLE_MIN_VALUE = 4.9E-324;
46
47
public static final float MAX_FLOAT_VALUE = 3.4028234663852886E38f;
48
public static final float MIN_FLOAT_VALUE = 1.401298464324817E-45f;
49
50
public static final boolean HELLO = true;
51
public static final boolean GOODBYE = false;
52
53
public static final int INT_MAX_VALUE = 2147483647;
54
public static final int INT_MIN_VALUE = -2147483647;
55
56
public static final long LONG_MAX_LONG_VALUE = 9223372036854775807L;
57
public static final long LONG_MIN_LONG_VALUE = -9223372036854775808L;
58
59
public static final short SHORT_MAX_VALUE = 32767;
60
public static final short SHORT_MIN_VALUE = -32767;
61
}
62
63