xref: /aosp_15_r20/external/zxing/zxing.appspot.com/src/main/java/com/google/zxing/web/generator/client/TimeZoneInfo.java (revision 513427e33d61bc67fc40bc261642ac0b2a686b45)
1 /*
2  * Copyright (C) 2008 ZXing authors
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.google.zxing.web.generator.client;
18 
19 final class TimeZoneInfo {
20 
21   private final String abbreviation;
22   private final String longName;
23   private final String gmtRelative;
24   private final long gmtDiff;
25 
TimeZoneInfo(String abbreviation, String longName, String relative, long gmtDiff)26   TimeZoneInfo(String abbreviation, String longName, String relative, long gmtDiff) {
27     gmtRelative = relative;
28     this.abbreviation = abbreviation;
29     this.gmtDiff = gmtDiff;
30     this.longName = longName;
31   }
32 
getAbbreviation()33   String getAbbreviation() {
34     return abbreviation;
35   }
36 
getLongName()37   String getLongName() {
38     return longName;
39   }
40 
getGmtRelative()41   String getGmtRelative() {
42     return gmtRelative;
43   }
44 
getGmtDiff()45   long getGmtDiff() {
46     return gmtDiff;
47   }
48 
49 }
50