Package com.impossibl.postgres.types
Enum Type.Category
- java.lang.Object
-
- java.lang.Enum<Type.Category>
-
- com.impossibl.postgres.types.Type.Category
-
- All Implemented Interfaces:
Serializable
,Comparable<Type.Category>
- Enclosing class:
- Type
public static enum Type.Category extends Enum<Type.Category>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Type.Category
findValue(String id)
Lookup Category by its associated "id".char
getId()
static Type.Category
valueOf(String name)
Returns the enum constant of this type with the specified name.static Type.Category[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Array
public static final Type.Category Array
-
Boolean
public static final Type.Category Boolean
-
Composite
public static final Type.Category Composite
-
DateTime
public static final Type.Category DateTime
-
Enumeration
public static final Type.Category Enumeration
-
Geometry
public static final Type.Category Geometry
-
NetworkAddress
public static final Type.Category NetworkAddress
-
Numeric
public static final Type.Category Numeric
-
Psuedo
public static final Type.Category Psuedo
-
Range
public static final Type.Category Range
-
String
public static final Type.Category String
-
Timespan
public static final Type.Category Timespan
-
User
public static final Type.Category User
-
BitString
public static final Type.Category BitString
-
Unknown
public static final Type.Category Unknown
-
-
Method Detail
-
values
public static Type.Category[] 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 (Type.Category c : Type.Category.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Type.Category 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
-
getId
public char getId()
-
findValue
public static Type.Category findValue(String id)
Lookup Category by its associated "id".- Parameters:
id
- Category id- Returns:
- Associated category or null if none
-
-