ExpandableStringEnum<T> Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum<T>

Type Parameters

T

a specific expandable enum type

public abstract class ExpandableStringEnum

Base implementation for expandable, single string enums.

Constructor Summary

Constructor Description
ExpandableStringEnum()

Method Summary

Modifier and Type Method and Description
protected static T fromString(String name, Class<T> clazz)
protected static java.util.Collection<T> values(Class<T> clazz)
boolean equals(Object obj)
int hashCode()
java.lang.String toString()
protected T withNameValue(String name, T value, Class<T> clazz)

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ExpandableStringEnum

public ExpandableStringEnum()

Method Details

fromString

protected static T fromString(String name, Class clazz)

Parameters:

name
clazz

values

protected static Collection values(Class clazz)

Parameters:

clazz

equals

public boolean equals(Object obj)

Overrides:

ExpandableStringEnum<T>.equals(Object obj)

Parameters:

obj

hashCode

public int hashCode()

Overrides:

ExpandableStringEnum<T>.hashCode()

toString

public String toString()

Overrides:

ExpandableStringEnum<T>.toString()

withNameValue

protected T withNameValue(String name, T value, Class clazz)

Parameters:

name
value
clazz

Applies to