Record Class EnumValues
java.lang.Object
java.lang.Record
nl.b3p.planmonitorwonen.api.validation.EnumValues
- Record Components:
values- the values in enum sort order by enum type name
The values of the enum types in the database, so the validators can report an unknown value with the possible values
instead of the database rejecting it. Read from the database at startup by
PlanmonitorWonenDatabaseService.getEnumValues(), so the database schema is the
only place where the values are defined.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEnumValues(Map<String, List<String>> values) Creates an instance of aEnumValuesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the values of an enum type in enum sort order.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Field Details
-
PLANTYPE
- See Also:
-
STATUS_PLANOLOGISCH
- See Also:
-
VERTROUWELIJKHEID
- See Also:
-
OPDRACHTGEVER_TYPE
- See Also:
-
STATUS_PROJECT
- See Also:
-
KNELPUNTEN_MEERKEUZE
- See Also:
-
BEOOGD_WOONMILIEU_ABF13
- See Also:
-
WONING_TYPE
- See Also:
-
WONEN_EN_ZORG
- See Also:
-
FLEXWONINGEN
- See Also:
-
BETAALBAARHEID
- See Also:
-
-
Constructor Details
-
EnumValues
-
-
Method Details
-
get
Returns the values of an enum type in enum sort order.- Throws:
IllegalStateException- when the enum type does not exist in the database
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
values
-