You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/02/11 07:55:12 UTC
[jira] [Commented] (WICKET-4580) StringValue: missing methods to
convert from text to wrapped classes of primitive type with defaultValue
[ https://issues.apache.org/jira/browse/WICKET-4580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14315687#comment-14315687 ]
ASF GitHub Bot commented on WICKET-4580:
----------------------------------------
Github user klopfdreh commented on the pull request:
https://github.com/apache/wicket/pull/13#issuecomment-73840576
As of the JIRA ticket this topic wouldn't be fixed - @minman would you be so kind and close this PR? Thank you.
> StringValue: missing methods to convert from text to wrapped classes of primitive type with defaultValue
> --------------------------------------------------------------------------------------------------------
>
> Key: WICKET-4580
> URL: https://issues.apache.org/jira/browse/WICKET-4580
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5.6
> Reporter: manthos
>
> org.apache.wicket.util.string.StringValue has methods to convert from String to a specific type with a defaultValue if text is empty or inconvertible.
> example:
> public final long toLong(final long defaultValue)
> Missing equivalent methods working with wrapped classes of primitive type.
> New methods:
> toBooleanObject(final Boolean defaultValue)
> toCharacter(final Character defaultValue)
> toDoubleObject(final Double defaultValue)
> toInteger(final Integer defaultValue)
> toLongObject(final Long defaultValue)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)