Package | Description |
---|---|
org.apache.wicket.examples.library | |
org.apache.wicket.util.lang | |
org.apache.wicket.util.string |
String utilities.
|
org.apache.wicket.util.time |
Utilities for working with
Time (s). |
org.apache.wicket.util.value |
This package provides casting utilities.
|
Constructor and Description |
---|
BookDetails(PageParameters parameters)
Constructor for calls from external page links
|
Modifier and Type | Method and Description |
---|---|
static Bytes |
Bytes.valueOf(String string)
Converts a string to a number of bytes.
|
static Bytes |
Bytes.valueOf(String string,
Locale locale)
Converts a string to a number of bytes.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Strings.isTrue(String s)
Converts the text in
s to a corresponding boolean. |
<T> T |
StringValue.to(Class<T> type)
Converts this StringValue to a given type.
|
boolean |
StringValue.toBoolean()
Convert this text to a boolean.
|
static Boolean |
Strings.toBoolean(String s)
Converts the string s to a Boolean.
|
Boolean |
StringValue.toBooleanObject()
Convert this text to a boolean.
|
char |
StringValue.toChar()
Convert this text to a char.
|
static char |
Strings.toChar(String s)
Converts the 1 character string s to a character.
|
Character |
StringValue.toCharacter()
Convert this text to a Character.
|
double |
StringValue.toDouble()
Convert this text to a double.
|
Double |
StringValue.toDoubleObject()
Convert this text to a Double.
|
Duration |
StringValue.toDuration()
Convert this text to a Duration instance.
|
<T extends Enum<T>> |
StringValue.toEnum(Class<T> eClass)
Convert this text to an enum.
|
int |
StringValue.toInt()
Convert this text to an int.
|
Integer |
StringValue.toInteger()
Convert this text to an Integer.
|
long |
StringValue.toLong()
Convert this text to a long.
|
Long |
StringValue.toLongObject()
Convert this text to a Long.
|
<T> T |
StringValue.toOptional(Class<T> type)
Converts this StringValue to a given type or
null if the value is empty. |
Boolean |
StringValue.toOptionalBoolean()
Convert to object types, returning null if text is null or empty.
|
Character |
StringValue.toOptionalCharacter()
Convert to object types, returning null if text is null or empty.
|
Double |
StringValue.toOptionalDouble()
Convert to object types, returning null if text is null or empty.
|
Duration |
StringValue.toOptionalDuration()
Convert to object types, returning null if text is null or empty.
|
<T extends Enum<T>> |
StringValue.toOptionalEnum(Class<T> eClass)
Convert to enum, returning null if text is null or empty.
|
Integer |
StringValue.toOptionalInteger()
Convert to object types, returning null if text is null or empty.
|
Long |
StringValue.toOptionalLong()
Convert to object types, returning null if text is null or empty.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static Duration |
Duration.valueOf(String string)
Converts the given
String to a new Duration object. |
static Duration |
Duration.valueOf(String string,
Locale locale)
Converts the given
String to a new Duration object. |
Modifier and Type | Method and Description |
---|---|
boolean |
ValueMap.getBoolean(String key) |
boolean |
IValueMap.getBoolean(String key)
Retrieves a
boolean value by key. |
boolean |
CopyOnWriteValueMap.getBoolean(String key) |
double |
ValueMap.getDouble(String key) |
double |
IValueMap.getDouble(String key)
Retrieves a
double value by key. |
double |
CopyOnWriteValueMap.getDouble(String key) |
double |
IValueMap.getDouble(String key,
double defaultValue)
Retrieves a
double value by key, using a default value if not found. |
Duration |
ValueMap.getDuration(String key) |
Duration |
IValueMap.getDuration(String key)
Retrieves a
Duration by key. |
Duration |
CopyOnWriteValueMap.getDuration(String key) |
int |
ValueMap.getInt(String key) |
int |
IValueMap.getInt(String key)
Retrieves an
int value by key. |
int |
CopyOnWriteValueMap.getInt(String key) |
int |
IValueMap.getInt(String key,
int defaultValue)
Retrieves an
int value by key, using a default value if not found. |
long |
ValueMap.getLong(String key) |
long |
IValueMap.getLong(String key)
Retrieves a
long value by key. |
long |
CopyOnWriteValueMap.getLong(String key) |
long |
IValueMap.getLong(String key,
long defaultValue)
Retrieves a
long value by key, using a default value if not found. |
Time |
ValueMap.getTime(String key) |
Time |
IValueMap.getTime(String key)
Retrieves a
Time object by key. |
Time |
CopyOnWriteValueMap.getTime(String key) |
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.