Package cn.sliew.milky.common.constant
Class Tag
- java.lang.Object
-
- cn.sliew.milky.common.constant.AbstractConstant<Tag>
-
- cn.sliew.milky.common.constant.Tag
-
- All Implemented Interfaces:
Constant<Tag>,Comparable<Tag>
public class Tag extends AbstractConstant<Tag>
An tag which allows to store a string tag value.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanexists(String name)static TagnewInstance(String name)Creates a newTagfor the givennameor fail with anIllegalArgumentExceptionif aTagfor the givennameexists.Stringtag()Return the string tag valuestatic TagvalueOf(String name)Returns the singleton instance of theTagwhich has the specifiedname.
-
-
-
Method Detail
-
tag
public String tag()
Return the string tag value
-
valueOf
public static Tag valueOf(String name)
Returns the singleton instance of theTagwhich has the specifiedname.
-
exists
public static boolean exists(String name)
-
newInstance
public static Tag newInstance(String name)
Creates a newTagfor the givennameor fail with anIllegalArgumentExceptionif aTagfor the givennameexists.
-
-