Android Open Source - android-calendarview Week Descriptor






From Project

Back to project page android-calendarview.

License

The source code is released under:

Apache License

If you think the Android project android-calendarview listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

// Copyright 2012 Square, Inc.
package com.tripadvisor;
/*  w  w  w .  ja  va2s.co m*/
import java.util.Date;

public class WeekDescriptor {
  private final int weekInYear;
  private final int year;
  private final int month;
  private final Date date;
  private String label;

  public WeekDescriptor(int weekInYear, int year, Date date, String label) {
    this.weekInYear = weekInYear;
    this.year = year;
    this.date = date;
    this.label = label;
    //noinspection deprecation
    this.month = date.getMonth();
  }

  public int getWeekInYear() {
    return weekInYear;
  }

  public int getYear() {
    return year;
  }

  public int getMonth() {
      return month;
  }

  public Date getDate() {
    return date;
  }

    @Override public String toString() {
    return "WeekDescriptor{"
        + "label='"
        + label
        + '\''
        + ", weekInYear="
        + weekInYear
        + ", year="
        + year
        + '}';
  }
}




Java Source Code List

com.example.calendarview.CalendarActivity.java
com.example.calendarview.TestActivity.java
com.tripadvisor.CalendarCellView.java
com.tripadvisor.CalendarRowView.java
com.tripadvisor.CalendarView.java
com.tripadvisor.Logr.java
com.tripadvisor.WeekCellDescriptor.java
com.tripadvisor.WeekDescriptor.java
com.tripadvisor.WeekRowView.java
com.tripadvisor.WeekView.java