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 demolished
woningType - dwellings by woningtype, should add up to bruto
wonenEnZorg - dwellings by suitability for elderly and care, should add up to bruto
flexwoningen - dwellings by temporary or permanent, should add up to bruto
betaalbaarheid - 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 Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • bruto

      public Aantal bruto()
      Returns the value of the bruto record component.
      Returns:
      the value of the bruto record component
    • sloop

      public Aantal sloop()
      Returns the value of the sloop record component.
      Returns:
      the value of the sloop record component
    • woningType

      public Map<String,Aantal> woningType()
      Returns the value of the woningType record component.
      Returns:
      the value of the woningType record component
    • wonenEnZorg

      public Map<String,Aantal> wonenEnZorg()
      Returns the value of the wonenEnZorg record component.
      Returns:
      the value of the wonenEnZorg record component
    • flexwoningen

      public Map<String,Aantal> flexwoningen()
      Returns the value of the flexwoningen record component.
      Returns:
      the value of the flexwoningen record component
    • betaalbaarheid

      public Map<String,Aantal> betaalbaarheid()
      Returns the value of the betaalbaarheid record component.
      Returns:
      the value of the betaalbaarheid record component