com.slimgears.apt.data.EnumValueInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apt-utils Show documentation
Show all versions of apt-utils Show documentation
General purpose utils / module: apt-utils
package com.slimgears.apt.data;
import com.google.auto.value.AutoValue;
@AutoValue
public abstract class EnumValueInfo implements HasName {
public static EnumValueInfo of(String name) {
return new AutoValue_EnumValueInfo.Builder().name(name).build();
}
public static EnumValueInfo of(Enum val) {
return of(val.name());
}
@AutoValue.Builder
public interface Builder extends InfoBuilder, HasName.Builder {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy