Questions tagged [lambdaj]

LambdaJ is a library to manipulate a collections without any iterations.

LambdaJ is a library to manipulate a collections without any iterations. It allows to manipulate collections in a pseudo-functional and statically typed way.

The purpose of this library is to alleviate these problems employing some functional programming techniques but without losing the static typing of java. LambdaJ team imposes this last constraint to make refactoring easier and safer and allow the compiler to do its job.

For more information refer this : http://code.google.com/p/lambdaj/

84 questions
0
votes
1 answer

How does Lambdaj having work?

I am learning LambdaJ and everytime I need to achieve a task I have to check at existing examples and modify them in order to use lambdaj. I have started using it but I think I'm missing something here that would like to ask you. I'm not clear about…
Federico Piazza
  • 27,409
  • 11
  • 74
  • 107
0
votes
3 answers

How can I use functional programming to do string manipulation?

I'm writing a function where I'm essentially doing the same thing over and over. I have the function listed below public String buildGarmentsString(List garments) { StringBuilder garmentString = new StringBuilder(10000); for(int…
0
votes
1 answer

LambdaJ for GWT

my application workes heavily with collections and I have to find out an effecient way to work with them insted of looping through them all the time. I learnt that LambdaJ cannot be used in GWT. then what is the equivalent that can be used for GWT?
0
votes
2 answers

select string with upper or lower case

I would like to use lambdaJ for selecting specific values from list, List newFriends = select(firendsCollection,having(on(someFriends.class).getDescription(), Matchers.containsString(("michael")))); I want it to select values LIKE…
iie
  • 501
  • 2
  • 7
  • 26
0
votes
1 answer

Filtering collection on condition nested in another collection

Having this bean structure class User { private List permissions; ... } class Permission { private Detail detail; ... } class Detail { private String name; ... } How can I filter list of users to contain only…
Behnil
  • 2,376
  • 2
  • 20
  • 49
0
votes
0 answers

Best Practice for Defining Collection Filters in a Spring Context File

Whats the best practice for defining filters to apply to a collection of objects within a spring context file? Say I have a Collection of Persons (Collection people). Each person has age/name/sex/occupation/email properties. I need to…
MdSalih
  • 1,894
  • 8
  • 15
0
votes
2 answers

adding all results from running a method on elements in a collection to another collection

Is there a lambdaj way of doing this neatly? I know the title sounds complicated but the code fragment below should make it clear: private List getContractLineItemsForDatatables(List contractLineItems) { …
Ashkan Aryan
  • 3,304
  • 3
  • 25
  • 43
0
votes
2 answers

LambdaJ: why can't we apply operation in select clause?

select(list, having(on(Integer.class).intValue() % 2, equalTo(0))); the code above throws exception.
Cui Pengfei 崔鹏飞
  • 7,124
  • 4
  • 38
  • 79
0
votes
2 answers

Case Insensitive filtering with lambdaj

I'm attempting to familiarize myself with lambdaj, and am unsure how the best way to solve this problem. Given the following test: @Test public void test() { final List l1 = new ArrayList<>(); final List l2 = new…
Scott
  • 9,106
  • 6
  • 50
  • 79
1 2 3 4 5
6