Package adams.data.conversion
Enum Quote.QuoteType
- java.lang.Object
-
- java.lang.Enum<Quote.QuoteType>
-
- adams.data.conversion.Quote.QuoteType
-
- All Implemented Interfaces:
Serializable
,Comparable<Quote.QuoteType>
- Enclosing class:
- Quote
public static enum Quote.QuoteType extends Enum<Quote.QuoteType>
The type of quote.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Quote.QuoteType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Quote.QuoteType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE
public static final Quote.QuoteType SINGLE
single quote (').
-
DOUBLE
public static final Quote.QuoteType DOUBLE
double quote (").
-
DOUBLE_UP
public static final Quote.QuoteType DOUBLE_UP
double quote ("), doubling up internal double quotes.
-
-
Method Detail
-
values
public static Quote.QuoteType[] 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 (Quote.QuoteType c : Quote.QuoteType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Quote.QuoteType 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
-
-