
org.approvaltests.combinations.pairwise.OptionsForAParameter Maven / Gradle / Ivy
The newest version!
package org.approvaltests.combinations.pairwise;
import java.util.Arrays;
public class OptionsForAParameter
{
private final int position;
private final T[] values;
public OptionsForAParameter(int position, T... values)
{
this.position = position;
this.values = values;
}
public String getPosition()
{
return "" + (position + 1);
}
public T[] toArray()
{
return values;
}
public int size()
{
return values.length;
}
public T get(int index)
{
return values[index];
}
@Override
public String toString()
{
return position + ": " + Arrays.toString(this.values);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy