Skip to content

3BRS/java8-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Java 8 workshop

Useful links, small snippets, notes etc. should be gathered in this file.

Functional Programming (General) (Ondra)

  • immutability
  • final arguments
  • no side effects
  • SRP
  • function reference (functional interfaces - consumer, ...)

Java 8 general (Ondra)

  • java.util.DateTime
  • default methods (traits)
  • forEach side effects
  • misusage
  • broken JavaDoc because of "improvements"
  • paths to files ('/' at the beginning of path)

Functional Interface (Ondra)

Lambda Expression (Ondra)

Optional (Ondra)

Stream API (Novoty)

  • maximum example
  • joining
  • filtering
  • map
  • flat map
  • stream of streams (Stream.concat )
  • collector

Intelligent Repository (Novoty)

2 examples of map-based repositories:

  • classic with lists and getters returning null
  • functional with
    • mapping function for adding
    • get returning optional
    • lambda filters

Spliterator? (Novoty)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages