public class SimonTypeFactory extends Object
| Constructor and Description |
|---|
SimonTypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static SimonType |
getValueFromInstance(Sample sample)
Get simon type from simon sample instance.
|
static SimonType |
getValueFromInstance(Simon simon)
Get simon type from simon instance.
|
static SimonType |
getValueFromSampleType(Class<? extends Sample> sampleType)
Get simon type from simon sample class.
|
static SimonType |
getValueFromType(Class<? extends Simon> type)
Get simon type from simon class.
|
static Class |
normalizeType(Class type)
Get the main interface of the type.
|
public SimonTypeFactory()
public static SimonType getValueFromType(Class<? extends Simon> type)
type - Simon classpublic static SimonType getValueFromSampleType(Class<? extends Sample> sampleType)
sampleType - Sample classpublic static SimonType getValueFromInstance(Simon simon)
simon - Simonpublic static SimonType getValueFromInstance(Sample sample)
sample - Simon samplepublic static Class normalizeType(Class type)
type - Implementation classCopyright © 2019. All rights reserved.