public class StampTypes extends Object
Stamp types container.
Modifier and Type | Field and Description |
---|---|
static StampType |
Round
Round stamp type object.
|
static StampType |
Square
Square stamp type object.
|
Constructor and Description |
---|
StampTypes() |
Modifier and Type | Method and Description |
---|---|
static StampType[] |
getAllTypes()
All stamp types.
|
static StampType |
parse(String parsingType)
Returns stamp type with pasringType name.
|
static StampType |
tryParse(String parsingType)
Returns stamp type with pasringType name.
|
public static final StampType Round
Round stamp type object.
public static final StampType Square
Square stamp type object.
public static StampType[] getAllTypes()
All stamp types.
public static StampType parse(String parsingType) throws Exception
Returns stamp type with pasringType name. When name of stamp is unknown - exception is thrown.
parsingType
- Source string of stamp type name.Exception
public static StampType tryParse(String parsingType) throws Exception
Returns stamp type with pasringType name. When name of stamp is unknown - no exception is thrown and method returns null value.
parsingType
- Source string of stamp type name.Exception