Uses of Class
org.silverpeas.core.util.Mutable
-
Packages that use Mutable Package Description org.silverpeas.core.test.util Various utility classes dedicated to the unit and integration tests.org.silverpeas.core.util Provides miscellaneous utility classes. -
-
Uses of Mutable in org.silverpeas.core.test.util
Methods in org.silverpeas.core.test.util with parameters of type Mutable Modifier and Type Method Description <T extends Entity>
voidJpaMocker. mockJPA(Mutable<T> savedEntity, Class<T> entityType)
Mocks the JPA backend.<T extends AbstractJpaEntityRepository<E>,E extends AbstractJpaEntity>
TJpaMocker. mockRepository(Class<T> repoType, Mutable<E> savedEntity)
Mocks the specified repository and uses the specified mutable container to store any entity that is asked to be saved with the saving method of the mocked repository. -
Uses of Mutable in org.silverpeas.core.util
Methods in org.silverpeas.core.util that return Mutable Modifier and Type Method Description static <T> Mutable<T>
Mutable. empty()
Returns an emptyMutable
.Mutable<T>
Mutable. filter(Predicate<? super T> predicate)
If a value is present, and the value matches the given predicate, return anMutable
describing the value, otherwise return an emptyMutable
.<U> Mutable<U>
Mutable. flatMap(Function<? super T,Mutable<U>> mapper)
If a value is present, apply the providedMutable
-bearing mapping function to it, return that result, otherwise return an emptyMutable
.<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 anMutable
describing the result.static <T> Mutable<T>
Mutable. of(T value)
Returns anMutable
with the specified value.static <T> Mutable<T>
Mutable. ofNullable(T value)
Returns anMutable
with the specified value which can be null.Method parameters in org.silverpeas.core.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 providedMutable
-bearing mapping function to it, return that result, otherwise return an emptyMutable
.
-