apache poi hyperlink

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

apache poi hyperlink

osamafawzy719@gmail.com
is there a way to make this method
void setAddress(java.lang.String address)
to take an object instead of string

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: apache poi hyperlink

Greg Woolsey
What use case do you have in mind?  Excel stores this as a String value,
what benefit would there be to accepting Object, and how would that then be
converted to String?  Why not use use toString() on your object?

On Thu, Mar 21, 2019 at 4:52 AM [hidden email] <
[hidden email]> wrote:

> is there a way to make this method
> void setAddress(java.lang.String address)
> to take an object instead of string
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: apache poi hyperlink

Rob Sargent
Or write your own wrapper which takes Object (or maybe something
implementing LinkMakerInterface) and does what it needs to do to
generate the link and toString() that.

On 3/21/19 9:05 AM, Greg Woolsey wrote:

> What use case do you have in mind?  Excel stores this as a String value,
> what benefit would there be to accepting Object, and how would that then be
> converted to String?  Why not use use toString() on your object?
>
> On Thu, Mar 21, 2019 at 4:52 AM [hidden email] <
> [hidden email]> wrote:
>
>> is there a way to make this method
>> void setAddress(java.lang.String address)
>> to take an object instead of string
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]