The rubycollect4j implements all methods refer to Ruby Array, Hash and Enumerable.

For further info, please visit http://ruby-doc.org website.

For more documentation, please read JavaDoc.

With Java 8:
// Sort the characters by its frequency based on the word 'Mississippi' case-insensitively
RubyArray<String> word = ra("Mississippi".split("(?!^)"));

String result = word.map((c) -> {
return c.toLowerCase();
}).sortBy((c) -> {
return word.count(c);
}).uniq().join();

p(result); // "mpis"

With Java 6:
// Sort the characters by its frequency based on the word 'Mississippi' case-insensitively
final RubyArray<String> word = newRubyArray("Mississippi".split("(?!^)"));

String result = word.map(new TransformBlock<String, String>() {
public String yield(String c) {
return c.toLowerCase();
}
}).sortBy(new TransformBlock<String, Integer>() {
public Integer yield(String c) {
return word.count(c);
}
}).uniq().join();

p(result); // "mpis"

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow rubycollect4j

rubycollect4j Web Site

Other Useful Business Software
Create stunning, professional email signatures in minutes Icon
Create stunning, professional email signatures in minutes

For companies looking to create, assign and manage all their employees email signatures and add targeted marketing banners.

Create, assign and manage all your employees’ email signatures and add targeted marketing banners. Stop getting worked up about your signatures! Leverage a centralized interface to easily create and manage the email signatures of all your employees. Take advantage of each email to broadcast and amplify your brand. Letsignit helps you regain control over your digital identity. Harmonize 100% of your employee’s email signatures in just a few clicks! 121 professional emails are received and 40 are sent every day by an employee. With Letsignit, turn every email into a powerful communication opportunity: send the right message to the right person at the right time! Innovative more than tech, inspiring more than following. Authentic more than overrated, close more than "think big", trustworthy more than doubtful. Hands-on more than complex, available but yet premium, fun but yet expert.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of rubycollect4j!

Additional Project Details

Intended Audience

Developers

Programming Language

Java

Related Categories

Java Libraries

Registered

2013-06-18