本文整理了Java中org.apache.wicket.util.time.Time.<init>()
方法的一些代码示例,展示了Time.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Time.<init>()
方法的具体详情如下:
包路径:org.apache.wicket.util.time.Time
类名称:Time
方法名:<init>
[英]Private constructor forces use of static factory methods.
[中]私有构造函数强制使用静态工厂方法。
代码示例来源:origin: org.apache.wicket/wicket-util
/**
* Retrieves a <code>Time</code> instance based on the given milliseconds.
*
* @param time
* the <code>Time</code> value in milliseconds since START_OF_UNIX_TIME
* @return a corresponding immutable <code>Time</code> object
*/
public static Time millis(final long time)
{
return new Time(time);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Retrieves a <code>Time</code> instance based on the given milliseconds.
*
* @param time
* the <code>Time</code> value in milliseconds since START_OF_UNIX_TIME
* @return a corresponding immutable <code>Time</code> object
*/
public static Time valueOf(final long time)
{
return new Time(time);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Retrieves a <code>Time</code> instance based on the given milliseconds.
*
* @param time
* the <code>Time</code> value in milliseconds since START_OF_UNIX_TIME
* @return a corresponding immutable <code>Time</code> object
*/
public static Time valueOf(final long time)
{
return new Time(time);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Retrieves a <code>Time</code> instance based on the given milliseconds.
*
* @param time
* the time value in milliseconds since START_OF_UNIX_TIME
* @return the given <code>Time</code>
*/
public static Time milliseconds(final long time)
{
return new Time(time);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Retrieves a <code>Time</code> instance based on the given milliseconds.
*
* @param time
* the time value in milliseconds since START_OF_UNIX_TIME
* @return the given <code>Time</code>
*/
public static Time milliseconds(final long time)
{
return new Time(time);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Retrieves a <code>Time</code> instance based on the current time.
*
* @return the current <code>Time</code>
*/
public static Time now()
{
return new Time(System.currentTimeMillis());
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Retrieves a <code>Time</code> instance based on the given <code>Date</code> object.
*
* @param date
* a <code>java.util.Date</code> object
* @return a corresponding immutable <code>Time</code> object
*/
public static Time valueOf(final Date date)
{
return new Time(date.getTime());
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Retrieves a <code>Time</code> instance based on the current time.
*
* @return the current <code>Time</code>
*/
public static Time now()
{
return new Time(System.currentTimeMillis());
}
代码示例来源:origin: org.apache.wicket/wicket-util
/**
* Retrieves a <code>Time</code> instance based on the given <code>Date</code> object.
*
* @param date
* a <code>java.util.Date</code> object
* @return a corresponding immutable <code>Time</code> object
*/
public static Time valueOf(final Date date)
{
return new Time(date.getTime());
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Retrieves a <code>Time</code> instance based on the given <code>Date</code> object.
*
* @param date
* a <code>java.util.Date</code> object
* @return a corresponding immutable <code>Time</code> object
*/
public static Time valueOf(final Date date)
{
return new Time(date.getTime());
}
内容来源于网络,如有侵权,请联系作者删除!