Add missing generic types
This commit is contained in:
parent
1a8292f914
commit
779a64427e
1 changed files with 6 additions and 4 deletions
|
@ -34,11 +34,11 @@ import java.util.function.Supplier;
|
|||
*/
|
||||
class TrueValueClause<T> implements Value.ValueClause<T> {
|
||||
|
||||
protected static final Value.ValueClause TRUE = new TrueValueClause();
|
||||
protected static final Value.ValueClause TRUE = new TrueValueClause<>();
|
||||
|
||||
@Override
|
||||
public ValueSupplier<T> then(final Supplier<T> trueSupplier) {
|
||||
return new TrueValueSupplier(trueSupplier);
|
||||
return new TrueValueSupplier<>(trueSupplier);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -54,11 +54,13 @@ class TrueValueClause<T> implements Value.ValueClause<T> {
|
|||
|
||||
/**
|
||||
* An intermediate result of the {@link Value} where the clause has evaluated to true.
|
||||
*
|
||||
* @param <T> the type of the value
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
private class TrueValueSupplier implements ValueSupplier<T> {
|
||||
private static final class TrueValueSupplier<T> implements ValueSupplier<T> {
|
||||
|
||||
private final transient Supplier<T> valueSupplier;
|
||||
private final Supplier<T> valueSupplier;
|
||||
|
||||
@Override
|
||||
public T otherwise(final Supplier<T> falseSupplier) {
|
||||
|
|
Loading…
Reference in a new issue