All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.youshallnotpass.inspection.InspectionScalar Maven / Gradle / Ivy

The newest version!
package dev.youshallnotpass.inspection;

import org.cactoos.Scalar;
import org.cactoos.scalar.Checked;

public final class InspectionScalar implements Scalar {

    private final Scalar origin;

    public InspectionScalar(final Scalar scalar) {
        this.origin = scalar;
    }

    @Override
    public T value() throws InspectionException {
        return new Checked<>(
            this.origin,
            InspectionException::new
        ).value();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy