You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by se...@gmail.com on 2020/07/10 04:30:56 UTC
commons-lang3 - new functionality
Hi,
I am a Java Developer and during my development practice I have some new
functionality to provide for an Apache Commons Lang3 library - StringUtils
class.
As is writted in CONTRIBUTING.md I would like to discuss with you first.
The main purpose of a changes I would like to provide is to add an ability
for format any kind of message in the following way.
Example:
Input:
We have happened an error {} with some kind of specific interesting thing:
{}, ERROR_1, something
Output:
We have happened an error ERROR_1 with some kind of specific interesting
thing: something
There are some additional new functuionality that I would like to offer to
StringUtils, similar to the following.
So if it is in scope of Commons I would like to create a Pull Request with a
changes proposal.
The main question: Does it need to Commons Lang or not?
Kind regards,
Sergei Visotsky
Re: commons-lang3 - new functionality
Posted by Matt Sicker <bo...@gmail.com>.
There’s also the string substitutor classes, but they use a different
syntax. There’s also MessageFormat in the JDK.
On Fri, Jul 10, 2020 at 06:31 Gary Gregory <ga...@gmail.com> wrote:
> If this is for logging, most logging APIs like Log4j already provide this
> type of functionality.
>
> Gary
>
> On Fri, Jul 10, 2020, 07:19 Enrico Olivelli <eo...@gmail.com> wrote:
>
> > Sergei,
> > doesn't java.lang.String#format fit your need ?
> >
> > just my 2 cents
> > Enrico
> >
> > Il giorno ven 10 lug 2020 alle ore 13:14 <se...@gmail.com> ha
> > scritto:
> >
> > > Hi,
> > >
> > >
> > >
> > > I am a Java Developer and during my development practice I have some
> new
> > > functionality to provide for an Apache Commons Lang3 library -
> > StringUtils
> > > class.
> > >
> > > As is writted in CONTRIBUTING.md I would like to discuss with you
> first.
> > >
> > > The main purpose of a changes I would like to provide is to add an
> > ability
> > > for format any kind of message in the following way.
> > >
> > >
> > >
> > > Example:
> > >
> > > Input:
> > >
> > > We have happened an error {} with some kind of specific interesting
> > thing:
> > > {}, ERROR_1, something
> > >
> > >
> > >
> > > Output:
> > >
> > > We have happened an error ERROR_1 with some kind of specific
> interesting
> > > thing: something
> > >
> > >
> > >
> > > There are some additional new functuionality that I would like to offer
> > to
> > > StringUtils, similar to the following.
> > >
> > > So if it is in scope of Commons I would like to create a Pull Request
> > with
> > > a
> > > changes proposal.
> > >
> > > The main question: Does it need to Commons Lang or not?
> > >
> > >
> > >
> > > Kind regards,
> > >
> > > Sergei Visotsky
> > >
> > >
> > >
> > >
> >
>
--
Matt Sicker <bo...@gmail.com>
Re: commons-lang3 - new functionality
Posted by Gary Gregory <ga...@gmail.com>.
If this is for logging, most logging APIs like Log4j already provide this
type of functionality.
Gary
On Fri, Jul 10, 2020, 07:19 Enrico Olivelli <eo...@gmail.com> wrote:
> Sergei,
> doesn't java.lang.String#format fit your need ?
>
> just my 2 cents
> Enrico
>
> Il giorno ven 10 lug 2020 alle ore 13:14 <se...@gmail.com> ha
> scritto:
>
> > Hi,
> >
> >
> >
> > I am a Java Developer and during my development practice I have some new
> > functionality to provide for an Apache Commons Lang3 library -
> StringUtils
> > class.
> >
> > As is writted in CONTRIBUTING.md I would like to discuss with you first.
> >
> > The main purpose of a changes I would like to provide is to add an
> ability
> > for format any kind of message in the following way.
> >
> >
> >
> > Example:
> >
> > Input:
> >
> > We have happened an error {} with some kind of specific interesting
> thing:
> > {}, ERROR_1, something
> >
> >
> >
> > Output:
> >
> > We have happened an error ERROR_1 with some kind of specific interesting
> > thing: something
> >
> >
> >
> > There are some additional new functuionality that I would like to offer
> to
> > StringUtils, similar to the following.
> >
> > So if it is in scope of Commons I would like to create a Pull Request
> with
> > a
> > changes proposal.
> >
> > The main question: Does it need to Commons Lang or not?
> >
> >
> >
> > Kind regards,
> >
> > Sergei Visotsky
> >
> >
> >
> >
>
Re: commons-lang3 - new functionality
Posted by Enrico Olivelli <eo...@gmail.com>.
Sergei,
doesn't java.lang.String#format fit your need ?
just my 2 cents
Enrico
Il giorno ven 10 lug 2020 alle ore 13:14 <se...@gmail.com> ha
scritto:
> Hi,
>
>
>
> I am a Java Developer and during my development practice I have some new
> functionality to provide for an Apache Commons Lang3 library - StringUtils
> class.
>
> As is writted in CONTRIBUTING.md I would like to discuss with you first.
>
> The main purpose of a changes I would like to provide is to add an ability
> for format any kind of message in the following way.
>
>
>
> Example:
>
> Input:
>
> We have happened an error {} with some kind of specific interesting thing:
> {}, ERROR_1, something
>
>
>
> Output:
>
> We have happened an error ERROR_1 with some kind of specific interesting
> thing: something
>
>
>
> There are some additional new functuionality that I would like to offer to
> StringUtils, similar to the following.
>
> So if it is in scope of Commons I would like to create a Pull Request with
> a
> changes proposal.
>
> The main question: Does it need to Commons Lang or not?
>
>
>
> Kind regards,
>
> Sergei Visotsky
>
>
>
>