<?xml version="1.0" encoding="UTF-8"?>
<mods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.loc.gov/mods/v3" version="3.1" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-1.xsd">
  <titleInfo>
    <title>Functional programming in Java</title>
  </titleInfo>
  <name type="personal">
    <namePart>Subramaniam, Venkat</namePart>
    <role>
      <roleTerm authority="marcrelator" type="text">creator</roleTerm>
    </role>
    <role>
      <roleTerm type="text">author</roleTerm>
    </role>
  </name>
  <typeOfResource>text</typeOfResource>
  <originInfo>
    <place>
      <placeTerm type="code" authority="marccountry">ncu</placeTerm>
    </place>
    <dateIssued encoding="marc">2023</dateIssued>
    <edition>Second edition.</edition>
    <issuance>monographic</issuance>
  </originInfo>
  <language>
    <languageTerm authority="iso639-2b" type="code">eng</languageTerm>
  </language>
  <physicalDescription>
    <extent>xix, 247 pages ; 24 cm</extent>
  </physicalDescription>
  <abstract>Functional Programming in Java, Second Edition by Venkat Subramaniam is a comprehensive guide for Java developers looking to enhance their programming skills using functional programming principles. The book provides a detailed exploration of Java's lambda expressions and streams, offering practical examples to illustrate their use in creating more clear, concise, and reliable code. It includes chapters on functional idioms, refactoring to a functional style, and optimizing recursions, among others. The author's goal is to equip developers with the tools to write better software by adopting functional programming techniques. This edition is particularly suitable for Java developers at all levels seeking to stay updated with modern Java features and best practices.</abstract>
  <tableOfContents>Cover -- Table of Contents -- Foreword to the First Edition -- Acknowledgments -- Preface -- Who's This Book For -- What's in This Book -- Java Version Used in This Book -- How to Read the Code Examples -- Online Resources -- 1. Hello, Lambda Expressions! -- Change the Way You Think -- The Big Gains of Functional-Style Code -- Why Code in the Functional Style? -- Evolution, Not Revolution -- A Little Sugar to Sweeten -- Wrapping Up -- 2. Using Collections -- Iterating through a List -- Transforming a List -- Finding Elements -- Skipping Values -- Terminating Iterations -- Reusing Lambda Expressions -- Using Lexical Scoping and Closures -- Picking an Element -- Reducing a Collection to a Single Value -- Joining Elements -- Wrapping Up -- 3. Strings, Comparators, and Filters -- Iterating a String -- Implementing the Comparator Interface -- Multiple and Fluent Comparisons -- Using the collect Method and the Collectors Class -- Listing All Files in a Directory -- Listing Select Files in a Directory -- Listing Immediate Subdirectories Using flatMap -- Watching a File Change -- Wrapping Up -- 4. Transforming Data -- Computing Statistics -- When to Use map vs. flatMap -- Checking for Criteria -- Partitioning a Collection -- Counting Occurrences -- Summing Values -- Using flatMapping and filtering -- Teeing Operations -- Wrapping Up -- 5. Designing with Lambda Expressions -- Separating Concerns Using Lambda Expressions -- Delegating Using Lambda Expressions -- Decorating Using Lambda Expressions -- A Peek into the default Methods -- Creating Fluent Interfaces Using Lambda Expressions -- Wrapping Up -- 6. Working with Resources -- Cleaning Up Resources -- Using the Execute Around Method Pattern to Clean Up Resources -- Managing Locks -- Creating Concise Exception Tests -- Wrapping Up -- 7. Being Lazy -- Delayed Initialization -- Lazy Evaluations.</tableOfContents>
  <tableOfContents>Leveraging the Laziness of Streams -- Creating Infinite, Lazy Collections -- Wrapping Up -- 8. Optimizing Recursions -- Using Tail-Call Optimization -- Speeding Up with Memoization -- Wrapping Up -- 9. Composing Functions with Lambda Expressions -- Using Function Composition -- Using MapReduce -- Taking a Leap to Parallelize -- Wrapping Up -- 10. Error Handling -- Taking a Holistic View of Error Handling -- Exception Handling and Imperative Style -- Checked Exceptions and Functional Style with Streams -- Exception Handling vs. Functional Style -- Dealing with It Downstream -- Handling Failures in Functional Programming -- Wrapping Up -- 11. Refactoring to Functional Style -- Creating a Safety Net for Refactoring -- Refactoring the Traditional for Loop -- Refactoring More Complex Loops -- Refactoring Unbounded Loops -- Refactoring for-each -- Refactoring to Rework the Logic -- Refactoring File Processing -- Refactoring Data Grouping Operations -- Refactoring Nested Loops -- Real-World Refactoring -- Wrapping Up -- 12. Functional Programming Idioms -- Don't Write Dense Lambda Expressions -- Prefer Method References -- Properly Structure the Functional Pipeline -- Keep Separate Conditions in Separate Filters -- Provide Good Domain-Specific Parameter Names -- Use Type Inference for Parameters -- Side Effects in Functional Pipelines -- Wrapping Up -- 13. Bringing It All Together -- Essential Practices to Succeed with the Functional Style -- Performance Concerns -- Adopting the Functional Style -- A1. Starter Set of Functional Interfaces -- A2. Syntax Overview -- A3. Web Resources -- Bibliography -- Index -- - SYMBOLS - -- - A - -- - B - -- - C - -- - D - -- - E - -- - F - -- - G - -- - H - -- - I - -- - J - -- - K - -- - L - -- - M - -- - N - -- - O - -- - P - -- - R - -- - S - -- - T - -- - U - -- - V - -- - W - -- - Z -.</tableOfContents>
  <note type="statement of responsibility">Venkat Subramaniam.</note>
  <note>Includes bibliographical references and index.</note>
  <subject authority="lcsh">
    <topic>Computer programming</topic>
  </subject>
  <subject authority="lcsh">
    <topic>Java (Computer program language)</topic>
  </subject>
  <subject authority="lcsh">
    <topic>Application software</topic>
    <topic>Development</topic>
  </subject>
  <classification authority="lcc">QA76.73.J38 SUB</classification>
  <identifier type="isbn" invalid="yes"/>
  <recordInfo>
    <recordContentSource authority="marcorg">SEK</recordContentSource>
    <recordCreationDate encoding="marc">260121</recordCreationDate>
    <recordChangeDate encoding="iso8601">20260703095106.0</recordChangeDate>
    <languageOfCataloging>
      <languageTerm authority="iso639-2b" type="code">eng</languageTerm>
    </languageOfCataloging>
  </recordInfo>
</mods>
