約59,300件1ページ目

日本語のみで絞り込む

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:6か月以内
  • 1日前 -Java Optional map() Method: changes the value with a function and returns the result in a new Optional. Syntax, parameters and an example.

    2026/8/22 -The map method applies a function to the contained value when it is present. The function returns an ordinary value, which Java wraps in a new Optional . An ...

    2026/10/1 -Applies the given mapping function if a value is present and returns its Optional result; otherwise, returns an empty Optional . get(), Returns the value if ...

    2026/8/23 -Use flatMap() when you have an Optional object and the mapping function returns another Optional object. Example 5. For this example, consider a class ...

    2026/10/10 -The orElseGet() method returns a plain value of type T and ends the chain. The or() method returns an Optional<T>, so the fallback may also be empty and we can ...

    5日前 -The method map applies a function to the value if there is one, and it returns an empty Optional otherwise. It is how you chain the calls without losing the " ...

    6日前 -Explore three ways of dealing with missing or null values in JSON when parsing it with Jackson.

    2026/9/10 -The orElseGet() method of the Optional class returns the value stored in the Optional when it is present. When the Optional is empty, ...

    2026/6/28 -The map() method applies a function to the value inside the Optional if it is present and returns a new Optional containing the transformed value. Example. In ...

    2026/9/16 -Optional in Java replaces null checks and helps avoid NullPointerException. Added in Java 8: learn why it exists and how of() differs from ofNullable().