Package com.indeed.proctor.common.model
Class TestType
- java.lang.Object
-
- com.indeed.proctor.common.model.TestType
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.JsonSerializable
public final class TestType extends java.lang.Object implements com.fasterxml.jackson.databind.JsonSerializableValue class that captures most of the enum flavor while allowing library users to extend the supported types of test.
-
-
Field Summary
Fields Modifier and Type Field Description static TestTypeACCOUNTDeprecated.Use the more descriptiveAUTHENTICATED_USERinsteadstatic TestTypeANONYMOUS_USERstatic TestTypeAUTHENTICATED_USERstatic TestTypeCOMPANYDeprecated.Legacy from migration to githubstatic TestTypeEMAILDeprecated.Use the more descriptiveEMAIL_ADDRESSinsteadstatic TestTypeEMAIL_ADDRESSstatic TestTypePAGEDeprecated.Legacy from migration to githubstatic TestTypeRANDOMstatic TestTypeUSERDeprecated.Use the more descriptiveANONYMOUS_USERinstead
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllowedDependency(TestType dependency)static java.util.Collection<TestType>all()java.lang.StringallowedDependenciesToString()booleanequals(java.lang.Object o)static TestTypegetTestType(java.lang.String value)inthashCode()booleanisAllowedDependency(TestType dependency)java.lang.Stringname()static TestTyperegister(java.lang.String name)voidserialize(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider)voidserializeWithType(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSerializer)java.lang.StringtoString()static TestType[]values()
-
-
-
Field Detail
-
ANONYMOUS_USER
public static final TestType ANONYMOUS_USER
-
USER
public static final TestType USER
Deprecated.Use the more descriptiveANONYMOUS_USERinstead
-
AUTHENTICATED_USER
public static final TestType AUTHENTICATED_USER
-
ACCOUNT
public static final TestType ACCOUNT
Deprecated.Use the more descriptiveAUTHENTICATED_USERinstead
-
EMAIL_ADDRESS
public static final TestType EMAIL_ADDRESS
-
EMAIL
public static final TestType EMAIL
Deprecated.Use the more descriptiveEMAIL_ADDRESSinstead
-
RANDOM
public static final TestType RANDOM
-
PAGE
public static final TestType PAGE
Deprecated.Legacy from migration to github
-
COMPANY
public static final TestType COMPANY
Deprecated.Legacy from migration to github
-
-
Method Detail
-
register
@Nonnull public static TestType register(@Nonnull java.lang.String name)
-
addAllowedDependency
public void addAllowedDependency(@Nonnull TestType dependency)
-
isAllowedDependency
public boolean isAllowedDependency(@Nonnull TestType dependency)
-
allowedDependenciesToString
public java.lang.String allowedDependenciesToString()
-
name
public java.lang.String name()
-
values
public static TestType[] values()
-
all
public static java.util.Collection<TestType> all()
-
serializeWithType
public void serializeWithType(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSerializer) throws java.io.IOException- Specified by:
serializeWithTypein interfacecom.fasterxml.jackson.databind.JsonSerializable- Throws:
java.io.IOException
-
serialize
public void serialize(@Nonnull com.fasterxml.jackson.core.JsonGenerator jsonGenerator, @Nonnull com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws java.io.IOException- Specified by:
serializein interfacecom.fasterxml.jackson.databind.JsonSerializable- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getTestType
public static TestType getTestType(java.lang.String value)
-
-