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

smartsheet / smartsheet-java-sdk / #43

24 Aug 2023 10:26PM UTC coverage: 50.427% (-0.02%) from 50.442%
#43

push

github-actions

web-flow
Fix Checkstyle violations in api/models Classes (#57)

This will fix ~900 violations

189 of 189 new or added lines in 59 files covered. (100.0%)

3423 of 6788 relevant lines covered (50.43%)

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
 */
26
public enum Color {
1✔
27
    NONE(null),
1✔
28
    BLACK("000000"),
1✔
29
    WHITE("FFFFFF"),
1✔
30
    TRANSPARENT("transparent"),
1✔
31

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

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

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

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

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

76
    private final String hex;
77

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

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

87
    /**
88
     * @return the hex
89
     */
90
    public String getHex() {
91
        return hex;
×
92
    }
93
}
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