| Package | Description |
|---|---|
| org.apache.wicket.util.file |
File utilities.
|
| org.apache.wicket.util.io |
Input/Output utilities.
|
| org.apache.wicket.util.resource |
Base support for resources.
|
| org.apache.wicket.util.string |
String utilities.
|
| org.apache.wicket.util.thread |
Threading utilities.
|
| org.apache.wicket.util.time |
Utilities for working with
Time(s). |
| org.apache.wicket.util.value |
This package provides casting utilities.
|
| org.apache.wicket.util.watch |
This package provides modification watchers.
|
| Modifier and Type | Method and Description |
|---|---|
static Time |
Files.getLastModified(File file)
get last modification timestamp for file
|
Time |
File.lastModifiedTime()
Returns a Time object representing the most recent time this file was modified.
|
| Modifier and Type | Method and Description |
|---|---|
static Time |
Connections.getLastModified(URL url)
Gets last modified date of the given
URL |
| Modifier and Type | Method and Description |
|---|---|
Time |
XSLTResourceStream.lastModifiedTime()
Returns always null
|
Time |
FileSystemResourceStream.lastModifiedTime() |
Time |
ResourceStreamWrapper.lastModifiedTime() |
Time |
AbstractResourceStreamWriter.lastModifiedTime()
Just returns now.
|
Time |
FileResourceStream.lastModifiedTime() |
Time |
AbstractStringResourceStream.lastModifiedTime() |
Time |
ZipResourceStream.lastModifiedTime() |
Time |
AbstractResourceStream.lastModifiedTime() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractStringResourceStream.setLastModified(Time lastModified) |
| Modifier and Type | Method and Description |
|---|---|
Time |
StringValue.toOptionalTime()
Convert to object types, returning null if text is null or empty.
|
Time |
StringValue.toTime()
Convert this text to a time instance.
|
Time |
StringValue.toTime(Time defaultValue)
Convert to time, returning default value if text is inconvertible.
|
| Modifier and Type | Method and Description |
|---|---|
Time |
StringValue.toTime(Time defaultValue)
Convert to time, returning default value if text is inconvertible.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Task.setStartTime(Time startTime)
Sets start time for this task.
|
| Modifier and Type | Field and Description |
|---|---|
static Time |
Time.START_OF_UNIX_TIME
the beginning of UNIX time: January 1, 1970, 0:00 GMT.
|
| Modifier and Type | Method and Description |
|---|---|
Time |
Time.add(Duration duration)
Adds the given
Duration to this Time object, moving the time into
the future. |
Time |
TimeFrame.getEnd()
Retrieves the end
Time of this TimeFrame. |
Time |
TimeFrame.getStart()
Retrieves the start
Time of this TimeFrame. |
static Time |
Time.millis(long time)
Retrieves a
Time instance based on the given milliseconds. |
Time |
TimeOfDay.next()
Retrieves the next occurrence of this
TimeOfDay in local time. |
Time |
TimeOfDay.next(Calendar calendar)
Retrieves the next occurrence of this
TimeOfDay on the given
Calendar. |
static Time |
Time.now()
Retrieves a
Time instance based on the current time. |
static Time |
Time.parseDate(Calendar calendar,
String string)
Retrieves a
Time instance by parsing 'yyyy.MM.dd' format. |
static Time |
Time.parseDate(String string)
Retrieves a
Time instance by parsing 'yyyy.MM.dd' format using a local time
Calendar. |
Time |
Time.subtract(Duration duration)
Subtracts the given
Duration from this Time object, moving the time
into the past. |
static Time |
Time.valueOf(Calendar calendar,
String string)
Retrieves a
Time instance by parsing 'yyyy.MM.dd-h.mma' format. |
static Time |
Time.valueOf(Calendar calendar,
TimeOfDay timeOfDay)
|
static Time |
Time.valueOf(Date date)
Retrieves a
Time instance based on the given Date object. |
static Time |
Time.valueOf(String string)
Retrieves a
Time instance by parsing 'yyyy.MM.dd-h.mma' format. |
static Time |
Time.valueOf(String string,
String pattern)
Retrieves a
Time instance by parsing 'pattern' format. |
static Time |
Time.valueOf(TimeOfDay timeOfDay)
Retrieves a
Time instance based on the given TimeOfDay object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TimeFrame.contains(Time time)
Determines if this
TimeFrame contains a given point in time. |
static Duration |
Duration.elapsed(Time start)
Calculates the amount of time elapsed since start time.
|
Object |
TimeMap.get(Time time)
Retrieves an
Object for the given Time value. |
Duration |
Time.subtract(Time that)
Subtract time from this and returns the difference as a
Duration object. |
static TimeOfDay |
TimeOfDay.valueOf(Calendar calendar,
Time time)
Converts a
Time instance and Calendar to a TimeOfDay
instance. |
static TimeOfDay |
TimeOfDay.valueOf(Time time)
Converts a
String value to a TimeOfDay instance. |
static TimeFrame |
TimeFrame.valueOf(Time start,
Duration duration)
Creates a
TimeFrame for a start Time and Duration. |
static TimeFrame |
TimeFrame.valueOf(Time start,
Time end)
Creates a
TimeFrame for given start and end Times. |
| Modifier and Type | Method and Description |
|---|---|
Time |
IValueMap.getAsTime(String key)
Retrieves a
Time value by key. |
Time |
ValueMap.getAsTime(String key) |
Time |
CopyOnWriteValueMap.getAsTime(String key) |
Time |
IValueMap.getAsTime(String key,
Time defaultValue)
Retrieves a
Time value by key. |
Time |
ValueMap.getAsTime(String key,
Time defaultValue) |
Time |
CopyOnWriteValueMap.getAsTime(String key,
Time defaultValue) |
Time |
IValueMap.getTime(String key)
Retrieves a
Time object by key. |
Time |
ValueMap.getTime(String key) |
Time |
CopyOnWriteValueMap.getTime(String key) |
| Modifier and Type | Method and Description |
|---|---|
Time |
IValueMap.getAsTime(String key,
Time defaultValue)
Retrieves a
Time value by key. |
Time |
ValueMap.getAsTime(String key,
Time defaultValue) |
Time |
CopyOnWriteValueMap.getAsTime(String key,
Time defaultValue) |
| Modifier and Type | Field and Description |
|---|---|
Time |
ModificationWatcher.Entry.lastModifiedTime |
| Modifier and Type | Method and Description |
|---|---|
Time |
IModifiable.lastModifiedTime()
Gets the last time this modifiable thing changed.
|
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.