2021-05-28 12:22:14 +04:00

31 lines
628 B
Java

/*
*
* * Copyright (C) 2021 Anton Romanov - All Rights Reserved
* * You may use, distribute and modify this code, please write to: romanov73@gmail.com.
*
*
*/
package ru.ulstu.tsMethods;
import java.util.List;
public abstract class MethodParameter implements Comparable {
protected String name;
public MethodParameter(String name) {
this.name = name;
}
public String getName() {
return name;
}
public abstract List<Number> getAvailableValues();
@Override
public int compareTo(Object o) {
return this.name.compareTo(((MethodParameter) o).getName());
}
}