本文整理了Java中java.util.Calendar.isWeekDateSupported()
方法的一些代码示例,展示了Calendar.isWeekDateSupported()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Calendar.isWeekDateSupported()
方法的具体详情如下:
包路径:java.util.Calendar
类名称:Calendar
方法名:isWeekDateSupported
[英]Returns whether this Calendar supports week dates.
The default implementation of this method returns false.
[中]返回此日历是否支持星期日期。
此方法的默认实现返回false。
代码示例来源:origin: EvoSuite/evosuite
public boolean isWeekDateSupported() {
Capturer.capture(Instrumenter.CAPTURE_ID_JAVA_UTIL_CALENDAR, this, "isWeekDateSupported", "()Z", new Object[] {});
boolean ret = wrappedCalendar.isWeekDateSupported();
Capturer.enable(Instrumenter.CAPTURE_ID_JAVA_UTIL_CALENDAR, this, ret);
return ret;
}
代码示例来源:origin: jtulach/bck2brwsr
int value;
if (field == CalendarBuilder.WEEK_YEAR) {
if (calendar.isWeekDateSupported()) {
value = calendar.getWeekYear();
} else {
代码示例来源:origin: org.apidesign.bck2brwsr/emul
Calendar establish(Calendar cal) {
boolean weekDate = isSet(WEEK_YEAR)
&& field[WEEK_YEAR] > field[YEAR];
if (weekDate && !cal.isWeekDateSupported()) {
代码示例来源:origin: org.apidesign.bck2brwsr/emul
int value;
if (field == CalendarBuilder.WEEK_YEAR) {
if (calendar.isWeekDateSupported()) {
value = calendar.getWeekYear();
} else {
代码示例来源:origin: jtulach/bck2brwsr
Calendar establish(Calendar cal) {
boolean weekDate = isSet(WEEK_YEAR)
&& field[WEEK_YEAR] > field[YEAR];
if (weekDate && !cal.isWeekDateSupported()) {
代码示例来源:origin: org.apidesign.bck2brwsr/emul
ParsePosition pos = new ParsePosition(0);
pos.index = start;
if (patternCharIndex == PATTERN_WEEK_YEAR && !calendar.isWeekDateSupported()) {
代码示例来源:origin: jtulach/bck2brwsr
ParsePosition pos = new ParsePosition(0);
pos.index = start;
if (patternCharIndex == PATTERN_WEEK_YEAR && !calendar.isWeekDateSupported()) {
内容来源于网络,如有侵权,请联系作者删除!