- java.lang.Object
-
- java.lang.Enum<IP.Version>
-
- io.rxmicro.validation.constraint.IP.Version
-
- All Implemented Interfaces:
Serializable,Comparable<IP.Version>
- Enclosing class:
- IP
public static enum IP.Version extends Enum<IP.Version>
IP versions.- Since:
- 0.1
- Author:
- nedis
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJsonFormat()io.rxmicro.common.meta.ReadMoregetReadMore()intgetVersion()static IP.VersionvalueOf(String name)Returns the enum constant of this type with the specified name.static IP.Version[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IP_V4
@ReadMore(caption="What is IP version 4?", link="https://en.wikipedia.org/wiki/IPv4") public static final IP.Version IP_V4IP version 4.
-
IP_V6
@ReadMore(caption="What is IP version 6?", link="https://en.wikipedia.org/wiki/IPv6") public static final IP.Version IP_V6IP version 6.
-
-
Method Detail
-
values
public static IP.Version[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IP.Version c : IP.Version.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IP.Version valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getJsonFormat
public String getJsonFormat()
-
getVersion
public int getVersion()
-
getReadMore
public io.rxmicro.common.meta.ReadMore getReadMore()
-
-