約14,800件1ページ目

日本語のみで絞り込む

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

  • 最終更新日:1か月以内
  • 1日前 -The most common Optional anti-pattern is wrapping a potentially null value in an Optional , only to immediately invoke .get() without checking if a value is ...

    3日前 -The call Optional.empty() is not the same as Optional.of(null), because the latter throws immediately. An Optional that holds null is a contradiction. And ...

    4日前 -Optional.ofNullable(value) creates a box with the value, or an empty box if the value is null. The type inside <> ...

    2026/10/30 -The Optional.ofNullable() method creates an empty Optional when the supplied value is null. The following program demonstrates its string representation.

    3日前 -Java 8 adds the Optional<T> class, giving developers a way to explicitly signal that a value might be absent, rather than silently returning null. 2017+. Modern ...

    4日前 -Optional is a band-aid: the compiler ignores it, and an Optional can itself be null, which is almost funny until you find out on a Friday. Go has nil pointers, ...

    2026/10/13 -In the GraphQL world, input types can be optional which means that the client can either: Not specify a value at all; Send null explicitly; Send a non-null ...

    Episode 46 of the free course "Java: Beginner to Professional". Welcome back. The most common exception in Java is the Null Pointer Exception.

    YouTubeShaaban Ebrahim

    2026/10/19 -Use ofNullable instead of just of to accept null values when using Optional. ... Imports. Array, java.util.List. ArrayList, java.util.ArrayList. BigDecimal, java.

    2026/10/17 -To ignore null fields with Jackson, we annotate the class or the field with @JsonInclude(JsonInclude.Include.NON_NULL), and Jackson leaves every property ...