• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smartsheet / smartsheet-java-sdk / #41

24 Aug 2023 04:59PM UTC coverage: 50.458% (+0.01%) from 50.444%
#41

push

github-actions

web-flow
Fix Checkstyle Violations in "Impl" Classes (#53)

241 of 241 new or added lines in 32 files covered. (100.0%)

3417 of 6772 relevant lines covered (50.46%)

0.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

97.92
/src/main/java/com/smartsheet/api/models/format/Color.java
1
package com.smartsheet.api.models.format;
2

3
/*
4
 * #[license]
5
 * Smartsheet SDK for Java
6
 * %%
7
 * Copyright (C) 2023 Smartsheet
8
 * %%
9
 * Licensed under the Apache License, Version 2.0 (the "License");
10
 * you may not use this file except in compliance with the License.
11
 * You may obtain a copy of the License at
12
 *
13
 *      http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing, software
16
 * distributed under the License is distributed on an "AS IS" BASIS,
17
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
 * See the License for the specific language governing permissions and
19
 * limitations under the License.
20
 * %[license]
21
 */
22

23
/**
24
 * An enumeration representing all the colors available for formatting within Smartsheet.
25
 * @author kskeem
26
 */
27
public enum Color {
1✔
28
    NONE(null),
1✔
29
    BLACK("000000"),
1✔
30
    WHITE("FFFFFF"),
1✔
31
    TRANSPARENT("transparent"),
1✔
32

33
    RED_0("FEEEF0"),
1✔
34
    ORANGE_0("FFF4E6"),
1✔
35
    YELLOW_0("FCFAD3"),
1✔
36
    GREEN_0("ECFEEF"),
1✔
37
    BLUE_0("E6F5FE"),
1✔
38
    PURPLE_0("F3E5FA"),
1✔
39
    BROWN_0("F2E8DE"),
1✔
40

41
    RED_1("FDDADB"),
1✔
42
    ORANGE_1("FEE6C9"),
1✔
43
    YELLOW_1("FCF99B"),
1✔
44
    GREEN_1("D9F9DD"),
1✔
45
    BLUE_1("D3E8F6"),
1✔
46
    PURPLE_1("E9C9FA"),
1✔
47
    BROWN_1("EEDCCA"),
1✔
48
    GREY_1("E5E5E5"),
1✔
49

50
    RED_2("FCABAE"),
1✔
51
    ORANGE_2("FDD09C"),
1✔
52
    YELLOW_2("FFFF00"),
1✔
53
    GREEN_2("A9EEAE"),
1✔
54
    BLUE_2("95B9F0"),
1✔
55
    PURPLE_2("D39EF0"),
1✔
56
    BROWN_2("D7B99C"),
1✔
57
    GREY_2("CDCCCC"),
1✔
58

59
    RED_3("FF0000"),
1✔
60
    ORANGE_3("FF8100"),
1✔
61
    YELLOW_3("FDE900"),
1✔
62
    GREEN_3("00CA0E"),
1✔
63
    BLUE_3("165DEF"),
1✔
64
    PURPLE_3("A601D6"),
1✔
65
    BROWN_3("974C02"),
1✔
66
    GREY_3("808080"),
1✔
67

68
    RED_4("770E12"),
1✔
69
    ORANGE_4("D05800"),
1✔
70
    YELLOW_4("FFC800"),
1✔
71
    GREEN_4("00750D"),
1✔
72
    BLUE_4("00395E"),
1✔
73
    PURPLE_4("6C018B"),
1✔
74
    BROWN_4("5A2D01"),
1✔
75
    ;
76

77
    private final String hex;
78

79
    /**
80
     * The default setting when the {@link Format} for {@link Color} is null;
81
     */
82
    public static final Color DEFAULT = NONE;
1✔
83

84
    Color(String hex) {
1✔
85
        this.hex = hex;
1✔
86
    }
1✔
87

88
    /**
89
     * @return the hex
90
     */
91
    public String getHex() {
92
        return hex;
×
93
    }
94
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc