mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
Merge branch 'master' of dice:git/vm
This commit is contained in:
commit
67faa23d83
@ -2,6 +2,11 @@ package java.text;
|
|||||||
|
|
||||||
public class DateFormatSymbols {
|
public class DateFormatSymbols {
|
||||||
private String[] ampm = new String[] { "AM", "PM" };
|
private String[] ampm = new String[] { "AM", "PM" };
|
||||||
|
private String[] shortWeekdays = new String[] { "Sun", "Mon", "Tue",
|
||||||
|
"Wed", "Thu", "Fri", "Sat" };
|
||||||
|
private String[] shortMonths = new String[] { "Jan", "Feb", "Mar", "Apr",
|
||||||
|
"May", "Jun", "Jul", "Aug",
|
||||||
|
"Sep", "Oct", "Nov", "Dec" };
|
||||||
|
|
||||||
public String[] getAmPmStrings() {
|
public String[] getAmPmStrings() {
|
||||||
return ampm;
|
return ampm;
|
||||||
@ -10,4 +15,12 @@ public class DateFormatSymbols {
|
|||||||
public void setAmPmStrings(String[] v) {
|
public void setAmPmStrings(String[] v) {
|
||||||
ampm = v;
|
ampm = v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String[] getShortWeekdays() {
|
||||||
|
return shortWeekdays;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String[] getShortMonths() {
|
||||||
|
return shortMonths;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ public abstract class Calendar {
|
|||||||
public static final int AM = 0;
|
public static final int AM = 0;
|
||||||
public static final int AM_PM = 9;
|
public static final int AM_PM = 9;
|
||||||
public static final int DAY_OF_MONTH = 5;
|
public static final int DAY_OF_MONTH = 5;
|
||||||
|
public static final int DAY_OF_WEEK = 7;
|
||||||
public static final int HOUR = 10;
|
public static final int HOUR = 10;
|
||||||
public static final int HOUR_OF_DAY = 11;
|
public static final int HOUR_OF_DAY = 11;
|
||||||
public static final int MINUTE = 12;
|
public static final int MINUTE = 12;
|
||||||
@ -39,6 +40,7 @@ public abstract class Calendar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public abstract void roll(int field, boolean up);
|
public abstract void roll(int field, boolean up);
|
||||||
|
public abstract void add(int field, int amount);
|
||||||
|
|
||||||
public void roll(int field, int amount) {
|
public void roll(int field, int amount) {
|
||||||
boolean up = amount >= 0;
|
boolean up = amount >= 0;
|
||||||
@ -122,6 +124,10 @@ public abstract class Calendar {
|
|||||||
// todo
|
// todo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void add(int fild, int amount) {
|
||||||
|
// todo
|
||||||
|
}
|
||||||
|
|
||||||
public int getMinimum(int field) {
|
public int getMinimum(int field) {
|
||||||
// todo
|
// todo
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user