public enum InvoiceType extends Enum<InvoiceType>
| Enum Constant and Description |
|---|
ELECTRONIC |
NORMAL |
NORMAL_ROLL |
SE |
SPECIAL |
UNIVERSAL |
VEHICLE |
| Modifier and Type | Method and Description |
|---|---|
static InvoiceType |
fromValue(String value) |
boolean |
isNormal() |
boolean |
isSpecial() |
static List<String> |
special() |
String |
value() |
static InvoiceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InvoiceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvoiceType NORMAL
public static final InvoiceType SPECIAL
public static final InvoiceType SE
public static final InvoiceType VEHICLE
public static final InvoiceType UNIVERSAL
public static final InvoiceType ELECTRONIC
public static final InvoiceType NORMAL_ROLL
public static InvoiceType[] values()
for (InvoiceType c : InvoiceType.values()) System.out.println(c);
public static InvoiceType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static InvoiceType fromValue(String value) throws RuntimeException
RuntimeExceptionpublic boolean isNormal()
public boolean isSpecial()
Copyright © 2020. All rights reserved.