public abstract class Expectations extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
any(Collection<T> candidates,
com.google.common.base.Predicate<T> condition)
Deprecated.
|
static <T> com.google.common.base.Optional<T> |
noneOrOne(Iterable<T> values)
Deprecated.
|
static <T> com.google.common.base.Optional<T> |
noneOrOne(Iterator<T> iterator)
Deprecated.
|
static <T> com.google.common.base.Optional<T> |
noneOrOneIfOnlyOne(Iterable<T> values)
Deprecated.
|
static <T> com.google.common.base.Optional<T> |
noneOrOneIfOnlyOne(Iterator<T> iterator)
Deprecated.
|
static <T> T |
oneIfOnlyOne(Iterable<T> values,
T defaultValue)
Deprecated.
|
static <T> T |
oneIfOnlyOne(Iterator<T> iterator,
T defaultValue)
Deprecated.
|
@Deprecated public static <T> com.google.common.base.Optional<T> noneOrOneIfOnlyOne(Iterator<T> iterator)
values - gives one, if only one value exist
gives none on everything else@Deprecated public static <T> com.google.common.base.Optional<T> noneOrOneIfOnlyOne(Iterable<T> values)
values - gives one, if only one value exist
gives none on everything else@Deprecated public static <T> T oneIfOnlyOne(Iterator<T> iterator, T defaultValue)
values - gives first value, if one value exist
gives defaultValue if empty or more than one value exist,@Deprecated public static <T> T oneIfOnlyOne(Iterable<T> values, T defaultValue)
values - gives first value, if one value exist
gives defaultValue if empty or more than one value exist,@Deprecated public static <T> com.google.common.base.Optional<T> noneOrOne(Iterator<T> iterator)
values - IllegalArgumentException - if more than one value existgives none if empty, one if one element, fails if more than one@Deprecated public static <T> com.google.common.base.Optional<T> noneOrOne(Iterable<T> values)
values - IllegalArgumentException - if more than one value existgives none if empty, one if one element, fails if more than one@Deprecated public static <T> boolean any(Collection<T> candidates, com.google.common.base.Predicate<T> condition)
Iterables.any(Iterable, Predicate)Copyright © 2016. All rights reserved.