Uses of Class
me.sbasalaev.Opt
Packages that use Opt
Package
Description
Useful utilities that I use throughout my projects.
Collection framework.
-
Uses of Opt in me.sbasalaev
Methods in me.sbasalaev that return OptModifier and TypeMethodDescriptionOpt.clone()Returns this optional.static <T> Opt<T> Opt.empty()Empty optional.Returns this optional if its value matches given condition, empty optional otherwise.static <T> Opt<T> Converts Java optional to Opt.<R> Opt<R> Maps value in this optional using given mapping.static <T> Opt<T> Wraps value into optional.<U> Opt<U> Returns this optional if its value is of given class, empty optional otherwise.static <T> Opt<T> API.none()Empty optional.static <T> Opt<T> Opt.of(T value) Non-empty optional.static <T> Opt<T> Opt.ofNullable(@Nullable T value) Optional of non-null value, empty optional for null.static <T> Opt<T> API.some(T value) Non-empty optional. -
Uses of Opt in me.sbasalaev.collection
Methods in me.sbasalaev.collection that return OptModifier and TypeMethodDescriptionReturns element that satisfiesconditionor empty optional if there is no such element.Value associated with given key or empty optional if there is none.Removes key and associated value from this map.Associates thevaluewith thekeyin this map.MutableMap.updateIfPresent(K key, UnaryOperator<V> transformer) Updates association with given key if it is already present in this map.Methods in me.sbasalaev.collection that return types with arguments of type Opt