AbstractValueMapT Class

Base class of an abstract value map. If you're creating a new restricted collection of abstract value maps, please make a new derived abstract class of this one to constrain them.

Definition

Constructors

AbstractValueMapT Default constructor for AbstractValueMap types. the receiving end must be a private constructor!

Properties

I18NDescription Human-readable description of the abstract enum, to be used as localization key.
I18NTitle Human-readable title of the abstract enum, to be used as localization key.
Value Value of the abstract enum (as a string for easy storage in databases)

Methods

CompareTo(T)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
CompareTo(Object)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Equals(T)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
GetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
IsAnyOf Checks if the current value is any of the provided options.
IsEmpty Returns if the value is empty.
ListValues List all possible values of a Value Mapping into a dictionary (value, i18nKey)
ParseParses a string into a value.
ToStringReturns a string that represents the current object.
(Overrides ObjectToString)
TryParseTries to parse a string into a value.

Operators

Equality(AbstractValueMapT, AbstractValueMapT) Equality check for two abstract enums
GreaterThan(AbstractValueMapT, AbstractValueMapT) Checks if a is higher than b.
GreaterThanOrEqual(AbstractValueMapT, AbstractValueMapT) Checks if a is higher than or is equal to b.
(AbstractValueMapT to String) Implicitly the value map is based on its value string. In this way, we don't have to constantly use its 'Value' property.
Inequality(AbstractValueMapT, AbstractValueMapT) Inequality check for two abstract enums
LessThan(AbstractValueMapT, AbstractValueMapT) Checks if a is lower than b.
LessThanOrEqual(AbstractValueMapT, AbstractValueMapT) Checks if a is lower than or equal to b.

Fields

Empty Generates an empty value map, showing no value has been assigned.

See Also