本文整理了Java中org.apache.brooklyn.util.time.Time.makeTimeStringExact()
方法的一些代码示例,展示了Time.makeTimeStringExact()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Time.makeTimeStringExact()
方法的具体详情如下:
包路径:org.apache.brooklyn.util.time.Time
类名称:Time
方法名:makeTimeStringExact
暂无
代码示例来源:origin: org.apache.brooklyn/brooklyn-utils-common
@Override
public String toString() {
return Time.makeTimeStringExact(this);
}
代码示例来源:origin: org.apache.brooklyn/brooklyn-utils-common
@Override @Nullable
public String apply(@Nullable Long input) {
if (input == null) return null;
return Time.makeTimeStringExact(input);
}
}
代码示例来源:origin: org.apache.brooklyn/brooklyn-utils-common
@Override
@Nullable
public String apply(@Nullable Long input) {
if (input == null) return null;
return Time.makeTimeStringExact(input);
}
};
代码示例来源:origin: org.apache.brooklyn/brooklyn-utils-common
private void check(long millis, String expected) {
Assert.assertEquals(Time.makeTimeStringExact(millis), expected);
}
代码示例来源:origin: org.apache.brooklyn/brooklyn-utils-common
@Test
public void testMakeTimeStringFromDuration() {
Assert.assertNull(Time.makeTimeStringExact((Duration)null));
Assert.assertEquals(Time.makeTimeStringExact(Duration.millis(1100)), "1s 100ms");
Assert.assertNull(Time.makeTimeStringRounded((Duration)null));
Assert.assertEquals(Time.makeTimeStringRounded(Duration.millis(1100)), "1.10s");
}
内容来源于网络,如有侵权,请联系作者删除!