Java Doc for SimpleDate.java in  » Rule-Engine » Mandarax » org » mandarax » lib » date » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Rule Engine » Mandarax » org.mandarax.lib.date 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.Calendar
      java.util.GregorianCalendar
         org.mandarax.lib.date.SimpleDate

SimpleDate
public class SimpleDate extends GregorianCalendar (Code)
A SimpleDate implementation which extends the java.util.GregorianCalendar. A SimpleDate can be in synchronized mode and not synchronized (absolute) mode. In the not synchronized mode the absolute time values independent from the time zone are used for comparison of calendar objects (e.g. a SimpleDate with time value 19:00 p.m. in Germany Berlin is the same as SimpleDate object with time value 19:00 p.m. in USA Los Angeles). In the synchronized mode two SimpleDate objects are equal if they have the same real time value (e.g. a SimpleDate with time value 19:00 p.m. in Germany Berlin is the same as the SimpleDate object with time value 10:00 a.m. in USA Los Angeles (- 8 hours)). The time zone offset is given by the java.util.Timezone.
author:
   Adrian Paschke
version:
   3.4 <7 March 05>
since:
   3.3.1



Constructor Summary
public  SimpleDate()
     Constructs a default, synchronized SimpleDate using the current time in the default time zone with the default locale.
public  SimpleDate(boolean syn)
     Constructs a defaultSimpleDate using the current time in the default time zone with the default locale and synchronized flag.
public  SimpleDate(TimeZone zone, boolean syn)
     Constructs a SimpleDate based on the current time in the given time zone with the default locale.
public  SimpleDate(Locale aLocale, boolean syn)
     Constructs a SimpleDate based on the current time in the default time zone with the given locale and synchronized flag.
public  SimpleDate(TimeZone zone, Locale aLocale, boolean syn)
     Constructs a SimpleDate based on the current time in the given time zone with the given locale and synchronized flag.
public  SimpleDate(int year, int month, int dayOfMonth, boolean syn)
     Constructs a SimpleDate with the given date set in the default time zone with the default locale and synchronized flag.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based.
public  SimpleDate(int year, int month, int dayOfMonth, int hourOfDay, int minute, boolean syn)
     Constructs a SimpleDate with the given date and time set for the default time zone with the default locale and synchronized flag.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based.
public  SimpleDate(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second, boolean syn)
     Constructs a SimpleDate with the given date and time set for the default time zone with the default locale and synchronized flag.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based.
public  SimpleDate(TimeZone zone)
     Constructs a synchronized SimpleDate based on the current time in the given time zone with the default locale.
public  SimpleDate(Locale aLocale)
     Constructs a synchronized SimpleDate based on the current time in the default time zone with the given locale.
public  SimpleDate(TimeZone zone, Locale aLocale)
     Constructs a synchronizedSimpleDate based on the current time in the given time zone with the given locale.
public  SimpleDate(int year, int month, int dayOfMonth)
     Constructs a synchronizedSimpleDate with the given date set in the default time zone with the default locale.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based.
public  SimpleDate(int year, int month, int dayOfMonth, int hourOfDay, int minute)
     Constructs a synchronizedSimpleDate with the given date and time set for the default time zone with the default locale.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based.
public  SimpleDate(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second)
     Constructs a synchronized SimpleDate with the given date and time set for the default time zone with the default locale.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based.

Method Summary
public  booleanafter(Object obj)
     Returns whether this SimpleDate represents a time after the time represented by the specified Object, if and only if obj is a Calendar instance.
public  booleanbefore(Object obj)
     Returns whether this SimpleDate represents a time before the time represented by the specified Object, if and only if obj is a Calendar instance.
public  booleanequals(Object obj)
     Compares this SimpleDate to the specified Object.
public  booleanisSynchronized()
    
public  voidsetSynchronized(boolean syn)
    


Constructor Detail
SimpleDate
public SimpleDate()(Code)
Constructs a default, synchronized SimpleDate using the current time in the default time zone with the default locale.



SimpleDate
public SimpleDate(boolean syn)(Code)
Constructs a defaultSimpleDate using the current time in the default time zone with the default locale and synchronized flag.



SimpleDate
public SimpleDate(TimeZone zone, boolean syn)(Code)
Constructs a SimpleDate based on the current time in the given time zone with the default locale.
Parameters:
  zone - the given time zone.
Parameters:
  syn - synchronized flag



SimpleDate
public SimpleDate(Locale aLocale, boolean syn)(Code)
Constructs a SimpleDate based on the current time in the default time zone with the given locale and synchronized flag.
Parameters:
  aLocale - the given locale.
Parameters:
  syn - synchronized flag



SimpleDate
public SimpleDate(TimeZone zone, Locale aLocale, boolean syn)(Code)
Constructs a SimpleDate based on the current time in the given time zone with the given locale and synchronized flag.
Parameters:
  zone - the given time zone.
Parameters:
  aLocale - the given locale.
Parameters:
  syn - synchronized flag



SimpleDate
public SimpleDate(int year, int month, int dayOfMonth, boolean syn)(Code)
Constructs a SimpleDate with the given date set in the default time zone with the default locale and synchronized flag.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based. e.g., 0 for January.
Parameters:
  dayOfMonth - the value used to set the DAY_OF_MONTH calendar field in the calendar.
Parameters:
  syn - synchronized flag



SimpleDate
public SimpleDate(int year, int month, int dayOfMonth, int hourOfDay, int minute, boolean syn)(Code)
Constructs a SimpleDate with the given date and time set for the default time zone with the default locale and synchronized flag.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based. e.g., 0 for January.
Parameters:
  dayOfMonth - the value used to set the DAY_OF_MONTH calendar field in the calendar.
Parameters:
  hourOfDay - the value used to set the HOUR_OF_DAY calendar fieldin the calendar.
Parameters:
  minute - the value used to set the MINUTE calendar fieldin the calendar.



SimpleDate
public SimpleDate(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second, boolean syn)(Code)
Constructs a SimpleDate with the given date and time set for the default time zone with the default locale and synchronized flag.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based. e.g., 0 for January.
Parameters:
  dayOfMonth - the value used to set the DAY_OF_MONTH calendar field in the calendar.
Parameters:
  hourOfDay - the value used to set the HOUR_OF_DAY calendar fieldin the calendar.
Parameters:
  minute - the value used to set the MINUTE calendar fieldin the calendar.
Parameters:
  second - the value used to set the SECOND calendar fieldin the calendar.



SimpleDate
public SimpleDate(TimeZone zone)(Code)
Constructs a synchronized SimpleDate based on the current time in the given time zone with the default locale.
Parameters:
  zone - the given time zone.



SimpleDate
public SimpleDate(Locale aLocale)(Code)
Constructs a synchronized SimpleDate based on the current time in the default time zone with the given locale.
Parameters:
  aLocale - the given locale.



SimpleDate
public SimpleDate(TimeZone zone, Locale aLocale)(Code)
Constructs a synchronizedSimpleDate based on the current time in the given time zone with the given locale.
Parameters:
  zone - the given time zone.
Parameters:
  aLocale - the given locale.



SimpleDate
public SimpleDate(int year, int month, int dayOfMonth)(Code)
Constructs a synchronizedSimpleDate with the given date set in the default time zone with the default locale.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based. e.g., 0 for January.
Parameters:
  dayOfMonth - the value used to set the DAY_OF_MONTH calendar field in the calendar.



SimpleDate
public SimpleDate(int year, int month, int dayOfMonth, int hourOfDay, int minute)(Code)
Constructs a synchronizedSimpleDate with the given date and time set for the default time zone with the default locale.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based. e.g., 0 for January.
Parameters:
  dayOfMonth - the value used to set the DAY_OF_MONTH calendar field in the calendar.
Parameters:
  hourOfDay - the value used to set the HOUR_OF_DAY calendar fieldin the calendar.
Parameters:
  minute - the value used to set the MINUTE calendar fieldin the calendar.



SimpleDate
public SimpleDate(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second)(Code)
Constructs a synchronized SimpleDate with the given date and time set for the default time zone with the default locale.
Parameters:
  year - the value used to set the YEAR calendar field in the calendar.
Parameters:
  month - the value used to set the MONTH calendar field in the calendar.Month value is 0-based. e.g., 0 for January.
Parameters:
  dayOfMonth - the value used to set the DAY_OF_MONTH calendar field in the calendar.
Parameters:
  hourOfDay - the value used to set the HOUR_OF_DAY calendar fieldin the calendar.
Parameters:
  minute - the value used to set the MINUTE calendar fieldin the calendar.
Parameters:
  second - the value used to set the SECOND calendar fieldin the calendar.




Method Detail
after
public boolean after(Object obj)(Code)
Returns whether this SimpleDate represents a time after the time represented by the specified Object, if and only if obj is a Calendar instance. Otherwise, the method returns false. In synchronized mode only the time values are compared, in not synchronized mode the time zone offsets are added (~the absolute times are compared).
Parameters:
  obj - the Object to be compared true if the time of this Calendar isafter the time represented by when; falseotherwise.
See Also:   SimpleDate.compareTo(Calendar)



before
public boolean before(Object obj)(Code)
Returns whether this SimpleDate represents a time before the time represented by the specified Object, if and only if obj is a Calendar instance. Otherwise, the method returns false. In synchronized mode only the time values are compared, in not synchronized mode the time zone offsets are added (~ the absolute times are compared).
Parameters:
  obj - the Object to be compared true if the time of thisCalendar is before the time represented byobj; false otherwise.



equals
public boolean equals(Object obj)(Code)
Compares this SimpleDate to the specified Object. The result is true if and only if the argument is a instance of Calendar that represents the same time value (millisecond offset from the Epoch) in the synchronized mode or the time value + the time zone offsets (in milliseconds) as this object (~ the absolute times are compared).
Parameters:
  obj - the object to compare with. true if this object is equal to obj;false otherwise.



isSynchronized
public boolean isSynchronized()(Code)
Indicated wether this SimpleDate is in synchronized mode or not boolean true:synchronized - false: not synchronize



setSynchronized
public void setSynchronized(boolean syn)(Code)
Set the synchronized mode
Parameters:
  syn - synchronized flag



Fields inherited from java.util.GregorianCalendar
final public static int AD(Code)(Java Doc)
final public static int BC(Code)(Java Doc)

Methods inherited from java.util.GregorianCalendar
public void add(int field, int amount)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected void computeFields()(Code)(Java Doc)
protected void computeTime()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public int getActualMaximum(int field)(Code)(Java Doc)
public int getActualMinimum(int field)(Code)(Java Doc)
public int getGreatestMinimum(int field)(Code)(Java Doc)
final public Date getGregorianChange()(Code)(Java Doc)
public int getLeastMaximum(int field)(Code)(Java Doc)
public int getMaximum(int field)(Code)(Java Doc)
public int getMinimum(int field)(Code)(Java Doc)
public TimeZone getTimeZone()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isLeapYear(int year)(Code)(Java Doc)
public void roll(int field, boolean up)(Code)(Java Doc)
public void roll(int field, int amount)(Code)(Java Doc)
public void setGregorianChange(Date date)(Code)(Java Doc)
public void setTimeZone(TimeZone zone)(Code)(Java Doc)

Fields inherited from java.util.Calendar
final public static int ALL_STYLES(Code)(Java Doc)
final public static int AM(Code)(Java Doc)
final public static int AM_PM(Code)(Java Doc)
final public static int APRIL(Code)(Java Doc)
final public static int AUGUST(Code)(Java Doc)
final public static int DATE(Code)(Java Doc)
final public static int DAY_OF_MONTH(Code)(Java Doc)
final public static int DAY_OF_WEEK(Code)(Java Doc)
final public static int DAY_OF_WEEK_IN_MONTH(Code)(Java Doc)
final public static int DAY_OF_YEAR(Code)(Java Doc)
final public static int DECEMBER(Code)(Java Doc)
final public static int DST_OFFSET(Code)(Java Doc)
final public static int ERA(Code)(Java Doc)
final public static int FEBRUARY(Code)(Java Doc)
final public static int FIELD_COUNT(Code)(Java Doc)
final public static int FRIDAY(Code)(Java Doc)
final public static int HOUR(Code)(Java Doc)
final public static int HOUR_OF_DAY(Code)(Java Doc)
final public static int JANUARY(Code)(Java Doc)
final public static int JULY(Code)(Java Doc)
final public static int JUNE(Code)(Java Doc)
final public static int LONG(Code)(Java Doc)
final public static int MARCH(Code)(Java Doc)
final public static int MAY(Code)(Java Doc)
final public static int MILLISECOND(Code)(Java Doc)
final public static int MINUTE(Code)(Java Doc)
final public static int MONDAY(Code)(Java Doc)
final public static int MONTH(Code)(Java Doc)
final public static int NOVEMBER(Code)(Java Doc)
final public static int OCTOBER(Code)(Java Doc)
final public static int PM(Code)(Java Doc)
final public static int SATURDAY(Code)(Java Doc)
final public static int SECOND(Code)(Java Doc)
final public static int SEPTEMBER(Code)(Java Doc)
final public static int SHORT(Code)(Java Doc)
final public static int SUNDAY(Code)(Java Doc)
final public static int THURSDAY(Code)(Java Doc)
final public static int TUESDAY(Code)(Java Doc)
final public static int UNDECIMBER(Code)(Java Doc)
final public static int WEDNESDAY(Code)(Java Doc)
final public static int WEEK_OF_MONTH(Code)(Java Doc)
final public static int WEEK_OF_YEAR(Code)(Java Doc)
final public static int YEAR(Code)(Java Doc)
final public static int ZONE_OFFSET(Code)(Java Doc)
protected boolean areFieldsSet(Code)(Java Doc)
protected int fields(Code)(Java Doc)
protected boolean isSet(Code)(Java Doc)
protected boolean isTimeSet(Code)(Java Doc)
protected long time(Code)(Java Doc)

Methods inherited from java.util.Calendar
abstract public void add(int field, int amount)(Code)(Java Doc)
public boolean after(Object when)(Code)(Java Doc)
public boolean before(Object when)(Code)(Java Doc)
final public void clear()(Code)(Java Doc)
final public void clear(int field)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public int compareTo(Calendar anotherCalendar)(Code)(Java Doc)
protected void complete()(Code)(Java Doc)
abstract protected void computeFields()(Code)(Java Doc)
abstract protected void computeTime()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public int get(int field)(Code)(Java Doc)
public int getActualMaximum(int field)(Code)(Java Doc)
public int getActualMinimum(int field)(Code)(Java Doc)
public static synchronized Locale[] getAvailableLocales()(Code)(Java Doc)
public String getDisplayName(int field, int style, Locale locale)(Code)(Java Doc)
public Map<String, Integer> getDisplayNames(int field, int style, Locale locale)(Code)(Java Doc)
public int getFirstDayOfWeek()(Code)(Java Doc)
abstract public int getGreatestMinimum(int field)(Code)(Java Doc)
public static Calendar getInstance()(Code)(Java Doc)
public static Calendar getInstance(TimeZone zone)(Code)(Java Doc)
public static Calendar getInstance(Locale aLocale)(Code)(Java Doc)
public static Calendar getInstance(TimeZone zone, Locale aLocale)(Code)(Java Doc)
abstract public int getLeastMaximum(int field)(Code)(Java Doc)
abstract public int getMaximum(int field)(Code)(Java Doc)
public int getMinimalDaysInFirstWeek()(Code)(Java Doc)
abstract public int getMinimum(int field)(Code)(Java Doc)
final public Date getTime()(Code)(Java Doc)
public long getTimeInMillis()(Code)(Java Doc)
public TimeZone getTimeZone()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final protected int internalGet(int field)(Code)(Java Doc)
public boolean isLenient()(Code)(Java Doc)
final public boolean isSet(int field)(Code)(Java Doc)
abstract public void roll(int field, boolean up)(Code)(Java Doc)
public void roll(int field, int amount)(Code)(Java Doc)
public void set(int field, int value)(Code)(Java Doc)
final public void set(int year, int month, int date)(Code)(Java Doc)
final public void set(int year, int month, int date, int hourOfDay, int minute)(Code)(Java Doc)
final public void set(int year, int month, int date, int hourOfDay, int minute, int second)(Code)(Java Doc)
public void setFirstDayOfWeek(int value)(Code)(Java Doc)
public void setLenient(boolean lenient)(Code)(Java Doc)
public void setMinimalDaysInFirstWeek(int value)(Code)(Java Doc)
final public void setTime(Date date)(Code)(Java Doc)
public void setTimeInMillis(long millis)(Code)(Java Doc)
public void setTimeZone(TimeZone value)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.