Skip to content

Instantly share code, notes, and snippets.

@wburns
Created March 3, 2016 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wburns/dffe4f7543f68215f74b to your computer and use it in GitHub Desktop.
Save wburns/dffe4f7543f68215f74b to your computer and use it in GitHub Desktop.
interface SerializablePredicate<T> extends Serializable, Predicate<T> { }
CacheStream<R> filter(SerializablePredicate<? super R> predicate);
vs
<SerializablePredicate extends Serializable & Predicate<? super R>
CacheStream<R> filter(SerializablePredicate predicate);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment