|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectohymosj.OhTimePoint
フィールドの概要 | |
protected long |
_oneYearInSec
|
protected long |
_tsec
|
protected int |
_year
|
static int |
DAY
The index of the element of the calendar array which contains the datum of day. |
static int |
HOUR
The index of the element of the calendar array which contains the datum of hour. |
protected static int[] |
lDay
|
static int |
MINUTE
The index of the element of the calendar array which contains the datum of munute. |
static int |
MONTH
The index of the element of the calendar array which contains the datum of month. |
protected static int[] |
nDay
|
static OhTimePoint |
OhTimePointMax
|
static OhTimePoint |
OhTimePointMin
|
static int |
SECOND
The index of the element of the calendar array which contains the datum of second. |
static int |
YEAR
The index of the element of the calendar array which contains the datum of year. |
コンストラクタの概要 | |
OhTimePoint()
Creates a new default OhTimePoint instance.
|
|
OhTimePoint(int aYear,
int aMonth,
int aDay,
int aHour,
int aMin,
int aSec)
Creates a new OhTimePoint instance. |
|
OhTimePoint(int aYear,
long aTsec)
Creates a new OhTimePoint instance. |
|
OhTimePoint(OhTimePoint tp)
Creates a new OhTimePoint instance from another
OhTimePoint instance. |
メソッドの概要 | |
OhTimePoint |
add(long timeSec)
Adds the specified amount of seconds to the current object and returns the updated object. |
java.lang.Object |
clone()
Returns a deep copy of the current object |
int |
compareTo(java.lang.Object arg)
Compares the current OhTimePoint object to another object 'arg' and returns the result. |
void |
copy(OhTimePoint tp)
Copies fields from those of OhTimePoint tp. |
boolean |
equals(java.lang.Object arg)
Tests if the specified Object is an instance of OhTimePoint and if it equals this OhTimePoint. |
long |
getOneYearInSec()
Gets the number of seconds contained in the year of the time expressed by this OhTimePoint object |
long |
getTsec()
Gets the time from the beginning of the year of the time expressed by this OhTimePoint object |
int |
getYear()
Gets the year |
static boolean |
isLeapYear(int aYear)
Tests if the year 'aYear' is a leap year or not. |
OhTimePoint |
setTsec(long aTsec)
Set this OhTimePoint time at the time point when 'aTsec' seconds have elapsed from the beginning of the year. |
OhTimePoint |
setYear(int aYear)
Sets the time of this OhTimePoint object to the beginning of the year aYear. |
long |
subtract(OhTimePoint aT)
|
int[] |
toCalendarArray()
Converts the current OhTimePoint object to the Calendar array. |
java.lang.String |
toCalendarString()
Returns the CalendaString. |
java.lang.String |
toString()
Returns "" + _year + " " + _tsec. |
クラス java.lang.Object から継承したメソッド |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
protected int _year
protected long _tsec
protected long _oneYearInSec
protected static int[] nDay
protected static int[] lDay
public static final int YEAR
public static final int MONTH
public static final int DAY
public static final int HOUR
public static final int MINUTE
public static final int SECOND
public static OhTimePoint OhTimePointMin
をもって定義しています。
public static OhTimePoint OhTimePointMax
をもって定義しています。
コンストラクタの詳細 |
public OhTimePoint()
OhTimePoint
instance.
The default time is the beginning of the year 0.
public OhTimePoint(int aYear, long aTsec)
OhTimePoint
instance.
aYear
- an int
value.aTsec
- a long
value. Time from the beginning
of the year.public OhTimePoint(int aYear, int aMonth, int aDay, int aHour, int aMin, int aSec)
OhTimePoint
instance.
aYear
- an int
value. year ex. 2003aMonth
- an int
value. month from 1 to 12. 1 for JanuaryaDay
- an int
value. day 1 for the first day of
the monthaHour
- an int
value. hour from 0 to 23aMin
- an int
value. min from 0 to 59aSec
- an int
value. second from 0 to 59public OhTimePoint(OhTimePoint tp)
OhTimePoint
instance from another
OhTimePoint
instance.
tp
- an OhTimePoint valueメソッドの詳細 |
public java.lang.Object clone()
Object
valuepublic void copy(OhTimePoint tp)
OhTimePoint
tp.
tp
- an Object
valuepublic boolean equals(java.lang.Object arg)
arg
- an Object
value
boolean
valuepublic int getYear()
int
valuepublic long getTsec()
long
valuepublic long getOneYearInSec()
long
valuepublic static boolean isLeapYear(int aYear)
aYear
- an int
value
boolean
valuepublic int[] toCalendarArray()
int[]
valuepublic OhTimePoint setYear(int aYear)
aYear
- an int
value
OhTimePoint
valuepublic OhTimePoint setTsec(long aTsec)
aTsec
- a long
value
OhTimePoint
valuepublic int compareTo(java.lang.Object arg)
java.lang.Comparable
内の compareTo
arg
- an Object
value
int
value.
the value 0 if this OhTimePoint object expresses the same time as
the argument OhTimePoint object;
the value -1 0 if this OhTimePoint object expresses earlier
time than the
argument OhTimePoint object;
the value 1 if this OhTimePoint object expresses later time than the
argument OhTimePoint object.public OhTimePoint add(long timeSec)
timeSec
- a long
value.
OhTimePoint
valuepublic long subtract(OhTimePoint aT)
aT
- an OhTimePoint
value
long
valuepublic java.lang.String toString()
String
valuepublic java.lang.String toCalendarString()
String
value
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |