Uses of Class
org.silverpeas.kernel.util.Mutable

Packages that use Mutable
Package
Description
Provides miscellaneous utility classes.
  • Uses of Mutable in org.silverpeas.kernel.util

    Methods in org.silverpeas.kernel.util that return Mutable
    Modifier and Type
    Method
    Description
    static <T> Mutable<T>
    Mutable.empty()
    Returns an empty Mutable.
    Mutable.filter(Predicate<? super T> predicate)
    If a value is present, and the value matches the given predicate, return an Mutable describing the value, otherwise return an empty Mutable.
    <U> Mutable<U>
    Mutable.flatMap(Function<? super T,Mutable<U>> mapper)
    If a value is present, apply the provided Mutable-bearing mapping function to it, return that result, otherwise return an empty Mutable.
    <U> Mutable<U>
    Mutable.map(Function<? super T,? extends U> mapper)
    If a value is present, apply the provided mapping function to it, and if the result is non-null, return an Mutable describing the result.
    static <T> Mutable<T>
    Mutable.of(T value)
    Returns an Mutable with the specified value.
    static <T> Mutable<T>
    Mutable.ofNullable(T value)
    Returns an Mutable with the specified value which can be null.
    Method parameters in org.silverpeas.kernel.util with type arguments of type Mutable
    Modifier and Type
    Method
    Description
    <U> Mutable<U>
    Mutable.flatMap(Function<? super T,Mutable<U>> mapper)
    If a value is present, apply the provided Mutable-bearing mapping function to it, return that result, otherwise return an empty Mutable.