public class RandomValueSampler extends Object
| Constructor and Description |
|---|
RandomValueSampler(RandomValueGenerator randomValueGenerator) |
| Modifier and Type | Method and Description |
|---|---|
<E> Optional<E> |
findFrom(Collection<E> collection) |
<E> Optional<E> |
findFrom(List<E> list) |
<E> E |
getFrom(Collection<E> collection) |
<E> E |
getFrom(List<E> list) |
public RandomValueSampler(RandomValueGenerator randomValueGenerator)
public <E> E getFrom(Collection<E> collection)
public <E> Optional<E> findFrom(Collection<E> collection)
public <E> E getFrom(List<E> list)
Copyright © 2010–2020 meanbean. All rights reserved.