約2,680件1ページ目

日本語のみで絞り込む

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

  • 最終更新日:6か月以内
  • 2026/9/24 -The ofNullable() method of the Optional class creates an Optional containing the specified value when it is non-null. If the value is null, it returns an empty ...

    2026/10/10 -Java Optional guide with examples of of, ofNullable, map, flatMap, orElseThrow, isEmpty, stream and or, plus where not to use Optional.

    2026/11/20 -Reports uses of Optional.ofNullable() where always null or always not-null argument is passed. There's no point in using Optional.ofNullable() in this case: ...

    4時間前 -ofNullable() creates an empty Optional because words[5] is null. map() converts the value to lowercase only if it is present. orElse() returns the default ...

    2026/10/6 -The obvious fix: Optional everywhere. The modern-looking answer is to replace the checks with Optional : Optional.ofNullable(req) .map(CallbackRequest ...

    2026/6/28 -This class provides various methods to check the presence of a value and handle null cases that reduces the chances of NullPointerException in Java programs.

    2026/6/29 -Takeaway: Optional is not a null wrapper to sprinkle everywhere. It is a way to make absence visible at API boundaries and to handle it with transformations ...

    2026/7/13 -Many generator bugs collapse the first and third rows, or map both nullable rows to an optional field in a language that cannot express presence separately.

    2026/11/4 -Of course, we can take complete control of the mapping process by implementing a setter method for an optional field for which we want to provide a value.

    2026/8/7 -Optional means the key may be absent from the payload. Controlled by omitting the property from required . · Nullable means the key may be present with the value ...