forked from yuangu/sxtwl_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDay.java
More file actions
144 lines (112 loc) · 3.81 KB
/
Day.java
File metadata and controls
144 lines (112 loc) · 3.81 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.seantone.sxtwl;
public class Day {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected Day(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Day obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
sxtwlJNI.delete_Day(swigCPtr);
}
swigCPtr = 0;
}
}
public static Day fromSolar(int _year, short _month, int _day) {
long cPtr = sxtwlJNI.Day_fromSolar(_year, _month, _day);
return (cPtr == 0) ? null : new Day(cPtr, false);
}
public static Day fromLunar(int year, short month, int day, boolean isRun) {
long cPtr = sxtwlJNI.Day_fromLunar__SWIG_0(year, month, day, isRun);
return (cPtr == 0) ? null : new Day(cPtr, false);
}
public static Day fromLunar(int year, short month, int day) {
long cPtr = sxtwlJNI.Day_fromLunar__SWIG_1(year, month, day);
return (cPtr == 0) ? null : new Day(cPtr, false);
}
public Day after(int day) {
long cPtr = sxtwlJNI.Day_after(swigCPtr, this, day);
return (cPtr == 0) ? null : new Day(cPtr, false);
}
public Day before(int day) {
long cPtr = sxtwlJNI.Day_before(swigCPtr, this, day);
return (cPtr == 0) ? null : new Day(cPtr, false);
}
public int getLunarDay() {
return sxtwlJNI.Day_getLunarDay(swigCPtr, this);
}
public short getLunarMonth() {
return sxtwlJNI.Day_getLunarMonth(swigCPtr, this);
}
public int getLunarYear(boolean chineseNewYearBoundary) {
return sxtwlJNI.Day_getLunarYear__SWIG_0(swigCPtr, this, chineseNewYearBoundary);
}
public int getLunarYear() {
return sxtwlJNI.Day_getLunarYear__SWIG_1(swigCPtr, this);
}
public GZ getYearGZ(boolean chineseNewYearBoundary) {
return new GZ(sxtwlJNI.Day_getYearGZ__SWIG_0(swigCPtr, this, chineseNewYearBoundary), true);
}
public GZ getYearGZ() {
return new GZ(sxtwlJNI.Day_getYearGZ__SWIG_1(swigCPtr, this), true);
}
public GZ getMonthGZ() {
return new GZ(sxtwlJNI.Day_getMonthGZ(swigCPtr, this), true);
}
public GZ getDayGZ() {
return new GZ(sxtwlJNI.Day_getDayGZ(swigCPtr, this), true);
}
public GZ getHourGZ(short hour, boolean isZaoWanZiShi) {
return new GZ(sxtwlJNI.Day_getHourGZ__SWIG_0(swigCPtr, this, hour, isZaoWanZiShi), true);
}
public GZ getHourGZ(short hour) {
return new GZ(sxtwlJNI.Day_getHourGZ__SWIG_1(swigCPtr, this, hour), true);
}
public boolean isLunarLeap() {
return sxtwlJNI.Day_isLunarLeap(swigCPtr, this);
}
public int getSolarYear() {
return sxtwlJNI.Day_getSolarYear(swigCPtr, this);
}
public short getSolarMonth() {
return sxtwlJNI.Day_getSolarMonth(swigCPtr, this);
}
public int getSolarDay() {
return sxtwlJNI.Day_getSolarDay(swigCPtr, this);
}
public short getWeek() {
return sxtwlJNI.Day_getWeek(swigCPtr, this);
}
public short getWeekIndex() {
return sxtwlJNI.Day_getWeekIndex(swigCPtr, this);
}
public boolean hasJieQi() {
return sxtwlJNI.Day_hasJieQi(swigCPtr, this);
}
public short getJieQi() {
return sxtwlJNI.Day_getJieQi(swigCPtr, this);
}
public double getJieQiJD() {
return sxtwlJNI.Day_getJieQiJD(swigCPtr, this);
}
public short getConstellation() {
return sxtwlJNI.Day_getConstellation(swigCPtr, this);
}
}