Record Class Aantallen
java.lang.Object
java.lang.Record
nl.b3p.planmonitorwonen.api.model.Aantallen
- Record Components:
bruto- bruto plancapaciteit, the total number of dwellings added by the plan (stored as plancategorie "Nieuwbouw")sloop- number of dwellings demolishedwoningType- dwellings by woningtype, should add up to brutowonenEnZorg- dwellings by suitability for elderly and care, should add up to brutoflexwoningen- dwellings by temporary or permanent, should add up to brutobetaalbaarheid- dwellings by price segment, should add up to bruto
public record Aantallen(Aantal bruto, Aantal sloop, Map<String,Aantal> woningType, Map<String,Aantal> wonenEnZorg, Map<String,Aantal> flexwoningen, Map<String,Aantal> betaalbaarheid)
extends Record
Numbers of dwellings of a planregistratie. The maps are keyed by the category value, for example "Eengezins" for
woningType. A category left out (or null) is not filled in, a category with an
Aantal of 0 is filled in as
zero. For the totals both count as zero. Categories not filled in are left out of the JSON output.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebetaalbaarheidrecord component.bruto()Returns the value of thebrutorecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theflexwoningenrecord component.final inthashCode()Returns a hash code value for this object.sloop()Returns the value of theslooprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewonenEnZorgrecord component.Returns the value of thewoningTyperecord component.
-
Constructor Details
-
Aantallen
public Aantallen(Aantal bruto, Aantal sloop, Map<String, Aantal> woningType, Map<String, Aantal> wonenEnZorg, Map<String, Aantal> flexwoningen, Map<String, Aantal> betaalbaarheid) Creates an instance of aAantallenrecord class.- Parameters:
bruto- the value for thebrutorecord componentsloop- the value for theslooprecord componentwoningType- the value for thewoningTyperecord componentwonenEnZorg- the value for thewonenEnZorgrecord componentflexwoningen- the value for theflexwoningenrecord componentbetaalbaarheid- the value for thebetaalbaarheidrecord component
-
-
Method Details
-
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). -
bruto
-
sloop
-
woningType
Returns the value of thewoningTyperecord component.- Returns:
- the value of the
woningTyperecord component
-
wonenEnZorg
Returns the value of thewonenEnZorgrecord component.- Returns:
- the value of the
wonenEnZorgrecord component
-
flexwoningen
Returns the value of theflexwoningenrecord component.- Returns:
- the value of the
flexwoningenrecord component
-
betaalbaarheid
Returns the value of thebetaalbaarheidrecord component.- Returns:
- the value of the
betaalbaarheidrecord component
-