Blame view

src/com/squareup/timessquare/MonthDescriptor.java 859 Bytes
3c2353cd   杜方   1、畅游通核销app源码提交;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  // Copyright 2012 Square, Inc.
  package com.squareup.timessquare;
  
  import java.util.Date;
  
  class MonthDescriptor {
    private final int month;
    private final int year;
    private final Date date;
    private String label;
  
    public MonthDescriptor(int month, int year, Date date, String label) {
      this.month = month;
      this.year = year;
      this.date = date;
      this.label = label;
    }
  
    public int getMonth() {
      return month;
    }
  
    public int getYear() {
      return year;
    }
  
    public Date getDate() {
      return date;
    }
  
    public String getLabel() {
      return label;
    }
  
    void setLabel(String label) {
      this.label = label;
    }
  
    @Override public String toString() {
      return "MonthDescriptor{"
          + "label='"
          + label
          + '\''
          + ", month="
          + month
          + ", year="
          + year
          + '}';
    }
  }