java.util. Optional

GPTKB entity

Statements (38)
Predicate Object
gptkbp:instance_of gptkb:class
gptkbp:can_be_used_with streams
lambda expressions
gptkbp:can_contain one value or none
gptkbp:constructor Optional()
Optional(T value)
gptkbp:has_field value
gptkbp:has_method get()
stream()
empty()
is Present()
or Else Throw(Supplier<? extends X> exception Supplier)
filter(Predicate<? super T> predicate)
flat Map(Function<? super T, Optional< U>> mapper)
if Present(Consumer<? super T> action)
map(Function<? super T,? extends U> mapper)
of Nullable(T value)
of(T value)
or Else Get(Supplier<? extends T> other)
or Else(T other)
https://www.w3.org/2000/01/rdf-schema#label java.util. Optional
gptkbp:hyper_threading gptkb:true
gptkbp:inherits_from gptkb:true
gptkbp:is_final gptkb:true
gptkbp:is_generic_type gptkb:true
gptkbp:is_often_used_in Java applications
gptkbp:is_part_of java.util package
gptkbp:is_part_of_java_standard_library gptkb:true
gptkbp:is_recommended_by null checks
gptkbp:is_supported_by gptkb:Java_Development_Kit_(JDK)
gptkbp:is_used_for handling null values
gptkbp:is_used_in_functional_programming gptkb:true
gptkbp:package_manager gptkb:java.util
gptkbp:serialization gptkb:true
gptkbp:was_introduced_in_version gptkb:Java_8
gptkbp:bfsParent gptkb:Java_SE_11
gptkb:Java_SE_8
gptkbp:bfsLayer 5