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

com.andrewjamesjohnson.junit.tuple.Tuple1 Maven / Gradle / Ivy

The newest version!
package com.andrewjamesjohnson.junit.tuple;

import java.util.Arrays;
import java.util.Collection;

public class Tuple1 implements TupleParameter {

    public static  Tuple1 of(A _1) {
        return new Tuple1<>(_1);
    }

    public A _1;

    private Tuple1(A _1) {
        this._1 = _1;
    }

    @Override
    public Collection elements() {
        return Arrays.asList(_1);
    }
}