This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Errata typo: chapter 4 summary, primitive Optional's method names.  RSS feed

 
Greenhorn
Posts: 5
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,

one typo. In summary of chapter 4 in Optional paragraph there should be getAsDouble(), getAsInt(), getAsLong() as method names.
I think it's nicely constistent with the rest of the new API - IntSupplier for instance. Just the way I remember it ;-)

Kind regards, Robert.
 
author & internet detective
Posts: 39129
723
Eclipse IDE Java VI Editor
 
Ranch Hand
Posts: 65
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:Agreed and noted. Good catch!


Hi Jeanne, in the sentence before, the phrase "There are three optional types for primitives: DoubleSupplier, IntSupplier and LongSupplier" should be replaced with "OptionalDouble, OptionalInt, OptionalLong", I think.
 
Jeanne Boyarsky
author & internet detective
Posts: 39129
723
Eclipse IDE Java VI Editor
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
java tutor first lesson for free
https://coderanch.com/t/702613/java-tutor-lesson-free
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!