Package com.alessiodp.core.common.utils
Class DurationUtils
- java.lang.Object
-
- com.alessiodp.core.common.utils.DurationUtils
-
public class DurationUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description DurationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringformat(long durationSeconds, String format)static StringformatMilliseconds(long durationMillis, String format)static StringformatWith(long duration, String formatSeconds)static StringformatWith(long duration, String formatMinutes, String formatSeconds)static StringformatWith(long duration, String formatHours, String formatMinutes, String formatSeconds)static StringformatWith(long duration, String formatDays, String formatHours, String formatMinutes, String formatSeconds)static intmillisecondsToTicks(int milliseconds)
-
-
-
Method Detail
-
millisecondsToTicks
public static int millisecondsToTicks(int milliseconds)
-
formatWith
public static String formatWith(long duration, String formatMinutes, String formatSeconds)
-
formatWith
public static String formatWith(long duration, String formatHours, String formatMinutes, String formatSeconds)
-
formatWith
public static String formatWith(long duration, String formatDays, String formatHours, String formatMinutes, String formatSeconds)
-
-