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

org.approvaltests.combinations.pairwise.OptionsForAParameter Maven / Gradle / Ivy

There is a newer version: 24.9.0
Show 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 - 2024 Weber Informatics LLC | Privacy Policy