Re: Create flow to only reflect selected fields on ReflectionToStringBuilder

2021-07-08 Thread Mark Dacek
I'm not sure whether the example given is indicative of all of your use cases, but calling* setExcludeNullValues(true)* would accomplish your above goal. On Wed, Jul 7, 2021 at 6:57 PM Daniel Augusto Veronezi Salvador < dvsalvador...@gmail.com> wrote: > Thanks for the reply Rob, > > To examplify

Re: Question about "StringUtils.indexOfAny" functionality/test

2020-08-17 Thread Mark Dacek
The difference is that the CharSequence... will search for the first occurrence of any of the provided CharSequences. The single CharSequence arg-method will search for the first of any chars in the provided sequence. Regarding the test assertion: it's the index of *any *of the provided characters

Re: [lang] ArrayUtils.addFirst(T[], T)?

2019-06-13 Thread Mark Dacek
addFirst is commonly used with LinkedLists. I wouldn't think it to be unintuitive. On Thu, Jun 13, 2019 at 8:56 AM sebb wrote: > On Thu, 13 Jun 2019 at 13:43, Gary Gregory wrote: > > > > On Thu, Jun 13, 2019 at 8:32 AM sebb wrote: > > > > > On Wed, 12 J

Re: [lang] ArrayUtils.addFirst(T[], T)?

2019-06-12 Thread Mark Dacek
I’d support adding both. On Wed, Jun 12, 2019 at 5:09 PM James Carman wrote: > I like it. Seems like a logical thing to do. Another idea would be adding > at an arbitrary index. > > On Wed, Jun 12, 2019 at 5:04 PM Gary Gregory > wrote: > > > Hi All: > > > > We have org.apache.commons.lang3.Ar

Re: [lang] Giant StringUtils vs. NullSafeStrings.

2019-05-28 Thread Mark Dacek
I’m a bit curious on the desire to split it out. I’m not hard opposed but also don’t know that it would save much time or clarify things for most. I wouldn’t want to say that this is a critical reason for keeping things as they are, but I’d imagine that your typical dev doesn’t use StringUtils for

Re: [Text, Lang] Matching two CharSequence instances

2019-03-02 Thread Mark Dacek
Is your proposed method a stepwise charAt comparison across both, assuming non-null and equal length? Doesn't seem like a bad idea, though I'm curious whether there's a use-case where toString() on both and comparing isn't more expedient. On Sat, Mar 2, 2019 at 11:53 AM Alex Herbert wrote: > I a

Re: [VOTE][LAZY] Move commons-collections to git.

2017-07-07 Thread Mark Dacek
+1 On Jul 7, 2017 8:26 AM, "Rob Tompkins" wrote: > Hello all, > > I would like to call a vote by lazy consensus for migrating the codebase > of Apache Commons Collections to git. > > This vote will be successful if nobody raises objections within the next > 72 hours, e.g. by July 10, 2017 1300 (

[lang] Boolean method names

2017-04-25 Thread Mark Dacek
Hello all - Recently, LANG-1167 was merged into commons-lang. It hit me today that one of these method names seems a little funky. The class in question is ReflectionToStringBuilder : *https://github.com/apache/commons-lang/blob/master/src/main/java/org/apache/commons/lang3/builder/ReflectionToStri