Skip to content

Instantly share code, notes, and snippets.

View invasionofsmallcubes's full-sized avatar
👻
Fool Stack Developer

Emanuele Ianni invasionofsmallcubes

👻
Fool Stack Developer
View GitHub Profile
fun get(@PathVariable identifier: String): MutableList<in Quote> {
return defer { fromIterable( quoteRepository.getAll(identifier)) }
.subscribeOn(Computations.concurrent())
.stream()
.collect(
Collectors.toList());
}

Keybase proof

I hereby claim:

  • I am invasionofsmallcubes on github.
  • I am dierre (https://keybase.io/dierre) on keybase.
  • I have a public key whose fingerprint is 5821 5739 5707 69BC 6857 4F6B 43E5 5683 5814 5F93

To claim this, I am signing this object:

@invasionofsmallcubes
invasionofsmallcubes / example.java
Last active August 29, 2015 14:11
usage of abstract class instead of implementation on interfaces
// In Java 8 we have
public interface List<E> extends Collection<E> {
default void sort(Comparator<? super E> c)
{
Collections.sort(this, c);
}
}
public class ArrayList<E> extends AbstractList<E>
implements List<E>, RandomAccess, Cloneable, java.io.Serializable{}