Your SlideShare is downloading. ×
Java 8 support in eclipse/JDT
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Java 8 support in eclipse/JDT

377
views

Published on

Slides of my talk I gave at the eclipse Democamp on the 2. Dec in Berlin.

Slides of my talk I gave at the eclipse Democamp on the 2. Dec in Berlin.

Published in: Technology, Self Improvement

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
377
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Preparation binaere bauten gmbh • jost becker
  • 2. Interface Static methods public interface Comparator<T> { public static <T…> Comparator<T> reverseOrder() { return Collections.reverseOrder(); } } binaere bauten gmbh • matthias köster
  • 3. Virtual extension methods public interface Iterable<T> { default void forEach(Consumer<? super T> action) { Objects.requireNonNull(action); for (T t : this) { action.accept(t); } } } binaere bauten gmbh • matthias köster
  • 4. SAM interface public interface Comparable<T> { public int compareTo(T o); } binaere bauten gmbh • matthias köster
  • 5. Lambda Expression List<String> names = Arrays.asList("one", "two", "three"); Collections.sort(names, (String o1, String o2) -> o2.compareTo(o1)); binaere bauten gmbh • matthias köster
  • 6. Lambda Expression Variable capture String prefix ="Hi "; // effectively final names.forEach( (String s) -> System.out.println(prefix + s)); prefix = ""; // not effectively final anymore names.forEach( (String s) -> System.out.println(prefix + s)); binaere bauten gmbh • matthias köster
  • 7. Method handles List<Integer> nums = Arrays.asList(10, 2, 3); nums.sort(Integer::compareTo); List<String> names = Arrays.asList("one", "two", "three"); names.forEach(System.out::println); binaere bauten gmbh • matthias köster
  • 8. Type inference List<String> myList = Collections.emptyList(); Collections.sort(myList, (o1, o2) -> o2.compareTo(o1)); binaere bauten gmbh • matthias köster
  • 9. Stream API List<String> names = Arrays.asList("one", "two", "three"); int minSize = names.parallelStream(). mapToInt(String::length).reduce(0, Integer::min); OptionalInt minSize = names.parallelStream(). mapToInt(String::length).min(); Path p = FileSystems.getDefault(). getPath("/tmp/index.html"); Files.lines(p,Charset.forName("UTF-8")). forEach(System.out::println); binaere bauten gmbh • matthias köster
  • 10. JavaFX    binaere bauten gmbh • jost becker
  • 11. Summary • – • – – – binaere bauten gmbh • jost becker Already feels like Using a decent Scala IDE ;-)
  • 12. Thanks a lot for your attention! fin binaere bauten gmbh • matthias köster