Re: [lang] new method: ObjectsUtils.equalsOneOf()

2016-08-08 Thread thomas menzel
wise, if > > you really have a collection, I already know Commons Collections can do > > what you want with a callback. > > > > Cheers, > > Paul > > > > On Sat, Aug 6, 2016 at 3:43 PM, thomas menzel wrote: > > > > > Hi folks,

Re: [lang] new method: ObjectsUtils.equalsOneOf()

2016-08-08 Thread thomas menzel
arargs > mechanism (or always require a Function), perhaps such a function could > have a more functional name like firstWhich ? (Which first argument is a > selector function) > > On 6 Aug 2016 10:43 p.m., "thomas menzel" wrote: > > Hi folks, > > I'm prop

[lang] new method: ObjectsUtils.equalsOneOf()

2016-08-06 Thread thomas menzel
readability. Also with unit tests. Hope u like these and add them to the grand collection of util functions. Thomas Menzel

Re: [lang] propse new ObjectExistsException extends IllegalArgumentException

2011-02-14 Thread thomas menzel
i Thomas, > can you describe please in which non-JPA context the exception can > become useful? > Many thanks in advance, have a nice day, > Simo > > http://people.apache.org/~simonetripodi/ > http://www.99soft.org/ > > > > On Fri, Feb 11, 2011 at 10:31 AM, thom

[lang] propse new ObjectExistsException extends IllegalArgumentException

2011-02-11 Thread thomas menzel
hi, i suggest a new exception under the commons.lang.exception namely ObjectExistsException extends IllegalArgumentException. in the jpa world there is already one like this, bit i think it has merit for also other cases outside of jpa and hence i would like to see it defined in apache's com