It may be two things, Either an Enumerator (AKA Enum) or a class with constant fields in it.
Enum Example:
public enum ValueSeperationType {
CSV(","),NEW_LINE("\n"),DASH("-"),DOT("."),SPACE(" "),TAB("\t"),OTHER("_"); //Our values, the parenthesis with the string in it is the value the constructor will get once the enum is called.
private final String seperator; //A variable to hold the value provided to the constructor by the enum;
ValueSeperationType(String seperator){// the constructor that gets called when we type for instance "CalueSeperationType.CSV" Then the constructor takes as parameter a String with value ",".
this.seperator = seperator;// initialising the variable to hold the value.
}
public String getSeperator(){ // a method allowing user to get the seperation value, If we type ValueSeperationType.DASH.getSeperator() this will return "-".
return this.seperator;
}
//You can add as many parameters in the constrctor as you want, as many variables and methods as you want.
}
The other possibility is that it is a class containing Constant fields. (Although it is unlikely because that is not the proper naming convention but... you never know.)
So an example of a class with constant fields:
class ValueSeperation{
public static final String CSV = ",";
public static final String NEW_LINE = "\n";
public static final String DASH = "-";
public static final String DOT = ".";
public static final String SPACE = " ";
public static final String TAB = "\t";
public static final String OTHER = "_";
//Same concept as above, in a more direct way... here you simply invoke ValueSeperation.CSV and that returns ",". Each method has it's benefits and it is up to the developer to decide what to implement depending on the senario.
}
I hope that helped.