本文整理了Java中org.apache.wicket.util.time.Time.get()
方法的一些代码示例,展示了Time.get()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Time.get()
方法的具体详情如下:
包路径:org.apache.wicket.util.time.Time
类名称:Time
方法名:get
[英]Retrieves the value of a field.
[中]检索字段的值。
代码示例来源:origin: org.apache.wicket/wicket-util
/**
* Retrieves the month field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the month field value
*/
public int getMonth(final Calendar calendar)
{
return get(calendar, Calendar.MONTH);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Retrieves the hour field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> to get the field value from
* @return the hour field value
*/
public int getHour(final Calendar calendar)
{
return get(calendar, Calendar.HOUR);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Retrieves the month field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the month field value
*/
public int getMonth(final Calendar calendar)
{
return get(calendar, Calendar.MONTH);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Retrieves the seconds field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the seconds field value
*/
public int getSecond(final Calendar calendar)
{
return get(calendar, Calendar.SECOND);
}
代码示例来源:origin: org.apache.wicket/wicket-util
/**
* Retrieves the day of month field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> to get the field value from
* @return the day of month field value
*/
public int getDayOfMonth(final Calendar calendar)
{
return get(calendar, Calendar.DAY_OF_MONTH);
}
代码示例来源:origin: org.apache.wicket/wicket-util
/**
* Retrieves the hour field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> to get the field value from
* @return the hour field value
*/
public int getHour(final Calendar calendar)
{
return get(calendar, Calendar.HOUR_OF_DAY);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Retrieves the month field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the month field value
*/
public int getMonth(final Calendar calendar)
{
return get(calendar, Calendar.MONTH);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Retrieves the day of month field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> to get the field value from
* @return the day of month field value
*/
public int getDayOfMonth(final Calendar calendar)
{
return get(calendar, Calendar.DAY_OF_MONTH);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Retrieves the year field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the year field value
*/
public int getYear(final Calendar calendar)
{
return get(calendar, Calendar.YEAR);
}
代码示例来源:origin: org.apache.wicket/wicket-util
/**
* Retrieves the seconds field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the seconds field value
*/
public int getSecond(final Calendar calendar)
{
return get(calendar, Calendar.SECOND);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Retrieves the value of a field.
*
* @param field
* the <code>Calendar</code> field to get
* @return the field's value (in local time)
*/
public int get(final int field)
{
return get(localtime, field);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Retrieves the minute field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the minute field value
*/
public int getMinute(final Calendar calendar)
{
return get(calendar, Calendar.MINUTE);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Retrieves the year field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the year field value
*/
public int getYear(final Calendar calendar)
{
return get(calendar, Calendar.YEAR);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Retrieves the minute field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the minute field value
*/
public int getMinute(final Calendar calendar)
{
return get(calendar, Calendar.MINUTE);
}
代码示例来源:origin: org.apache.wicket/wicket-util
/**
* Retrieves the value of a field.
*
* @param field
* the <code>Calendar</code> field to get
* @return the field's value (in local time)
*/
public int get(final int field)
{
return get(localtime, field);
}
代码示例来源:origin: org.apache.wicket/wicket-util
/**
* Retrieves the minute field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the minute field value
*/
public int getMinute(final Calendar calendar)
{
return get(calendar, Calendar.MINUTE);
}
代码示例来源:origin: org.apache.wicket/wicket-util
/**
* Retrieves the year field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the year field value
*/
public int getYear(final Calendar calendar)
{
return get(calendar, Calendar.YEAR);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Retrieves the day of month field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> to get the field value from
* @return the day of month field value
*/
public int getDayOfMonth(final Calendar calendar)
{
return get(calendar, Calendar.DAY_OF_MONTH);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Retrieves the hour field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> to get the field value from
* @return the hour field value
*/
public int getHour(final Calendar calendar)
{
return get(calendar, Calendar.HOUR);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Retrieves the seconds field of the given <code>Calendar</code>.
*
* @param calendar
* the <code>Calendar</code> from which to get the field value
* @return the seconds field value
*/
public int getSecond(final Calendar calendar)
{
return get(calendar, Calendar.SECOND);
}
内容来源于网络,如有侵权,请联系作者删除!