| Package | Description |
|---|---|
| net.obvj.agents.util |
Provides utility classes in general.
|
| Modifier and Type | Field and Description |
|---|---|
static TimeUnit |
TimeUnit.DEFAULT
The default time unit
|
| Modifier and Type | Method and Description |
|---|---|
static TimeUnit |
TimeUnit.findByIdentifier(String identifier)
Returns a
TimeUnit that is identifiable by the given string. |
TimeUnit |
TimeInterval.getTimeUnit()
Returns the
TimeUnit associated with this TimeInterval. |
static TimeUnit |
TimeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnit[] |
TimeUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
long |
TimeUnit.convert(long amount,
TimeUnit sourceTimeUnit)
Converts the given time duration from a source Time Unit to this Time Unit.
|
static Date |
DateUtils.getNextExactDateEveryInterval(int interval,
TimeUnit timeUnit)
Return the next exact date for a given interval and time unit after the current time.
|
static Date |
DateUtils.getNextExactDateEveryInterval(int interval,
TimeUnit timeUnit,
Calendar calendar)
Return the next exact date given a specific interval and time unit after the specified
Calendar instance. |
static Date |
DateUtils.getNextExactDateEveryInterval(int interval,
TimeUnit timeUnit,
Date date)
Return the next exact date given a specific interval and time unit after the specified
date.
|
| Constructor and Description |
|---|
TimeInterval(int duration,
TimeUnit timeUnit)
Builds a TimeInterval with a given duration and
TimeUnit. |
Copyright © 2021. All rights reserved.