Android Open Source - Timetable Utils






From Project

Back to project page Timetable.

License

The source code is released under:

GNU General Public License

If you think the Android project Timetable 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

package com.timetable.android.utils;
//  w  w w  .  j a  va 2 s  .c om
import java.util.Calendar;
import java.util.Date;


public class Utils {
  
  private static TimeProvider timeProvider = new SimpleTimeProvider();
  
  
  public static boolean areEqualOrNulls (Object obj1, Object obj2) {
    return (obj1 == null && obj2 == null || obj1 != null && obj2 != null && obj1.equals(obj2));
  }
  
  public static Date getCurrDateTime() {
    return timeProvider.getCurrDateTime();
  }
  
  public static Calendar getCurrDateTimeCal() {
    return timeProvider.getCurrDateTimeCal();
  }
  
  public static Date getCurrDate() {
    return timeProvider.getCurrDate();
  }
  
  public static Calendar getCurrTimeCal() {
    return timeProvider.getCurrTimeCal();
  }
  
  public static Date getCurrTime() {
    return timeProvider.getCurrTime();
  }
  
  public static void setTimeProvider(TimeProvider timeProvider) {
    Utils.timeProvider = timeProvider;
  }
  
  
}




Java Source Code List

com.timetable.android.AlarmSoundPreference.java
com.timetable.android.BroadcastActions.java
com.timetable.android.DeviceMuteService.java
com.timetable.android.EventBroadcastSender.java
com.timetable.android.EventChecker.java
com.timetable.android.EventController.java
com.timetable.android.EventPager.java
com.timetable.android.EventPeriod.java
com.timetable.android.EventService.java
com.timetable.android.EventViewProvider.java
com.timetable.android.EventView.java
com.timetable.android.Event.java
com.timetable.android.IllegalEventDataException.java
com.timetable.android.Logger.java
com.timetable.android.ServiceStarter.java
com.timetable.android.TimetableApp.java
com.timetable.android.TimetableDatabase.java
com.timetable.android.activities.EventAddActivity.java
com.timetable.android.activities.EventCopyActivity.java
com.timetable.android.activities.EventDayViewActivity.java
com.timetable.android.activities.EventEditActivity.java
com.timetable.android.activities.SettingsActivity.java
com.timetable.android.alarm.AlarmDialogActivity.java
com.timetable.android.alarm.AlarmService.java
com.timetable.android.alarm.EventAlarm.java
com.timetable.android.uitests.AlarmDialogActivityTestCase.java
com.timetable.android.uitests.EventAddActivityTestCase.java
com.timetable.android.uitests.TimetableUiTestCase.java
com.timetable.android.utils.DateFormatFactory.java
com.timetable.android.utils.DateUtils.java
com.timetable.android.utils.FakeTimeProvider.java
com.timetable.android.utils.SimpleTimeProvider.java
com.timetable.android.utils.TestAlarmStarter.java
com.timetable.android.utils.TimeProvider.java
com.timetable.android.utils.Utils.java