com.sforce.soap.metadata.PeriodTypes Maven / Gradle / Ivy
package com.sforce.soap.metadata;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
/**
* This is a generated class for the SObject Enterprise API.
* Do not edit this file, as your changes will be lost.
*/
public enum PeriodTypes {
/**
* Enumeration : Month
*/
Month("Month"),
/**
* Enumeration : Quarter
*/
Quarter("Quarter"),
/**
* Enumeration : Week
*/
Week("Week"),
/**
* Enumeration : Year
*/
Year("Year"),
;
public static Map valuesToEnums;
static {
valuesToEnums = new HashMap();
for (PeriodTypes e : EnumSet.allOf(PeriodTypes.class)) {
valuesToEnums.put(e.toString(), e.name());
}
}
private String value;
private PeriodTypes(String value) {
this.value = value;
}
@Override
public String toString() {
return value;
}
}