Tags » Sorted

We've Got All Your Wedding Headwear Dilemmas Sorted

Want to wear a fascinator but don’t want to come off all mother-of-the-bride-esque? We’ve got the perfect designer for you.
…read more on:
http://fashion-victim.net/weve-got-all-your-wedding-headwear-dilemmas-sorted/

Day 202 - Muscle Princess Protein Bars

Hello Yearlings!

Today I finally got around to doing something for one of my favorite Adventure Time princesses: Muscle Princess. I love Muscle Princess, she’s so amazing and I really appreciate the fact that she doesn’t bother trying to be pretty in case it takes away from her amazing muscles. 495 more words

365 Blog

The Four Houses of Hogwarts.

Gryffindor; The most celebrated of the four houses at Hogwarts, students who are brave can be sure to find themselves soon to be decked out in red and gold. 1,379 more words

Things I Like

Java 8 streams demo part 2: Stream of custom objects

Following the List with primitive types like in post here: Java 8 Streams demo, now it’s time to demonstrate streams with custom objects. Please read mentioned post first to get the idea of this one faster. 178 more words

Tutorial

3 Layer Chocolate Mousse

There is nothing as deflating as being in the mood to bake and finding out that a piece of your equipment has given in. These past two weeks have been all about experimenting and making something I haven’t before. 451 more words

Food

Java 8 Streams demo

Why streams?

Nearly every Java app iterates collections, making operations on its elements, searching, changing them, sorting and so on. Streams are more readable way of doing this. 787 more words

IT

Java 8 : How to sort a collection with Streams?

For do this you can use :

.stream().sorted(new Comparator<MyObject>() {
    @Override
    public int compare(MyObject o1, MyObject o2) {
        return o1.getId().compareTo(o2.getId());
    }
})

Look a real example where I ‘m using sorted plus groupingBy.

28 more words
Java