• 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

93.75
/src/main/java/com/smartsheet/api/models/format/Currency.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 enum representing the available currency formats available in Smartsheet.
25
 * @author kskeem
26
 */
27
public enum Currency {
1✔
28
    NONE(null, ""),
1✔
29
    ARGENTINE_PESO("ARS", "\u0024"),
1✔
30
    AUSTRALIAN_DOLLAR("AUD", "$"),
1✔
31
    BRAZIL_REAIS("BRL", "\u0052$"),
1✔
32
    CANADIAN_DOLLAR("CAD", "$"),
1✔
33
    CHILEAN_PESOS("CLP", "$"),
1✔
34
    EURO("EUR", "\u20AC"),
1✔
35
    BRITISH_POUND("GBP", "\u00A3"),
1✔
36
    ISRAEL_SHEKEL("ILS", "\u20AA"),
1✔
37
    INDIA_RUPEES("INR", "\u20A8"),
1✔
38
    JAPAN_YEN("JPY", "\u00A5"),
1✔
39
    MEXICAN_PESOS("MXN", "$"),
1✔
40
    RUSSIAN_RUBLES("RUB", "\u0440\u0443\u0431"),
1✔
41
    USD("USD", "$"),
1✔
42
    SOUTHAFRICA_RAND("ZAR", "R"),
1✔
43
    SWISS_FRANC("CHF", "CHF"),
1✔
44
    CHINA_YUAN("CNY", "\u5143"),
1✔
45
    DENMARK_KRONER("DKK", "kr"),
1✔
46
    HONKKONG_DOLLAR("HKD", "\u0048\u004B$"),
1✔
47
    SOUTHKOREAN_WON("KRW", "\u20A9"),
1✔
48
    NORWAY_KRONER("NOK", "kr"),
1✔
49
    NEWZEALAND_DOLLAR("NZD", "$"),
1✔
50
    SWEDEN_KRONOR("SEK", "kr"),
1✔
51
    SINGAPORE_DOLLAR("SGD", "$"),
1✔
52
    ;
53

54
    /**
55
     * The default setting when the {@link Format} for {@link Currency} is null;
56
     */
57
    public static final Currency DEFAULT = NONE;
1✔
58

59
    private final String code;
60
    private final String symbol;
61

62
    Currency(String code, String symbol) {
1✔
63
        this.code = code;
1✔
64
        this.symbol = symbol;
1✔
65
    }
1✔
66

67
    /**
68
     * @return the code
69
     */
70
    public String getCode() {
71
        return code;
×
72
    }
73

74
    /**
75
     * @return the symbol
76
     */
77
    public String getSymbol() {
78
        return symbol;
×
79
    }
80
}
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