On 4 July 2013 16:46, William Speirs wspe...@apache.org wrote:
The Frequency[1] class is what you're looking for. You can find a basic
example of it in the user guide [2].
Perhaps the docs should include mode as an example as well?
Or maybe it should be added to the Frequency class? (and
This implies that having arrays with some null elements is
a) somewhat common
2) a good idea
I'd say both are not true.
I'm not sure the library should promote that the above is the case.
On 07/04/2013 02:43 PM, Rafael Santini wrote:
Hi,
I would like to propose a method in ObjectUtils
A bigger question is why this is needed at all.
Why not just use composition? In guava, one would do this:
Iterables.all(Arrays.asList(foo), new PredicateDouble() {
@Override
public boolean apply(Double input) {
return input != null;
}
On 06/30/2013 11:57 PM, Thomas Neidhart wrote:
Hi,
I'd like to call a vote for releasing Commons Collections 4.0-alpha1
based on RC2.
The following changes have been applied since RC1:
* upgrade to maven-javadoc-plugin 2.9.1 (due to CVE-2013-1571)
* fixed COLLECTIONS-474, thanks to
You could do this with with CollectionsUtils from [Collections].
But I think we all agree that implementing a Predicate inline is a lot more
verbose than the proposed method.
2013/7/4 Ted Dunning ted.dunn...@gmail.com
A bigger question is why this is needed at all.
Why not just use
Hi Ted,
I have some codes that needs to test whether a set of objects are all true
or not. For example:
if (obj1 != null obj2 != null obj3 != null obj4 != null) {
// Do something...
}
So, for readability reason, I have replaced for:
if (isNotTrue(obj1, obj2, obj3, obj4) {
// Do
Hi
I'd just provide a IsNullPredicate class (a singleton) and then use
commons-collection to select the subcollection and if size is 0 or original
size (depend what you test) it would be true
That said with next java version it will be quite useless IMO
Le 4 juil. 2013 22:04, Rafael Santini
Hi,
we had this discussion lately where we talked about attracting new
contributors for commons [1]. Over the past few days I've been thinking
about this topic again and I've come to the conclusion that there are
several things we could do to improve our public relations.
Here is a list of
Hello.
we had this discussion lately where we talked about attracting new
contributors for commons [1]. Over the past few days I've been
thinking
about this topic again and I've come to the conclusion that there are
several things we could do to improve our public relations.
Here is a list
All good ideas.
Gary
On Jul 4, 2013, at 16:20, Benedikt Ritter brit...@apache.org wrote:
Hi,
we had this discussion lately where we talked about attracting new
contributors for commons [1]. Over the past few days I've been thinking
about this topic again and I've come to the conclusion
Hi,
Instead of using a predicate, wouldn't it be simpler to just use
if (false == Arrays.asList(obj1, obj2, ...).contains(null)) ?
Just my 2 cents,
Julien
2013/7/5 Romain Manni-Bucau rmannibu...@gmail.com:
Hi
I'd just provide a IsNullPredicate class (a singleton) and then use
Contains(null) doesnt test all values
Le 5 juil. 2013 05:21, Julien Aymé julien.a...@gmail.com a écrit :
Hi,
Instead of using a predicate, wouldn't it be simpler to just use
if (false == Arrays.asList(obj1, obj2, ...).contains(null)) ?
Just my 2 cents,
Julien
2013/7/5 Romain Manni-Bucau
Nice. Seems like the right solution.
On 07/04/2013 11:20 PM, Julien Aymé wrote:
Hi,
Instead of using a predicate, wouldn't it be simpler to just use
if (false == Arrays.asList(obj1, obj2, ...).contains(null)) ?
Just my 2 cents,
Julien
2013/7/5 Romain Manni-Bucau rmannibu...@gmail.com:
Hi
But you cant test all are null this way...maybe not that important
Le 5 juil. 2013 07:15, Dave Brosius dbros...@mebigfatguy.com a écrit :
Nice. Seems like the right solution.
On 07/04/2013 11:20 PM, Julien Aymé wrote:
Hi,
Instead of using a predicate, wouldn't it be simpler to just use
if
14 matches
Mail list logo